/* ベーススタイル */
body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "メイリオ",
    sans-serif;
  color: #333;
  line-height: 1.6;
}

.main {
  padding-top: 0;
}

/* 共通パーツ */
/* 共通＿セクション見出し */
.section-container {
  padding-top: 50px;
  padding-bottom: 50px;
  scroll-margin-top: 60px;
}
.section-subcontainer {
  max-width: 1000px;
  margin: 0 auto;
  padding-right: 20px;
  padding-left: 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 28px;
  margin-bottom: 20px;
  color: #333;
}

.section-description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 3rem;
  line-height: 1.8;
  color: #000;
}

/* 共通＿色変更 */
.bg-gray {
  background-color: #f5f5f5;
}

.bg-pink {
  background-color: #fef2f2;
}

/* メインコンテンツ */
/* 特徴セクション */
.icon-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.icon-card {
  flex: 1;
  min-width: 250px;
  max-width: 350px;
  padding: 2rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.icon-wrapper {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-wrapper img {
}

.icon-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #333;
}

.icon-description {
  font-size: 18px;
  line-height: 1.7;
  color: #000;
  text-align: left;
}

/* ヘッダースタイル */
.header {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header .header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  max-width: 240px;
  width: 30%;
}

.logo img {
  max-height: 60px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ナビゲーション */
.navigation {
  display: flex;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin-left: 15px;
}

.nav-link {
  color: #333;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 10px;
  transition: color 0.3s;
  font-size: 16px;
  white-space: nowrap;
}

.nav-link:hover {
  color: #e62e2e;
}

.nav-link.contact {
  background-color: #e62e2e;
  color: white;
  border-radius: 4px;
  padding: 8px 16px;
}

.nav-link.contact:hover {
  background-color: #c52222;
  color: white;
}

/* ハンバーガーメニュー */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: #333;
  transition: all 0.3s;
}

/* ヒーローバナースタイル */
.hero-banner {
  width: 100%;
  height: calc(100vh - 80px);
  background-color: #f5f5f5;
  overflow: hidden;
  position: relative;
}

/* コンテンツラッパー */
.content-wrapper {
  position: relative;
  height: 100%;
  width: 100%;
  z-index: 2;
}

/* テキストコンテンツ */
.text-content {
  width: 50%;
  max-width: 600px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-90%, -50%);
  z-index: 3;
}

/* タイトルとサブタイトルのオーバーレイ */
.text-overlay {
  background-color: rgba(255, 255, 255, 0.85);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.main-title {
  font-size: 28px;
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 20px;
  color: #000;
}

.sub-title {
  font-size: 18px;
  color: #000;
}

/* CTAボタン */
.cta-buttons {
  display: flex;
  gap: 15px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
}

.cta-button i {
  margin-left: 8px;
}

.primary {
  background-color: #e62e2e;
  color: white;
}

.primary:hover {
  background-color: #c52222;
}

.secondary {
  background-color: white;
  color: #e62e2e;
  border: 1px solid #e62e2e;
}

.secondary:hover {
  background-color: #f8f8f8;
}

/* 画像コンテンツ */
.image-content {
  width: 100vw;
  height: 100%;
  background-image: url("../img/fv.jpeg");
  background-size: cover;
  background-position: 60% center;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
}

/* 火災警報器の重要性セクション */
.fire-alarm-importance {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1rem;
  text-align: center;
}

.alert-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 1rem;
  background-color: #ffebee;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alert-icon img {
  width: 24px;
  height: 24px;
}

/* 火災警報器CTAセクション */
.fire-alarm-cta {
  text-align: center;
  margin-top: 2rem;
}

.fire-alarm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  background-color: #e53935;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.fire-alarm-button:hover {
  background-color: #c62828;
}

.fire-alarm-button i {
  margin-left: 0.5rem;
}

/* ヘッダー */
.scene-header {
  text-align: center;
  margin-bottom: 40px;
}

h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.scene-subtitle {
  font-size: 16px;
  color: #666;
}

/* シーンセクション */
.scene-section {
  margin-bottom: 50px;
  background-color: #ffffff;
}

.scene-title {
  background-color: #fef2f2;
  padding: 15px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
}

.color-orange {
  background-color: #fff8f0;
}

.content-wrapper {
  padding: 10px;
}

.scene-content {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 30px;
  gap: 20px;
}

.scene-description {
  flex: 1;
  min-width: 300px;
}

.scene-image {
  flex: 1;
  min-width: 300px;
}

.scene-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

h3 {
  font-size: 18px;
  margin-bottom: 15px;
}

.scene-description p {
  margin-bottom: 20px;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
}

.check-icon {
  color: #4caf50;
  font-weight: bold;
  margin-right: 10px;
  font-size: 18px;
}

.products-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}

.product-card {
  flex: 0 0 calc(50% - 10px);
  min-width: 300px;
  max-width: calc(50% - 10px);
  border: 2px solid #000;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card:nth-child(2n + 1) {
  margin-right: auto;
}

.product-image {
  width: 100%;
  position: relative;
  padding-top: 52.5%;
  overflow: hidden;
}

.product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #f9f9f9;
}

.product-info {
  padding: 15px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-title {
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
}

.product-spec {
  font-size: 16px;
  color: #000;
  text-align: center;
  margin-bottom: 15px;
}

.product-description {
  font-size: 16px;
  margin-bottom: 20px;
}

.product-variant {
  border-bottom: 1px solid #000;
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.product-variant:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.price-action .buy-button {
  margin-top: 10px;
}

.model-number {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 5px;
}

.price-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-size: 20px;
  font-weight: bold;
}

.tax {
  font-size: 12px;
  font-weight: bold;
}

.buy-button {
  background-color: #e53935;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 16px;
}

.buy-button::after {
  content: "→";
  margin-left: 5px;
}

.full-width {
  width: 100%;
  justify-content: center;
  padding: 10px;
  margin-top: 10px;
}

.single-variant {
  text-align: center;
}

/* ワイヤレス連動セクション */
.wireless-section {
  margin-bottom: 50px;
}

.wireless-image {
  margin-bottom: 40px;
}

/* 電池交換セクション */
.battery-section {
  margin-bottom: 50px;
}

/* 設置場所セクション */
.location-content-wrapper {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  flex-direction: row;
  align-items: flex-start;
}

.location-image-grid {
  width: 50%;
  padding-right: 30px;
}

.location-image-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.location-info-section {
  width: 50%;
}

.location-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.location-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin-right: 15px;
  margin-top: 3px;
}

.location-check-icon {
  display: block;
  text-align: center;
  color: #fff;
  background-color: #ff6b6b;
  border-radius: 50%;
}

.location-info-content {
  flex: 1;
}

.location-info-content h2 {
  font-size: 18px;
  margin-bottom: 5px;
  font-weight: bold;
}

.location-info-content h3 {
  font-weight: bold;
}

.location-info-content p {
  font-size: 16px;
}

.location-note {
  font-size: 16px;
  color: #000;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

/* よくある質問セクション */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background-color: #fff7ed;
  border: none;
  padding: 16px 20px;
  text-align: left;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s;
}

.faq-question:hover {
  background-color: #fef2f2;
}

.arrow-icon {
  font-size: 20px;
  transition: transform 0.3s ease;
  display: inline-block;
}

.faq-item.active .arrow-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding-left: 20px;
  padding-right: 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.faq-item.active .faq-answer {
  padding-top: 20px;
  padding-bottom: 20px;
  max-height: 300px;
  opacity: 1;
}

.faq-answer p{
  font-size: 18px;
  color: #000;
}

/* CTAセクション */
.bg-orange {
  background: #f26522;
}

.color-white {
  color: white;
}

.button-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  color: #f26522;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 200px;
}

.button:hover {
  background-color: #f8f8f8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.arrow {
  margin-left: 8px;
}

/* フッター */
.footer {
  background-color: #111827;
  color: #ffffff;
  padding: 2rem 0;
  width: 100%;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.logo-image {
  max-width: 300px;
  height: auto;
}

.footer-company{
  margin-bottom: 20px;
}

.footer-nav ul {
  display: flex;
  list-style: none;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #2eae8c;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background-color: #374151;
  margin-bottom: 1.5rem;
}

.copyright {
  font-size: 0.9rem;
  color: #9ca3af;
  text-align: center;
}

/* 小さめの画面でのナビゲーション調整 */
@media (min-width: 769px) and (max-width: 991px) {
  .nav-item {
    margin-left: 10px;
  }

  .nav-link {
    padding: 8px 8px;
    font-size: 14px;
  }

  .nav-link.contact {
    padding: 8px 12px;
  }

  .logo {
    max-width: 200px;
    width: 28%;
  }

  .logo img {
    max-height: 50px;
  }

  .image-content {
    background-position: 60% center;
  }

  .text-content {
    width: 60%;
    left: 35%;
    transform: translate(-50%, -50%);
    padding: 30px;
  }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .logo {
    max-width: 180px;
    width: 70%;
  }

  .logo img {
    max-height: 45px;
  }

  .menu-toggle {
    display: block;
    z-index: 101;
  }

  .navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 100;
  }

  .navigation.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    padding: 80px 20px 20px;
  }

  .nav-item {
    margin: 10px 0;
    margin-left: 0;
  }

  .nav-link {
    font-size: 16px;
    padding: 10px 15px;
    display: block;
  }

  .hero-banner {
    height: 90vh;
    position: relative;
  }

  .content-wrapper {
    flex-direction: column-reverse;
    height: 100%;
    position: static;
  }

  .text-content {
    width: 100%;
    max-width: none;
    padding: 30px 20px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    transform: none;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .text-overlay {
    background-color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
    width: 100%;
  }

  .main-title{
    font-size: 22px;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 10px;
    max-width: 220px;
    width: 100%;
  }

  .cta-button {
    width: 100%;
  }

  .image-content {
    width: 100vw;
    height: 100%;
    position: absolute;
    background-size: cover;
    background-position: 60% center;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }

  .section-title {
  font-size: 22px;
}

  /* 火災警報器の重要性セクション */
  .fire-alarm-importance {
    padding: 3rem 1rem;
  }

  .scene-container {
    padding: 15px;
  }

  h2 {
    font-size: 20px;
  }

  .subtitle {
    font-size: 14px;
  }

  /* シーン別おすすめセクション */

  .scene-content {
    flex-direction: column;
  }

  .scene-description,
  .scene-image {
    width: 100%;
  }

  .products-container {
    flex-direction: column;
  }

  .product-card {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    margin-bottom: 20px;
  }

  .product-card:last-child {
    margin-bottom: 0;
  }

  .product-image {
    padding-top: 52.5%;
  }

  .price-action {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .price-action .buy-button {
    margin-top: 0;
    margin-left: 10px;
  }

  /* 設置場所セクション */
  .location-content-wrapper {
    flex-direction: column;
  }

  .location-image-grid {
    width: 100%;
    padding-right: 0px;
  }

  .location-info-section {
    width: 100%;
  }

  .location-info-item {
    margin-bottom: 25px;
  }

  .location-info-content h2 {
    font-size: 17px;
  }

  .location-info-content p {
    font-size: 15px;
  }

  /* よくある質問セクション */
  .faq-question {
    font-size: 15px;
    padding: 14px 16px;
  }

  .faq-item.active .faq-answer {
    padding: 0 16px 14px;
  }

  /* CTAセクション */
  .button-container {
    flex-direction: column;
    align-items: center;
  }

  .button {
    width: 100%;
    max-width: 280px;
  }

  /* フッター */
  .logo-container {
    margin-bottom: 1.5rem;
  }

  .logo-image {
    max-width: 250px;
  }

  .footer-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .footer-container {
    padding: 0 1.5rem;
  }
}

@media (max-width: 375px) {
  .main-title{
    font-size: 19px;
  }
  
  .sub-title{
    font-size: 16px;
  }
}