/* 尾道・福山の市町村役場向けAI導入支援 LP（2026-11-09）
   配色：16_色彩戦略の 2026-11-09 改訂。公用紙の白・墨・水色（主調）・焦げ茶（課に残るもの）・鉛筆の灰（AIの下書き）・朱印（職員の確認）。緑系統は使わない。
   申し込みの色は臙脂 --cta だけ。ボタン以外に使わない。
   組み方・秒数・幅の値は 11_デザインUX のとおり。 */

:root {
  /* 地 */
  --paper: #fafaf7;        /* 公用紙の白：ページの地 */
  --paper-2: #edf5f9;      /* 淡い水色：区画を分ける地（旧 灰白） */
  --card: #ffffff;         /* 起案用紙の1枚 */
  /* 文字 */
  --ink: #1c2125;          /* 墨 */
  --ink-muted: #4d565c;    /* 薄墨 */
  /* 主要色：水色（文字には使わない） */
  --mizu: #7cc0dc;         /* 水色：見出しの下線・ヘッダーの下線・カードの上辺・飾り */
  --mizu-line: #4a93b4;    /* 濃い水色：3:1 が要る線 */
  /* セカンドカラー：焦げ茶（課に残るもの・札の文字。塗りつぶした四角には使わない） */
  --kogecha: #4b3428;
  --kogecha-soft: #f4eee9; /* 簿冊の紙：課に残るものの地 */
  /* 区画の地（16 改訂2） */
  --mizu-ground: #b3dbeb;      /* 水色の地（02・03・06・08・ヒーローの左） */
  --mizu-ground-light: #d4ebf5;/* 一段薄い水色の地（03・06） */
  --gray-ground: #eceef0;      /* 薄いグレーの地（07） */
  /* 焦げ茶の地（01・05・09・フッター）の上の色。地は --kogecha をそのまま使う */
  --on-kogecha: #ffffff;       /* 見出し・リンク */
  --on-kogecha-text: #f4eee9;  /* 本文 */
  --on-kogecha-muted: #d9cec5; /* 補助文字・著作表示 */
  --on-kogecha-accent: #b3dbeb;/* 区画の札・◇ */
  /* 意味の色（変更なし） */
  --draft: #5d6266;        /* 鉛筆の灰：AIの下書き */
  --draft-line: #868b8f;
  --draft-bg: #f1f1ef;
  --shu: #b83a26;          /* 確認の朱印（印・チェックだけ） */
  --shu-ink: #9c2f1e;      /* 朱の文字・入力の誤り */
  --fusen: #f4ecc9;        /* 付箋：悩みの台詞の地だけ */
  /* 線（緑みを外した） */
  --rule: #ccd6dd;
  --field-line: #76838d;
  /* 申し込み（ここ以外で使わない） */
  --cta: #7b2433;
  --cta-hover: #621b28;
  --cta-ink: #ffffff;
  --focus: #1c2125;
  /* 書体（予備は 11-H の並び） */
  --serif: "Noto Serif JP", "BIZ UDPMincho", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "MS PMincho", serif;
  --sans: "Noto Sans JP", "BIZ UDPGothic", "Yu Gothic Medium", "Yu Gothic", "YuGothic", "Meiryo", "Hiragino Sans", sans-serif;
  --mono: "Noto Sans JP", "BIZ UDPGothic", "Yu Gothic Medium", sans-serif;
  /* 余白 */
  --pad-l: clamp(80px, 9vw, 128px);
  --pad-m: clamp(72px, 8vw, 112px);
  --pad-s: clamp(56px, 6vw, 88px);
  --ease: cubic-bezier(.22, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (max-width: 760px) { html { scroll-padding-top: 72px; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .02em;
}
/* ボタン・入力欄はブラウザの初期書体（Arial など）にせず、ゴシック体は Noto Sans JP にそろえる */
button, input, select, textarea { font-family: var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: .18em; }
a:visited { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: .03em; color: var(--ink); }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap-any { overflow-wrap: anywhere; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--card); padding: 8px 14px; border: 1px solid var(--ink); }
.skip:focus { top: 12px; }

.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.narrow { max-width: 760px; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 12px 24px;
  border: 0; border-radius: 4px;
  background: var(--cta); color: var(--cta-ink) !important;
  font-family: var(--sans); font-weight: 700; font-size: 16px; line-height: 1.5; letter-spacing: .03em;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .2s ease;
}
.btn:hover { background: var(--cta-hover); }
.btn--lg { min-height: 58px; padding: 14px 30px; font-size: 17px; }
.btn--block { display: flex; width: 100%; }
.btn--line { background: transparent; color: var(--ink) !important; border: 1px solid var(--ink); }
.btn--line:hover { background: var(--paper-2); }
.textlink { color: var(--ink); font-weight: 700; }
.micro { font-size: 13px; color: var(--ink-muted); margin: 10px 0 0; }

/* ---------- ヘッダー（全ページ共通） ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--mizu); }
.nav__inner { display: flex; align-items: center; min-height: 86px; padding: 0 28px; gap: 0; }
.nav__brand { flex: none; display: block; text-decoration: none; }
.nav__brand img { width: 150px; }
.nav__links { display: flex; align-items: center; gap: 34px; margin-left: 24px; font-family: var(--serif); font-weight: 700; font-size: 14px; white-space: nowrap; }
.nav__links a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav__links a:hover { border-bottom-color: var(--ink); }
.nav__links a[aria-current] { border-bottom-color: var(--mizu-line); }
.nav__links .motion-toggle { display: none; }
.nav__cta { margin-left: auto; min-height: 44px; padding: 8px 18px; font-size: 14px; }
.nav__menu { display: none; margin-left: auto; width: 44px; height: 44px; padding: 0; border: 1px solid var(--field-line); border-radius: 4px; background: #fff; cursor: pointer; }
.nav__menu span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--ink); }

@media (max-width: 1279px) {
  .nav__cta { display: none; }
}
@media (min-width: 900px) and (max-width: 1279px) {
  .nav__inner { min-height: 84px; padding: 0 20px; }
  .nav__brand img { width: 116px; }
  .nav__links { gap: 18px; margin-left: 20px; font-size: 13px; }
}
@media (min-width: 761px) and (max-width: 899px) {
  .nav__inner { min-height: 84px; padding: 0 16px; }
  .nav__brand img { width: 92px; }
  .nav__links { gap: 12px; margin-left: 12px; font-size: 12px; }
}
@media (max-width: 760px) {
  .nav__inner { min-height: 64px; padding: 0 16px; flex-wrap: wrap; }
  .nav__brand img { width: 112px; }
  .nav__menu { display: block; }
  .nav__links { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 0 0 12px; font-size: 15px; white-space: normal; }
  .nav__links.is-open { display: flex; }
  .nav__links a { min-height: 48px; display: flex; align-items: center; padding: 10px 4px; border-top: 1px solid var(--rule); border-bottom: 0; }
  .nav__links a[aria-current] { box-shadow: inset 3px 0 0 var(--mizu-line); padding-left: 12px; }
  .nav__links .motion-toggle { display: inline-flex; margin-top: 10px; align-self: flex-start; }
}

/* ---------- 区画の共通 ---------- */
.sec { padding: var(--pad-m) 0; overflow-x: clip; }
.sec--l { padding: var(--pad-l) 0; }
.sec--s { padding: var(--pad-s) 0; }
.label { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 13px; color: var(--ink-muted); letter-spacing: .06em; }
.label span { display: inline-block; padding: 2px 10px; border: 1px solid var(--kogecha); color: var(--kogecha); font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: .04em; }
.h2 { margin: 0 0 22px; font-size: clamp(25px, 2.6vw + 6px, 38px); line-height: 1.5; }
.h2::after { content: ""; display: block; width: 40px; height: 3px; margin-top: 16px; background: var(--mizu); }
.lead { max-width: 760px; color: var(--ink); }
.next { max-width: 760px; margin: 56px 0 0; padding-top: 22px; border-top: 1px solid var(--rule); font-family: var(--serif); font-weight: 700; font-size: clamp(17px, 1.2vw + 4px, 19px); line-height: 1.7; }
.note { font-size: 13px; color: var(--ink-muted); line-height: 1.8; }
.tag { display: inline-block; padding: 1px 9px; border: 1px solid var(--field-line); border-radius: 2px; font-size: 12.5px; line-height: 1.7; color: var(--ink-muted); background: #fff; }
.tag--keep { border-color: var(--kogecha); background: var(--kogecha-soft); color: var(--kogecha); font-weight: 700; }
.nums { display: inline-flex; gap: 4px; vertical-align: middle; }
.num { display: inline-flex; align-items: center; justify-content: center; width: 1.75em; height: 1.75em; border: 1.5px solid var(--kogecha); border-radius: 50%; color: var(--ink); font-family: var(--mono); font-weight: 700; font-size: 13px; line-height: 1; background: #fff; }

/* ---------- 0 ファーストビュー ---------- */
.hero { padding: clamp(40px, 5vw, 72px) 0 clamp(48px, 6vw, 88px); overflow-x: clip; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.hero__for { display: inline-block; margin: 0 0 22px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.7; }
.hero__for::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--mizu); vertical-align: .1em; }
.hero__title { position: relative; margin: 0 0 22px; font-size: clamp(30px, 3.4vw + 4px, 52px); line-height: 1.4; font-weight: 700; }
.hero__title .ph { white-space: nowrap; }
.hero__u { position: relative; display: inline-block; white-space: nowrap; }
.hero__u::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.04em; height: .18em; background: var(--mizu); clip-path: inset(0 0 0 0); transition: clip-path .6s var(--ease); }
.js-fv .hero__u::after { clip-path: inset(0 100% 0 0); }
.js-fv .hero.is-u .hero__u::after, .motion-off .hero__u::after { clip-path: inset(0 0 0 0); }
.hero__sub { max-width: 34em; font-size: clamp(16px, .3vw + 15px, 17px); }
.hero__check { display: flex; align-items: center; gap: 12px; margin: 0 0 26px; font-family: var(--serif); font-weight: 700; font-size: clamp(16px, .5vw + 14px, 18px); line-height: 1.6; }
.seal { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 2px solid var(--shu); border-radius: 50%; color: var(--shu-ink); font-family: var(--serif); font-weight: 700; font-size: 12px; letter-spacing: 0; transform: rotate(-12deg); background: transparent; }
.hero__actions .btn { max-width: 100%; }
.hero__near { margin: 12px 0 0; font-size: 14px; color: var(--ink-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--ink-muted); }
.chips li::before { content: "◇"; margin-right: 6px; color: var(--mizu-line); }

/* ヒーローの左（文字の列）を水色の地に（16_色彩戦略 改訂2） */
.hero {
  --hero-pt: clamp(40px, 5vw, 72px);
  --hero-pb: clamp(48px, 6vw, 88px);
  position: relative; isolation: isolate;
  padding: var(--hero-pt) 0 var(--hero-pb); overflow-x: clip;
  background: var(--mizu-ground); /* 画像の周りまでヒーロー全体を水色に */
}
.hero__copy::before { content: none; } /* 左の列だけを塗る作りはやめた（上の全体の水色に置き換え） */
.hero__grid { --hero-gap: clamp(32px, 5vw, 72px); gap: var(--hero-gap); }
.hero__copy { position: relative; align-self: stretch; }
.hero__copy::before {
  content: ""; position: absolute; z-index: -1;
  top: calc(-1 * var(--hero-pt)); bottom: calc(-1 * var(--hero-pb));
  left: -100vw; right: calc(var(--hero-gap) / -2);   /* 左端まで。右は列の間の真ん中で止める */
  background: var(--mizu-ground);
}
.hero__for { border-bottom-color: rgba(75, 52, 40, .35); }
.hero__for::before { background: var(--kogecha); }
.hero__u::after { height: .1em; background: var(--kogecha); }
.hero__copy .chips li::before { color: var(--kogecha); }
.hero__sublink { display: inline-block; margin-top: 16px; font-size: 14px; }

.hero__visual { position: relative; }
.hero__photo { position: relative; margin: 0; aspect-ratio: 3 / 4; overflow: hidden; background: var(--paper-2); }
.photo-note { position: absolute; z-index: 2; right: 8px; bottom: 8px; margin: 0; padding: 2px 8px; background: rgba(255, 255, 255, .88); color: var(--ink); font-size: 11.5px; line-height: 1.6; }
.hero__visual:not(.no-photo) .hero__photo .photo-note { top: 8px; bottom: auto; }
.photo-note-bg { display: none; margin: 14px 0 0; }
.summary.has-photo .photo-note-bg { display: block; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero__sheetwrap { position: relative; }
.hero__visual:not(.no-photo) .hero__sheetwrap { position: absolute; left: -24px; bottom: -32px; width: min(380px, 92%); }
.hero__visual.no-photo { display: flex; flex-direction: column; align-items: center; padding-top: 24px; }
.hero__visual.no-photo .hero__sheetwrap { width: min(480px, 100%); }
.hero__visual.no-photo .hero__sheetwrap::before { content: ""; position: absolute; inset: 10px -10px -12px 12px; background: var(--paper-2); border: 1px solid var(--rule); transform: rotate(2.5deg); }
.hero__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 44px; }
.hero__visual.no-photo .hero__foot { margin-top: 18px; width: min(480px, 100%); }
.hero__foot .note { margin: 0; }
.hero__foot .motion-toggle { display: none; }

/* 起案用紙（FV の図） */
.sheet { position: relative; background: var(--card); border: 1px solid var(--field-line); border-top: 2px solid var(--mizu); box-shadow: 0 18px 40px -24px rgba(28, 33, 37, .45); font-size: 13.5px; line-height: 1.6; }
.sheet__head { display: flex; justify-content: space-between; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--rule); font-size: 12px; color: var(--ink-muted); }
.sheet__row { position: relative; display: grid; grid-template-columns: 1.6em 5.6em 1fr; gap: 0 8px; align-items: start; padding: 10px 14px; border-bottom: 1px solid var(--rule); }
.sheet__row:last-child { border-bottom: 0; }
.sheet__no { font-family: var(--mono); font-weight: 700; font-size: 12px; color: var(--ink-muted); padding-top: 1px; }
.sheet__key { font-weight: 700; font-size: 12.5px; }
.sheet__val { min-width: 0; }
.sheet__row--type .sheet__val { display: inline-block; }
.sheet__row--draft { margin: 8px 10px; border: 1.5px dashed var(--draft-line); background: var(--draft-bg); color: var(--draft); }
.sheet__row--draft .sheet__key { color: var(--draft); }
.sheet__status { display: block; margin-top: 4px; font-size: 12px; color: var(--draft); }
.sheet__status .done { display: none; }
.sheet.is-checked .sheet__status .wait, .motion-off .sheet__status .wait { display: none; }
.sheet.is-checked .sheet__status .done, .motion-off .sheet__status .done { display: inline; }
.pencil { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-left: 4px; }
.sheet__row--check { padding-right: 64px; }
.checks { margin: 0; padding: 0; list-style: none; }
.checks li { display: flex; align-items: center; gap: 8px; }
.box { position: relative; flex: none; width: 13px; height: 13px; border: 1px solid var(--ink); background: #fff; }
.box::after { content: ""; position: absolute; left: 2px; top: -3px; width: 6px; height: 11px; border-right: 2px solid var(--shu); border-bottom: 2px solid var(--shu); transform: rotate(40deg); clip-path: inset(0 0 0 0); transition: clip-path .25s ease; }
.sheet .seal--fv { position: absolute; right: 14px; bottom: 14px; width: 46px; height: 46px; font-size: 13px; opacity: .92; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1), opacity .45s ease; }
.caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: currentColor; opacity: 0; }
.caret.is-blink { animation: caret .2s steps(1) 4 alternate; }
@keyframes caret { from { opacity: 1; } to { opacity: 0; } }

/* FV の動き（js-fv のときだけ隠す。3秒で動かなければ head のスクリプトが js-fv を外す） */
.js-fv .fv-step { opacity: 0; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js-fv .fv-step--left { transform: translateX(-24px); }
.js-fv .fv-step--up { transform: translateY(8px); transition-duration: .5s; }
.js-fv .fv-step.is-on { opacity: 1; transform: none; }
.js-fv .fv-arrow { clip-path: inset(0 0 100% 0); transition: clip-path .4s ease; }
.js-fv .fv-arrow.is-on { clip-path: inset(0 0 0 0); }
.js-fv .sheet .box::after { clip-path: inset(0 100% 0 0); }
.js-fv .sheet .box.is-on::after { clip-path: inset(0 0 0 0); }
.js-fv .sheet .seal--fv { opacity: 0; transform: rotate(-12deg) scale(1.6); }
.js-fv .sheet .seal--fv.is-on { opacity: .92; transform: rotate(-12deg) scale(1); }
.js-fv .tc { opacity: 0; }
.tc.is-on { opacity: 1; }
.fv-arrow { display: block; width: 1px; height: 12px; margin: -4px 0 -4px calc(14px + .8em); background: var(--draft-line); }

/* ---------- タイプライター（文字は最初からDOMにある。見えないだけ） ---------- */
.rv-on [data-type] .tc { opacity: 0; }
.rv-on [data-type] .tc.is-on, .rv-on [data-type].is-typed .tc { opacity: 1; }
.motion-off [data-type] .tc { opacity: 1 !important; }

/* ---------- スクロールで出す ---------- */
.rv-on [data-rv] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv-on [data-rv="left"] { transform: translateX(-24px); transition-duration: .7s; }
.rv-on [data-rv="clip-x"] { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease); }
.rv-on [data-rv="clip-y"] { opacity: 1; transform: none; clip-path: inset(50% 0 50% 0); transition: clip-path 1.1s var(--ease); }
.rv-on [data-rv="clip-down"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease); }
.rv-on [data-rv].is-in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
/* 切り落としで見せる動き（clip-*）以外は、出し終わったら切り落とさない。①〜⑤の付箋がカードの下からはみ出す所が切れていた（2026-11-09） */
.rv-on [data-rv]:not([data-rv^="clip"]).is-in { clip-path: none; }
.rv-on [data-rv-list] > * { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * var(--gap, 140ms)); }
.rv-on [data-rv-list].is-in > * { opacity: 1; transform: none; }
.motion-off [data-rv], .motion-off [data-rv-list] > *, .motion-off .fv-step, .motion-off .fv-arrow, .motion-off .box::after, .motion-off .seal, .motion-off .fusen, .motion-off .rowfx > * {
  opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important;
}
.motion-off .seal { transform: rotate(-12deg) !important; }
.motion-off .sheet .seal--fv { opacity: .92 !important; }

/* ---------- No.01 悩み ---------- */
.pain__grid { display: grid; grid-template-columns: .36fr .64fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.pain__side { position: sticky; top: 110px; }
.pain__side .lead { font-size: 15.5px; }
.pain__stat { margin-top: 20px; padding: 14px 16px; background: #fff; border-left: 3px solid var(--rule); }
.pain__stat p { margin: 0 0 6px; }
.memos { display: grid; gap: 28px; padding-bottom: 20px; }
.memo { position: relative; background: #fff; border: 1px solid var(--rule); border-top: 2px solid var(--ink); padding: 20px 22px 36px; margin-bottom: 18px; }
.memo:nth-of-type(odd) { margin-left: 24px; }
.memo:nth-of-type(even) { margin-right: 24px; }
.memo__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-bottom: 8px; }
.memo__time { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-weight: 700; font-size: 15px; }
.memo__time .num { font-size: 14px; }
.memo h3 { margin: 0 0 10px; font-size: 18px; line-height: 1.6; }
.memo p { margin: 0 0 8px; font-size: 15px; }
.fusen { position: absolute; left: 22px; right: 40px; bottom: -22px; margin: 0; padding: 8px 14px; background: var(--fusen); box-shadow: 0 6px 14px -10px rgba(28, 33, 37, .5); font-size: 14.5px; font-weight: 700; line-height: 1.6; transform: rotate(-1deg); transition: transform .5s var(--ease) .3s, opacity .5s ease .3s; }
.rv-on .memo:not(.is-in) .fusen { transform: rotate(4deg); opacity: 0; }
.memo__stat { margin: 30px 0 0; font-size: 13px; color: var(--ink-muted); line-height: 1.8; }
.cause { position: relative; margin-top: clamp(56px, 6vw, 88px); min-height: 380px; display: flex; align-items: center; background: var(--paper-2); }
.cause__photo { position: absolute; inset: 0 0 0 auto; width: 62%; margin: 0; overflow: hidden; }
.cause__photo img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.cause__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(250, 250, 247, .96) 0%, rgba(250, 250, 247, .4) 100%); }
.cause__text { position: relative; z-index: 1; width: min(640px, 100%); padding: 48px clamp(20px, 4vw, 48px); }
.cause__big { margin: 0 0 16px; font-family: var(--serif); font-weight: 700; font-size: clamp(24px, 2.4vw + 6px, 36px); line-height: 1.5; }
.cause__body p { margin: 0 0 .8em; }

/* ---------- No.02 残るもの ---------- */
.ledger { margin: 8px 0 0; border-top: 2px solid var(--ink); }
.ledger__row { display: grid; grid-template-columns: 96px 1fr; gap: 0 24px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.ledger__no { display: flex; justify-content: center; }
.ledger__no .num { width: 64px; height: 64px; font-size: 26px; border-width: 2px; }
.ledger__name { margin: 0 0 2px; font-size: 13px; color: var(--ink-muted); }
.ledger__body h3 { margin: 0 0 6px; font-size: 19px; line-height: 1.6; }
.ledger__who { display: inline-block; margin: 0 0 8px; }
.ledger__body p { margin: 0 0 10px; }
.ledger__keep { margin: 0; }
.rowfx > * { transition: opacity .6s var(--ease), transform .7s var(--ease); }
.rv-on .rowfx:not(.is-in) .ledger__no { opacity: 0; transform: translateY(10px); }
.rv-on .rowfx:not(.is-in) .ledger__body { opacity: 0; transform: translateX(-24px); }
.rowfx .ledger__body { transition-delay: .2s; }
.roles { width: 100%; margin: 48px 0 0; border-collapse: collapse; background: #fff; border-top: 2px solid var(--ink); font-size: 15px; }
.roles th, .roles td { padding: 14px 16px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.roles thead th { font-family: var(--serif); font-size: 14px; background: var(--paper-2); }
.roles tbody th { font-family: var(--serif); width: 22%; }
.roles td.now { color: var(--ink-muted); }
.roles td.after { box-shadow: inset 3px 0 0 var(--kogecha); }
.roles .cell-tag { display: none; }
.shift { margin: 80px 0 16px; font-family: var(--serif); font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.7; }
.shift > span { display: block; } /* 1字ずつの部品（.tc）には当てない */
.midcta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; margin-top: 56px; padding: 26px 28px; background: #fff; border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--paper); }
.midcta p { margin: 0; flex: 1 1 320px; font-family: var(--serif); font-weight: 700; font-size: 18px; line-height: 1.7; }

/* ---------- No.03 進め方 ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 16px; margin: 40px 0 0; padding: 0; list-style: none; position: relative; }
.steps::before { content: ""; position: absolute; left: 10%; right: 10%; top: 22px; height: 1px; background: var(--field-line); }
.steps li { position: relative; text-align: center; }
.steps .num { width: 44px; height: 44px; font-size: 17px; position: relative; z-index: 1; }
.steps h3 { margin: 10px 0 6px; font-size: 16px; line-height: 1.5; }
.steps p { margin: 0 0 6px; font-size: 13.5px; text-align: left; }
.steps .need { font-size: 12.5px; color: var(--ink-muted); text-align: left; border-top: 1px dotted var(--rule); padding-top: 6px; }
.helps { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; margin-top: 56px; }
.help { background: #fff; border: 1px solid var(--rule); border-top: 2px solid var(--ink); padding: 24px 26px; }
.help--main { grid-row: span 2; border-top: 4px solid var(--mizu-line); }
.help--wide { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding: 18px 26px; }
.help__tag { display: inline-block; margin: 0 0 8px; padding: 1px 10px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; }
.help h3 { margin: 0 0 10px; font-size: 19px; line-height: 1.5; }
.help--main h3 { font-size: 24px; }
.help--wide h3 { margin: 0; font-size: 17px; }
.help p { font-size: 15px; }
.help ul { margin: 0 0 12px; padding-left: 1.2em; font-size: 15px; }
.help__for { margin: 12px 0 0; font-size: 13px; color: var(--ink-muted); display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.sample { margin: 18px 0 6px; padding: 18px 20px; background: var(--kogecha-soft); border: 1px solid var(--kogecha); font-size: 14px; }
.sample h4 { margin: 0 0 10px; font-family: var(--serif); font-size: 16px; }
.sample dl { margin: 0; display: grid; grid-template-columns: 8.5em 1fr; gap: 6px 12px; }
.sample dt { font-weight: 700; color: var(--kogecha); }
.sample dd { margin: 0; }
.sample .blank { display: block; height: 1.6em; border-bottom: 1px solid var(--field-line); }
.sample .blank + .blank { margin-top: 2px; }
.handy { margin-top: 40px; padding: 20px 24px; border: 1px solid var(--rule); background: #fff; }
.handy h3 { margin: 0 0 8px; font-size: 16px; }
.handy ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 15px; }
.handy li::before { content: "・"; }
.handy p { margin: 8px 0 0; font-size: 13px; color: var(--ink-muted); }

/* ---------- No.04 線引き ---------- */
.lines { background: repeating-linear-gradient(to bottom, transparent 0 35px, rgba(204, 214, 221, .35) 35px 36px), var(--paper); }
.useno { display: grid; grid-template-columns: 1fr 1fr; margin-top: 32px; background: #fff; border: 1px solid var(--rule); border-top: 2px solid var(--ink); }
.useno > div { padding: 20px 24px; }
.useno > div + div { border-left: 1px solid var(--rule); }
.useno h3 { margin: 0 0 8px; font-size: 16px; }
.useno ul { margin: 0; padding-left: 1.2em; }
.useno .no-mark { display: inline-block; width: 12px; height: 12px; margin-right: 6px; border: 1px solid var(--ink); background: repeating-linear-gradient(45deg, var(--ink) 0 1px, transparent 1px 4px); vertical-align: -1px; }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 48px 0 0; padding: 0; list-style: none; counter-reset: none; }
.flow li { position: relative; padding: 16px 18px 20px; background: #fff; border: 1.5px solid var(--ink); min-height: 150px; }
.flow li + li::before { content: "→"; position: absolute; left: -19px; top: 50%; transform: translateY(-50%); font-size: 16px; color: var(--ink-muted); }
.flow li.is-ai { border-style: dashed; border-color: var(--draft-line); background: var(--draft-bg); color: var(--draft); }
.flow__who { display: inline-block; margin-bottom: 8px; padding: 0 8px; border: 1px solid currentColor; font-size: 12px; font-weight: 700; }
.flow li.is-ai .flow__who { color: var(--draft); }
.flow li:not(.is-ai) .flow__who { color: var(--shu-ink); border-color: var(--shu); }
.flow__n { display: block; font-family: var(--mono); font-weight: 700; font-size: 13px; color: var(--ink-muted); }
.flow h3 { margin: 2px 0 4px; font-size: 16px; line-height: 1.5; color: inherit; }
.flow p { margin: 0; font-size: 13.5px; }
.flow .seal--flow { position: absolute; right: 10px; bottom: 10px; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1), opacity .45s ease; transition-delay: 1.1s; }
.rv-on .flow:not(.is-in) .seal--flow { opacity: 0; transform: rotate(-12deg) scale(1.6); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 40px; }
.duo > div { padding: 22px 24px; }
.duo__ai { background: var(--draft-bg); border: 1.5px dashed var(--draft-line); color: var(--draft); }
.duo__staff { background: #fff; border: 1.5px solid var(--ink); border-top: 3px solid var(--shu); }
.duo__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 10px; align-items: center; margin-bottom: 10px; }
.duo h3 { margin: 0; font-size: 17px; color: inherit; }
.duo__tag { font-size: 12px; font-weight: 700; padding: 0 8px; border: 1px solid currentColor; }
.duo__staff .duo__tag { color: var(--shu-ink); border-color: var(--shu); }
.duo ul { margin: 0; padding: 0; list-style: none; }
.duo li { position: relative; padding-left: 1.4em; margin-bottom: 4px; }
.duo__ai li::before { content: "－"; position: absolute; left: 0; }
.duo__staff li::before { content: ""; position: absolute; left: 0; top: .5em; width: .8em; height: .8em; border: 1.5px solid var(--shu); border-radius: 50%; }
.promise { position: relative; margin-top: 40px; padding: 22px 120px 22px 24px; background: #fff; border: 1px solid var(--field-line); border-top: 2px solid var(--mizu); }
.promise p { margin: 0; }
.promise::before, .promise::after { content: ""; position: absolute; top: 14px; width: 40px; height: 40px; border: 1px solid var(--field-line); }
.promise::before { right: 62px; }
.promise::after { right: 16px; }
.photo { position: relative; margin: 40px 0 0; overflow: hidden; background: var(--paper-2); }
.photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- No.05 信用 ---------- */
.honest { margin: 8px 0 36px; padding: 4px 0 4px 20px; border-left: 4px solid var(--ink); font-family: var(--serif); font-weight: 700; font-size: clamp(19px, 2vw, 24px); line-height: 1.7; max-width: 860px; }
.honest + p { max-width: 760px; }
.binder { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 24px; margin-top: 44px; align-items: start; }
.leaf { position: relative; background: #fff; border: 1px solid var(--rule); border-top: 2px solid var(--ink); padding: 24px 24px 22px; }
.leaf--full { grid-column: 1 / -1; }
.leaf__tab { position: absolute; left: 16px; top: -27px; margin: 0; padding: 2px 12px; background: var(--paper-2); border: 1px solid var(--field-line); border-bottom: 0; font-size: 12.5px; font-weight: 700; color: var(--ink); line-height: 1.8; }
.leaf h3 { margin: 0 0 10px; font-size: 18px; line-height: 1.6; }
.leaf ul { margin: 0 0 12px; padding: 0; list-style: none; }
.leaf li { position: relative; padding-left: 1.2em; margin-bottom: 4px; font-size: 15px; }
.leaf li::before { content: "－"; position: absolute; left: 0; color: var(--ink-muted); }
.leaf p { font-size: 15px; }
.bridge { padding-left: 12px; border-left: 3px solid var(--mizu); }
.keeps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 12px; padding: 0; list-style: none; }
.keeps li { padding: 12px 14px !important; background: var(--kogecha-soft); border-top: 2px solid var(--kogecha); }
.keeps li::before { content: none !important; }
.keeps strong { display: block; font-family: var(--serif); color: var(--kogecha); }
.keeps span { font-size: 13.5px; }
.pledges { display: grid; grid-template-columns: repeat(3, 1fr); margin: 48px 0 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); background: #fff; }
.pledges li { padding: 20px 22px; border-bottom: 1px solid var(--rule); }
.pledges li + li { border-left: 1px solid var(--rule); }
.pledges h3 { margin: 0 0 8px; font-size: 16.5px; line-height: 1.6; }
.pledges p { margin: 0 0 8px; font-size: 14.5px; }
.pledges .how { font-size: 13px; color: var(--ink-muted); margin: 0; }
.small-start { margin-top: 28px; font-weight: 700; }

/* ---------- No.06 代表 ---------- */
.owner { display: grid; grid-template-columns: 260px 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.owner__photo { margin: 0; box-shadow: 12px 12px 0 var(--paper); background: var(--paper-2); }
.owner__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.owner__name { margin: 0 0 14px; font-family: var(--serif); font-weight: 700; font-size: 20px; }
.owner__trust { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--rule); }
.owner__trust p { margin: 0 0 6px; font-weight: 700; }
.owner__trust .note { font-weight: 400; margin: 0 0 12px; }

/* ---------- No.07 費用 ---------- */
.ask { margin: 0 0 32px; padding-left: 16px; border-left: 4px solid var(--ink); font-family: var(--serif); font-weight: 700; font-size: clamp(18px, 1.6vw + 4px, 22px); line-height: 1.7; max-width: 860px; }
.fee { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.fee__text h3 { margin: 0 0 8px; font-size: 17px; }
.fee__text hr { border: 0; border-top: 1px solid var(--rule); margin: 22px 0; }
.papers { margin: 0; padding: 0; list-style: none; }
.papers__title { margin: 0 0 12px; font-family: var(--serif); font-weight: 700; font-size: 17px; }
.papers li { position: relative; background: #fff; border: 1px solid var(--rule); border-top: 2px solid var(--mizu); padding: 14px 18px; box-shadow: 0 10px 20px -16px rgba(28, 33, 37, .45); }
.papers li + li { margin-top: -6px; margin-left: 14px; }
.papers li + li + li { margin-left: 28px; }
.papers strong { display: block; font-family: var(--serif); }
.papers span { font-size: 13.5px; color: var(--ink-muted); }
.fee__cta { margin-top: 44px; }
.fee__cta .micro { margin-top: 10px; }

/* ---------- No.08 FAQ ---------- */
.faq { max-width: 860px; }
.faq__group { margin: 36px 0 6px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--ink-muted); letter-spacing: .12em; }
.faq details { background: #fff; border: 1px solid var(--rule); margin-bottom: 10px; }
.faq summary { list-style: none; display: grid; grid-template-columns: 28px 1fr 20px; gap: 12px; align-items: start; padding: 16px 18px; cursor: pointer; font-family: var(--serif); font-weight: 700; font-size: 16.5px; line-height: 1.6; }
.faq summary::-webkit-details-marker { display: none; }
.faq__q { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; background: var(--ink); color: #fff; font-family: var(--sans); font-size: 13px; }
.faq__arrow { width: 10px; height: 10px; margin-top: 8px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .25s ease; }
.faq details[open] .faq__arrow { transform: rotate(-135deg); }
.faq__a { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 0 18px 18px; font-size: 15px; }
.faq__a p { margin: 0; }
.faq__amark { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 1.5px solid var(--kogecha); border-radius: 50%; font-size: 13px; font-weight: 700; color: var(--kogecha); }

/* ---------- No.09 申し込み ---------- */
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact__side { position: sticky; top: 110px; }
.gets { margin: 18px 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.gets li { padding: 10px 14px; border: 1px solid var(--mizu-line); background: #fff; font-size: 14.5px; }
.gets strong { font-family: var(--serif); }
.examples { margin: 22px 0; }
.examples h3 { margin: 0 0 10px; font-size: 16px; }
.example { margin: 0 0 10px; padding: 12px 16px; background: #fff; border-left: 3px solid var(--ink-muted); font-size: 14.5px; }
.example b { display: block; font-size: 12.5px; color: var(--ink-muted); }
.form-card { background: #fff; border: 1px solid var(--rule); border-top: 5px solid var(--ink); }
.cf-step { display: none; }
.cf-step.active { display: block; }
.form-head { padding: 22px 26px 14px; border-bottom: 1px solid var(--rule); }
.form-head h3 { margin: 0 0 4px; font-size: 19px; line-height: 1.5; }
.form-head p { margin: 0; font-size: 14px; color: var(--ink-muted); }
.form-body { padding: 22px 26px 28px; }
.fg { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.fg > label, .fg > legend { display: block; margin-bottom: 6px; font-weight: 700; font-size: 15px; padding: 0; }
.req, .opt { display: inline-block; margin-left: 8px; padding: 0 7px; font-size: 11.5px; font-weight: 700; line-height: 1.8; vertical-align: .1em; }
.req { background: var(--ink); color: #fff; }
.opt { background: var(--paper-2); color: var(--ink-muted); }
.fg input[type="text"], .fg input[type="email"], .fg input[type="tel"], .fg textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--field-line); border-radius: 3px; background: #fff;
  font: inherit; font-size: 16px; line-height: 1.6; color: var(--ink);
}
.fg textarea { resize: vertical; min-height: 140px; }
.fg .is-err { border-color: var(--shu-ink); box-shadow: 0 0 0 1px var(--shu-ink); }
.fg__help { margin: 6px 0 0; font-size: 13px; color: var(--ink-muted); }
.caution { margin: 0 0 8px; padding: 10px 14px; border: 1px solid var(--ink); background: var(--paper-2); font-size: 14px; font-weight: 700; }
.radios { display: grid; gap: 6px; }
.radios label { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--rule); border-radius: 3px; cursor: pointer; font-size: 15px; }
.radios input { width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.consent { padding: 16px; background: var(--paper-2); }
.consent__text { margin: 0 0 8px; font-size: 13.5px; }
.consent__check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; cursor: pointer; }
.consent__check input { width: 20px; height: 20px; margin-top: 4px; flex: none; accent-color: var(--ink); }
.consent.is-err { box-shadow: inset 0 0 0 2px var(--shu-ink); }
.form-error { display: none; margin: 0 0 14px; color: var(--shu-ink); font-weight: 700; font-size: 14.5px; }
.form-error.visible { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.confirm { margin: 0 0 16px; border-top: 1px solid var(--rule); }
.confirm-row { display: grid; grid-template-columns: 11em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 14.5px; }
.confirm-label { font-weight: 700; }
.confirm-val { white-space: pre-wrap; overflow-wrap: anywhere; }
.confirm-note { font-size: 14px; font-weight: 700; margin: 0 0 18px; }
.form-body .btn + .btn { margin-top: 10px; }
.center-state { padding: 34px 26px; }
.center-state h3 { margin: 0 0 12px; font-size: 20px; }
.center-state ol { margin: 0 0 16px; padding-left: 1.4em; }
.center-state li { margin-bottom: 8px; }
.center-state ul { margin: 0 0 16px; padding-left: 1.2em; }
.spinner { width: 34px; height: 34px; margin: 0 0 12px; border: 3px solid var(--rule); border-top-color: var(--ink); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.seal--done { width: 56px; height: 56px; font-size: 15px; margin-bottom: 12px; }

/* ---------- 最後 要点 ---------- */
.summary { position: relative; padding: var(--pad-m) 0; background: var(--paper); overflow-x: clip; }
.summary.has-photo { background: linear-gradient(90deg, rgba(250, 250, 247, .92) 0%, rgba(250, 250, 247, .6) 100%), url("final.webp") center / cover no-repeat, var(--paper); }
.summary__sheet { max-width: 860px; margin-inline: auto; background: #fff; border: 1px solid var(--field-line); border-top: 2px solid var(--mizu); padding: clamp(24px, 4vw, 44px); }
.summary__sheet h2 { margin: 0 0 18px; font-size: clamp(21px, 1.6vw + 8px, 28px); line-height: 1.5; }
.summary dl { margin: 0; border-top: 1px solid var(--ink); }
.summary dl > div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.summary dt { font-family: var(--serif); font-weight: 700; color: var(--ink-muted); }
.summary dd { margin: 0; }
.mini { display: inline-block; padding: 0 8px; font-size: 13px; font-weight: 700; margin: 2px 0; }
.mini--ai { border: 1.5px dashed var(--draft-line); color: var(--draft); background: var(--draft-bg); }
.mini--staff { border: 1.5px solid var(--shu); color: var(--shu-ink); }
.summary__close { margin-top: 28px; }
.summary__close h3 { margin: 0 0 8px; font-size: 20px; }
.summary__close .btn { margin-top: 10px; }
.print-only { display: none; }

/* ---------- フッター ---------- */
.foot { background: var(--kogecha); color: var(--on-kogecha-muted); padding: 48px 0 calc(32px + env(safe-area-inset-bottom)); }
.foot__inner { display: grid; grid-template-columns: auto 1fr; gap: 24px 48px; align-items: start; }
.foot__brand { display: flex; flex-direction: column; gap: 10px; font-family: var(--serif); font-size: 14px; color: var(--on-kogecha-text); }
.foot__brand img { width: 140px; background: #fff; padding: 6px 10px; border-radius: 3px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 14px; }
.foot__links a, .foot__links a:visited { color: var(--on-kogecha); text-decoration: none; padding: 4px 0; }
.foot__links a:hover { text-decoration: underline; }
.foot__copy { grid-column: 1 / -1; margin: 12px 0 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: 13px; color: var(--on-kogecha-muted); }

/* ---------- 追従ボタン・動きを止める ---------- */
.dock { position: fixed; right: 24px; bottom: 24px; z-index: 40; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.dock.is-show { opacity: 1; transform: none; pointer-events: auto; }
.dock .btn { min-height: 52px; box-shadow: 0 8px 20px -8px rgba(28, 33, 37, .35); }
.motion-off .dock { transition: none; }
.motion-toggle { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; background: rgba(255, 255, 255, .95); border: 1px solid var(--ink); border-radius: 4px; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.motion-toggle--fixed { position: fixed; left: 16px; bottom: 16px; z-index: 39; transition: opacity .25s ease; }
/* FV の主ボタンが見えている間は、左下の固定ボタンを隠す（低い画面で主ボタンに重なるため）。FV では図の下のボタンを使う */
.motion-toggle--fixed.is-hidden { opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s; }
.hero__foot .motion-toggle { display: inline-flex; }

/* ---------- 区画の地（16_色彩戦略 改訂2） ---------- */
.sec--mizu { background: var(--mizu-ground); }
#steps.sec--mizu, #owner.sec--mizu { background: var(--mizu-ground-light); } /* 03・06 はもう一段薄い水色 */
.sec--gray { background: var(--gray-ground); }
.sec--kogecha { background: var(--kogecha); color: var(--on-kogecha-text); }

/* 02 と 03 の境（同じ水色が続く所） */
.sec--mizu + .sec--mizu { box-shadow: inset 0 1px 0 var(--mizu-line); }

/* 水色の地の上 */
.sec--mizu .h2::after { background: var(--kogecha); }
.sec--mizu :is(.ledger__row, .faq__group) { border-color: #fff; }
.sec--mizu .next { border-top-color: #fff; }
.sec--mizu .owner__trust { border-top-color: #fff; }
.sec--mizu .steps .need { border-top-color: #fff; }
.sec--mizu .steps::before { background: var(--kogecha); }
.sec--mizu .midcta { box-shadow: 6px 6px 0 var(--paper); }
.sec--mizu .owner__photo { box-shadow: 12px 12px 0 var(--paper); }

/* 焦げ茶の地の上（地に直接乗る文字） */
.sec--kogecha .h2,
.sec--kogecha .examples h3 { color: var(--on-kogecha); }
.sec--kogecha .h2::after { background: var(--mizu); }
.sec--kogecha .lead { color: var(--on-kogecha-text); }
.sec--kogecha .label,
.sec--kogecha .chips,
.sec--kogecha .memo__stat,
.sec--kogecha .examples > .note { color: var(--on-kogecha-muted); }
.sec--kogecha .label span { border-color: var(--on-kogecha-accent); color: var(--on-kogecha-accent); }
.sec--kogecha .chips li::before { color: var(--on-kogecha-accent); }
.sec--kogecha .memo__stat a { color: var(--on-kogecha); }
.sec--kogecha .next { border-top-color: rgba(255, 255, 255, .3); }
.sec--kogecha .honest { border-left-color: var(--mizu); }

/* 焦げ茶の地の上の白いカード・明るい面：中の文字を墨に戻す */
.sec--kogecha :is(.memo, .pain__stat, .cause, .leaf, .pledges, .gets, .example, .form-card) { color: var(--ink); }

/* 焦げ茶の地の上のフォーカス：白と墨の二重の枠（白いカードの中でも見える） */
.sec--kogecha :focus-visible,
.foot :focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 7px var(--ink); }

/* 追従ボタン：焦げ茶の区画を通るときに埋もれないよう、白い縁 */
.dock .btn { box-shadow: 0 0 0 2px #fff, 0 8px 20px -8px rgba(28, 33, 37, .35); }

/* ---------- 法務ページ ---------- */
.legal-hero { padding: 56px 0 44px; border-bottom: 1px solid var(--rule); }
.legal-hero h1 { margin: 0 0 8px; font-size: clamp(26px, 3vw + 8px, 40px); line-height: 1.4; }
.legal-hero p { margin: 0; color: var(--ink-muted); }
.legal { padding: 48px 0 72px; }
.legal__card { max-width: 920px; margin-inline: auto; background: #fff; border: 1px solid var(--rule); border-top: 2px solid var(--mizu); padding: clamp(22px, 4vw, 40px); }
.legal__card h2 { margin: 30px 0 8px; font-size: 19px; padding-left: 12px; border-left: 3px solid var(--mizu); line-height: 1.6; }
.legal__card > h2:first-child { margin-top: 0; }
.legal__card table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); }
.legal__card th, .legal__card td { padding: 14px 16px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; font-size: 15px; }
.legal__card th { width: 30%; background: var(--paper-2); font-family: var(--serif); }
.legal__card ul { padding-left: 1.3em; }
.legal__back { margin-top: 28px; padding: 18px 20px; background: var(--paper-2); }
.legal__back .micro { margin: 10px 0 0; }
.legal__date { margin-top: 24px; font-size: 13px; color: var(--ink-muted); }

/* ---------- 幅ごと ---------- */
@media (max-width: 1023px) {
  .memo:nth-of-type(odd), .memo:nth-of-type(even) { margin-left: 0; margin-right: 0; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { left: 21px; right: auto; top: 22px; bottom: 22px; width: 1px; height: auto; }
  .steps li { display: grid; grid-template-columns: 44px 1fr; gap: 0 16px; text-align: left; padding-bottom: 18px; }
  .steps li > .num { grid-row: span 3; }
  .steps h3 { margin-top: 8px; }
  .helps { grid-template-columns: 1fr 1fr; }
  .help--main { grid-column: 1 / -1; grid-row: auto; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow li:nth-child(3)::before { content: none; }
  .pledges { grid-template-columns: 1fr 1fr; }
  .pledges li:nth-child(3) { border-left: 0; }
  .hero__visual:not(.no-photo) .hero__sheetwrap { position: relative; left: auto; bottom: auto; width: 100%; margin-top: -40px; }
  .hero__foot { margin-top: 14px; }
}
@media (max-width: 1023px) and (min-width: 761px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact__side { position: static; }
}
@media (max-width: 860px) {
  .pain__grid { grid-template-columns: 1fr; }
  .pain__side { position: static; }
}
@media (min-width: 1024px) and (max-height: 760px) {
  .hero { --hero-pt: 24px; }
  .hero__title { font-size: clamp(30px, 3vw, 40px); margin-bottom: 14px; }
  .hero__for { margin-bottom: 12px; }
  .hero__check { margin-bottom: 16px; }
  .chips { flex-wrap: nowrap; margin-top: 12px; }
  .hero__for { font-size: 14px; padding-bottom: 4px; }
  .hero__sub { font-size: 15px; line-height: 1.8; margin-bottom: .7em; }
  .hero__near { margin-top: 6px; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 32px); }
  .hero__grid { grid-template-columns: 1fr; --hero-gap: 28px; }
  .hero__copy::before { right: -100vw; bottom: calc(var(--hero-gap) / -2); }  /* 文字の列だけ横幅いっぱい */
  .hero__title { font-size: clamp(24px, 6.9vw, 30px); }
  .hero__for { font-size: 14px; }
  .hero__actions .btn { display: flex; width: 100%; min-height: 56px; }
  .hero__photo { aspect-ratio: 4 / 3; }
  .hero__photo img { object-position: center 20%; }
  .hero__foot .motion-toggle { display: inline-flex; }
  .motion-toggle--fixed { display: none; }
  .memo { padding: 18px 18px 18px; }
  .fusen { position: relative; left: auto; right: auto; bottom: auto; margin-top: 10px; transform: none; }
  .memo { margin-bottom: 0; }
  .cause { flex-direction: column; align-items: stretch; min-height: 0; }
  .cause__photo { position: relative; width: 100%; aspect-ratio: 3 / 2; }
  .cause__photo::after { content: none; }
  .cause__text { padding: 28px 20px; }
  .ledger__row { grid-template-columns: 44px 1fr; gap: 0 14px; }
  .ledger__no .num { width: 40px; height: 40px; font-size: 17px; }
  .roles, .roles tbody, .roles tr, .roles th, .roles td { display: block; width: 100%; }
  .roles thead { display: none; }
  .roles tr { border-bottom: 2px solid var(--rule); }
  .roles tbody th { width: 100%; background: var(--paper-2); }
  .roles td { border-bottom: 0; }
  .roles .cell-tag { display: block; font-size: 12px; font-weight: 700; color: var(--ink-muted); }
  .midcta { padding: 20px; }
  .midcta .btn { width: 100%; }
  .helps { grid-template-columns: 1fr; }
  .sample dl { grid-template-columns: 1fr; gap: 2px; }
  .sample dd { margin-bottom: 8px; }
  .useno { grid-template-columns: 1fr; }
  .useno > div + div { border-left: 0; border-top: 1px solid var(--rule); }
  .flow { grid-template-columns: 1fr; gap: 26px; }
  .flow li { min-height: 0; }
  .flow li + li::before { content: "↓" !important; left: 50%; top: -24px; transform: translateX(-50%); }
  .duo { grid-template-columns: 1fr; }
  .promise { padding-right: 24px; padding-top: 64px; }
  .binder { grid-template-columns: 1fr; gap: 44px; }
  .keeps { grid-template-columns: 1fr; }
  .pledges { grid-template-columns: 1fr; }
  .pledges li + li { border-left: 0; }
  .owner { grid-template-columns: 1fr; }
  .owner__photo { width: 200px; }
  .fee { grid-template-columns: 1fr; }
  .papers li + li, .papers li + li + li { margin: 8px 0 0; }
  .fee__cta .btn { width: 100%; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__side { position: static; }
  .form-head, .form-body { padding-left: 18px; padding-right: 18px; }
  .confirm-row { grid-template-columns: 1fr; gap: 2px; }
  .summary dl > div { grid-template-columns: 1fr; gap: 2px; }
  .summary__close .btn { width: 100%; }
  .foot__inner { grid-template-columns: 1fr; }
  .foot { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .page-legal .foot { padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
  .dock { left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--rule); }
  .dock .btn { display: flex; width: 100%; font-size: 15px; }
  .legal__card th { width: 100%; }
  .legal__card table, .legal__card tbody, .legal__card tr, .legal__card th, .legal__card td { display: block; width: 100%; }
  .legal__card th { border-bottom: 0; padding-bottom: 4px; }
}

/* ---------- 印刷（要点を1枚目に） ---------- */
@media print {
  @page { size: A4 portrait; margin: 14mm 15mm; }
  body { display: flex; flex-direction: column; font-size: 10.5pt; line-height: 1.7; background: #fff; color: #000; }
  main { display: flex; flex-direction: column; }
  #summary { order: -1; break-after: page; padding: 0; background: none !important; }
  .summary__sheet { border: 1px solid #000; }
  .nav, .dock, .motion-toggle, .hero__actions, .midcta, .form-card, .fee__cta, .skip, .summary__close .btn, .hero__sublink { display: none !important; }
  .print-only { display: block; }
  .photo-note-bg { display: none !important; }
  [data-rv], [data-rv-list] > *, .fv-step, .fv-arrow, .rowfx > *, .fusen, .tc { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .box::after { clip-path: none !important; }
  .seal { opacity: 1 !important; }
  .sec, .hero { padding: 8mm 0; break-inside: auto; }
  .pain__side, .contact__side { position: static; }
  h2, h3, .flow li, .sheet, .memo, .leaf, .pledges li { break-inside: avoid; }
  img { max-height: 70mm; width: auto; }
  .cause__photo { position: relative; width: auto; }
  .foot { background: none; color: #000; padding: 6mm 0; }
  .foot__links a { color: #000; }
  .foot__copy { color: #000; }
  .hero__copy::before { display: none; }
  .hero { background: none !important; }
  .sec--mizu, .sec--gray, .sec--kogecha { background: none !important; box-shadow: none !important; }
  .sec--kogecha,
  .sec--kogecha :is(.h2, .lead, .label, .chips, .memo__stat, .memo__stat a, .examples h3, .examples > .note) { color: #000 !important; }
  .sec--kogecha .label span { color: #000 !important; border-color: #000 !important; }
  .foot__brand { color: #000; }
}
