/* == generated by tools/make-pages.py — 手で書かない == */
@import url("tokens.css");
@import url("tw.css?v=3641df02");

/* 読む場として名乗る (梯子の切り替えはマスタが用意した口。値は宣言しない) */
:root { --ladder: reading; }

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 1rem 4rem;
  background: var(--washi);
  color: var(--sumi);
  font-family: var(--gothic);
  font-size: var(--tw-fs-lead);
  line-height: var(--lh-reading);
  letter-spacing: 0.02em;
}

/* 器の幅は本文の字で解いた値に固定する (em だと字の小さい行だけ器が縮み、左端がずれる) */
.doc-path, .doc-crumb, .doc, .doc-foot { max-width: calc(34 * var(--tw-fs-lead)); margin-inline: auto; }

/* 細い夜の帯に灯籠と Towrow。その下にパンくず */
.doc-head { margin: 0 -1rem; padding: 0 1rem; }
.doc-bar { display: flex; align-items: center; min-height: 56px; margin: 0 -1rem; padding: 0 1rem; background: var(--inverse-surface); }
.doc-home {
  display: inline-flex; align-items: center; gap: 8px;
  width: 100%; max-width: calc(34 * var(--tw-fs-lead)); margin-inline: auto;
  min-height: 44px;
  color: var(--inverse-on);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.doc-lamp { width: 26px; height: 26px; flex: none; }   /* 灯籠の印 (32px 以下の版、icons/towrow-lantern-small.svg) */
.doc-path { font-size: var(--tw-fs-s); margin-top: 4px; }
.doc-path ol { list-style: none; display: flex; align-items: center; margin: 0; padding: 0; }
.doc-path li { display: flex; align-items: center; margin: 0; }
.doc-path a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.doc-path li:not(:last-child)::after {
  content: ""; width: 6px; height: 6px; margin: 0 9px 0 6px;
  border-top: 1.5px solid var(--muted); border-right: 1.5px solid var(--muted); transform: rotate(45deg);
}
@media (max-width: 991px) {
  .doc-path li { display: none; }
  .doc-path li:last-child { display: flex; }
  .doc-path li:last-child a::before {
    content: ""; width: 8px; height: 8px; margin: 0 8px 0 3px;
    border-bottom: 1.5px solid var(--muted); border-left: 1.5px solid var(--muted); transform: rotate(45deg);
  }
}
/* 段が 1 つだけのパンくず (入口の頁の「Towrow」) は、広い幅でも電話と同じ「‹ Towrow」の形にする。
   印が無いと押せる物でなく札に見え、上の帯のロゴの「Towrow」と同じ語が縦に並ぶ (デザインの席 11/06) */
.doc-path li:only-child a::before {
  content: ""; width: 8px; height: 8px; margin: 0 8px 0 3px;
  border-bottom: 1.5px solid var(--muted); border-left: 1.5px solid var(--muted); transform: rotate(45deg);
}
.doc-crumb {
  margin-top: 0.5rem; margin-bottom: 0;
  font-size: var(--tw-fs-xs);
  letter-spacing: 0.02em;
  color: var(--muted);
}

h1 { font-size: var(--tw-fs-page); line-height: 1.4; letter-spacing: 0.02em; font-weight: 500; margin: 0.4rem 0 0.9rem; }
h2 { font-size: var(--tw-fs-sec); line-height: 1.4; font-weight: 500; margin: 2.4rem 0 0.8rem; }
h3 { font-size: var(--tw-fs-h2); line-height: 1.4; font-weight: 500; margin: 1.6rem 0 0.6rem; }

.doc-lead { font-size: var(--tw-fs-h2); line-height: 1.75; margin: 0 0 1.4rem; }
.doc-note { margin: 0 0 1.1rem; }
.doc-note strong { font-weight: 500; }

.doc-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1.1rem; padding: 0; }
.doc-badges span {
  padding: 0.1rem 0.6rem;
  border: var(--sw-hairline) solid var(--hairline);
  border-radius: var(--tw-radius-s);
  font-size: var(--tw-fs-xs);
  color: var(--muted);
}

.doc-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1.1rem;
  margin: 0 0 1.6rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: var(--sw-hairline) solid var(--hairline);
  border-radius: var(--tw-radius);
  /* 一行幅は当てない。measure は文字を置く要素に当てる規律で、期限・窓口・費用の
     対応表は文字を置く要素ではない (DESIGN.md components.data-table.width
     「器の幅に従う — 表は一行幅の対象外」)。器 = .doc の幅にそのまま従う */
  max-width: none;
}
/* 面の上に muted は置かない (正典の禁則。実 DOM 監査が昼 4.39 で捕まえた) —
   階層は色でなく大きさと字間で作る */
.doc-facts dt { font-size: var(--tw-fs-xs); line-height: 1.8; color: var(--muted); }
.doc-facts dd { margin: 0; font-size: var(--tw-fs-body); line-height: 1.7; }

ul, ol { margin: 0 0 1.4rem; padding-left: 1.4rem; }
.doc-near a { display: flex; align-items: center; min-height: 44px; }  /* 押す所 44 (F6)、トップの .setup-browse a と同じ */
li { margin-bottom: 0.6rem; }
/* 本文の組みの共通規則 (受け入れ検査 2026-11-02: 「答えに合わ/せて」「できま/す」の語の途中の割れ)。
   auto-phrase を持つ系統はこれだけで文節に寄る。持たない系統は phrase.js が html に .phr-js を付け、文節の切れ目に <wbr> を入れる */
:where(p, li, dd, dt, td, th, h1, h2, h3, h4, summary, blockquote, figcaption) { word-break: auto-phrase; }
.phr-js :where(p, li, dd, dt, td, th, h1, h2, h3, h4, summary, blockquote, figcaption) { word-break: keep-all; overflow-wrap: anywhere; }
.nb { white-space: nowrap; }   /* 法の頁の値段の塊 (legal_page の LEGAL_PRICE) */
.phr-g { white-space: nowrap; }   /* phrase.js が包む「開き括弧 + 次の字」 */
.doc-steps li { margin-bottom: 0.9rem; }
.doc-src { font-size: var(--read-caption); max-width: var(--measure-reading); }

/* 本文より小さい文字の散文には、一行幅を**その要素に**当てる。
   器 (.doc) の 34em は本文の大きさで解けるので、中の caption 文字はそのまま伸びて
   40 字を超える (DESIGN.md「measure は器でなく文字を置く要素に当てる。器に当てても
   中の小さい文字は器幅いっぱいに伸びる」)。em はその要素の文字サイズで解けるため、
   同じ 34em を当て直すと 34 *caption* 字になる。
   表 (.doc-facts / .doc-kv) は対象外 — 文字を置く要素ではないので器の幅に従う。 */
.doc-gap, .doc-cta-note, .doc-updated, .doc-quote p { max-width: var(--measure-reading); }

/* 下線は文中のリンクだけ (DESIGN.md link.underline、2026-10-01)。このページのリンクは全部が単独のリンク
   (一覧の題・一次情報の行・足元の送り・CTA) なので、常時の下線を持たない。応えは hover の間だけ */
a { color: var(--ruri); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: var(--sw-hairline); text-underline-offset: 0.22em; }
.doc-src-note { display: block; }
a:focus-visible { outline: var(--sw-voice) solid var(--tw-focus); outline-offset: 3px; }
.doc-home:focus-visible { outline-color: var(--tw-glow); }

/* 補足 (note) の plain。左罫は持たない — 瑠璃の左罫は「よそから来た声」(quote /
   proposal-card) の記号で、ここは自分の声 (DESIGN.md components.note.rule)。
   面 (washi-panel) にもしない — 面の上に muted は置かない禁則に当たるため */
.doc-gap {
  margin: 2.4rem 0 1.6rem;
  font-size: var(--read-caption);
  color: var(--muted);
}

.doc-cta { margin: 2rem 0 0.5rem; }
.doc-cta a {
  display: inline-flex; align-items: center;
  min-height: 48px;
  padding: 0 1.4rem;
  background: var(--tw-btn-bg);
  color: var(--tw-btn-ink);
  border-radius: var(--tw-radius-s);
  font-size: var(--tw-fs-body);
  font-weight: 500;
  text-decoration: none;
}
.doc-cta-note { margin: 0; font-size: var(--read-caption); color: var(--muted); }
/* 入口の頁の 1 画面目の口 — 導入の文の直後。下端の口と同じ形で、上の余白だけ詰める */
.doc-cta-top { margin-top: 1.2rem; }

/* 法的な頁 — 読む場と同じ組み。項目の頁と別の見た目を作らない */
.doc h2 { margin: 2.4rem 0 0.8rem; }
/* `.doc-facts` と同じ理由で **一行幅の対象外だと自分で名乗る** — 表は文字を置く要素では
   ないので器の幅に従う (DESIGN.md components.data-table.width)。宣言しておくと、
   小さい文字の一行幅を見る検査 (check-ui 軸 7) がここを撃たない = 免除を検出器側の
   名簿でなく CSS 側の宣言で持つ */
.doc-kv { width: 100%; border-collapse: collapse; margin: 0 0 1.2rem; max-width: none; }
.doc-kv th, .doc-kv td { text-align: left; vertical-align: top; padding: 0.55rem 0; border-bottom: var(--sw-hairline) solid var(--hairline); }
.doc-kv th { width: 34%; padding-right: 1rem; font-weight: 500; font-size: var(--read-caption); }
.doc-kv td { font-size: var(--read-caption); }
@media (max-width: 30rem) {
  .doc-kv, .doc-kv tbody, .doc-kv tr, .doc-kv th, .doc-kv td { display: block; width: auto; }
  .doc-kv th { border-bottom: 0; padding-bottom: 0.15rem; }
  .doc-kv td { padding-top: 0; }
}
.doc-quote { margin: 0 0 1.2rem; padding: 0.1rem 0 0.1rem 0.9rem; border-left: var(--sw-voice) solid var(--ruri); }
.doc-quote p { margin: 0.4rem 0; font-size: var(--read-caption); }
.doc-updated { font-size: var(--read-caption); color: var(--muted); margin: 2rem 0 0; }

.doc-foot {
  margin-top: 3.5rem;
  padding-top: 1.4rem;
  border-top: var(--sw-hairline) solid var(--hairline);
  font-size: var(--read-caption);
  color: var(--muted);
}
.doc-foot p { margin: 0 0 0.7rem; }
/* 文中・フッター・出典のリンクの押せる範囲を 24px 以上に (WCAG 2.5.8、受け入れ検査 2026-11-02: 21px)。inline のまま上下の padding で広げ、行の組みは変えない */
.doc a, .doc-foot a, .doc-src a { padding-block: 3px; }
/* 項目の一覧の畳み (F13 2026-11-02): 段階 → 小見出しの二段。581 件のリンクは閉じていても HTML に残る */
.doc-fold { border-bottom: var(--sw-hairline) solid var(--hairline); }
.doc-fold .doc-fold:last-child { border-bottom: 0; }
.doc-fold > summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 48px; padding-block: 0.5rem; cursor: pointer; list-style: none; }
.doc-fold.ph > summary { min-height: 64px; }
.doc-fold > summary::-webkit-details-marker { display: none; }
.doc-fold > summary > h3, .doc-fold > summary > h4 { margin: 0; font-size: inherit; font-weight: 500; }
.doc-fold.ph > summary > h3 { font-size: var(--tw-fs-h2); }
.doc-fold > summary > span { flex: none; font-size: var(--tw-fs-s); color: var(--muted); }
.doc-fold > summary > span::after { content: " ＋"; content: " ＋" / ""; }
.doc-fold[open] > summary > span::after { content: " −"; content: " −" / ""; }
/* == /generated == */
