/* LoosePad のサイト: 文書のページ（プライバシーポリシー・利用規約・サポート）の見た目。
   トップのページ（index.html）と同じ、黒い地・白と灰色の文字。色は足さない。
   3つのページは、このファイルを共有する（直す場所を1か所にするため）。 */
:root {
  --bg: #060607; --ink: #F5F5F7; --ink-2: rgba(245,245,247,.74); --ink-3: rgba(245,245,247,.46);
  --line: rgba(255,255,255,.09); --card: rgba(255,255,255,.035);
  --sans: Inter, "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16.5px; line-height: 1.85;
  -webkit-font-smoothing: antialiased; word-break: auto-phrase; }
/* 日本語と英語の切り替え（トップのページ index.html と同じ仕組み）。<html> の data-lang が ja のときは日本語だけ、それ以外のときは英語だけを出す。
   文は <span class="en">…</span><span class="ja">…</span> の形で、2つ並べて入れてある。片方の言葉にしか無い段落は、段落そのものに en / ja を付ける */
:root[data-lang="ja"] .en { display: none; }
:root:not([data-lang="ja"]) .ja { display: none; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 820px; margin-inline: auto; padding-left: max(22px, env(safe-area-inset-left, 0px));
  padding-right: max(22px, env(safe-area-inset-right, 0px)); }

/* 下書きの帯（公開の前に外す） */
.draft, .soon { margin: 0; text-align: center; font-size: 12.5px; color: var(--ink-3); padding: 8px 16px; border-bottom: 1px solid var(--line); }

/* いちばん上 */
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; }
.mark { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(180deg, #5A5A5F, #47474B); box-shadow: 0 2px 0 #1B1B1D;
  display: grid; grid-template-columns: repeat(2, 4px); gap: 4px; place-content: center; }
.mark i { width: 4px; height: 4px; border-radius: 50%; background: #fff; }
/* ロゴの点: 左上・左下・右下の3つは赤、右上だけ白（2026-11-21 依頼者の指定。トップのページの .mark と同じ） */
.mark i:not(:nth-child(2)) { background: #FF453A; }
.links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-left: auto; font-size: 14.5px; }
.links a { color: var(--ink-2); text-decoration: none; }
.links a:hover, .links a[aria-current="page"] { color: var(--ink); }
/* 言葉の切り替えのボタン（EN / 日本語）。見た目は、トップのページの .seg と同じ */
.seg { display: inline-flex; flex: none; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: rgba(0,0,0,.35); }
.seg button { font: 500 13px/1 var(--sans); color: var(--ink-2); background: transparent; border: 0; border-radius: 999px;
  padding: 8px 13px; cursor: pointer; min-height: 38px; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: rgba(255,255,255,.14); color: var(--ink); }
/* 幅の狭い画面: 1段目にロゴと切り替え、2段目に文書へのリンク（横にはみ出さないように、段を分ける。リンクは、これまでどおり右寄せ） */
@media (max-width: 720px) {
  .top .seg { order: 1; margin-left: auto; }
  .top .links { order: 2; flex-basis: 100%; justify-content: flex-end; }
}

/* 本文 */
.doc { padding-block: clamp(36px, 6vw, 72px) clamp(56px, 8vw, 96px); display: grid; gap: 34px; }
.doc header { display: grid; gap: 14px; }
.label { margin: 0; font-size: 13px; font-weight: 500; letter-spacing: 0.06em; color: var(--ink-3); }
h1 { margin: 0; font-size: clamp(28px, 4.4vw, 42px); font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
.lead { margin: 0; color: var(--ink-2); font-size: 17px; max-width: 38em; }
.dates { margin: 0; color: var(--ink-3); font-size: 14px; }
.doc section { display: grid; gap: 12px; padding-top: 30px; border-top: 1px solid var(--line); }
h2 { margin: 0; font-size: 21px; font-weight: 700; line-height: 1.45; text-wrap: balance; }
h3 { margin: 10px 0 0; font-size: 17px; font-weight: 600; line-height: 1.5; }
p, ul, ol, dl { margin: 0; }
.doc p, .doc li, .doc dd { color: var(--ink-2); }
.doc ul, .doc ol { padding-left: 1.3em; display: grid; gap: 6px; }
.doc strong { color: var(--ink); font-weight: 600; }

/* まとめの箱（ページのはじめに置く、短い要点） */
.gist { list-style: none; padding: 20px 22px !important; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.gist li { padding-left: 1.2em; position: relative; }
.gist li::before { content: ""; position: absolute; left: 0; top: 0.78em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }

/* 手順（順番に意味があるもの） */
.steps { list-style: none; padding: 0 !important; counter-reset: step; display: grid; gap: 0 !important; border-top: 1px solid var(--line); }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 2.2em minmax(0, 1fr); gap: 4px 6px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.steps > li::before { content: counter(step); font-size: 22px; font-weight: 600; line-height: 1.5; color: var(--ink); font-variant-numeric: tabular-nums; }
.steps > li > div { display: grid; gap: 4px; min-width: 0; }
.steps b { color: var(--ink); font-weight: 600; }

/* 困ったときの一覧 */
.fix { display: grid; gap: 0; border-top: 1px solid var(--line); }
.fix > div { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.fix dt { color: var(--ink); font-weight: 600; }
.fix dd { margin: 0; }

/* 事業者の表示 */
.facts { display: grid; grid-template-columns: minmax(7em, auto) minmax(0, 1fr); gap: 8px 20px; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; }
@media (max-width: 560px) { .facts { grid-template-columns: minmax(0, 1fr); gap: 2px 0; } .facts dd { margin-bottom: 10px; } }
/* 英語のとき: 見出しの列（dt）が、長い英語の見出しで広がりすぎないように、幅に上限を付ける（上限を超える見出しは、折り返す）。日本語の表示は、変えない */
@media (min-width: 561px) { :root:not([data-lang="ja"]) .facts { grid-template-columns: fit-content(14em) minmax(0, 1fr); } }

/* まだ決まっていない所（公開の前に、必ず埋める） */
.todo { color: var(--ink); border: 1px dashed rgba(255,255,255,.4); border-radius: 6px; padding: 1px 6px; font-size: 0.92em; white-space: normal; }

/* いちばん下 */
.foot { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-block: 22px 40px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); }
.foot .grow { margin-right: auto; }
.foot a { color: var(--ink-3); text-decoration: none; }
.foot a:hover { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
