/* ============================================================
   未来ダイエット サービスサイト 共通スタイル
   トーン: ヘルスケア系ティール (#C45872) × 白 / 角丸大きめ / 余白広め
   外部リソース読み込みなし・システムフォントスタック
   ============================================================ */

:root {
  --teal: #C45872;
  --teal-dark: #A8465F;
  --teal-deep: #7E3247;
  --teal-light: #F0C3CD;
  --teal-pale: #FBE2E7;
  --teal-faint: #FFF4F4;
  --ink: #3A2A2F;
  --ink-soft: #5E4A50;
  --ink-faint: #8C7277;
  --line: #F0DFE2;
  --amber: #F59E0B;
  --amber-pale: #FEF3E0;
  --white: #FFFFFF;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 28px rgba(126, 50, 71, 0.10);
  --shadow-soft: 0 4px 16px rgba(126, 50, 71, 0.07);
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

/* ---------- 折り返し（スマホで1〜2文字だけの行を作らない） ---------- */
/* 見出しは、文節（<span class="ph">。BudouX で区切ってある）の切れ目でだけ折る。
   句読点は前の文節にくっついているので「。」だけが行頭に来ない。
   word-break: keep-all は使わない（Safari では読点でも折らなくなり、はみ出した分を禁則を無視して折る） */
.ph { display: inline-block; }
/* text-wrap: balance は付けない（Safari では文節の箱と合わせると、1行に入る短い見出しまで2行に割る） */
/* 本文は、最後の行に1〜2文字だけ残らないようにする（対応していないブラウザは今までどおり） */
p, li, dt, dd, summary, td, th, figcaption {
  text-wrap: pretty;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo,
    "Noto Sans CJK JP", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.85;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--teal-dark); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--teal-deep);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}
.brand .brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px 14px;
  flex-wrap: wrap;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
}
.site-nav a:hover { background: var(--teal-pale); color: var(--teal-dark); }
.site-nav a.nav-cta {
  background: var(--teal);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 999px;
}
.site-nav a.nav-cta:hover { background: var(--teal-dark); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  border-radius: 999px;
  padding: 14px 34px;
  font-size: 1rem;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--teal-dark); }
.btn-ghost {
  background: var(--white);
  color: var(--teal-dark);
  border: 2px solid var(--teal-light);
}
.btn-ghost:hover { border-color: var(--teal); }

/* ---------- ヒーロー ---------- */
.hero {
  background: linear-gradient(160deg, var(--teal-faint) 0%, var(--teal-pale) 55%, #F5D6DD 100%);
  padding: 64px 0 72px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  gap: 40px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: var(--white);
  color: var(--teal-dark);
  border: 1px solid var(--teal-light);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(1.9rem, 6vw, 3rem);
  line-height: 1.4;
  color: var(--teal-deep);
  letter-spacing: 0.03em;
}
/* 見出しのすぐ下の標語（アプリのログイン画面と同じ対にする） */
.hero-motto {
  margin-top: 10px;
  font-size: clamp(0.95rem, 2.4vw, 1.08rem);
  font-weight: 700;
  color: var(--teal-dark);
  letter-spacing: 0.02em;
}
.hero .hero-sub {
  margin-top: 18px;
  font-size: clamp(0.98rem, 2.6vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 34em;
}
.hero-cta {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-note {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--ink-faint);
}
.hero-visual { text-align: center; }
.hero-visual svg { max-width: 420px; width: 100%; }

@media (min-width: 860px) {
  .hero-inner { grid-template-columns: 1.15fr 1fr; }
}

/* ---------- セクション共通 ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--teal-faint); }
.section-label {
  display: inline-block;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section h2 {
  font-size: clamp(1.5rem, 4.4vw, 2.1rem);
  line-height: 1.5;
  color: var(--teal-deep);
  margin-bottom: 16px;
}
.section .lead {
  color: var(--ink-soft);
  max-width: 42em;
  margin-bottom: 36px;
}

/* ---------- カード ---------- */
.card-grid {
  display: grid;
  gap: 22px;
}
@media (min-width: 680px) { .card-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-soft);
}
.card h3 {
  font-size: 1.08rem;
  color: var(--teal-deep);
  margin-bottom: 10px;
  line-height: 1.5;
}
.card p { font-size: 0.92rem; color: var(--ink-soft); }
.card .card-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--teal-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card .card-icon svg { width: 26px; height: 26px; }

/* ---------- 課題 vs 解決 ---------- */
.versus {
  display: grid;
  gap: 22px;
}
@media (min-width: 780px) { .versus { grid-template-columns: 1fr 1fr; } }
.versus .card.problem { background: #FCFAFA; }
.versus .card.solution {
  border: 2px solid var(--teal-light);
  background: var(--teal-faint);
}
.versus .tag {
  display: inline-block;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 14px;
  margin-bottom: 14px;
}
.versus .problem .tag { background: #F1E7E9; color: var(--ink-soft); }
.versus .solution .tag { background: var(--teal); color: var(--white); }
.versus ul { list-style: none; }
.versus li {
  padding: 8px 0 8px 26px;
  position: relative;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.versus li::before {
  position: absolute;
  left: 0;
  top: 8px;
}
.versus .problem li::before { content: "・"; color: var(--ink-faint); }
.versus .solution li::before { content: "✓"; color: var(--teal); font-weight: 700; }

/* ---------- 図解 ---------- */
.diagram-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 28px 20px;
  margin-top: 36px;
  overflow-x: auto;
}
.diagram-wrap figcaption {
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-top: 12px;
}
.diagram-wrap svg { display: block; margin: 0 auto; min-width: 300px; }

/* ---------- 機能紹介（スマホモック） ---------- */
.feature-row {
  display: grid;
  gap: 32px;
  align-items: center;
  padding: 44px 0;
  border-bottom: 1px dashed var(--line);
}
.feature-row:last-child { border-bottom: none; }
@media (min-width: 820px) {
  .feature-row { grid-template-columns: 1fr 1fr; gap: 56px; }
  .feature-row.flip .feature-text { order: 2; }
  .feature-row.flip .feature-mock { order: 1; }
}
.feature-text h3 {
  font-size: 1.3rem;
  color: var(--teal-deep);
  margin-bottom: 12px;
  line-height: 1.5;
}
.feature-text p { color: var(--ink-soft); font-size: 0.95rem; }
.feature-text .mini-list {
  list-style: none;
  margin-top: 14px;
}
.feature-text .mini-list li {
  position: relative;
  padding: 5px 0 5px 24px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.feature-text .mini-list li::before {
  content: "✓";
  color: var(--teal);
  font-weight: 700;
  position: absolute;
  left: 0;
}
.feature-mock { display: flex; justify-content: center; }

/* スマホ枠 */
.phone {
  width: 270px;
  max-width: 100%;
  background: var(--teal-deep);
  border-radius: 36px;
  padding: 10px;
  box-shadow: var(--shadow);
  flex: none;
}
.phone-screen {
  background: #FFF8F8;
  border-radius: 28px;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.5;
}
.phone-statusbar {
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-statusbar::after {
  content: "";
  width: 70px;
  height: 8px;
  background: var(--teal-deep);
  border-radius: 999px;
}
.phone-appbar {
  background: var(--teal);
  color: var(--white);
  font-weight: 700;
  font-size: 12px;
  padding: 8px 14px;
}
.phone-body { padding: 10px 12px 16px; }
.phone-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  margin-bottom: 8px;
}
.phone-card .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.phone-card .row + .row { margin-top: 2px; }
.phone-card .kcal { color: var(--teal-dark); font-weight: 700; white-space: nowrap; }
.phone-card .shop {
  display: inline-block;
  background: var(--teal-pale);
  color: var(--teal-dark);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 8px;
  margin-bottom: 3px;
}
.phone-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-faint);
  margin: 6px 2px 4px;
}
.phone-total {
  text-align: center;
  background: var(--teal);
  color: var(--white);
  border-radius: 10px;
  padding: 6px;
  font-weight: 700;
  font-size: 11px;
}
.phone-alert {
  background: var(--amber-pale);
  border: 1px solid #F3D9A8;
  color: #8A5B00;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 10px;
  margin-bottom: 8px;
}
.phone-pin {
  display: inline-block;
  background: var(--amber);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 8px;
}
/* ミニカレンダー */
.phone-screen .shot { display: block; width: 100%; height: auto; }
.phone-meta { font-size: 9px; color: var(--ink-faint); }
.phone-note { display: block; font-size: 9px; color: #B3261E; margin-top: 4px; }
.phone-navbar {
  display: flex;
  justify-content: space-around;
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 7px 0 9px;
  font-size: 9px;
  color: var(--ink-faint);
  font-weight: 700;
}
.phone-navbar .active { color: var(--teal-dark); }
.phone-badge {
  display: inline-block;
  background: #F1E7E9;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 700;
  border-radius: 5px;
  padding: 1px 6px;
}
.phone-seg {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}
.phone-seg span {
  flex: 1;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 0;
  font-size: 9px;
  font-weight: 700;
  color: var(--ink-faint);
  background: var(--white);
}
.phone-seg .active {
  background: var(--teal-pale);
  border-color: var(--teal-light);
  color: var(--teal-dark);
}

.mini-cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin-top: 4px;
}
.mini-cal span {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: 7px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 9px;
  color: var(--ink-soft);
}
.mini-cal span.done { background: var(--teal-pale); border-color: var(--teal-light); color: var(--teal-dark); font-weight: 700; }
.mini-cal span.off { background: var(--amber-pale); border-color: #F3D9A8; color: #8A5B00; font-weight: 700; }
.mini-cal span.today { outline: 2px solid var(--teal); outline-offset: -2px; font-weight: 700; }
.mini-cal span.head { background: transparent; border: none; color: var(--ink-faint); aspect-ratio: auto; }

/* ---------- ダイエットの定義（マニフェストバンド＋辞書カード） ---------- */
.section.manifesto { background: var(--teal-deep); }
.section.manifesto .section-label { color: var(--amber); }
.section.manifesto h2 { color: var(--white); }
.section.manifesto .lead { color: #ECC6CF; }
.section.manifesto .lead strong { color: var(--white); }
.manifesto-statement {
  margin-top: 30px;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 700;
  line-height: 1.6;
  color: var(--white);
}
.manifesto-sub {
  margin-top: 10px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--teal-light);
}

.dict-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 30px;
  max-width: 560px;
  margin: 4px 0 26px;
  box-shadow: var(--shadow-soft);
}
.dict-word {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--teal-deep);
  letter-spacing: 0.01em;
}
.dict-pron {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink-faint);
  margin-left: 8px;
}
.dict-defs {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}
.dict-defs li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 8px 0;
  border-top: 1px dashed var(--line);
}
.dict-num {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal-pale);
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-1px);
}
.dict-etym {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--ink-faint);
}
.dict-ja {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.dict-ja s { color: var(--ink-faint); }

/* ---------- 実現可能性（コンビニ訴求） ---------- */
.real-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 8px;
}
.real-tags span {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
  box-shadow: var(--shadow-soft);
}
.footnote { font-size: 0.76rem; color: var(--ink-faint); margin-top: 14px; }

/* ---------- 料金 ---------- */
.pricing-grid {
  display: grid;
  gap: 22px;
  align-items: stretch;
}
@media (min-width: 900px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
/* カード1枚だけの料金セクション（trainer.html）は常に1カラム */
.pricing-grid.single { grid-template-columns: 1fr; max-width: 420px; }
.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border: 2px solid var(--teal);
  box-shadow: var(--shadow);
  position: relative;
}
.price-card .plan-badge {
  position: absolute;
  top: -13px;
  left: 24px;
  background: var(--teal);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 14px;
}
.price-card h3 { color: var(--teal-deep); font-size: 1.05rem; }
.price-card .price {
  margin: 14px 0 4px;
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
}
.price-card .price small { font-size: 0.85rem; font-weight: 600; color: var(--ink-faint); }
.price-card .price-note { font-size: 0.78rem; color: var(--ink-faint); margin-bottom: 16px; }
.price-card ul { list-style: none; margin-bottom: 22px; flex: 1; }
.price-card li {
  position: relative;
  padding: 6px 0 6px 26px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--line);
}
.price-card li:last-child { border-bottom: none; }
.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}
.pricing-note { font-size: 0.78rem; color: var(--ink-faint); margin-top: 18px; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 14px; max-width: 780px; }
.faq-list details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--teal-deep);
  padding: 18px 48px 18px 22px;
  position: relative;
  font-size: 0.95rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "＋";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--teal);
  font-weight: 700;
}
.faq-list details[open] summary::after { content: "－"; }
.faq-list .faq-a {
  padding: 0 22px 20px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---------- ステップ（導入の流れ） ---------- */
.steps { display: grid; gap: 22px; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
  counter-increment: step;
}
.step .step-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.05rem;
}
.step .step-num::before { content: counter(step); }
.step h3 { font-size: 1.02rem; color: var(--teal-deep); margin-bottom: 8px; }
.step p { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- CTAバンド ---------- */
.cta-band {
  background: linear-gradient(150deg, var(--teal) 0%, var(--teal-dark) 100%);
  border-radius: var(--radius-lg);
  color: var(--white);
  padding: 48px 30px;
  text-align: center;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: var(--white); font-size: clamp(1.35rem, 4vw, 1.8rem); margin-bottom: 12px; }
.cta-band p { color: #F8DEE4; margin-bottom: 26px; font-size: 0.95rem; }
.cta-band .btn-primary {
  background: var(--white);
  color: var(--teal-dark);
}
.cta-band .btn-primary:hover { background: var(--teal-pale); }
.cta-band .hero-note { color: #F3CDD6; }

/* ---------- 埋め込みフォーム（Googleフォーム。contact-forms.js が生成） ---------- */
.contact-embed {
  margin-top: 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.contact-embed iframe { display: block; width: 100%; height: 1150px; border: 0; }
.contact-embed .fallback { margin: 0; padding: 12px 16px; text-align: center; font-size: 0.85rem; color: var(--ink-faint); }
@media (max-width: 640px) { .contact-embed iframe { height: 1300px; } }

/* ---------- 法務ドキュメント ---------- */
.doc-hero {
  background: var(--teal-faint);
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--line);
}
.doc-hero h1 { font-size: clamp(1.5rem, 4.6vw, 2rem); color: var(--teal-deep); }
.doc-hero .doc-meta { margin-top: 10px; font-size: 0.82rem; color: var(--ink-faint); }
.doc-draft {
  display: inline-block;
  margin-top: 14px;
  background: var(--amber-pale);
  border: 1px solid #F3D9A8;
  color: #8A5B00;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 16px;
}
.doc-body { padding: 48px 0 72px; }
.doc-body .container { max-width: 800px; }
.doc-body h2 {
  font-size: 1.2rem;
  color: var(--teal-deep);
  margin: 40px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--teal);
  line-height: 1.5;
}
.doc-body h2:first-child { margin-top: 0; }
.doc-body p { font-size: 0.93rem; color: var(--ink-soft); margin-bottom: 14px; }
.doc-body ol, .doc-body ul { margin: 0 0 14px 1.6em; font-size: 0.93rem; color: var(--ink-soft); }
.doc-body li { margin-bottom: 6px; }
.doc-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-bottom: 14px;
}
.doc-body th, .doc-body td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  color: var(--ink-soft);
}
.doc-body th { background: var(--teal-faint); color: var(--teal-deep); white-space: nowrap; }
.table-scroll { overflow-x: auto; }
/* 2列の表（見出し｜説明）は、スマホでは縦に積む。左の列が4文字ぶんほどまで細くなり、
   「ふだんの食／事」のように1文字だけ落ちるため。見出しの行は横並びのまま残す */
@media (max-width: 560px) {
  .doc-body table, .doc-body tbody, .doc-body tr, .doc-body td { display: block; width: 100%; }
  .doc-body tr { border: 1px solid var(--line); border-top: none; }
  .doc-body tr:first-child { border-top: 1px solid var(--line); }
  .doc-body td { border: none; }
  .doc-body td:first-child { padding-bottom: 2px; color: var(--ink); font-weight: 700; white-space: normal; }
  .doc-body td + td { padding-top: 2px; }
  .doc-body tr:has(> th) { display: flex; }
  .doc-body tr:has(> th) th { flex: 1; border: none; white-space: normal; }
}

/* ---------- フッター ---------- */
.site-footer {
  background: var(--teal-deep);
  color: #F1CBD4;
  padding: 48px 0 36px;
  margin-top: 0;
}
.site-footer .footer-brand {
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.site-footer .footer-brand svg { width: 26px; height: 26px; }
.site-footer .footer-tagline { font-size: 0.82rem; margin-bottom: 22px; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-bottom: 26px;
}
.footer-nav a { color: #F1CBD4; font-size: 0.85rem; text-decoration: none; }
.footer-nav a:hover { color: var(--white); text-decoration: underline; }
.footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 20px;
  font-size: 0.75rem;
  line-height: 1.9;
  color: #E6B0BD;
}
.footer-disclaimer li { margin-left: 1.4em; }
.footer-copy { margin-top: 18px; font-size: 0.75rem; color: #DB9DAC; }
