/* 
 * 統合スタイルシート
 * style.cssとthird-level.cssを統合し、競合を解消したバージョン
 */

:root {
  --primary-color: #e74c3c;
  --secondary-color: #2c3e50;
  --background-color: #f9f9f9;
  --text-color: #2c3e50;
  --card-background: #ffffff;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --accent-color: #ff6b35;
  --light-text: #ecf0f1;
  --dark-text: #333333;
  --medium-text: #666666;
  --border-color: #e1e8ed;
  --highlight-color: #3498db;
  --success-color: #27ae60;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  background-color: var(--background-color);
  color: var(--text-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  width: 100%;
}

/* ヘッダースタイル */
.site-header {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
/*   gap: 1rem; */
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 1001;
  position: relative;
  flex: 1;
  min-width: 0;
}

.logo-image {
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
}

.site-title {
  font-size: 1.2rem;
  color: #333;
  margin: 0;
  line-height: 1.3;
  z-index: 1001;
  position: relative;
}

.header-nav {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* ハンバーガーメニュー */
.menu-toggle {
  display: none; /* デフォルトは非表示 */
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 4px;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1002;
}

.menu-toggle:hover {
  background: rgba(0, 0, 0, 0.1);
}

.hamburger-line {
  width: 24px;
  height: 3px;
  background: #333;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ナビゲーションメニュー（デスクトップ用） */
.nav-menu {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary-color);
  background: rgba(214, 51, 132, 0.1);
}

.nav-link i:first-child {
  font-size: 1rem;
  width: 16px;
  text-align: center;
}

.submenu-arrow {
  margin-left: auto;
  font-size: 0.8rem !important;
  transition: transform 0.3s ease;
}

.nav-item.has-submenu:hover .submenu-arrow {
  transform: rotate(180deg);
}

/* メガメニュー */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  min-width: 800px;
  max-width: 1000px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid #e9ecef;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  margin-top: 8px;
  /* 画面外への溢れを防ぐ */
  max-width: calc(100vw - 40px);
}

/* 画面左端での表示調整 */
.nav-item:first-child .mega-menu {
  left: 0;
  transform: translateX(0);
}

/* 画面右端での表示調整 */
.nav-item:last-child .mega-menu {
  left: auto;
  right: 0;
  transform: translateX(0);
}

/* 小さいビューポートでの調整 */
@media (max-width: 1200px) {
  .mega-menu {
    min-width: 600px;
  }
}

@media (max-width: 900px) {
  .mega-menu {
    min-width: 500px;
    left: 0;
    transform: translateX(0);
  }
}

.nav-item.has-submenu:hover .mega-menu {
  opacity: 1;
  visibility: visible;
}

/* 左端要素のホバー時の調整 */
.nav-item:first-child.has-submenu:hover .mega-menu {
  transform: translateX(0) translateY(0);
}

/* 右端要素のホバー時の調整 */
.nav-item:last-child.has-submenu:hover .mega-menu {
  transform: translateX(0) translateY(0);
}

.mega-menu-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 30px 0;
}

.mega-menu-section {
  padding: 0 25px;
  border-right: 1px solid #f0f0f0;
}

.mega-menu-section:last-child {
  border-right: none;
}

.mega-menu-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f8f9fa;
}

.mega-menu-section h3 i {
  color: var(--primary-color);
  font-size: 1.1rem;
}

.mega-menu-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-menu-section li {
  margin-bottom: 8px;
}

.mega-menu-section a {
  color: #6c757d;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 6px;
  display: block;
  transition: all 0.3s ease;
}

.mega-menu-section a:hover {
  color: var(--primary-color);
  background: rgba(214, 51, 132, 0.1);
  transform: translateX(4px);
}

/* ヒーローセクション */
.main-hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
  color: #fff;
}

.hero-logo {
  max-width: 200px;
  margin-bottom: 30px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.6;
}

.title-line {
  display: block;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 40px;
}

.hero-description {
  font-size: 1.2rem;
  margin-top: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.scroll-indicator {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  font-size: 0.9rem;
  opacity: 0.8;
}

.scroll-indicator i {
  margin-top: 10px;
  font-size: 1.2rem;
}

.slideshow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide.active.fade-zoom img {
  animation: fadeZoom 6s ease-in-out;
}

@keyframes fadeZoom {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* サブページヒーロー */
.sub-hero {
  height: 50vh;
  min-height: 400px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 120px;
}

.sub-hero .hero-overlay {
  background: rgba(0, 0, 0, 0.2);
}

.sub-hero .hero-title {
  font-size: 2.5rem;
}

.sub-hero .hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* パンくずリスト */
.breadcrumb {
  background-color: #fff;
  padding: 15px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.breadcrumb-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
}

.breadcrumb-nav a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

.breadcrumb-separator {
  margin: 0 10px;
  color: #ccc;
  font-size: 0.8rem;
}

.breadcrumb-current {
  color: #777;
  font-size: 0.9rem;
}

/* イントロセクション */
.intro-section {
  padding: 60px 0;
  text-align: center;
}

.intro-text {
  max-width: 800px;
  margin: 0 auto;
}

/* 防災・備蓄カテゴリーセクション */
.category-grid {
  padding: 80px 0;
}

.category-grid h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: var(--secondary-color);
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.category-card {
  background: var(--card-background);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: var(--text-color);
  display: block;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: var(--text-color);
}

.aspect-ratio-box {
  position: relative;
  padding-top: 56.25%; /* 16:9 アスペクト比 */
  overflow: hidden;
}

.item-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover .item-image {
  transform: scale(1.05);
}

.card-content {
  padding: 20px;
}

.card-content h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.card-content p {
  color: #666;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.learn-more {
  color: var(--primary-color);
  font-weight: 500;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* 注目コンテンツセクション */
.featured-section {
  padding: 80px 0;
  background-color: #fff;
}

.featured-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: var(--secondary-color);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.featured-item {
  text-align: center;
  padding: 40px 20px;
  background: var(--background-color);
  border-radius: 15px;
  box-shadow: 0 5px 15px var(--shadow-color);
  transition: transform 0.3s ease;
}

.featured-item:hover {
  transform: translateY(-10px);
}

.featured-item i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.featured-item h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.featured-item p {
  color: #666;
  margin-bottom: 20px;
}

/* 映画セクション */
.movie-section {
  padding: 80px 0;
}

.movie-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: var(--secondary-color);
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.movie-card {
  background: var(--card-background);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow-color);
  transition: transform 0.3s ease;
}

.movie-card:hover {
  transform: translateY(-10px);
}

.movie-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.movie-info {
  padding: 20px;
}

.movie-info h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.movie-info p {
  color: #666;
}

/* 映画リンクのスタイル */
.movie-link {
  text-decoration: none !important;
  color: inherit;
  display: block;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-link:hover {
  text-decoration: none !important;
  color: inherit;
}

.movie-link:visited {
  text-decoration: none !important;
  color: inherit;
}

.movie-link:focus {
  text-decoration: none !important;
  color: inherit;
}

.movie-link:active {
  text-decoration: none !important;
  color: inherit;
}

.movie-link h3,
.movie-link p,
.movie-link:hover h3,
.movie-link:hover p,
.movie-link:visited h3,
.movie-link:visited p,
.movie-link:focus h3,
.movie-link:focus p,
.movie-link:active h3,
.movie-link:active p {
  color: inherit;
  text-decoration: none !important;
}

/* 追加のアンダーライン削除対策 */
.movie-card a,
.movie-card a:hover,
.movie-card a:visited,
.movie-card a:focus,
.movie-card a:active {
  text-decoration: none !important;
  color: inherit;
}

.movie-grid-extended a,
.movie-grid-extended a:hover,
.movie-grid-extended a:visited,
.movie-grid-extended a:focus,
.movie-grid-extended a:active {
  text-decoration: none !important;
  color: inherit;
}

/* 映画アコーディオン */
.movie-accordion {
  margin-top: 40px;
}

.accordion-toggle {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  padding: 20px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.accordion-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.accordion-toggle i {
  transition: transform 0.3s ease;
}

.accordion-toggle.active i {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.accordion-content.active {
  max-height: 2860px;
}

.movie-grid-extended {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 30px 0 0 0;
}

/* CTA セクション */
.cta-section {
  padding: 100px 0;
  margin-bottom: 80px;
  background: linear-gradient(135deg, var(--secondary-color), #34495e);
  color: #fff;
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ボタンスタイル */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.primary-btn {
  background-color: var(--primary-color);
  color: #fff;
}

.primary-btn:hover {
  background-color: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
  color: #fff;
  text-decoration: none;
}

.secondary-btn {
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.secondary-btn:hover {
  background-color: #fff;
  color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.4);
  text-decoration: none;
}

/* フッター */
.site-footer {
  background-color: var(--secondary-color);
  color: #fff;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: #fff;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #fff;
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #bdc3c7;
  font-size: 0.9rem;
}

/* ローダー */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader-content {
  text-align: center;
}

.loader-text {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-top: 20px;
}

/* アニメーション用クラス */
.reveal {
  visibility: visible !important;
}

/* 7日間備蓄ページ用スタイル */
.stock-overview {
  padding: 80px 0;
}

.stock-overview h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.section-description {
  text-align: center;
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.overview-card {
  background: #fff;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 15px var(--shadow-color);
  text-align: center;
}

.overview-card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.overview-card h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.overview-card ul {
  list-style: none;
  text-align: left;
  padding-left: 20px;
}

.overview-card ul li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.overview-card ul li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* 必須備蓄品セクション */
.essential-items {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.essential-items h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: var(--secondary-color);
}

.items-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.item-category {
  background: #fff;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 15px var(--shadow-color);
}

.item-category h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.item-category h3 i {
  color: var(--primary-color);
}

.item-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.quantity-calc {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
}

.quantity-calc p {
  margin-bottom: 10px;
}

.storage-tips, .food-types, .hygiene-items {
  list-style: none;
}

.storage-tips li, .food-types li, .hygiene-items li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.storage-tips li:before, .food-types li:before, .hygiene-items li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2rem;
}

/* 特別なニーズセクション */
.special-needs {
  padding: 80px 0;
}

.special-needs h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: var(--secondary-color);
}

.needs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.needs-card {
  background: #fff;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 15px var(--shadow-color);
  text-align: center;
}

.needs-card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.needs-card h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.needs-card ul {
  list-style: none;
  text-align: left;
  padding-left: 20px;
}

.needs-card ul li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.needs-card ul li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* 季節調整セクション */
.seasonal-adjustment {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.seasonal-adjustment h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: var(--secondary-color);
}

.season-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.season-card {
  background: #fff;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 15px var(--shadow-color);
}

.season-card h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.season-card ul {
  list-style: none;
}

.season-card ul li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.season-card ul li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2rem;
}

.season-card.summer h3 {
  color: #e67e22;
}

.season-card.winter h3 {
  color: #3498db;
}

/* 専門家アドバイスセクション */
.expert-advice {
  padding: 80px 0;
  background: linear-gradient(135deg, #34495e, #2c3e50);
  color: white;
}

.expert-advice h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #fff;
}

.expert-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
}

.expert-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.expert-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.expert-info h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
  color: #fff;
}

.expert-info p {
  color: #bdc3c7;
  font-size: 0.9rem;
}

.expert-quote {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 30px;
  position: relative;
}

.expert-quote:before {
  content: "\201C";
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.2);
  line-height: 1;
}

.expert-quote p {
  font-size: 1.1rem;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.expert-text {
  position: relative;
  z-index: 1;
}

.expert-text h3 {
  color: var(--accent-color);
  font-size: 1.3rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.expert-text h4 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: white;
}

.expert-title {
  color: var(--highlight-color);
  font-size: 1rem;
  margin-bottom: 25px;
  font-style: italic;
}

.expert-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
  color: var(--light-text);
}

.expert-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.expert-credentials span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #bdc3c7;
  font-size: 0.9rem;
}

.expert-credentials i {
  color: var(--accent-color);
}

/* ケーススタディセクション */
.case-study {
  padding: 80px 0;
  background: linear-gradient(135deg, #2c3e50, #34495e);
  color: white;
  margin: 80px 0;
  position: relative;
  z-index: 1;
}

.case-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.case-text h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: white;
}

.case-year {
  color: var(--highlight-color);
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.case-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.case-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: #bdc3c7;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.case-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* レベルシステム */
.food-levels {
  padding: 80px 0;
  background: #f8f9fa;
}

.food-levels h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.levels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.level-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.level-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.level-card.basic-level .level-header {
  background: linear-gradient(135deg, #3498db, #2980b9);
}

.level-card.comfort-level .level-header {
  background: linear-gradient(135deg, #e67e22, #d35400);
}

.level-card.independence-level .level-header {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.level-header {
  padding: 30px;
  color: white;
  text-align: center;
}

.level-header h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.level-period {
  font-size: 0.9rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.level-content {
  padding: 30px;
}

.level-content p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 25px;
}

.level-features {
  list-style: none;
  padding: 0;
  margin: 25px 0;
}

.level-features li {
  padding: 8px 0;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}

.level-features li::before {
  content: "✓";
  color: var(--success-color);
  font-weight: bold;
  font-size: 1.1rem;
}

.level-capacity {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  margin-top: 25px;
  text-align: center;
  border-left: 4px solid var(--accent-color);
}

.level-capacity strong {
  color: var(--accent-color);
  font-size: 1.1rem;
}

/* カテゴリータブシステム */
.food-categories {
  padding: 80px 0;
  background: white;
}

.food-categories h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  color: var(--secondary-color);
}

.category-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
  gap: 10px;
  flex-wrap: wrap;
}

.tab-btn {
  background: #ecf0f1;
  color: #7f8c8d;
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  background: #d5dbdb;
  color: var(--secondary-color);
}

.tab-btn.active {
  background: var(--accent-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: block;
}

.tab-content h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.tab-content > p {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 40px;
}

/* プロダクトカード */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.product-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.product-card.featured {
  border: 3px solid #ffd700;
  position: relative;
}

.product-card.featured::before {
  content: "注目商品";
  position: absolute;
  top: 15px;
  left: -8px;
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: white;
  padding: 8px 20px;
  font-size: 0.8rem;
  font-weight: bold;
  z-index: 3;
  border-radius: 15px;
  transform: rotate(-3deg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.product-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-image .rating {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.product-image .rating i {
  color: #ffd700;
}

.product-info {
  padding: 25px;
}

.product-info h4 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--secondary-color);
  line-height: 1.3;
}

.product-info p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.product-features {
  display: grid;
  gap: 8px;
  margin: 20px 0;
}

.product-features span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--success-color);
  font-size: 0.9rem;
}

.product-features i {
  color: var(--success-color);
  font-size: 0.8rem;
}

.price-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 2px solid #ecf0f1;
}

.price {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--accent-color);
}

/* 計算ツール */
.nutrition-calculator {
  padding: 80px 0;
  background: #f8f9fa;
}

.nutrition-calculator h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  color: var(--secondary-color);
}

.calculator-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.calculator-inputs {
  display: grid;
  gap: 25px;
  margin-bottom: 40px;
}

.input-group {
  display: grid;
  gap: 10px;
}

.input-group label {
  font-weight: 600;
  color: var(--secondary-color);
  font-size: 1rem;
}

.input-group input,
.input-group select {
  padding: 15px;
  border: 2px solid #ecf0f1;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.calculator-results {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 30px;
  margin-top: 30px;
}

.calculator-results h3 {
  color: var(--secondary-color);
  margin-bottom: 25px;
  text-align: center;
  font-size: 1.5rem;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #dee2e6;
}

.result-item:last-child {
  border-bottom: none;
}

.result-label {
  font-weight: 500;
  color: #495057;
}

.result-value {
  font-weight: bold;
  color: var(--accent-color);
  font-size: 1.1rem;
}

/* 地震対策セクション */
.earthquake-content {
  margin-top: 2rem;
  padding: 0;
  max-width: 1200px;
  margin: 2rem auto;
}

.action-timeline {
  margin-bottom: 3rem;
  padding: 0 20px;
}

.timeline {
  margin-top: 2rem;
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: var(--primary-color);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(231, 76, 60, 0.3);
}

.timeline-item {
  margin-bottom: 2.5rem;
  position: relative;
  padding-right: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -48px;
  top: 0.3rem;
  width: 18px;
  height: 18px;
  background: var(--primary-color);
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--primary-color), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.time-label {
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  text-align: left;
  display: block;
}

.action-content {
  background: #f8f9fa;
  padding: 1.8rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-right: 0;
  width: 100%;
}

.action-content:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.action-content h4 {
  color: var(--secondary-color);
  margin-bottom: 1.2rem;
  font-size: 1.3rem;
}

.action-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.action-content li {
  padding: 0.8rem 0;
  padding-left: 1.8rem;
  position: relative;
  color: #4a4a4a;
  line-height: 1.6;
}

.action-content li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2rem;
}

/* 防災マニュアルページのスタイル */
.manual-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 20px;
}

/* 目次セクション */
.toc-section {
  margin: 3rem 0;
  padding: 2rem;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.toc-section h2 {
  color: var(--secondary-color);
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.toc-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 2rem;
  text-decoration: none;
  color: #333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.toc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.toc-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  display: block;
}

.toc-card h3 {
  font-size: 1.4rem;
  color: var(--secondary-color);
  margin: 1rem 0;
}

.toc-card p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* マニュアルセクション */
.manual-section {
  margin: 4rem 0;
  padding: 2.5rem;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.manual-section h2 {
  color: var(--secondary-color);
  font-size: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--primary-color);
}

.manual-section h3 {
  color: var(--secondary-color);
  font-size: 1.6rem;
  margin: 2rem 0 1.5rem;
}

.manual-section p {
  color: #666;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* チェックリストスタイル */
.checklist {
  margin: 2rem 0;
}

.check-item {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.check-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.check-item label {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-weight: 600;
  color: var(--secondary-color);
  cursor: pointer;
  margin: 0;
}

.check-item input[type="checkbox"] {
  margin-top: 0.3rem;
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary-color);
  border-radius: 4px;
  cursor: pointer;
}

.check-detail {
  margin-top: 1.2rem;
  margin-left: 2.5rem;
  color: #666;
}

.check-detail ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-detail li {
  padding: 0.8rem 0;
  padding-left: 1.8rem;
  position: relative;
  border-bottom: 1px dashed var(--border-color);
}

.check-detail li:last-child {
  border-bottom: none;
}

.check-detail li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* アニメーション */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .site-title {
    font-size: 1.1rem;
    max-width: calc(100vw - 300px);
  }
  
  .case-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .levels-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .expert-content {
    grid-template-columns: 150px 1fr;
    gap: 30px;
  }
  
  .expert-image {
    width: 150px;
    height: 150px;
  }

  .mega-menu {
    min-width: 600px;
  }
  
  .mega-menu-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 25px;
  }
  
  .mega-menu-section {
    border-right: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 0 0 20px 0;
  }
  
  .mega-menu-section:nth-child(2n) {
    border-right: none;
  }
  
  .mega-menu-section:last-child,
  .mega-menu-section:nth-last-child(2) {
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }

  .sub-hero {
    margin-top: 90px; /* スマホ用調整 */
  }

  .header-container {
    flex-direction: row;
    gap: 1rem;
  }

  .header-top {
    flex: 1;
    min-width: 0;
  }

  .header-nav {
    display: none; /* デスクトップナビを非表示 */
  }

  .site-title {
    font-size: 0.9rem;
    line-height: 1.3;
  }

  .logo-section {
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
  }
  
  /* スマホでハンバーガーメニューを表示 */
  .site-header .header-container .header-top .menu-toggle {
    display: flex !important;
    flex-shrink: 0;
    z-index: 1002;
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }

  /* スマホでナビメニューをオーバーレイ表示 - 競合防止のため無効化 */
  /*
  .nav-menu {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    background: linear-gradient(135deg, #ff4757, #c44569) !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 100px 20px 20px 20px !important;
    z-index: 1001 !important;
    overflow-y: auto !important;
  }

  .nav-menu.active {
    transform: translateX(0) !important;
  }
  */

  .nav-item {
    width: 100% !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  .nav-item:last-child {
    border-bottom: none;
  }

  .nav-link {
    color: white !important;
    padding: 16px 0 !important;
    font-size: 1.1rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .submenu-arrow {
    transition: transform 0.3s ease;
  }

  .nav-item.submenu-open .submenu-arrow {
    transform: rotate(180deg);
  }

  /* モバイル用メガメニュー */
  .mega-menu {
    position: static !important;
    transform: none !important;
    min-width: auto;
    max-width: none;
    width: 100%;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: #f8f9fa;
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transition: max-height 0.3s ease;
    left: auto !important;
    right: auto !important;
  }

  .nav-item.submenu-open .mega-menu {
    max-height: 500px;
    padding: 15px 0;
  }

  .mega-menu-content {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }

  .mega-menu-section {
    border-right: none;
    border-bottom: 1px solid #e9ecef;
    padding: 15px 20px;
  }

  .mega-menu-section:last-child {
    border-bottom: none;
  }

  .mega-menu-section h3 {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .mega-menu-section a {
    padding: 8px 12px;
    font-size: 0.95rem;
  }

  .mega-menu-section a:hover {
    transform: none;
  }

  .case-study,
  .food-levels,
  .food-categories,
  .expert-advice,
  .nutrition-calculator {
    padding: 60px 20px;
  }
  
  .case-stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .levels-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .category-tabs {
    flex-direction: column;
    align-items: center;
  }
  
  .tab-btn {
    width: 100%;
    max-width: 300px;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .expert-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
  
  .expert-credentials {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }
  
  .calculator-container {
    margin: 0 20px;
    padding: 30px 20px;
  }
  
  .result-item {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .price-info {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .price-info .btn {
    width: 100%;
  }
  
  .item-details {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .sub-hero {
    margin-top: 80px; /* 小型スマホ用調整 */
  }

  .site-title {
    font-size: 0.8rem;
    line-height: 1.2;
  }

  .logo-section {
    gap: 0.3rem;
  }

  .logo-image {
    height: 40px;
  }

  .site-header {
    padding: 0.8rem 1rem;
  }

  /* .nav-menu {
    padding: 15px;
    top: 80px; /* 小さいヘッダー高さに合わせて調整 */
  } */
  
  .case-study h2,
  .food-levels h2,
  .food-categories h2,
  .nutrition-calculator h2,
  section h2 {
    font-size: 2rem;
  }
  
  .level-header h3 {
    font-size: 1.3rem;
  }
  
  .tab-content h3 {
    font-size: 1.6rem;
  }
  
  .expert-text h4 {
    font-size: 1.5rem;
  }
  
  .product-info h4 {
    font-size: 1.1rem;
  }
  
  .timeline {
    padding-left: 25px;
  }

  .timeline-item::before {
    left: -34px;
    width: 14px;
    height: 14px;
  }

  .timeline-item {
    padding-right: 5px;
  }

  .nav-link {
    padding: 14px 0;
    font-size: 1rem;
  }

  .mega-menu-section {
    padding: 12px 15px;
  }

  .mega-menu-section h3 {
    font-size: 0.95rem;
  }

  .mega-menu-section a {
    font-size: 0.9rem;
    padding: 6px 10px;
  }
}

/* ユーティリティクラス */
.nopc {
  display: none;
}

@media (max-width: 768px) {
  .nopc {
    display: inline;
  }
}

/* メガメニューの2列レイアウト用調整 */
.mega-menu-content.two-column {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 30px;
  padding: 30px;
}

.mega-menu-content.two-column .mega-menu-section {
  padding: 0;
  border-right: none;
  border-bottom: none;
}

/* 特定のメガメニューに対するカスタムスタイル */
.nav-item:has(.mega-menu-content .mega-menu-section:nth-child(3):empty) .mega-menu-content,
.nav-item .mega-menu-content:has(.mega-menu-section:only-child),
.nav-item .mega-menu-content:has(.mega-menu-section:nth-child(2):last-child) {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 30px;
  padding: 30px;
}

.nav-item:has(.mega-menu-content .mega-menu-section:nth-child(3):empty) .mega-menu-section,
.nav-item .mega-menu-content:has(.mega-menu-section:only-child) .mega-menu-section,
.nav-item .mega-menu-content:has(.mega-menu-section:nth-child(2):last-child) .mega-menu-section {
  border-right: none;
  border-bottom: none;
  padding: 0;
}

/* ブラウザサポート用の代替スタイル */
@supports not selector(:has(*)) {
  /* 終末に備えるメニュー用の特別クラス */
  .doomsday-menu .mega-menu-content {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px;
    padding: 30px;
  }
  
  .doomsday-menu .mega-menu-section {
    border-right: none;
    border-bottom: none;
    padding: 0;
  }
}

@media (max-width: 1024px) {
  .mega-menu {
    min-width: 600px;
  }
  
  .mega-menu-content,
  .mega-menu-content.two-column {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 25px;
  }
  
  .mega-menu-section {
    border-right: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 0 0 20px 0;
  }
  
  .mega-menu-section:nth-child(2n) {
    border-right: none;
  }
  
  .mega-menu-section:last-child,
  .mega-menu-section:nth-last-child(2) {
    border-bottom: none;
  }
}
