/* ==========================================================================
   eff-support サイト共通 CSS
   正本: docs/design-concept.md（「舞台袖の香盤表。表に立つ人を、線と太さで示す」）
   使うページ: / ・ /materials/ ・ /privacy.html ・（予定）/partner/

   規則
   - 色はここのトークンだけ。:root と [data-theme] の外に HEX を書かない
   - ダークはトークンの差し替えだけで成立させる（太さ・大きさ・余白は変えない）
   - 強調色（--pencil）は線・面・小さなラベル（弊社ラベル、AFTER・「〜に短縮」「約〇%削減」）に使う。
     文字色の強調には使わない。見出しの強調語は「墨の文字＋強調色の太い下線」（.em）
   - 面を塗るのは「主役の面（--lead-*）」「行動の面（--invert-*）」「中盤の帯（--ink-2。ページに1回）」
     「標準プランの面（--paper-2）」だけ。他は罫線で区切る
   - 行動ボタンは1種類: 地（生成り）の上 = 紺の塗り＋生成りの文字、紺の面の上 = 生成りの塗り＋紺の文字。
     ヘッダーだけ線（.btn--ghost）。本文中のリンクは下線を引かず矢印で示す（下線は強調語に使う）
   - 影・グラデ・大きな角丸を使わない。角は 2px（例外: 協業 hero の紺の層、協業ページのボタンの形）

   ページ構成の図
     header.site（罫線で区切る。塗らない）
     main
       .section ... 地（紙）＋罫線 1px で区切る
       .section--band ... 中盤の帯（一段明るい紺 --ink-2）。ページに1か所だけ。高さは1画面以内
       .section--dark ... 行動の面（反転）。ページに1か所だけ
     footer.site-footer
   ========================================================================== */

/* ---- トークン: パレット 081 クラシックトリコ（#F3EBDD / #CFC2AC / #B4594F / #526A82 / #263A54）
   #B4594F（赤）は使わない色。エラー表示も墨の太字で示す ---- */
:root {
  --paper: #F3EBDD;             /* 地（紙） */
  --ink: #263A54;               /* 文字（墨） */
  --ink-soft: #536172;          /* 補足文字（墨 78% の派生） */
  --rule: #CFC2AC;              /* 罫線・伏せ字（非文字） */
  --pencil: #526A82;            /* 強調色（青鉛筆）: 押す所・弊社ラベル */
  --pencil-on-invert: #93AAC8;  /* 行動の面の上の強調色 */
  --lead-fill: #263A54;         /* 主役の面（貴社・現場の箱） */
  --lead-ink: #F3EBDD;
  --invert: #263A54;            /* 行動の面（contact 帯） */
  --invert-ink: #F3EBDD;
  --invert-ink-soft: #B6B6B4;
  --invert-rule: #59636E;       /* 行動の面の上の区切り線 */
  --cta-on-invert: #F3EBDD;     /* 行動の面に直接置く塗りボタン（紺の面の上は生成りの塗り） */
  --cta-on-invert-ink: #263A54;
  --paper-2: #EAE0CD;           /* 一段濃い生成り（標準プランの面）。墨 8.8:1・補足 4.8:1 */
  --ink-2: #3A5476;             /* 中盤の帯（一段明るい紺）。末尾の行動の面（#263A54）と差をつける */
  --band-ink: #F3EBDD;          /* 帯の上の文字 6.5:1 */
  --band-ink-soft: #D5CEC2;     /* 帯の上の補足文字 5.0:1 */
  --band-rule: #6E829C;         /* 帯の上の罫線（非文字） */
  --band-accent: #93AAC8;       /* 帯の上の強調色（線・下線だけ。3.3:1） */
  /* 写真の控えめな色補正: 彩度 -10%、白を生成りへ寄せる */
  --photo-filter: saturate(0.9) sepia(0.06);

  --font-jp: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', sans-serif;
  --font-mono: 'Noto Sans Mono', ui-monospace, monospace;
  --radius: 2px;

  --wrap: 1120px;               /* 図・表の最大幅 */
  --measure: 680px;             /* 本文の測り（40字/行） */
  --section-pad: 96px;
  --section-pad-sp: 64px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #263A54;
    --ink: #F3EBDD;
    --ink-soft: #B6B6B4;
    --rule: #59636E;
    --pencil: #93AAC8;
    --pencil-on-invert: #526A82;
    --lead-fill: #F3EBDD;
    --lead-ink: #263A54;
    --invert: #F3EBDD;
    --invert-ink: #263A54;
    --invert-ink-soft: #536172;
    --invert-rule: #CFC2AC;
    --cta-on-invert: #263A54;
    --cta-on-invert-ink: #F3EBDD;
    --paper-2: #2F4563;
    --ink-2: #3A5476;
    --band-ink: #F3EBDD;
    --band-ink-soft: #D5CEC2;
    --band-rule: #6E829C;
    --band-accent: #93AAC8;
    --photo-filter: saturate(0.9) sepia(0.06) brightness(0.9);
  }
}
:root[data-theme="dark"] {
  --paper: #263A54;
  --ink: #F3EBDD;
  --ink-soft: #B6B6B4;
  --rule: #59636E;
  --pencil: #93AAC8;
  --pencil-on-invert: #526A82;
  --lead-fill: #F3EBDD;
  --lead-ink: #263A54;
  --invert: #F3EBDD;
  --invert-ink: #263A54;
  --invert-ink-soft: #536172;
  --invert-rule: #CFC2AC;
  --cta-on-invert: #263A54;
  --cta-on-invert-ink: #F3EBDD;
  --paper-2: #2F4563;
  --ink-2: #3A5476;
  --band-ink: #F3EBDD;
  --band-ink-soft: #D5CEC2;
  --band-rule: #6E829C;
  --band-accent: #93AAC8;
  --photo-filter: saturate(0.9) sepia(0.06) brightness(0.9);
}

/* ---- 土台 ---- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { text-wrap: balance; margin: 0; line-height: 1.3; letter-spacing: -0.01em; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.wrap { max-width: calc(var(--wrap) + 48px); margin: 0 auto; padding-inline: 24px; }
.no-break { white-space: nowrap; }
/* phrase_breaks.py が中に入れる <wbr> は nowrap でも改行点になるので消す */
.no-break wbr { display: none; }

/* ---- セクション: 地のまま、罫線 1px で区切る ---- */
.section { padding-block: var(--section-pad); border-bottom: 1px solid var(--rule); }
.section--tight { padding-block: 48px; }
.section--flush { border-bottom: none; }
@media (max-width: 480px) {
  .section { padding-block: var(--section-pad-sp); }
  .section--tight { padding-block: 40px; }
}

/* ---- 文字の段 ---- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: var(--ink-soft);
}
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack--loose { gap: 48px; }
.lede { margin: 0; color: var(--ink-soft); font-size: 16px; max-width: var(--measure); }
.note { margin: 0; font-size: 13px; color: var(--ink-soft); }

/* 案内の型の見出し（H2 相当）。ジャンプ率は低め */
.h-section { font-weight: 700; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.35; }
/* 案内の型の H1（資料・プライバシー・協業） */
.h1-guide { font-weight: 700; font-size: clamp(28px, 3vw, 40px); line-height: 1.3; }
/* 訴求の型の H1（直販LPのヒーローだけ） */
.h1-appeal { font-weight: 700; font-size: clamp(36px, 4.2vw, 56px); line-height: 1.25; }
/* 見出しの強調語（1見出し1語だけ）。文字は墨のまま、強調色の太い下線で示す（協業 hero の「貴社の開発力」と同じ形） */
.em {
  font-style: normal; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--pencil);
  text-decoration-thickness: 3px; text-underline-offset: 6px; text-decoration-skip-ink: none;
}

/* ---- ヘッダー（塗らない。罫線で区切る） ---- */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.site-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 14px;
}
.logo { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.logo-mark { font-weight: 700; font-size: 18px; letter-spacing: 0.01em; }
.logo-sub { font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); }
nav.site-nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; }
nav.site-nav a { text-decoration: none; color: var(--ink-soft); }
nav.site-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
/* スマホ幅ではナビを隠し、ロゴと申し込みボタンだけを残す（横はみ出し防止） */
@media (max-width: 860px) { nav.site-nav { display: none; } .logo, header.site .btn { white-space: nowrap; } }
@media (max-width: 480px) { .site-bar { flex-direction: column; align-items: flex-start; gap: 10px; } }

/* ---- ボタン（行動ボタンは1種類）
   塗り   = 地の上は紺の塗り＋生成りの文字。紺の面（帯・行動の面）の上は生成りの塗り＋紺の文字。本文の CTA
   枠線   = 墨の 1px（ヘッダーだけ）
   文字   = 墨の太字＋矢印（小さな CTA）。下線は引かない（下線は強調語の印） ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; min-height: 44px; padding: 12px 22px;
  font-family: var(--font-jp); font-weight: 700; font-size: 14px; line-height: 1.4;
  text-decoration: none; cursor: pointer;
  border-radius: var(--radius); border: 1px solid var(--ink);
  background: transparent; color: var(--ink);
  white-space: nowrap;
}
.btn--primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--primary:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn--lg { padding: 16px 28px; font-size: 15px; }
.btn--text {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 700; font-size: 15px; color: var(--ink);
  text-decoration: none;
}
.btn--text:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---- ラベル（等幅・罫線 1px）。弊社ラベルだけ強調色の破線 ---- */
.label {
  display: inline-block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; line-height: 1;
  padding: 7px 10px; border: 1px solid var(--rule); border-radius: var(--radius); color: var(--ink);
}
.label--ours { color: var(--pencil); font-weight: 700; border-style: dashed; border-color: var(--pencil); }
.redact { display: inline-block; background: var(--rule); color: var(--ink-soft); font-family: var(--font-mono); font-size: 12px; padding: 2px 10px; border-radius: var(--radius); }

/* ---- FAQ: 罫線で区切るアコーディオン ---- */
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--rule); max-width: 880px; }
details.faq-item { border-bottom: 1px solid var(--rule); padding: 18px 2px; }
details.faq-item summary {
  cursor: pointer; font-weight: 500; list-style: none; display: flex;
  justify-content: space-between; align-items: center; gap: 12px; line-height: 1.6;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: '+'; font-family: var(--font-mono); color: var(--ink-soft); font-weight: 400; }
details.faq-item[open] summary::after { content: '−'; }
details.faq-item p { margin: 12px 0 0; color: var(--ink-soft); font-size: 15px; max-width: var(--measure); }

/* ---- 分担図の箱（HTML 部品。画像にしない。/partner/ と共用）
   重さの順: 主役の面（塗り）＞ お客様（墨の実線枠）＞ 弊社（強調色の破線枠・幅 70%・右寄せ）
   線の意味: 実線 = 窓口、点線 = 裏側 ---- */
.fig { max-width: 520px; }
.box { border-radius: var(--radius); padding: 14px 16px; line-height: 1.5; }
.box .who { display: block; font-weight: 700; }
.box .what { display: block; font-size: 14px; }
.box--customer { border: 1px solid var(--ink); }
.box--lead { background: var(--lead-fill); color: var(--lead-ink); }
.box--lead .who { font-size: 20px; }
.box--ours { border: 1px dashed var(--pencil); width: 70%; margin-left: auto; }
.box--ours .who { color: var(--pencil); font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; font-weight: 700; }
.box--ours .what { font-size: 13px; }
.fig-link { display: flex; align-items: center; gap: 10px; height: 36px; padding-left: 24px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); }
.fig-link::before { content: ''; display: block; width: 0; height: 100%; }
.fig-link--solid::before { border-left: 2px solid var(--ink); }
.fig-link--dashed::before { border-left: 1px dashed var(--pencil); }
.fig-note { font-size: 13px; color: var(--ink-soft); margin: 8px 0 0; }

/* ==========================================================================
   図（各セクションの主役の視覚要素）。docs/visual-plan.md 1章 B-9 原則1・D-15 の4型
     棒（BEFORE/AFTER）／工程線（.track）／箱の分担（.box）／入れ子の箱
   - 図の文字は HTML で組む（SVG の文字は狭い画面で縮み 12px を割るため）。
     SVG は線・棒・形だけに使い、色は下の .sv-* / .sf-* クラスでトークンを通す
   - 強調色は AFTER の棒・弊社の破線・弊社ラベルだけ（.sv-ours / .sf-after）
   ========================================================================== */
.figure { margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.figure svg { display: block; width: 100%; height: auto; }
.figure-cap { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; line-height: 1.6; color: var(--ink-soft); }

/* SVG の線と塗り（stroke / fill はここのクラスだけで指定する） */
.sv-ink { stroke: var(--ink); fill: none; }
.sv-soft { stroke: var(--ink-soft); fill: none; }
.sv-rule { stroke: var(--rule); fill: none; }
.sv-ours { stroke: var(--pencil); fill: none; stroke-dasharray: 4 3; }
.sf-ink { fill: var(--ink); }
.sf-soft { fill: var(--ink-soft); }
.sf-rule { fill: var(--rule); }
.sf-paper { fill: var(--paper); }
.sf-after { fill: var(--pencil); }

/* 図と本文の2列（PC は図が左・本文が右。768 未満で縦積み） */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 767px) { .split { grid-template-columns: 1fr; gap: 28px; } }

/* 長い本文の折りたたみ（文言は消さず、初期表示から外すだけ） */
details.more { border-top: 1px solid var(--rule); }
details.more > summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px;
  min-height: 44px; font-size: 14px; font-weight: 500; color: var(--ink);
}
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: '+'; font-family: var(--font-mono); font-weight: 400; color: var(--ink-soft); }
details.more[open] > summary::after { content: '−'; }
details.more > :not(summary) { margin-top: 4px; }
details.more > :last-child { margin-bottom: 12px; }

/* 工程線（香盤表の段）。節点は四角、線の種類で意味を分ける
     実線 2px 墨 = 現場（読み手）が動く区間
     破線 1px 強調色 = 弊社が支える区間
     細線 1px 罫線 = 現場が居ない区間 ／ 点線 = 途切れ・継続
   使い方: <ol class="track" style="--cols: 4"><li class="track-stop">…</li></ol>
   560px 未満では縦の線に組み替える */
.track { --cols: 4; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
.track-stop {
  --line: 2px solid var(--ink);
  position: relative; min-width: 0;
  padding: 20px 12px 0 0; border-top: var(--line);
  display: flex; flex-direction: column; gap: 4px;
  font-size: 13px; line-height: 1.55;
}
.track-stop::before {
  content: ''; position: absolute; top: -7px; left: 0;
  width: 12px; height: 12px; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius);
}
.track-stop--thin { --line: 1px solid var(--rule); }
.track-stop--thin::before { border-color: var(--rule); top: -6px; }
.track-stop--ours { --line: 1px dashed var(--pencil); }
.track-stop--ours::before { border: 1px dashed var(--pencil); top: -6px; }
.track-stop--broken { --line: 2px dotted var(--ink-soft); }
.track-stop--end { --line: 2px solid transparent; }
.track-stop--lead::before { background: var(--ink); }
.track-when { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-soft); }
.track-what { font-weight: 700; font-size: 14px; color: var(--ink); }
.track-note { color: var(--ink-soft); }
.track-stop .label--ours { align-self: flex-start; }
@media (max-width: 560px) {
  .track { grid-template-columns: 1fr; }
  .track-stop { border-top: none; border-left: var(--line); padding: 0 0 20px 22px; }
  .track-stop::before { top: 4px; left: -7px; }
  .track-stop--thin::before, .track-stop--ours::before { left: -6.5px; }
}

/* 凡例（線の種類の説明） */
.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; font-size: 12px; color: var(--ink-soft); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { display: inline-block; width: 28px; border-top: 2px solid var(--ink); }
.legend i.lg-thin { border-top: 1px solid var(--rule); }
.legend i.lg-ours { border-top: 1px dashed var(--pencil); }
.legend i.lg-broken { border-top: 2px dotted var(--ink-soft); }

/* 画面・ページの縮小（無加工。罫線 1px、額縁・影なし） */
.shot { display: block; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.shot img { display: block; width: 100%; height: auto; }
a.shot:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

/* 自社製品の写真など、脇に小さく置く写真（彩度を落とし、罫線 1px） */
.photo-aside img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: var(--radius); filter: var(--photo-filter); }

/* 人物写真（場面の説明。Pexels。出所は docs/image-sources*.md）
   人物を社員・顧客として示すキャプションは付けない。罫線 1px、影なし。
   色調は --photo-filter（彩度 -10%・白を生成りへ）で揃える。ダークでは少し沈める */
.scene { margin: 0; min-width: 0; }
.scene img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--rule); filter: var(--photo-filter); }

/* 直販 hero の右列: 写真の下に BEFORE/AFTER 図。スマホでは見出し → 写真 → 図 の順 */
.hero-visual { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
@media (max-width: 860px) {
  .hero-visual { display: contents; }
  .hero-photo { order: 3; }
}

/* 見出しと写真を左右に（768 未満で縦。写真は本文の後） */
.sec-lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
@media (min-width: 768px) { .sec-lead--photo-first > .scene { order: -1; } }
@media (max-width: 767px) { .sec-lead { grid-template-columns: 1fr; gap: 24px; } }

/* ---- 行動の面（反転）: ページに1か所。強調色はこの上では --pencil-on-invert ---- */
.section--dark {
  background: var(--invert);
  color: var(--invert-ink);
  border-bottom: none;
}
.section--dark .eyebrow,
.section--dark .note { color: var(--invert-ink-soft); }
.section--dark .lede { color: var(--invert-ink-soft); }
.section--dark .em { color: var(--invert-ink); text-decoration-color: var(--pencil-on-invert); }
.section--dark .btn--text { color: var(--invert-ink); }
.section--dark > .wrap > .btn--primary,
.section--dark .btn--on-invert { background: var(--cta-on-invert); color: var(--cta-on-invert-ink); border-color: var(--invert-ink); }

/* ---- 中盤の帯（一段明るい紺）: ページに1か所。高さは1画面以内
   中の部品はトークンの差し替えだけで帯に載せる（地＝帯の紺、墨＝生成り、強調色＝淡い青鉛筆）。
   ボタンは --ink（生成り）の塗り＋ --paper（帯の紺）の文字になり、「紺の面の上は生成りの塗り」になる ---- */
.section--band {
  --paper: var(--ink-2); --ink: var(--band-ink); --ink-soft: var(--band-ink-soft);
  --rule: var(--band-rule); --pencil: var(--band-accent);
  --lead-fill: var(--band-ink); --lead-ink: var(--ink-2);
  background: var(--paper); color: var(--ink); border-bottom: none;
}
.section.section--band { padding-block: 64px; }
@media (max-width: 480px) { .section.section--band { padding-block: 48px; } }

/* ---- 文書ページ（資料・プライバシー）: 案内の型、1カラム ---- */
.doc { max-width: calc(var(--measure) + 48px + 80px); padding-block: 72px 96px; }
.doc-head { display: flex; flex-direction: column; gap: 14px; padding-bottom: 32px; border-bottom: 1px solid var(--rule); }
.doc-head h1 { font-weight: 700; font-size: clamp(28px, 3vw, 40px); line-height: 1.3; }
.doc-lede { margin: 0; color: var(--ink-soft); font-size: 16px; }
.doc section { padding-top: 40px; }
.doc h2 { font-size: 18px; font-weight: 700; display: flex; gap: 12px; align-items: baseline; }
.doc h2 .num { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--ink-soft); letter-spacing: 0.04em; flex-shrink: 0; }
.doc p, .doc li { font-size: 15px; color: var(--ink-soft); }
.doc p { margin: 12px 0 0; }
.doc ul { margin: 12px 0 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 6px; }
.doc h3 { font-size: 15px; font-weight: 700; margin: 24px 0 0; }
.doc a { color: var(--ink); text-underline-offset: 3px; }
.doc a.btn { text-decoration: none; }
.doc a.btn--primary { color: var(--paper); }
.doc dl { margin: 12px 0 0; display: grid; grid-template-columns: 7em 1fr; gap: 8px 16px; font-size: 15px; border-top: 1px solid var(--rule); padding-top: 12px; }
.doc dt { color: var(--ink-soft); font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; padding-top: 2px; }
.doc dd { margin: 0; color: var(--ink); }
.doc-date { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule); font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); }
@media (max-width: 480px) {
  .doc { padding-block: 48px 64px; }
  .doc dl { grid-template-columns: 1fr; gap: 2px; }
  .doc dd + dt { margin-top: 8px; }
}

/* ---- フッター ---- */
footer.site-footer {
  padding-block: 32px; font-size: 13px; color: var(--ink-soft);
  border-top: 1px solid var(--rule);
}
footer.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; width: 100%; }
footer.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site-footer a { text-decoration: none; }
footer.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
/* 行動の面の直後はフッターの罫線を出さない（面の端が区切りになる） */
.section--dark + footer.site-footer,
main:has(> .section--dark:last-child) + footer.site-footer { border-top: none; }

/* ---- 動き: 下から少しのフェードインだけ。時間差は分担図（.stagger）だけ ---- */
.js .reveal,
.js .reveal-stagger > * {
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.reveal.is-visible,
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.js .stagger > * { opacity: 0; transform: translateY(8px); transition: opacity 0.4s ease-out, transform 0.4s ease-out; }
.stagger.is-visible > * { opacity: 1; transform: none; }
.stagger.is-visible > :nth-child(2) { transition-delay: 0.1s; }
.stagger.is-visible > :nth-child(3) { transition-delay: 0.2s; }
.stagger.is-visible > :nth-child(4) { transition-delay: 0.3s; }
.stagger.is-visible > :nth-child(5) { transition-delay: 0.4s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > *, .stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* 日本語は文節単位で折り返す。wbr は tools/phrase_breaks.py（BudouX）で事前に挿入済み */
body { word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }
