/* =====================================================
   復縁屋さん コーポレートHP 共通デザインシステム
   トーン: 誠実・安心・科学的専門性。落ち着いたモダン。
   ベース: 温かみのあるアイボリー / 権威: 濃紺 / 締め: ボルドー / 罫線: アンティークゴールド
   派手な発光・パルス・ポップ装飾は使わない（信頼感を損なうため）
   ===================================================== */

:root {
  /* 基調色 */
  --base:       #F6F3EE;   /* 温かいアイボリー（ページ背景） */
  --paper:      #FFFFFF;
  --ink:        #20242C;   /* 見出しのほぼ黒 */
  --text:       #3B4048;
  --muted:      #767C86;

  /* 権威色（濃紺） */
  --navy:       #1C2432;
  --navy-2:     #273349;
  --navy-line:  #3A4763;
  --navy-text:  #C9D0DD;

  /* ブランドアクセント（落ち着いたボルドー） */
  --rose:       #8E3E49;
  --rose-deep:  #6F2E39;
  --rose-soft:  #F3E9E7;

  /* 金は面で塗らず、罫線と小さな記号にのみ使う */
  --gold:       #A98B54;
  --gold-light: #CBB484;

  --line:       #E6E1D7;
  --shadow-sm:  0 1px 2px rgba(32,36,44,.05), 0 4px 16px rgba(32,36,44,.06);
  --shadow-md:  0 2px 6px rgba(32,36,44,.06), 0 12px 32px rgba(32,36,44,.10);

  --font-sans:  'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --font-serif: 'Shippori Mincho', 'Noto Serif JP', serif;
  --font-en:    'EB Garamond', 'Shippori Mincho', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 2;
  letter-spacing: .03em;
  color: var(--text);
  background: var(--base);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- 見出しの型 ---------- */
.kicker {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.kicker::before { content: ""; width: 32px; height: 1px; background: var(--gold-light); }
.kicker--center { justify-content: center; }
.kicker--center::after { content: ""; width: 32px; height: 1px; background: var(--gold-light); }

.h-section {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.6;
  letter-spacing: .06em;
  color: var(--ink);
}
.section-lead { margin-top: 18px; max-width: 640px; color: var(--muted); font-size: 14.5px; }
.section-head { margin-bottom: 48px; }
.section-head--center { text-align: center; }
.section-head--center .section-lead { margin-left: auto; margin-right: auto; }

section { padding: 96px 0; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .08em;
  padding: 16px 36px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  cursor: pointer;
}
.btn-primary { background: var(--rose); color: #fff; box-shadow: 0 4px 14px rgba(142,62,73,.35); }
.btn-primary:hover { background: var(--rose-deep); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(111,46,57,.4); }
.btn-outline { border-color: var(--navy-2); color: var(--navy-2); background: transparent; }
.btn-outline:hover { background: var(--navy-2); color: #fff; border-color: var(--navy-2); }
/* 主要CTA用の大きめサイズ */
.btn-lg { padding: 19px 46px; font-size: 16.5px; }
.btn-outline--light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline--light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn .arrow { font-family: var(--font-en); transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; flex-direction: column; line-height: 1.3; }
.brand-en {
  font-family: var(--font-en);
  font-size: 10.5px;
  letter-spacing: .42em;
  color: var(--gold);
  text-transform: uppercase;
}
.brand-ja {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: .12em;
  color: var(--rose);
}
.gnav ul { display: flex; gap: 30px; }
.gnav a {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--ink);
  padding: 6px 0;
  position: relative;
}
.gnav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--rose);
  transition: right .3s ease;
}
.gnav a:hover::after { right: 0; }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-tel { text-align: right; line-height: 1.4; }
.header-tel-num {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink);
  display: block;
}
.header-tel-note { font-size: 10px; color: var(--muted); letter-spacing: .05em; }
.btn-header {
  background: var(--rose);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid var(--rose);
  transition: background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn-header:hover { background: var(--rose-deep); border-color: var(--rose-deep); }
/* 無料診断（アウトライン版） */
.btn-header--ghost {
  background: transparent;
  color: var(--rose);
}
.btn-header--ghost:hover { background: var(--rose-soft); color: var(--rose-deep); }

/* ---------- プレヘッダー（信頼情報バー） ---------- */
.pre-header {
  background: var(--navy);
  color: var(--navy-text);
  font-size: 11.5px;
  letter-spacing: .05em;
}
.pre-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 34px;
}
.pre-header-note {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.pre-header-links { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.pre-header-links a { color: var(--navy-text); transition: color .2s ease; white-space: nowrap; }
.pre-header-links a:hover { color: #fff; }
.pre-header-admin {
  border: 1px solid var(--navy-line);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 10.5px;
  letter-spacing: .08em;
}
.pre-header-admin:hover { border-color: var(--gold-light); color: var(--gold-light) !important; }

/* モバイルメニュー内のCTA行（デスクトップでは非表示） */
.gnav-cta { display: none; }

/* キーボード操作時のフォーカス可視化（アクセシビリティ） */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ハンバーガー */
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute; left: 10px; right: 10px; height: 1.5px;
  background: var(--ink);
  transition: transform .3s ease, opacity .3s ease, top .3s ease;
}
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 29px; }
.menu-toggle.is-open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ---------- ヒーロー ---------- */
.hero { padding: 88px 0 96px; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center;
}
.hero-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.7;
  letter-spacing: .05em;
  color: var(--ink);
}
.hero-title em {
  font-style: normal;
  color: var(--rose);
}
.hero-lead {
  margin-top: 26px;
  font-size: 15px;
  color: var(--muted);
  max-width: 520px;
}
.hero-actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 16px; }
.hero-trust {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-trust li {
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: .04em;
}
.hero-trust li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
.hero-visual { position: relative; }
.hero-photo {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3.4;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual::before {
  content: "";
  position: absolute;
  top: 22px; left: 22px; right: -22px; bottom: -22px;
  border: 1px solid var(--gold-light);
  border-radius: 6px;
  z-index: -1;
}
.hero-badge {
  position: absolute;
  left: -18px; bottom: 28px;
  background: var(--navy);
  color: #fff;
  border-radius: 4px;
  padding: 16px 22px;
  box-shadow: var(--shadow-md);
  line-height: 1.5;
}
.hero-badge-num {
  font-family: var(--font-serif);
  font-size: 26px;
  letter-spacing: .04em;
  color: var(--gold-light);
}
.hero-badge-num small { font-size: 13px; color: #fff; margin-left: 2px; }
.hero-badge-label { font-size: 11px; letter-spacing: .12em; color: var(--navy-text); }

/* ---------- 実績バンド（濃紺で信頼を打ち出す） ---------- */
.stats-band { padding: 0 0 96px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  border-top: 2px solid var(--gold);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.stat {
  padding: 34px 20px;
  text-align: center;
  border-left: 1px solid var(--navy-line);
}
.stat:first-child { border-left: none; }
.stat-num {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.6vw, 32px);
  color: #fff;
  letter-spacing: .04em;
  line-height: 1.4;
}
.stat-num small { font-size: 14px; color: var(--gold-light); }
.stat-label { margin-top: 6px; font-size: 12px; color: var(--navy-text); letter-spacing: .08em; }
.stats-note { margin-top: 14px; font-size: 11px; color: var(--muted); text-align: right; }

/* ---------- 濃紺セクション（科学的アプローチ） ---------- */
.section-dark {
  background: linear-gradient(180deg, var(--navy) 0%, #161D29 100%);
  color: var(--navy-text);
}
.section-dark .h-section { color: #fff; }
.section-dark .section-lead { color: var(--navy-text); }
.framework-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.framework-card {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--navy-line);
  border-top: 2px solid var(--gold);
  border-radius: 6px;
  padding: 36px 30px;
  transition: transform .3s ease, background .3s ease;
}
.framework-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.06); }
.framework-num {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: .3em;
  color: var(--gold-light);
  margin-bottom: 18px;
}
.framework-diagram {
  height: 120px;
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.framework-diagram svg { width: 100%; height: 100%; }
.framework-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .08em;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.7;
}
.framework-text { font-size: 13.5px; line-height: 2; color: var(--navy-text); }
.section-dark .disclaimer { color: #7C8698; }

/* ---------- サービス ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold-light);
  border-radius: 6px;
  padding: 34px 26px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--rose-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.service-icon svg { width: 24px; height: 24px; stroke: var(--rose); }
.service-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.7;
}
.service-text { font-size: 13px; line-height: 1.95; color: var(--muted); }

/* ---------- 選ばれる理由 ---------- */
.reason-list { display: grid; gap: 22px; }
.reason-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 34px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 38px 42px;
  align-items: center;
}
.reason-no {
  font-family: var(--font-en);
  font-size: 15px;
  letter-spacing: .22em;
  color: var(--gold);
  border-right: 1px solid var(--line);
  padding-right: 30px;
  line-height: 1.6;
}
.reason-no strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0;
}
.reason-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .07em;
  color: var(--ink);
  margin-bottom: 10px;
}
.reason-text { font-size: 14px; color: var(--muted); }

/* ---------- 専門体制 ---------- */
.expert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.expert-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold-light);
  border-radius: 6px;
  padding: 36px 24px;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
}
.expert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.expert-emblem {
  width: 74px; height: 74px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 1px solid var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--base);
}
.expert-emblem svg { width: 30px; height: 30px; stroke: var(--navy-2); }
.expert-field {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 10px;
}
.expert-desc { font-size: 12.5px; line-height: 1.95; color: var(--muted); }

/* ---------- 料金 ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}
.price-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 42px 34px;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.price-card--feature {
  border: 2px solid var(--navy);
  position: relative;
  box-shadow: var(--shadow-md);
  transform: scale(1.02);
}
.price-tag {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  padding: 5px 18px;
  border-radius: 999px;
  white-space: nowrap;
}
.price-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--ink);
}
.price-en {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .28em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 6px;
}
.price-value {
  margin: 26px 0;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
}
.price-value .num {
  font-family: var(--font-serif);
  font-size: 36px;
  color: var(--ink);
  letter-spacing: .02em;
}
.price-value .unit { font-size: 14px; color: var(--text); }
.price-value .prefix { display: block; font-size: 12px; color: var(--muted); letter-spacing: .1em; margin-bottom: 4px; }
.price-desc { font-size: 13px; color: var(--muted); line-height: 2; flex: 1; text-align: left; }
.price-desc li { padding-left: 1.3em; position: relative; }
.price-desc li::before { content: "・"; position: absolute; left: 0; color: var(--gold); }
.price-card .btn { margin-top: 28px; width: 100%; }
.price-note {
  margin-top: 36px;
  padding: 22px 28px;
  background: var(--paper);
  border-left: 2px solid var(--gold);
  font-size: 12.5px;
  color: var(--muted);
  line-height: 2;
}

/* ---------- ご相談の流れ ---------- */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.flow-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 32px 26px;
  position: relative;
}
.flow-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%; right: -14px;
  width: 8px; height: 8px;
  border-top: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
  transform: translateY(-50%) rotate(45deg);
}
.flow-step {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--gold);
}
.flow-step strong {
  font-family: var(--font-serif);
  display: block;
  font-size: 30px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0;
  margin: 4px 0 14px;
}
.flow-title {
  font-family: var(--font-serif);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .06em;
  margin-bottom: 10px;
}
.flow-text { font-size: 12.5px; line-height: 1.95; color: var(--muted); }

/* ---------- ご相談者の声 ---------- */
.voice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.voice-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 40px 38px;
}
.voice-quote {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.9;
  letter-spacing: .05em;
  color: var(--ink);
  margin-bottom: 18px;
}
.voice-quote::before { content: "“"; font-family: var(--font-en); font-size: 30px; color: var(--gold); margin-right: 4px; }
.voice-body { font-size: 13.5px; color: var(--text); margin-bottom: 20px; }
.voice-meta { font-size: 12px; color: var(--muted); letter-spacing: .06em; padding-top: 16px; border-top: 1px solid var(--line); }
.voice-disclaimer { margin-top: 8px; font-size: 11px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 14px;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 22px 28px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
  letter-spacing: .04em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "Q";
  font-family: var(--font-en);
  font-size: 18px;
  color: var(--rose);
  flex-shrink: 0;
}
.faq-item summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-en);
  font-size: 20px;
  color: var(--gold);
  transition: transform .3s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a {
  display: flex;
  gap: 16px;
  padding: 0 28px 24px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 2;
}
.faq-a::before {
  content: "A";
  font-family: var(--font-en);
  font-size: 18px;
  color: var(--gold);
  flex-shrink: 0;
  line-height: 1.6;
}

/* ---------- 最終CTA ---------- */
.cta-section {
  background: linear-gradient(180deg, var(--navy) 0%, #151B26 100%);
  color: #fff;
  text-align: center;
  padding: 100px 0;
}
.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.8;
}
.cta-lead { margin-top: 18px; font-size: 14px; color: var(--navy-text); }
.cta-actions {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}
.cta-tel-block { margin-top: 30px; line-height: 1.6; }
.cta-tel-num {
  font-family: var(--font-serif);
  font-size: 30px;
  letter-spacing: .06em;
  color: #fff;
}
.cta-tel-note { font-size: 11.5px; color: var(--navy-text); }

/* ---------- 会社情報 ---------- */
.company-table {
  max-width: 760px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.company-table dl {
  display: grid;
  grid-template-columns: 190px 1fr;
}
.company-table dt, .company-table dd {
  padding: 18px 28px;
  font-size: 13.5px;
  border-top: 1px solid var(--line);
}
.company-table dt:first-of-type, .company-table dd:first-of-type { border-top: none; }
.company-table dt {
  background: var(--base);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .06em;
}
.company-table dd { color: var(--text); }

/* ---------- フッター ---------- */
.site-footer {
  background: #151B26;
  color: #8992A2;
  padding: 64px 0 120px;
  font-size: 12.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid #2A3346;
}
.footer-brand .brand-ja { color: #fff; }
.footer-brand p { margin-top: 14px; line-height: 2; }
.footer-col h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  color: #C6CCD8;
  margin-bottom: 18px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a { transition: color .25s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 11px;
}
.footer-bottom a { color: #A7AEBC; transition: color .2s ease; }
.footer-bottom a:hover { color: #fff; }
/* 管理画面ログイン（施錠アイコン付きチップ） */
.footer-admin {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #2A3346;
  border-radius: 999px;
  padding: 3px 12px;
}
.footer-admin:hover { border-color: var(--gold-light); color: var(--gold-light) !important; }
.footer-admin svg { flex-shrink: 0; }

/* ---------- モバイル固定CTA ---------- */
.cta-fixed {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
}
.cta-fixed a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 10px 6px;
  line-height: 1.4;
  text-align: center;
}
.cta-fixed-form { background: var(--rose); color: #fff; }
.cta-fixed-tel { background: var(--navy); color: #fff; }
.cta-fixed-main { font-size: 13.5px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.cta-fixed-sub { font-size: 9.5px; opacity: .85; }

/* ---------- 表示演出 ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s ease, transform .8s ease;
}
.fade-in.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

.disclaimer { font-size: 11px; color: var(--muted); line-height: 1.9; }

/* =====================================================
   レスポンシブ
   ===================================================== */
/* ヘッダーが窮屈になる帯域では電話表記を先に畳む（ボタン2つを優先） */
@media (max-width: 1240px) {
  .header-tel { display: none; }
}

@media (max-width: 1024px) {
  .gnav { display: none; }
  .menu-toggle { display: block; }
  .pre-header-links li:not(:last-child) { display: none; } /* モバイル近傍は管理リンクのみ残す */

  .gnav.is-open {
    display: block;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 12px 0 20px;
  }
  .gnav.is-open ul { flex-direction: column; gap: 0; }
  .gnav.is-open a { display: block; padding: 14px 28px; font-size: 14.5px; }
  /* メニュー内CTA（無料診断・無料相談） */
  .gnav.is-open .gnav-cta {
    display: block;
    border-top: 1px solid var(--line);
    margin-top: 10px;
    padding-top: 10px;
  }
  .gnav.is-open .gnav-cta a { color: var(--rose); font-weight: 700; }

  .framework-grid, .price-grid { grid-template-columns: 1fr; }
  .service-grid, .expert-grid, .flow-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-card:nth-child(2n)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  section { padding: 68px 0; }
  body { font-size: 14.5px; }

  .btn-header { padding: 10px 16px; font-size: 12px; }
  .btn-header--ghost { display: none; } /* 狭幅はメニュー内CTAと固定バーで担保 */
  .pre-header { font-size: 10.5px; }
  .pre-header-note { display: none; } /* 届出番号はフッターで参照可能 */
  .pre-header-inner { justify-content: flex-end; height: 30px; }

  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { margin-right: 22px; }
  .hero-badge { left: -8px; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { border-left: none; border-top: 1px solid var(--navy-line); }
  .stat:nth-child(-n+2) { border-top: none; }
  .stat:nth-child(2n) { border-left: 1px solid var(--navy-line); }
  .stats-note { text-align: left; }
  .type-img-grid { gap: 7px; }
  .btn-lg { padding: 16px 34px; font-size: 15px; }
  .price-card--feature { transform: none; }

  .service-grid, .expert-grid, .flow-grid, .voice-grid { grid-template-columns: 1fr; }
  .flow-card::after { display: none !important; }

  .reason-item { grid-template-columns: 1fr; gap: 16px; padding: 30px 26px; }
  .reason-no { border-right: none; border-bottom: 1px solid var(--line); padding: 0 0 14px; }

  .company-table dl { grid-template-columns: 1fr; }
  .company-table dt { border-top: 1px solid var(--line); padding-bottom: 6px; }
  .company-table dd { border-top: none; padding-top: 0; }
  .company-table dt:first-of-type { border-top: none; }

  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .site-footer { padding-bottom: 130px; }

  .cta-fixed { display: flex; }
}

/* =====================================================
   無料診断プロモ（トップページ・濃紺ショーケース）
   ===================================================== */
.diag-promo {
  background: linear-gradient(135deg, var(--navy) 0%, #161D29 100%);
  border-top: 2px solid var(--gold);
  border-bottom: none;
  color: var(--navy-text);
}
.diag-promo-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.diag-promo .h-section { margin-top: 6px; color: #fff; }
.diag-promo-lead { margin-top: 18px; color: var(--navy-text); font-size: 14.5px; max-width: 520px; }
.diag-facts { display: flex; gap: 30px; margin: 26px 0 32px; flex-wrap: wrap; }
.diag-fact { line-height: 1.4; }
.diag-fact .n { font-family: var(--font-serif); font-size: 32px; color: var(--gold-light); letter-spacing: .02em; }
.diag-fact .n small { font-size: 14px; color: #fff; }
.diag-fact .l { font-size: 12px; color: #8E9BB5; letter-spacing: .06em; }
.diag-promo-note { margin-top: 16px; font-size: 11.5px; color: #8E9BB5; }
.diag-visual-head {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .28em;
  color: var(--gold-light);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 18px;
}
/* 16タイプの診断結果イラストグリッド */
.type-img-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.type-img-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
  transition: transform .25s ease, box-shadow .25s ease;
}
.type-img-grid img:hover { transform: translateY(-4px) scale(1.04); box-shadow: 0 10px 24px rgba(0,0,0,.4); }
.diag-visual-cap { text-align: center; margin-top: 16px; font-size: 12px; color: var(--navy-text); }

/* =====================================================
   サブページ共通（パンくず・ページヒーロー・カード・記事）
   ===================================================== */
.page-hero {
  background: linear-gradient(180deg, #FBF8F3 0%, var(--base) 100%);
  border-bottom: 1px solid var(--line);
  padding: 40px 0 56px;
}
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--muted); transition: color .2s ease; }
.breadcrumb a:hover { color: var(--rose); }
.breadcrumb span[aria-hidden] { color: var(--gold-light); }
.page-hero .kicker { margin-bottom: 12px; }
.page-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.6;
  letter-spacing: .05em;
  color: var(--ink);
}
.page-hero-lead { margin-top: 18px; max-width: 720px; color: var(--muted); font-size: 14.5px; }

/* タクソノミのチップナビ */
.taxo-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.taxo-chip {
  font-size: 12.5px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--text);
  transition: all .2s ease;
  letter-spacing: .04em;
}
.taxo-chip:hover { border-color: var(--rose); color: var(--rose); }
.taxo-chip.is-current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* カードグリッド（事例・コラム一覧） */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.entry-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.entry-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.entry-thumb { aspect-ratio: 16/9; background: var(--rose-soft); position: relative; overflow: hidden; }
.entry-thumb img { width: 100%; height: 100%; object-fit: cover; }
.entry-thumb-label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 15px; letter-spacing: .1em; color: var(--rose);
  background: linear-gradient(135deg, #F6EAE7, #EFE3DE);
}
.entry-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tag {
  font-size: 10.5px;
  letter-spacing: .04em;
  padding: 3px 10px;
  border-radius: 3px;
  background: var(--base);
  color: var(--muted);
  border: 1px solid var(--line);
}
.tag.cat { background: var(--navy); color: var(--navy-text); border-color: var(--navy); }
.entry-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .03em;
  color: var(--ink);
  margin-bottom: 10px;
}
.entry-excerpt { font-size: 13px; color: var(--muted); line-height: 1.9; flex: 1; }
.entry-more {
  margin-top: 16px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--rose);
  display: inline-flex; align-items: center; gap: 6px;
}
.entry-more .arrow { font-family: var(--font-en); transition: transform .25s ease; }
.entry-card:hover .entry-more .arrow { transform: translateX(4px); }

/* 事実テーブル（事例ページ） */
.case-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin: 0 0 8px;
}
.case-fact { background: var(--paper); padding: 16px 20px; }
.case-fact dt { font-size: 11px; color: var(--muted); letter-spacing: .08em; margin-bottom: 4px; }
.case-fact dd { font-size: 14px; color: var(--ink); font-weight: 500; }

/* 記事本文タイポグラフィ */
.article-layout { display: grid; grid-template-columns: 1fr 260px; gap: 56px; align-items: start; }
.article { max-width: 100%; }
.article > * + * { margin-top: 22px; }
.article h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink);
  line-height: 1.6;
  margin-top: 48px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.article h2:first-child { margin-top: 0; }
.article h3 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--rose);
  letter-spacing: .04em;
  margin-top: 32px;
}
.article p { font-size: 15px; line-height: 2.1; color: var(--text); }
.article ul, .article ol { padding-left: 1.4em; }
.article ul li, .article ol li { font-size: 15px; line-height: 2; color: var(--text); margin-top: 6px; }
.article ul li { list-style: none; position: relative; padding-left: 1.2em; }
.article ul li::before { content: ""; position: absolute; left: 0; top: .85em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.article ol { list-style: decimal; }
.article blockquote {
  border-left: 3px solid var(--gold);
  background: var(--paper);
  padding: 22px 28px;
  border-radius: 0 6px 6px 0;
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--ink);
  line-height: 2;
}
.article .lead {
  font-size: 16px;
  line-height: 2.1;
  color: var(--ink);
  padding: 24px 28px;
  background: var(--rose-soft);
  border-radius: 8px;
}

/* 目次 */
.toc {
  position: sticky;
  top: 100px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px 24px;
}
.toc h4 { font-family: var(--font-en); font-size: 11px; letter-spacing: .24em; color: var(--gold); text-transform: uppercase; margin-bottom: 14px; }
.toc li { margin-bottom: 10px; }
.toc a { font-size: 12.5px; color: var(--text); line-height: 1.6; transition: color .2s ease; display: block; }
.toc a:hover { color: var(--rose); }

/* 記事末インラインCTA */
.cta-inline {
  margin-top: 48px;
  background: linear-gradient(180deg, var(--navy) 0%, #161D29 100%);
  color: #fff;
  border-radius: 10px;
  padding: 40px 44px;
  text-align: center;
}
.cta-inline h3 { font-family: var(--font-serif); font-size: 21px; font-weight: 600; letter-spacing: .05em; margin-bottom: 12px; }
.cta-inline p { font-size: 13.5px; color: var(--navy-text); margin-bottom: 24px; }
.cta-inline-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* 関連セクション */
.related-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 10px; }
.related-head h2 { font-family: var(--font-serif); font-size: 22px; font-weight: 600; letter-spacing: .05em; color: var(--ink); }
.view-all { font-size: 12.5px; font-weight: 700; color: var(--rose); letter-spacing: .06em; }

/* サイトマップ */
.sitemap-cols { columns: 2; column-gap: 48px; }
.sitemap-cols > div { break-inside: avoid; }
@media (max-width: 720px) { .sitemap-cols { columns: 1; } }

/* ページネーション風の下部ナビ */
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; flex-wrap: wrap; }
.pager a { font-size: 13px; color: var(--rose); font-weight: 700; }

@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; gap: 40px; }
  .toc { position: static; }
  .diag-promo-inner { gap: 40px; }
}
@media (max-width: 720px) {
  .diag-promo-inner { grid-template-columns: 1fr; gap: 34px; }
  .card-grid, .card-grid.cols-2 { grid-template-columns: 1fr; }
  .case-facts { grid-template-columns: 1fr; }
  .article h2 { font-size: 19px; }
  .article p, .article ul li, .article ol li { font-size: 14.5px; }
  .cta-inline { padding: 32px 24px; }
  .page-hero { padding: 28px 0 40px; }
}
