/* ========================================
   下層ページ用スタイル - 統合版
   ヒーローセクション、パンくずリスト、オーバーライドを統合管理
   ======================================== */

/* パンくずリストのスタイル */
.breadcrumb {
  background: transparent !important;
  padding: var(--spacing-2) 0 !important;
  border: none !important;
  margin-top: var(--header-height) !important;
  position: relative !important;
  z-index: 10 !important;
}

.breadcrumb__list {
  display: flex;
  align-items: center;
  gap: var(--spacing-2);
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0; /* 子要素の省略可を許可 */
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  font-size: var(--font-size-sm);
  color: var(--color-neutral-600);
}

.breadcrumb__item:not(:last-child)::after {
  content: '>';
  margin-left: var(--spacing-2);
  color: var(--color-neutral-400);
}

.breadcrumb__link {
  color: var(--color-neutral-400);
  text-decoration: none;
  transition: color var(--animation-duration-base) var(--animation-easing-ease);
}

.breadcrumb__link:hover {
  color: var(--color-primary-600);
  text-decoration: underline;
}

.breadcrumb__item--current {
  color: var(--color-neutral-700);
  font-weight: 500;
  /* タイトルが長い場合の省略表示 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 160px);
}

/* 下層ページヘローのベーススタイル - 統合版 */
.hero--subpage {
  position: relative;
  background: linear-gradient(135deg, 
    var(--color-primary-50) 0%, 
    var(--color-neutral-50) 50%, 
    var(--color-primary-50) 100%);
  /* 縦幅を最小化 */
  padding: var(--spacing-6) 0 var(--spacing-8);
  overflow: hidden;
  /* 下層ページ専用：高さを最小限に制限 */
  min-height: auto;
  max-height: none;
  /* トップページのフルスクリーンヒーローを無効化 */
  height: auto !important;
  /* レイアウト設定 */
  display: flex;
  align-items: center;
  text-align: left;
}

/* トップページのヒーロー要素を非表示にする */
.hero--subpage .hero__staff-background,
.hero--subpage .hero__main-copy,
.hero--subpage .hero__scroll-indicator {
  display: none !important;
}

/* デジタル調の背景パターン */
.hero--subpage::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 25% 25%, var(--color-primary-100) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, var(--color-secondary-100) 0%, transparent 50%),
    linear-gradient(45deg, transparent 30%, var(--color-neutral-100) 50%, transparent 70%);
  opacity: 0.3;
  z-index: 1;
}

/* グリッドパターンのオーバーレイ - 削除（打ち消し線の原因となるため） */
.hero--subpage::after {
  display: none; /* グリッドパターンを完全に非表示にして打ち消し線を防ぐ */
}

/* ヘローコンテンツのコンテナ */
.hero--subpage .container {
  position: relative;
  z-index: 3;
}

/* 下層ページヘローのコンテンツレイアウト - 統合版 */
.hero--subpage .hero__content {
  /* レイアウト設定 */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  
  /* サイズ設定 - デスクトップ版のみ1200px、レスポンシブ対応 */
  width: 1200px;
  max-width: 1200px;
  min-height: auto;
  box-sizing: border-box;
  
  /* 位置・余白設定 */
  position: relative;
  margin: 0;
  padding: 0;
  
  /* 表示設定 */
  text-align: left;
  z-index: 10;
  background: none;
  
  /* アニメーション */
  animation: fadeInUp 0.8s ease-out;
}

/* デスクトップ版の幅制限を適切に設定（768px以上） */
@media (min-width: 768px) {
  .hero--subpage .hero__content {
    width: 1200px;
    max-width: 1200px;
  }
}

/* ヒーローヘッダーを横並びレイアウトにする */
.hero--subpage .hero__header {
  display: flex;
  align-items: baseline;
  gap: var(--spacing-4);
  margin-bottom: var(--spacing-2);
  flex-wrap: wrap;
}

/* タイトルとサブタイトルの基本設定 */
.hero--subpage .hero__title,
.hero--subpage .hero__subtitle {
  margin-bottom: 0;
}

/* トップページのヒーローコンテンツ背景オーバーレイを無効化 */
.hero--subpage .hero__content::before {
  display: none !important;
}

/* 下層ページタイトルデザイン - 統合版 */
.hero--subpage .hero__title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-primary-500); /* トップページのセクションタイトルと同様のカラー */
  margin-bottom: 0;
  position: relative;
  z-index: 15;
}

/* タイトルのアンダーライン（デジタル調） */
.hero--subpage .hero__title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  /* background: linear-gradient(90deg, 
    var(--color-primary-500) 0%, 
    var(--color-secondary-500) 100%); */
  border-radius: var(--radius-full);
}

/* 下層ページサブタイトルデザイン - 統合版 */
.hero--subpage .hero__subtitle {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-neutral-500); /* 背景色なしで読みやすく */
  margin-bottom: 0;
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  position: relative;
  z-index: 15;
  /* 背景色を削除 */
  background: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  /* border-bottomを削除 */
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

/* サブタイトルの装飾線 - 削除（打ち消し線の原因となるため） */
.hero--subpage .hero__subtitle::before,
.hero--subpage .hero__subtitle::after {
  display: none; /* 装飾線を非表示にして打ち消し線を防ぐ */
}

/* 下層ページ説明文デザイン - 統合版 */
.hero--subpage .hero__description {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-neutral-700);
  max-width: var(--content-max-width);
  margin: 0;
  word-wrap: break-word; /* 長い単語の改行を許可 */
  overflow-wrap: break-word; /* より確実な改行 */
  text-align: left;
  position: relative;
  z-index: 15;
  display: block;
  width: 100%;
  /* レスポンシブ対応 */
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  /* 背景色を削除 */
  background: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}


/* レスポンシブデザイン - 統合版 */
@media (max-width: 767px) {
  /* パンくずリストのレスポンシブ調整 */
  .breadcrumb {
    padding: var(--spacing-1) 0 !important;
    margin-top: var(--header-height-tablet) !important;
  }
  
  .breadcrumb__item {
    font-size: var(--font-size-xs) !important;
  }
  
  .breadcrumb__item--current {
    max-width: calc(100% - 120px);
  }
  
  .hero--subpage {
    padding: var(--spacing-3) 0 var(--spacing-4);
    /* タブレット版：縦幅を最小化 */
    min-height: auto;
    max-height: none;
    height: auto;
  }
  
  /* タブレット版ヒーローコンテンツ */
  .hero--subpage .hero__content {
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
  }
  
  .hero--subpage .hero__header {
    gap: var(--spacing-2);
    margin-bottom: var(--spacing-1);
  }
  
  .hero--subpage .hero__title {
    font-size: var(--font-size-2xl);
    z-index: 15;
  }
  
  .hero--subpage .hero__subtitle {
    font-size: var(--font-size-sm);
    z-index: 15;
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }
  
  .hero--subpage .hero__subtitle::before,
  .hero--subpage .hero__subtitle::after {
    display: none;
  }
  
  .hero--subpage .hero__description {
    font-size: var(--font-size-sm);
    z-index: 15;
    display: block;
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  
}

@media (max-width: 480px) {
  /* パンくずリストのスマートフォン調整 */
  .breadcrumb {
    padding: var(--spacing-1) 0 !important;
    margin-top: var(--header-height-mobile) !important;
  }
  
  .breadcrumb__item--current {
    max-width: calc(100% - 100px);
  }
  
  .hero--subpage {
    padding: var(--spacing-2) 0 var(--spacing-3);
    /* スマートフォン版：縦幅を最小化 */
    min-height: auto;
    max-height: none;
    height: auto;
  }
  
  /* スマートフォン版ヒーローコンテンツ */
  .hero--subpage .hero__content {
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
    padding: 0 !important;
  }
  
  .hero--subpage .hero__header {
    gap: var(--spacing-1);
    margin-bottom: var(--spacing-1);
  }
  
  .hero--subpage .hero__title {
    font-size: var(--font-size-xl);
    z-index: 15;
  }
  
  .hero--subpage .hero__title::after {
    width: 30px;
    height: 2px;
  }
  
  .hero--subpage .hero__description {
    font-size: var(--font-size-sm);
    z-index: 15;
    display: block;
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: var(--line-height-normal);
  }
  
}

/* 統一されたヒーローセクションスタイル */
/* カテゴリ別のバリエーションは削除し、すべての下層ページで統一されたスタイルを使用 */

/* コンテンツ表示の確実性を保証 */
.hero--subpage .hero__content * {
  opacity: 1 !important;
  visibility: visible !important;
}

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



/* ホバー効果 */
.hero--subpage .hero__title:hover::after {
  width: 80px;
  transition: width 0.3s ease;
}

