/* ============================================================
   soukyu.com 料金ページ試作 v1
   トップページ（index.html）と同じデザイントークンを使用
   ============================================================ */

html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Serif JP', serif;
  background: var(--bg);
  color: var(--sumi);
  overflow-x: hidden;
}
/* 用語解説へのジャンプ先が固定ヘッダーに隠れないように */
dt[id] { scroll-margin-top: 84px; }
/* ---------- 製図グリッド（v5共通） ---------- */

.soukyu-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 72px) 90px;
}
.soukyu-page > .breadcrumb { margin-bottom: clamp(72px, 7vw, 88px); }
/* ---------- ヘッダー（共通） ---------- */

/* ---------- フッター（共通） ---------- */

.footer-sub a:hover { color: #fff; }

.sec-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--shu);
  margin-bottom: 14px;
}
/* v5: 他ページの見出しラベルと同じ朱の角マーカー */
.sec-label::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--shu);
  margin-right: 10px;
  vertical-align: middle;
}
h1 {
  font-size: clamp(34px, 4.4vw, 48px);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.page-lead {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(16px, 1.35vw, 17.5px);
  line-height: 2.05;
  margin-bottom: 60px;
  max-width: 38em;
}
.page-lead strong { color: var(--shu); font-weight: 600; }

h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
  letter-spacing: 0.07em;
  margin: 0;
}
/* v5: 他ページ（joken/process/case-hiiro）と同じ下線バーに統一（左太ボーダーから変更） */
h2::after {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  background: var(--shu);
  margin-top: 12px;
  margin-bottom: 26px;
}
.price-contact-cta h2::after { display: none; }
section { margin-bottom: 72px; }
.soukyu-page > section:first-of-type { margin-bottom: 84px; }

/* ---- プランカード（トップと同じ見た目） ---- */
.plan-cards { display: flex; gap: 24px; align-items: stretch; margin-bottom: 30px; }
.plan-card {
  flex: 1 1 0;
  background: #fff;
  border: 1px solid #e2dccd;
  border-radius: 14px;
  padding: 36px 26px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 22px rgba(31, 31, 31, 0.06);
}
.plan-card.featured { border: 2px solid var(--shu); box-shadow: 0 10px 30px rgba(207, 58, 43, 0.12); }
.plan-card .badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--shu);
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 5px 18px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan-card .plan-en { font-family: 'Noto Sans JP', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.25em; color: #b6ae9b; margin-bottom: 6px; }
.plan-card h3 { font-size: 22px; font-weight: 700; letter-spacing: 0.08em; margin-bottom: 10px; }
.plan-card .plan-for { font-family: 'Noto Sans JP', sans-serif; font-size: clamp(15px, 1.15vw, 16px); color: #6e685c; line-height: 1.85; min-height: 5.55em; margin-bottom: 18px; }
.plan-card .plan-price { font-family: 'Noto Sans JP', sans-serif; font-size: 34px; font-weight: 700; margin-bottom: 4px; }
.plan-card .plan-price small { font-size: 15px; font-weight: 500; color: #6e685c; }
.plan-card .plan-price-note { font-family: 'Noto Sans JP', sans-serif; font-size: 13.5px; color: #9a937f; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid #f0ede6; }
.plan-feats { list-style: none; font-family: 'Noto Sans JP', sans-serif; font-size: clamp(15px, 1.15vw, 16px); line-height: 1.85; flex: 1; }
.plan-feats li { position: relative; padding-left: 18px; margin-bottom: 9px; }
.plan-feats li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9em;
  width: 10px;
  height: 2px;
  background: var(--shu);
}
/* 下の「プラン内容のご説明」に対応する項目へのジャンプリンク（点線下線＝詳細ありの合図） */
.plan-feats a, .common-chips a {
  color: inherit;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.plan-feats a:hover, .common-chips a:hover { color: var(--shu); }
/* v5: 共通仕様をチップ化（段落テキストの／区切りから横並びタグへ） */
.chips-label { font-family: 'Noto Sans JP', sans-serif; font-size: 13.5px; font-weight: 700; color: #9a937f; margin-bottom: 10px; }
.common-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.common-chips span {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--sumi);
  background: var(--cream);
  border: 1px solid #e7e2d6;
  border-radius: 999px;
  padding: 8px 16px;
}
.price-proof-chips { margin-top: -12px; margin-bottom: 32px; }
.price-proof-chips span { background: #fff; border-color: #ddd8cd; }
.common-notes {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(15.5px, 1.3vw, 16.5px);
  line-height: 1.9;
  color: #9a937f;
}
.common-notes li { position: relative; padding-left: 1.35em; margin-bottom: 8px; }
.common-notes li::before { content: "※"; position: absolute; left: 0; color: var(--shu); font-weight: 700; }
.common-notes li:last-child { margin-bottom: 0; }

/* ---- 計算例 ---- */
.calc-box {
  background: var(--cream);
  border-radius: 14px;
  padding: 30px 32px;
  margin-bottom: 18px;
}
.calc-box h3 { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.calc-box p { font-family: 'Noto Sans JP', sans-serif; font-size: clamp(16px, 1.35vw, 17px); line-height: 2.05; }
.calc-box .total { font-family: 'Noto Sans JP', sans-serif; color: var(--shu); font-weight: 700; font-size: 17px; }

/* ---- 用語解説（v5: case-hiiro.htmlの世界観リストと同じ設計書ふうの枠。用語は長文のため1カラム構成） ---- */
.glossary {
  border: 1px solid #e5e4e1;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.glossary dt {
  font-size: clamp(17px, 1.4vw, 18px);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--sumi);
  background: var(--cream);
  padding: 16px 22px;
}
.glossary dd {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(16px, 1.35vw, 17.5px);
  line-height: 2.1;
  color: var(--ink-body);
  margin: 0;
  padding: 18px 22px 24px;
  border-bottom: 1px solid #edece9;
}
.glossary dd:last-of-type { border-bottom: 0; }
.glossary-case-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--shu);
  font-weight: 700;
  text-decoration: underline dotted;
  text-underline-offset: 4px;
  transition: color 0.2s;
}
.glossary-case-link:hover { color: var(--sumi); }

/* ---- 表 ---- */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #e7e2d6;
  border-radius: 12px;
  overflow: hidden;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(15.5px, 1.3vw, 16.5px);
}
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid #efeadd; }
th { background: var(--cream); font-weight: 700; width: 40%; }
tr:last-child th, tr:last-child td { border-bottom: none; }
.table-note { font-family: 'Noto Sans JP', sans-serif; font-size: 13.5px; color: #9a937f; margin-top: 12px; line-height: 1.9; }
.table-note + table { margin-top: 18px; }
.small-menu-lead {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(16px, 1.35vw, 17.5px);
  line-height: 2.1;
  color: var(--ink-body);
  margin-bottom: 18px;
}
.section-lead {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(16px, 1.35vw, 17.5px);
  line-height: 2.1;
  color: var(--ink-body);
  max-width: 46em;
  margin: 0 0 34px;
}

/* ---- ご依頼の流れ ---- */
.steps {
  display: grid;
  gap: 0;
  max-width: 820px;
}
.step {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  column-gap: 24px;
  padding: 0 0 34px;
  text-align: left;
  position: relative;
}
.step::before {
  content: "";
  position: absolute;
  left: 36px;
  top: 46px;
  bottom: 0;
  width: 1px;
  background: rgba(31, 31, 31, 0.18);
}
.step:last-child {
  padding-bottom: 0;
}
.step:last-child::before {
  display: none;
}
/* v5: 円形バッジ→process.htmlと同じ墨の明朝数字 */
.step .num {
  display: block;
  font-family: 'Noto Serif JP', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--sumi);
  line-height: 1;
  text-align: center;
  grid-row: 1 / span 2;
}
.step .num::after {
  content: none;
}
.step h3 { font-size: clamp(17px, 1.5vw, 19px); font-weight: 700; letter-spacing: 0.04em; margin: 2px 0 6px; }
.step p {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(16px, 1.35vw, 17.5px);
  line-height: 2;
  color: #6e685c;
}
.step .process-criteria-link {
  color: var(--shu);
  font-weight: 700;
  text-decoration: underline dotted;
  text-underline-offset: 4px;
}
.step .process-criteria-link:hover { color: var(--sumi); }
@media (max-width: 900px) {
  .steps { max-width: none; }
}
@media (max-width: 600px) {
  .step {
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 16px;
    padding-bottom: 30px;
  }
  .step::before {
    left: 26px;
    top: 42px;
  }
  .step .num {
    font-size: 28px;
  }
}

/* ---- 取引条件 ---- */
.terms-list { margin: 0; }
.terms-list dt {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--sumi);
  margin-bottom: 8px;
}
.terms-list dd {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(16px, 1.35vw, 17px);
  line-height: 2.1;
  color: var(--ink-body);
  margin: 0 0 26px;
}
.terms-list dd:last-of-type { margin-bottom: 0; }

/* ---- CTA ---- */
.price-mid-cta { margin-top: 30px; }
.price-mid-cta .btn-form { background: var(--sumi); color: #fff; }
.price-mid-cta .btn-form:hover { background: var(--shu); border-color: var(--shu); }
.price-process-guide { width: 100%; max-width: 820px; margin: 42px 0 0; }

@media (max-width: 900px) {
  .soukyu-page { padding: 0 20px 64px; }
  .plan-cards { flex-direction: column; gap: 26px; }
  .plan-card .plan-for { min-height: auto; }
  th { width: 48%; }
  .btn { width: 100%; text-align: center; }
  section { margin-bottom: 60px; }
  .soukyu-page > section:first-of-type { margin-bottom: 60px; }
}

@media (max-width: 600px) {
  .price-process-guide { margin-top: 34px; }
  table, tbody, tr, th, td { display: block; width: 100%; }
  tr { border-bottom: 1px solid #efeadd; }
  tr:last-child { border-bottom: 0; }
  th, td { border-bottom: 0; }
  th { padding: 12px 16px 6px; }
  td { padding: 6px 16px 14px; }
}
