/* ============================================================
   detail.css — サービス詳細ページ専用スタイル
   style.css を継承したうえで、詳細ページ固有の要素を定義
============================================================ */

/* ============================================================
   ページヒーロー（detail-hero）
============================================================ */
.detail-hero {
  /* ヘッダー高さ分のパディング確保（PC: 120px、SP: 86px） */
  padding: 160px 2rem 5rem;
  background:
    radial-gradient(ellipse at 5% 90%, rgba(200, 150, 21, 0.12), transparent 50%),
    radial-gradient(ellipse at 95% 10%, rgba(127, 158, 104, 0.1), transparent 50%),
    linear-gradient(160deg, var(--c-bg-warm) 0%, var(--c-bg) 100%);
  position: relative;
  overflow: hidden;
}

/* 背景装飾テキスト */
.detail-hero::before {
  content: 'Detail';
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--f-hand);
  font-size: clamp(8rem, 18vw, 18rem);
  font-weight: 700;
  color: rgba(200, 150, 21, 0.06);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.detail-hero-inner {
  max-width: var(--w-max);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* パンくずリスト */
.breadcrumb {
  margin-bottom: 2rem;
}
.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  font-size: 0.82rem;
  color: var(--c-ink-mute);
}
.breadcrumb ol li + li::before {
  content: '›';
  color: var(--c-ink-mute);
  margin-right: 0.5rem;
}
.breadcrumb a {
  color: var(--c-primary-deep);
  text-decoration: none;
  transition: opacity 0.2s;
}
.breadcrumb a:hover {
  opacity: 0.75;
}
.breadcrumb [aria-current="page"] {
  color: var(--c-ink-soft);
}

/* ヒーローラベル */
.detail-hero-label {
  font-family: var(--f-hand);
  font-size: 1rem;
  color: var(--c-primary);
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.1s forwards;
}

/* ヒータイトル */
.detail-hero-title {
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.25s forwards;
}

/* ヒーロー説明文 */
.detail-hero-desc {
  font-size: 1rem;
  color: var(--c-ink-soft);
  line-height: 2;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.4s forwards;
}

/* ページ内目次（旧インライン版）は廃止。固定ナビ（#page-subnav）を使用 */


/* ============================================================
   固定ページ内ナビ（#page-subnav）— detail.html 専用
   既存の #header / #global-nav とは完全に独立したナビ
============================================================ */
#page-subnav {
  /* 画面下部に固定 */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90; /* header(z:100)より下、コンテンツより上 */

  /* ベーススタイル */
  background: rgba(48, 44, 37, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -4px 24px rgba(48, 44, 37, 0.2);
}

/* リストを横並びに */
#page-subnav ul {
  display: flex;
  align-items: stretch;
  list-style: none;
  max-width: var(--w-max);
  margin: 0 auto;
  /* 項目が多い場合はスクロール可能に */
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  justify-content: space-around; 
}
#page-subnav ul::-webkit-scrollbar { display: none; }

/* 各リンク */
#page-subnav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.7rem 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.25s, background 0.25s;
  position: relative;
  min-width: 64px;
}

/* ホバー */
#page-subnav a:hover {
  color: var(--c-primary-soft);
  background: rgba(255, 255, 255, 0.06);
  opacity: 1;
}

/* アクティブ（スクロール連動） */
#page-subnav a.is-active {
  color: var(--c-primary-soft);
}
#page-subnav a.is-active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--c-primary-soft);
  border-radius: 0 0 2px 2px;
}

/* アイコン */
#page-subnav a i {
  font-size: 1rem;
  line-height: 1;
}

/* コンテンツがナビに隠れないよう body に余白を追加 */
body {
  padding-bottom: 56px; /* ナビの高さ分 */
}


/* ============================================================
   レスポンシブ：タブレット以下（980px〜）
============================================================ */
@media (max-width: 980px) {
  #page-subnav a {
    padding: 0.65rem 0.8rem;
    min-width: 56px;
    font-size: 0.68rem;
  }
}

/* ============================================================
   レスポンシブ：スマートフォン（768px〜）
   アイコンのみ表示・テキストラベルは非表示
============================================================ */
@media (max-width: 768px) {
  #page-subnav a span {
    /* SP ではラベルを非表示にしてアイコンだけ残す */
    display: none;
  }
  #page-subnav a {
    padding: 0.8rem 0.6rem;
    min-width: 40px;
    font-size: 0;
  }
  #page-subnav a i {
    font-size: 1.1rem;
  }
  body {
    padding-bottom: 52px;
  }
}


/* ============================================================
   section-service CTAエリア（index.php 変更分）
============================================================ -->
/* index.php の .service-cta-area 対応 */
.service-cta-area {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 3rem;
}
.service-cta-area .btn-outline {
  /* 既存 btn-outline と同じスタイルを継承 */
  padding: 0.9rem 2rem;
  font-size: 0.95rem;
}


/* ============================================================
   contact-detail-lead（index.php の contact セクション追加要素）
============================================================ */
.contact-detail-lead {
  /* お問い合わせセクション内の詳細ページ誘導ブロック */
  margin-top: 3rem;
  padding: 2rem 2.5rem;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  max-width: 600px;
  margin-inline: auto;
  text-align: center;
}
.contact-detail-lead-text {
  font-size: 0.95rem;
  color: var(--c-ink-soft);
  line-height: 2;
  margin-bottom: 1.4rem;
}
.contact-detail-lead-text strong {
  color: var(--c-ink);
  font-weight: 700;
}

.voices-note {
  max-width: 760px;
  margin: 2rem auto 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md, 0.75rem);
  background: color-mix(in srgb, var(--c-paper) 82%, var(--c-bg-soft));
  color: var(--c-ink-soft);
  font-size: 0.85rem;
  line-height: 1.9;
  text-align: center;
}


/* ============================================================
   レスポンシブ対応
============================================================ */
@media (max-width: 980px) {
  .detail-hero {
    padding-top: 130px;
  }
}

@media (max-width: 768px) {
  .detail-hero {
    padding: 110px 1.25rem 3.5rem;
  }
  .detail-hero::before {
    display: none; /* SP では背景テキスト非表示 */
  }
  .detail-hero-title {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }
  .detail-toc ul {
    gap: 0.45rem;
  }
  .detail-toc a {
    padding: 0.45rem 0.9rem;
    font-size: 0.78rem;
  }
  .service-cta-area {
    flex-direction: column;
    align-items: center;
  }
  .service-cta-area .btn-cta,
  .service-cta-area .btn-outline {
    width: 100%;
    max-width: 360px;
    justify-content: center;
  }
  .contact-detail-lead {
    padding: 1.5rem 1.25rem;
  }
  .voices-note {
    margin-top: 1.5rem;
    padding: 0.9rem 1rem;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .breadcrumb ol {
    font-size: 0.75rem;
  }
  .detail-toc a {
    padding: 0.4rem 0.75rem;
    font-size: 0.74rem;
  }
}


/* ============================================================
   料金パネル（1プラン特化レイアウト）
   左：料金数値（背景色あり・固定幅）  /  右：詳細情報（可変幅）
============================================================ */

/* ---- パネル全体 ---- */
.price-panel {
  display: grid;
  grid-template-columns: 320px 1fr; /* 左=料金（固定）/ 右=詳細（可変） */
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--c-line, #e8e2d9);
  border-radius: var(--r-lg, 1.25rem);
  overflow: hidden;
  margin-top: 3rem;
}

/* ---- 左エリア：料金の核心（暖色の背景） ---- */
.price-panel-main {
  padding: 3rem 2.5rem;
  background: var(--c-bg-warm, #f7f0e6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  /* 右との区切り */
  border-right: 1px solid var(--c-line, #e8e2d9);
}

/* 背景装飾（薄い¥マーク） */
.price-panel-main::before {
  content: '¥';
  position: absolute;
  right: -0.05em;
  bottom: -0.1em;
  font-family: var(--f-hand, 'Caveat', cursive);
  font-size: 9rem;
  font-weight: 700;
  color: rgba(127, 158, 104, 0.08);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* プランカテゴリラベル */
.price-cat {
  font-family: var(--f-hand, 'Caveat', cursive);
  font-size: 1.05rem;
  color: var(--c-primary, #7f9e68);
  letter-spacing: 0.08em;
  line-height: 1;
}

/* プラン名 */
.price-name {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-ink-soft, #6b6357);
  margin-bottom: 0.2rem;
}

/* 料金数値 */
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 0.1rem;
  line-height: 1;
  margin: 0.3rem 0 0.5rem;
}
.price-amount .yen {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-primary-deep, #5a7a44);
  align-self: flex-start;
  padding-top: 0.5rem;
}
.price-amount .amount {
  font-size: clamp(2.8rem, 4.5vw, 3.8rem);
  font-weight: 900;
  color: var(--c-primary-deep, #5a7a44);
  letter-spacing: -0.03em;
  line-height: 1;
}
.price-amount .unit {
  font-size: 0.88rem;
  color: var(--c-ink-soft, #6b6357);
  margin-left: 0.15rem;
  align-self: flex-end;
  padding-bottom: 0.3rem;
}

/* 最低時間の補足 */
.price-min-note {
  font-size: 0.78rem;
  color: var(--c-ink-mute, #9b9187);
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  line-height: 1.6;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(127, 158, 104, 0.2);
  margin-top: 0.3rem;
  position: relative; /* ::before の上に出す */
  z-index: 1;
}
.price-min-note i {
  color: var(--c-primary, #7f9e68);
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 0.15em;
}

/* ---- 右エリア：詳細情報（白背景） ---- */
.price-panel-detail {
  padding: 3rem 2.5rem;
  background: var(--c-bg, #fdf9f4);
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* 詳細エリア内の小見出し */
.price-detail-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ink-soft, #6b6357);
  margin-bottom: 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--c-line, #e8e2d9);
}
.price-detail-title i {
  font-size: 0.85rem;
  color: var(--c-primary, #7f9e68);
}

/* 2つ目の小見出し（別途費用） */
.price-detail-title--sub {
  margin-top: 1.8rem;
}
.price-detail-title--sub i {
  color: var(--c-ink-mute, #9b9187);
}

/* 詳細リスト */
.price-detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.price-detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--c-ink, #302c25);
  line-height: 1.65;
}
.price-detail-list li i {
  flex-shrink: 0;
  margin-top: 0.3em;
}

/* チェックアイコン（含まれるもの） */
.price-detail-list li .fa-check {
  width: 1.2rem;
  height: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(127, 158, 104, 0.13);
  color: var(--c-primary, #7f9e68);
  border-radius: 50%;
  font-size: 0.58rem;
  flex-shrink: 0;
}

/* プラスアイコン（別途費用） */
.price-detail-list--sub li .fa-plus {
  color: var(--c-ink-mute, #9b9187);
  font-size: 0.65rem;
  margin-top: 0.4em;
}
.price-detail-list--sub li {
  color: var(--c-ink-soft, #6b6357);
  font-size: 0.87rem;
}
.price-detail-list--sub li strong {
  color: var(--c-ink, #302c25);
  font-weight: 700;
}

/* 利用規約リンク */
.price-link {
  color: var(--c-primary-deep, #5a7a44);
  text-decoration: underline;
  text-decoration-color: rgba(90, 122, 68, 0.35);
  text-underline-offset: 2px;
  transition: opacity 0.2s;
}
.price-link:hover {
  opacity: 0.7;
}

/* 税込み注記 */
.price-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--c-ink-mute, #9b9187);
  margin-top: 1.2rem;
}


/* ============================================================
   料金パネル レスポンシブ
============================================================ */

/* タブレット：左エリアの幅を少し縮める */
@media (max-width: 980px) {
  .price-panel {
    grid-template-columns: 260px 1fr;
  }
  .price-panel-main,
  .price-panel-detail {
    padding: 2.5rem 2rem;
  }
}

/* スマートフォン：縦1列に切り替え（料金→上、詳細→下） */
@media (max-width: 768px) {
  .price-panel {
    grid-template-columns: 1fr;
  }
  .price-panel-main {
    border-right: none;
    border-bottom: 1px solid var(--c-line, #e8e2d9);
    padding: 2rem 1.5rem;
  }
  .price-panel-detail {
    padding: 2rem 1.5rem;
  }
  .price-amount .amount {
    font-size: clamp(2.8rem, 12vw, 3.8rem);
  }
}
