/* ゲツジの画面（代理店の画面・申込画面）。色は LP（design/lp-saas）と共通、形と太さは毎日使う道具として引き締める
   （白地・細い線・角は 6〜10px・太さは 500〜700。2026-11-07 にユーザーが採用）。
   色・文字・角の丸み・影は :root の変数だけで決め、LP を差し替えたらここを変えれば追従する。
   LP との違いは大きさだけ：画面は毎日使う道具なので見出しを小さく、余白を詰める。
   オレンジ赤（--cta）は「主な行動」だけ、1 画面に 1 つまで（button.cta / a.button.cta）。 */
:root {
  color-scheme: light;
  --bg: #ffffff;          /* 画面の地。カードとは細い線で分ける */
  --surface: #ffffff;
  --tint-blue: #eef2ff;
  --ink: #0f1b3d;          /* LP と同じ紺寄りの文字（2026-11-19） */
  --muted: #4a5578;        /* LP と同じ。白地で 7.5:1 */
  --line: #dfe4f0;          /* LP と同じ青みの線 */
  --line-strong: #7a84a0;  /* 入力欄の枠：白地で 3:1 以上（WCAG 1.4.11） */
  --disabled-bg: #eef0f4; --disabled-line: #d6dae3; --disabled-ink: #5b6475;   /* 押せないボタン：文字は 5:1 前後 */
  --placeholder: #687190; /* 白地で 4.5:1 以上 */
  --blue: #2448d8;          /* ボタン・リンクの青。#2f5bff は淡く見えたので一段濃く（2026-11-20）。ロゴの点は #2f5bff のまま */
  --blue-ink: #1b37b0;
  --cta: #d63a17;
  --cta-hover: #bf3112;
  --ok: #0a7a52;
  --ok-bg: #e6f6ef;
  --warn: #9a5800;
  --warn-bg: #fff4e0;
  --alert: #c03a18;
  --alert-bg: #fff1ec;
  --r-lg: 10px;
  --r: 8px;
  --r-s: 6px;
  --shadow: 0 1px 2px rgba(15,27,61,.06), 0 6px 20px rgba(15,27,61,.06);
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, system-ui, sans-serif;   /* LP と同じ。欧文と数字もヒラギノ（2026-11-19） */
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  /* 旧名（テンプレートの互換） */
  --fg: var(--ink); --accent: var(--blue); --err: var(--alert);
  /* 面と線の細かい段階（2026-11-19、値は前と同じ。色の値は :root だけに置く） */
  --on-fill: #ffffff;   /* 塗りのボタン・印の上の文字 */
  --wash: #f8f9fd;
  --line-soft: #e3e7f2;
  --wash-strong: #eef0f5;
  --hover-grey: #f5f6f8;
  --wash-faint: #fafbfc;
  --info-line: #d6defc;
  --alert-line: #f6cfc3;
  --ok-line: #bfe6d3;
  --wash-grey: #f4f5f8;
  --wash-blue: #f3f5fa;
  --line-grey: #dfe3e8;
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }   /* 横にはみ出した部品で画面全体が横にずれないように（sticky は効いたまま。2026-11-19） */
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.75; letter-spacing: .01em; -webkit-font-smoothing: antialiased; }
/* 太さの上限は 700（2026-11-27、LP と同じ）。b・strong は既定が bolder で、700 の中では 900 になるため固定する */
b, strong { font-weight: 700; }
h1, h2, h3, nav, button, a.button, .brand { font-feature-settings: "palt"; }   /* 約物を詰めるのは見出しと部品だけ（本文は読みやすさを優先） */
a { color: var(--blue); }
a:hover { color: var(--blue-ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }   /* 枠は地の色に対して 3:1 以上（薄めると 2:1 を切る） */

/* 枠：上の帯・本文・下 */
header.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
             padding: 16px 32px; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.brand .mark { width: 30px; height: 30px; flex: none; margin-left: -4px; }
.brand .wm { display: inline-block; transform: skewX(-14deg); letter-spacing: .06em; color: var(--ink); text-decoration: none; }   /* LP と同じ斜体の字形 */
.brand .note { font-weight: 500; font-size: .9rem; margin-left: 4px; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
header.top > nav { min-height: 36px; }   /* ログインの画面（メニューなし）でも上の帯の高さをほかの画面と揃える（2026-11-20） */
nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .92rem; }
nav a:hover { color: var(--ink); }
header.top nav a.on { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
nav form { display: inline; margin: 0; }
nav button { margin: 0; padding: 8px 16px; min-height: 36px; font-size: .9rem; }
main { max-width: 880px; margin: 44px auto 64px; padding: 0 28px; }
footer { text-align: center; color: var(--muted); padding: 36px 16px 44px; }

/* ログインの前の画面：ロゴ・枠 1 つ・下の規約を左右の中央・上寄りに寄せる（auth_base.html。2026-11-20） */
body.auth { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
            padding: max(40px, 8vh) 16px 32px; box-sizing: border-box; }   /* 真ん中より上に（目に入る位置。2026-11-20） */
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 24px; }
.auth-brand .brand { font-size: 1.4rem; }
.auth-brand .brand .mark { width: 40px; height: 40px; }
body.auth main { width: 100%; max-width: 400px; margin: 0; padding: 32px; box-sizing: border-box;
                 background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
body.auth main h1 { font-size: 1.3rem; margin-bottom: 16px; text-align: center; }   /* 題だけ中央。説明の文は左揃えのまま */
body.auth main > :last-child, body.auth main form > :last-child { margin-bottom: 0; }
body.auth main label:first-of-type { margin-top: 24px; }
body.auth main button.cta, body.auth main form > button { width: 100%; }
body.auth footer { padding: 24px 16px 0; }
@media (max-width: 480px) { body.auth main { padding: 24px 20px; } }

/* 見出し：LP と同じ太さ、道具向けの大きさ */
h1 { font-size: 1.6rem; line-height: 1.4; font-weight: 700; letter-spacing: -.01em; margin: 0 0 32px; }
h2 { font-size: 1.2rem; line-height: 1.45; font-weight: 700; margin: 64px 0 20px; }
main > h1 + h2, main > .flash + h2 { margin-top: 32px; }   /* 画面の最初の節は詰める */
h3 { font-size: 1.05rem; line-height: 1.5; font-weight: 700; margin: 36px 0 12px; }
h4 { font-size: 1rem; font-weight: 700; margin: 16px 0 8px; }
.note { color: var(--muted); font-size: .9rem; line-height: 1.5; }
main p { margin: 1.15em 0; }   /* 行間を詰めた分、段落の間は広く（2026-11-08） */

/* フォーム */
label { display: block; margin: 28px 0 8px; font-weight: 700; font-size: .95rem; }
label .note { display: block; font-weight: normal; margin-left: 1.6em; }
label[for] .note, .label-like .note { margin-left: 0; margin-top: 2px; }
.label-like { margin: 28px 0 8px; font-weight: 700; font-size: .95rem; }
.label-like .note { display: block; font-weight: normal; }
input[type=text], input[type=email], input[type=url], input[type=number], input[type=date], input[type=password], select, textarea {
  width: 100%; min-height: 44px; padding: 8px 12px; font: inherit; font-size: 1rem; line-height: 1.4; color: inherit;
  border: 1px solid var(--line-strong); border-radius: var(--r-s); background: var(--surface); }
input::placeholder, textarea::placeholder { color: var(--placeholder); opacity: 1; }
select { padding-right: 32px; }
input[type=number], input[type=date], input.short, select.short { max-width: 16em; }   /* 短い値の欄は横に伸ばさない */
textarea { min-height: 6em; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; margin: 0 8px 0 0; vertical-align: -3px; accent-color: var(--blue); }
label:has(> input[type=checkbox]), label:has(> input[type=radio]) { font-weight: normal; padding: 4px 0; }
fieldset { border: 0; padding: 0; margin: 24px 0 0; background: none; }   /* 枠で囲まない（2026-11-22） */
legend { font-weight: 700; padding: 0; }
form.inline { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 8px 4px 0; }
form.inline input[type=text], form.inline select { width: auto; min-width: 11em; }
form.inline button { margin-top: 0; }

/* ボタン：ふつうは青、控えめは白地に青い線、主な行動はオレンジ赤のピル形（LP の .btn） */
button, a.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px;
  padding: 12px 20px; min-height: 44px; font: inherit; font-size: .95rem; font-weight: 600; line-height: 1.3;
  background: var(--blue); color: var(--on-fill); border: 1px solid var(--blue); border-radius: var(--r-s); cursor: pointer; text-decoration: none;
  transition: background-color .15s, border-color .15s, transform .15s; }
button:hover, a.button:hover { background: var(--blue-ink); border-color: var(--blue-ink); color: var(--on-fill); }
button.secondary, a.button.secondary { background: var(--surface); color: var(--blue); border-color: color-mix(in srgb, var(--blue) 55%, var(--line)); }   /* 線は白地で 3:1 前後 */
button.secondary:hover, a.button.secondary:hover { background: var(--tint-blue); color: var(--blue-ink); }
button.cta, a.button.cta { background: var(--cta); border-color: var(--cta); }
button.cta:hover, a.button.cta:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
button:disabled { background: var(--disabled-bg); border-color: var(--disabled-line); color: var(--disabled-ink); box-shadow: none; cursor: not-allowed; transform: none; }   /* 押せなくても読める濃さ（4.5:1 以上。2026-11-19） */
button:active:not(:disabled), a.button:active { transform: translateY(1px); }   /* 押した瞬間が分かるように */
button.secondary:active:not(:disabled), a.button.secondary:active { background: var(--tint-blue); }
a.button.small, button.small { padding: 8px 16px; min-height: 36px; font-size: .9rem; }
nav button.secondary { color: var(--ink); border-color: var(--line-strong); }
nav button.secondary:hover { background: var(--hover-grey); color: var(--ink); }
button.linklike { background: none; color: var(--blue); padding: 0; margin: 0; min-height: 0; border: 0; border-radius: 0;
  text-decoration: underline; font-weight: 600; font-size: .9rem; cursor: pointer; box-shadow: none; }
button.linklike:hover { background: none; color: var(--blue-ink); }

/* お知らせの帯 */
/* お知らせの帯：地の色だけ（枠線と角丸なし。2026-11-20） */
.flash { padding: 12px 16px; border-radius: 0; background: var(--tint-blue); color: var(--ink); border: 0; }
.flash.error { background: var(--alert-bg); color: var(--alert); }
.flash.ok { background: var(--ok-bg); color: var(--ok); }

/* 表 */
table { border-collapse: collapse; width: 100%; background: var(--surface); font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .95rem; vertical-align: top; }
th { color: var(--muted); font-weight: 700; font-size: .85rem; background: var(--wash); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.table-wrap table { border: 0; }

/* 文字 */
code, .mono { font-family: var(--mono); font-size: .92em; }
code { background: var(--tint-blue); padding: 1px 8px; border-radius: 6px; }
code.wrap-any { overflow-wrap: anywhere; word-break: break-all; }
.codes { columns: 2; font-family: var(--mono); font-size: 1.1rem; }
.qr svg { max-width: 100%; height: auto; background: var(--surface); }
.hp { position: absolute; left: -9999px; }
pre.body, pre.wrap { white-space: pre-wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 16px; }
pre.note { white-space: pre-wrap; font-size: .85rem; max-height: 320px; overflow: auto; }
pre.body.prose { font-family: inherit; font-size: 1.05rem; line-height: 1.95; max-width: 46em; }
details > summary { cursor: pointer; color: var(--blue); font-weight: 600; }

/* 版の差分（段落単位） */
.para { margin: 0 0 8px; }
.para pre.body { margin: 0; }
.para.changed pre.body:not(.old), .para.added pre.body { border-left: 4px solid var(--cta); background: var(--alert-bg); }
.para.removed pre.body { text-decoration: line-through; color: var(--muted); }
.para pre.old { color: var(--muted); background: var(--wash-grey); }
.para > .note { margin: 4px 0; font-weight: 700; color: var(--alert); }

/* 状態の色（ヘルスチェックの段階など）。色と文字の両方で示す */
.lv { display: inline-block; min-width: 4.5em; text-align: center; padding: 1px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700;
      margin-right: 8px; background: var(--wash-strong); color: var(--muted); }
.lv-need { color: var(--alert); font-weight: 700; }
.lv.lv-need { background: var(--alert-bg); color: var(--alert); }
.lv-warn { color: var(--warn); font-weight: 700; }
.lv.lv-warn { background: var(--warn-bg); color: var(--warn); }
.lv.lv-ok { background: var(--ok-bg); color: var(--ok); }
.lv.lv-manual, .lv.lv-unknown { background: var(--tint-blue); color: var(--blue-ink); }
.lv.lv-excluded, .lv.lv-info, .lv.lv-none { background: var(--wash-strong); color: var(--muted); }

/* カード（はじめの手順・ヘルスチェック・下書き・説明） */
.onboard, .draft, details.tip, .health-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }

/* サイトのヘルスチェック */
/* 2026-11-20：箱をやめて下の線で区切る（ダッシュボード・フォームとそろえる）。左右は本文の端に */
.health-item { padding: 24px 0 20px; margin: 0; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.health-item > p:not(.hi-cat):not(.note) { margin: 0 0 4px; }
.health-item ul.mono-list { margin: 4px 0 4px; }
.health-item .health-actions:empty { display: none; }
:not(.health-item) + .health-item { border-top: 1px solid var(--line); margin-top: 16px; }   /* 並びの最初だけ上にも線 */
.health-item h2 { font-size: 1.05rem; margin: 0 0 8px; }
.mono-list { font-size: .9rem; overflow-wrap: anywhere; }
.remedy { background: var(--wash); border: 0; border-radius: 0; padding: 8px 16px; margin: 8px 0; font-size: .95rem; }
.health-actions form.inline input[type=text] { width: 24em; max-width: 100%; }
.health-sum span { margin-right: 8px; }

/* はじめの手順・生成の進み具合：進み具合の帯（済＝緑、いま＝青、まだ＝灰） */
.onboard { padding: 0; margin: 16px 0 12px; border: 0; border-radius: 0; }   /* はじめの手順は外の枠なし（2026-11-20）。段の区切り線と、いまの段の地だけ */
.onboard > h2 { margin: 2px 0 12px; }
/* 進み具合：角丸の札をやめ、段ごとに文字の帯＋下の太い線（2026-11-20）。済み＝緑の線、いま＝青の線・薄い青の地・太字、まだ＝灰の線 */
ol.progress { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0 0 16px; }
ol.progress li { flex: 1 1 0; min-width: 6em; padding: 8px 12px; border-bottom: 3px solid var(--line); font-size: .88rem; font-weight: 600; color: var(--muted); }
ol.progress li.p-done { border-bottom-color: var(--ok); color: var(--ok); }
ol.progress li.p-now { border-bottom-color: var(--blue); background: var(--wash-strong); color: var(--ink); font-weight: 700; }   /* いまの段は少し濃い灰の地（2026-11-20） */
ol.progress.jobsteps { margin: 8px 0 16px; }
.onboard .ob-step { padding: 4px 0; }   /* 段の区切り線はやめた（上の帯で分かる。2026-11-20） */
.onboard .ob-line { margin: 2px 0; }
.onboard .ob-done .ob-line { color: var(--muted); font-size: .88rem; }   /* 済んだ段は小さく控えめに（主役はいまの段） */
.onboard .ob-todo .ob-line { color: var(--muted); }
.onboard .ob-now { background: none; border: 0; border-radius: 0; padding: 16px 0 0; margin: 0; }   /* 地・枠線・角丸なし。いまの段は上の帯で示す（2026-11-20） */
.onboard .ob-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 0 0 8px; }
.onboard .ob-now h3 { margin: 0; font-size: 1.25rem; line-height: 1.3; width: fit-content;
  background: linear-gradient(rgba(255, 236, 0, .55), rgba(255, 236, 0, .55)) no-repeat 0 calc(100% - .14em) / 100% .2em; }   /* 薄い蛍光の下線（文字の高さの 2 割弱。2026-11-20） */
.onboard .ob-now details > summary { font-size: .9rem; }
.onboard .ob-now form + details { margin-top: 24px; }
.onboard a.button { margin: 4px 0; }
.jobbar { margin: 8px 0 12px; }
.jobbar progress { width: 100%; height: 12px; border-radius: 999px; overflow: hidden; appearance: none; border: 0; background: var(--line-soft); }
.jobbar progress::-webkit-progress-bar { background: var(--line-soft); border-radius: 999px; }
.jobbar progress::-webkit-progress-value { background: var(--blue); border-radius: 999px; }
.jobbar progress::-moz-progress-bar { background: var(--blue); border-radius: 999px; }
.jobbar p { margin: 8px 0; }

/* 下書き：文書の形 */
.draft { padding: 24px 32px 12px; margin: 12px 0 20px; max-width: none; }   /* 確定の帯と同じ幅に（2026-11-20） */
.draft .draft-title { font-size: 1.2rem; margin: 2px 0 16px; }
.draft h4 { font-size: 1rem; margin: 48px 0 12px; color: var(--blue-ink); }
.draft .draft-para p { font-size: 1.05rem; line-height: 1.95; white-space: pre-line; margin: 0 0 8px; }
.draft .para-rewrite { margin: 4px 0 8px; }
.draft .para-acts { display: flex; flex-wrap: wrap; gap: 0 8px; align-items: flex-start; }
.draft .para-acts details[open] { flex-basis: 100%; order: 1; }
.draft .para-edit textarea { width: 100%; font: inherit; font-size: 1rem; line-height: 1.8; }
.findings .f-acts form.inline:has(.f-src) { display: flex; flex-direction: row; align-items: center; gap: 8px; }
.findings .f-src { width: 11em; font-size: .85rem; min-height: 36px; padding-top: 4px; padding-bottom: 4px; }   /* ボタンと同じ高さに */
/* 段落の書き直し：開く前は白地の小さなボタン（鉛筆＋文字）。開くと「書き直しをやめる」になり、下に指示の欄（2026-11-08） */
.draft .para-rewrite summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--blue) 55%, var(--line)); border-radius: var(--r-s); background: var(--surface);
  color: var(--blue); font-size: .88rem; font-weight: 600; }
.draft .para-rewrite summary::-webkit-details-marker { display: none; }
.draft .para-rewrite summary:hover { background: var(--tint-blue); color: var(--blue-ink); }
.draft .para-rewrite .when-open, .draft .para-rewrite[open] .when-closed { display: none; }
.draft .para-rewrite[open] .when-open { display: inline; }
.draft .para-rewrite[open] summary { color: var(--muted); border-color: var(--line-strong); }
.draft .para-rewrite form { background: var(--wash); border: 0; border-radius: 0; padding: 4px 16px 16px; margin-top: 12px; }
.draft .para-rewrite form label { margin-top: 16px; }
.draft .para-rewrite form button { margin-top: 12px; }
/* 段落の地の余白は最初から取っておく（色が付いても文字は動かず、窮屈にならない）。左右は外へ出して見出しと頭をそろえる */
/* 書き直しを開いた段落は、本文・［書き直しをやめる］・指示の欄をまとめて 1 つの薄い青の面に（2026-11-09）。
   面の余白は閉じているときから取っておく（開いても文字の位置が動かない） */
.draft .draft-para { margin: 0 -20px 8px; padding: 16px 20px 12px; border-radius: var(--r-lg); transition: background-color .15s; }
.draft .draft-para > p { margin: 0 0 8px; padding: 0; }
.draft .draft-para:has(.para-rewrite[open]) { background: var(--tint-blue); padding-bottom: 20px; }
.draft .draft-para:has(.para-rewrite[open]) .para-rewrite form { background: var(--surface); margin-top: 16px; padding: 8px 20px 20px; }

/* 使用データ一覧（照合用） */
/* 使用データ一覧：小さな文字で詰めた表（2026-11-20） */
table.used { font-size: .8rem; }
table.used th, table.used td { padding: 6px 10px; font-size: .8rem; }
details.used-box .table-wrap { border: 0; border-radius: 0; }
details.used-box table.used tr:last-child td { border-bottom: 0; }   /* 最後の行の線と、一覧の下の線が近く並ばないように */
table.used th { white-space: nowrap; font-size: .75rem; }
table.used td { line-height: 1.45; }
table.used td .note { font-size: .72rem; }
details.used-box { margin: 32px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; }
details.used-box > summary { cursor: pointer; font-weight: 700; font-size: 1rem; color: var(--ink); }
details.used-box > summary .note { font-weight: 400; }
details.used-box[open] > summary { margin-bottom: 8px; }
table.used td.num, .used-list .num { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.used td.nowrap { white-space: nowrap; }
.used-list { line-height: 1.6; }

/* 閉じられる説明（閉じた状態は利用者ごとに保存） */
details.tip { padding: 8px 20px; margin: 8px 0 16px; background: var(--wash); }
details.tip { border: 0; border-radius: 0; }   /* 地の色の部品は地の色だけ（2026-11-22。設定の中は 2026-11-19 から） */
details.tip ul { margin: 12px 0; padding-left: 1.2em; line-height: 1.55; }
details.tip li { margin: 0 0 8px; }
details.tip[open] summary { margin-bottom: 4px; }
/* レポートの画面の頭：題・集計期間・版を左に、［レポートの設定］を右に（2026-11-19） */
.report-head { align-items: flex-start; margin-bottom: 24px; }
.report-head p.sub-h1 { margin: 4px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.report-head .ver { font-size: .82rem; font-weight: 700; padding: 1px 10px; border-radius: 999px; }
.report-head .ver-draft { background: var(--warn-bg); color: var(--warn); }
.report-head .ver-done { background: var(--ok-bg); color: var(--ok); }
.report-head .ver-old { background: var(--wash-grey); color: var(--muted); }
.report-head .sub-h1 .note { margin-left: 12px; }
/* 版の画面：段落は上下の線で区切る（箱なし）。変わった段落は地の色だけ（2026-11-22） */
form.vrestore { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 16px 0 0; }
.vbody { border-top: 1px solid var(--line); max-width: 46em; }
.vpara { border-bottom: 1px solid var(--line); padding: 12px 0; }
.vpara.changed, .vpara.added { background: var(--alert-bg); padding: 12px 16px; }
.vpara p { margin: 0; }
.vtext { white-space: pre-wrap; line-height: 1.95; font-size: 1rem; }
.vmark { font-size: .8rem; font-weight: 700; color: var(--alert); margin-bottom: 4px !important; }
.vpara.removed .vtext { text-decoration: line-through; color: var(--muted); }
.vold { margin-top: 8px; }
.vold > summary { cursor: pointer; font-size: .85rem; color: var(--muted); }
.vold .vtext.old { color: var(--muted); margin-top: 4px; }

/* 選択肢の枠（サイトの追加の GA4・Search Console）：同じ形で並べる */
fieldset.choice { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0 0 2px; margin: 0; background: none; }   /* 枠ではなく下の線で区切る（2026-11-20） */
fieldset.choice legend { float: left; width: 100%; padding: 16px 0 0; margin-bottom: 4px; }   /* float で legend が上の線に食い込まない */
fieldset.choice legend + * { clear: both; }
:not(fieldset.choice) + fieldset.choice { border-top: 1px solid var(--line); margin-top: 16px; }
/* 選ぶ枠に続く入力の欄も、同じ下の線で区切る（2026-11-20） */
fieldset.choice ~ .form-row { border-bottom: 1px solid var(--line); padding: 16px 0 20px; }   /* 上下の余白を選ぶ枠と同じ約 16px・20px に */
fieldset.choice ~ .form-row > label { margin-top: 0; }
fieldset.choice ~ .form-row + button { margin-top: 24px; }   /* 並びの最初の 1 つだけ上にも線（2026-11-20） */
fieldset.choice legend { font-size: .95rem; }
fieldset.choice label { margin: 8px 0; }
fieldset.choice label .note { display: inline; margin-left: 12px; }   /* 名前と補足（ID・種類）を 1 行に（2026-11-20） */

/* 手順の枠（権限の付け方など）：1 段 1 枠、画面の道順は「→」で区切ったチップ、行間は詰め気味 */
/* コピーして使う値（SA のアドレスなど）：目立つ枠・1 クリックで全部を選べる（user-select: all。JS なし） */
/* 2026-11-20：薄い青の地・半分の青の枠・青の題・青の点線が重なってもやっとしていた → 白地に灰の細い線、題は文字の色、青はコピーする値の欄だけ */
.copy-box { background: none; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; padding: 16px 0 12px; margin: 12px 0 16px; }   /* 枠ではなく上下の線で区切る（サイトの追加のフォームとそろえる。2026-11-20） */
.copy-box p { margin: 0 0 8px; line-height: 1.5; }
.copy-label { font-weight: 700; font-size: .9rem; color: var(--ink); }
.copy-value { font-family: var(--mono); font-size: 1.05rem; font-weight: 700; background: var(--tint-blue); border: 0;
              border-radius: var(--r-s); padding: 8px 12px; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; cursor: copy; }
/* 手順も箱ではなく下の線で区切る（コピーの枠・サイトの追加のフォームとそろえる。2026-11-20） */
ol.steps-box { list-style: none; counter-reset: step; padding: 0; margin: 0 0 12px; display: grid; gap: 0; }
.copy-box + ol.steps-box { margin-top: -16px; }
ol.steps-box + .copy-box { margin-top: -12px; border-top: 0; }   /* 手順の最後の線を、転送の案内文の上の線として続ける（線が 2 本にならない） */   /* コピーの枠の下の線を、手順の区切りの線として続ける */
ol.steps-box > li { counter-increment: step; position: relative; background: none; border: 0; border-bottom: 1px solid var(--line);
                    border-radius: 0; padding: 16px 0 12px 40px; line-height: 1.6; }
ol.steps-box > li::before { content: counter(step); position: absolute; left: 0; top: 16px; width: 26px; height: 26px; border-radius: 50%;
                            background: var(--tint-blue); color: var(--blue); font-weight: 700; font-size: .9rem; display: grid; place-items: center; }
ol.steps-box p { margin: 0 0 8px; }
ol.steps-box .step-title { font-weight: 700; }
ol.steps-box .step-path { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 2px; font-size: .9rem; }
ol.steps-box .step-path span { position: relative; background: var(--wash-blue); border: 0; border-radius: 0; padding: 1px 8px; }
ol.steps-box .step-path span + span { margin-left: 24px; }
ol.steps-box .step-path span + span::before { content: "→"; position: absolute; left: -19px; color: var(--muted); font-weight: 700; }
details.forward { margin: 4px 0 8px; }
details[open] + form { margin-top: 48px; }   /* 開いた説明（権限の付け方など）とすぐ下のフォームを離す（2026-11-20） */
details.forward .copy-box { margin-top: 8px; }
.copy-value.copy-text { font-family: var(--font); font-size: .95rem; font-weight: 500; line-height: 1.75; white-space: pre-line; }

/* 下書きの表示の切り替え（PDF の形／書き直す） */
nav.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin: 8px 0 24px; }
nav.tabs a { padding: 8px 16px; font-weight: 700; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
nav.tabs a:hover { color: var(--blue); }
nav.tabs a.on { color: var(--blue); border-bottom-color: var(--blue); }
/* 狭い画面ではタブが 2 段に折れて下線の形が崩れるので、全部が見える格子にする（横スクロールだと今のタブが隠れることがある。2026-11-19） */
@media (max-width: 640px) {
  nav.tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5em, 1fr)); gap: 8px; border-bottom: 0; }
  nav.tabs a { padding: 8px 12px; margin: 0; text-align: center; border: 1px solid var(--line); border-radius: var(--r); }
  nav.tabs a.on { background: var(--tint-blue); border-color: var(--blue); }
}
.pdfview { margin: 0; }   /* 本文の幅（880px − 余白）に A4 の幅（約 794px）が入る */
.pdfview iframe { display: block; width: 100%; height: 82vh; min-height: 560px; border: 1px solid var(--line); border-radius: var(--r-lg);
                  background: var(--surface); box-shadow: var(--shadow); }

@media (max-width: 640px) {
  main { margin: 24px auto 40px; padding: 0 16px; }
  ul.site-rows > li { padding: 20px 0; }
  .draft { padding: 16px 16px 8px; }
  header.top { padding: 12px 16px; }
}

/* ダッシュボード：サイトごとの状態（1 サイト 1 枠。上＝サイト名を横幅いっぱい、下の左＝件数と設定、下の右＝レポート。狭いと積む） */
/* 2026-11-20：外の枠をやめ、フォームと同じく上下の線で区切る。左右の余白は本文の端にそろえる */
ul.site-rows { list-style: none; padding: 0; margin: -16px 0 12px; border: 0; border-radius: 0; background: none; }   /* 上の線は題の下の紺の線が兼ねる */
ul.site-rows > li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "name name settings" "span span ." "meta report report";
                    gap: 12px 24px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.sr-site { display: contents; }
.sr-site h2 { grid-area: name; margin: 0; font-size: 1.02rem; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.sr-span { grid-area: span; margin: -8px 0 2px; font-size: .82rem; color: var(--muted); line-height: 1.5; }
.sr-meta { grid-area: meta; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; margin: 0; font-size: .88rem; }
.sr-meta a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; font-weight: 500; }
.sr-meta a:hover { color: var(--blue); text-decoration-color: currentColor; }
.sr-settings { grid-area: settings; justify-self: end; align-self: start; display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 12px;
               margin: -4px -12px 0 0; border-radius: var(--r-s); font-size: .85rem; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; }
.sr-settings:hover { background: var(--hover-grey); color: var(--ink); }
/* 件数は色付きの地をやめ、点＋文字（色だけに頼らず「注意」「重大」の文字も出す） */
.sr-meta .lv { margin: 0 0 0 8px; min-width: 0; padding: 0; background: none; font-weight: 600; border-radius: 0; }
.sr-meta .lv::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 4px; vertical-align: 1px; }
.sr-report { grid-area: report; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }   /* ボタンの下に状態の小さな文字 */
.sr-report p { margin: 0; line-height: 1.6; }
.sr-older a { color: var(--warn); font-weight: 600; }   /* 前の月の未確定の下書き（文字で「未確定」と書く。色だけに頼らない） */
.sr-report a.button { margin: 0; }
@media (max-width: 640px) { ul.site-rows > li { grid-template-columns: 1fr; grid-template-areas: "name" "span" "meta" "report" "settings"; }
                            .sr-settings { justify-self: start; }
                            .sr-report { align-items: flex-start; } }

/* 画面には出さず読み上げだけ（表の操作の列の見出しなど） */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* 長い設定の画面の目次（ページ内のリンク） */
nav.toc { display: flex; flex-wrap: wrap; gap: 8px 8px; margin: -8px 0 8px; }
nav.toc a { font-size: .88rem; font-weight: 500; color: var(--ink); text-decoration: none; padding: 4px 12px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); }
nav.toc a:hover { border-color: var(--blue); }
h2[id] { scroll-margin-top: 16px; }
/* 2 つの短い欄を横に並べる（下限と上限など） */
.pair { display: flex; flex-wrap: wrap; gap: 0 20px; }
.pair label { margin-top: 12px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  button.cta:hover, a.button.cta:hover { transform: none; }
}

/* レポートの一覧（2026-11-08）：月ごとの行。状態は点＋文字（ダッシュボードと同じ） */
/* サイトごとに 1 枚のカード（2026-11-09）。地は白・細い線で分ける（ダッシュボード・下書き・ヘルスチェックと同じ作法。灰色の地は使わない） */
/* サイトのまとまり（2026-11-22）：サイトの頭に濃い 2px の線とサイト名を大きく、サイトの間は広く空ける。
   中の小見出し（四半期・年次、途中経過）は小さく灰にして、サイト名と同じ段に見えないように */
.report-site { padding: 0 0 8px; border-top: 2px solid var(--ink); }
.report-site + .report-site { margin-top: 56px; }
.report-site > h2 { font-size: 1.45rem; margin: 16px 0 12px; }
nav.toc.filter + .report-site, form.site-pick + .report-site { margin-top: 32px; }
.report-site h3 { font-size: .95rem; color: var(--muted); }
table.months td.span { white-space: nowrap; }   /* 集計期間（9/21〜10/20）を 2 行に折らない */
.report-site table.months tbody tr:last-child th, .report-site table.months tbody tr:last-child td { border-bottom: 0; }

table.months { margin-top: 4px; }
table.months th[scope=col] { background: none; border-bottom-color: var(--line-strong); padding-top: 4px; padding-bottom: 8px; }
table.months th[scope=col]:first-child { width: 9em; }
table.months th[scope=col]:nth-child(2) { width: 9em; }
table.months tbody th { background: none; color: var(--ink); font-size: .95rem; font-weight: 600; }
table.months tbody th a { color: var(--blue-ink, var(--blue)); }
table.months td { vertical-align: middle; }
table.months tbody th, table.months td { padding-top: 12px; padding-bottom: 12px; }
table.months .lv, .report-site .lv, table.log .lv, table.versions .lv { min-width: 0; padding: 0; background: none; border-radius: 0; font-weight: 600; font-size: .92rem; }
table.months .lv::before, .report-site .lv::before, table.log .lv::before, table.versions .lv::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 8px; vertical-align: 1px; }
.lv.lv-run { color: var(--blue); }
.report-site h3 { margin-top: 32px; }   /* 大きさと色はサイトのまとまりの所 */
ul.partials { margin: 12px 0 0; padding-left: 1.2em; }
ul.partials li { margin: 4px 0; }
.report-site form.inline { margin-top: 0; }
.report-site form.inline label { margin: 0 4px 0 0; }
.report-site form.inline input[type=date] { width: 11em; }
.report-site form.inline + .note { margin-top: 8px; }
nav.toc.filter a.on { border-color: var(--ink); background: var(--ink); color: var(--on-fill); }
p.crumb { margin: 0 0 8px; font-size: .88rem; }
p.crumb a { color: var(--muted); }
p.crumb a::before { content: "← "; }
p.crumb + h1 { margin-top: 0; }
/* 2 段階認証の設定（2026-11-08）：キーは大きく、otpauth の 1 行も 1 クリックで選べる枠に */
h2.h-step { font-size: 1.1rem; margin: 40px 0 12px; padding-top: 28px; border-top: 1px solid var(--line); }
h2.h-step label { margin: 0; font-size: inherit; }
.qr svg { display: block; }
p.lead-s { margin: -4px 0 12px; font-size: .93rem; color: var(--muted); }
.copy-value.copy-key { font-size: 1.3rem; letter-spacing: .06em; padding: 12px 16px; }
.copy-value.copy-uri { font-size: .9rem; font-weight: 500; line-height: 1.6; }
/* アプリごとの入れ方：アプリ名の行、その下に手順（手順はアプリ名の横から回り込ませない。2026-11-20） */
ul.app-steps { margin: 12px 0 4px; padding: 0; list-style: none; line-height: 1.6; }
ul.app-steps li { margin: 0 0 16px; }
ul.app-steps strong { display: block; color: var(--ink); font-weight: 600; }   /* アプリ名の行の下に手順（2 列は目が左右に飛んで読みにくかった） */
/* QR の右に 6 桁の欄（狭い画面では下に）。欄は 1 つのまま 6 マスに見せる（貼り付け・自動入力が効く。JS なし） */
.totp-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 56px; align-items: start; border-top: 1px solid var(--line); margin-top: 32px; padding-top: 28px; }
.totp-top h2.h-step { border-top: 0; margin-top: 0; padding-top: 0; }
.totp-top .qr svg { margin-left: -20px; }   /* QR の白い余白の分、見出しの頭とそろえる */
.otp-form .note { margin: 12px 0 0; max-width: 26em; }
.otp-form button { margin-top: 20px; }
@media (max-width: 640px) { .totp-top { grid-template-columns: 1fr; } }
/* スマホで開いているときは同じ画面の QR を読み取れないので、キー → 1 行 → 6 桁のコード → QR の順に（押せる部品は 6 桁の欄とボタンだけなので、移動の順は変わらない。2026-11-19） */
@media (max-width: 640px) {
  .totp-flow { display: flex; flex-direction: column; }
  .totp-flow .totp-top { display: contents; }
  .totp-flow .totp-manual { order: 1; }
  .totp-flow .totp-uri { order: 2; }
  .totp-flow .otp-form { order: 3; }
  .totp-flow .totp-qr { order: 4; }
  .totp-flow .totp-manual > h2.h-step:first-child { margin-top: 24px; }
  .totp-flow .otp-form > h2.h-step, .totp-flow .totp-qr > h2.h-step { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
}
/* 6 つの角丸のマス（span）の上に、透明な 1 つの欄を重ねる。数字は字送りでマスの中央に（ch＝数字の幅） */
.otp-wrap { --c: 2.9ch; --w: 2.4ch; position: relative; display: inline-flex; gap: calc(var(--c) - var(--w));
  font-family: var(--mono); font-size: 1.75rem; font-weight: 600; }
.otp-wrap span { width: var(--w); height: 54px; box-sizing: border-box; border: 1px solid var(--line-strong); border-radius: var(--r-s); background: var(--surface); }
.otp-wrap:focus-within span { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
input.otp { position: absolute; inset: 0; width: calc(100% + 1ch); max-width: none; height: 54px; min-height: 0; box-sizing: border-box; margin: 0;
  padding: 0 0 0 calc((var(--w) - 1ch) / 2); border: 0; border-radius: 0; background: transparent;
  font: inherit; font-variant-numeric: tabular-nums; letter-spacing: calc(var(--c) - 1ch); line-height: 54px; }
input.otp:focus { border: 0; outline: 0; }
p.lead + p.note { margin-top: -8px; }
/* 題名の右に、その画面の 2 番目の行動（ダッシュボードの［＋ サイトを追加］）。2026-11-08 */
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin: 0 0 32px; }
.page-head h1 { margin: 0; }
.page-head .button { margin: 0; }
.page-head .note { margin: 0; }
p.ob-after { color: var(--muted); }
.sr-meta > .lv:first-child { margin-left: 0; }

/* 登録の直後の準備の進み具合（全体の帯・いまの段・残りの目安。2026-11-08） */
.sr-meta .sr-setup { flex-basis: 100%; display: flex; flex-direction: column; gap: 8px; max-width: 34em; }
.sr-setup-head { font-weight: 600; color: var(--ink); }
.sr-setup-head .note { font-weight: 500; }
.sr-setup progress { width: 100%; height: 8px; border-radius: 999px; overflow: hidden; appearance: none; border: 0; background: var(--line-soft); }
.sr-setup progress::-webkit-progress-bar { background: var(--line-soft); border-radius: 999px; }
.sr-setup progress::-webkit-progress-value { background: var(--blue); border-radius: 999px; }
.sr-setup progress::-moz-progress-bar { background: var(--blue); border-radius: 999px; }
.sr-setup-steps { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .8rem; color: var(--muted); }
.sr-setup-steps .now { color: var(--blue); font-weight: 700; }
.sr-setup-steps .done { color: var(--ok); }
.sr-setup .note { font-size: .8rem; }
.label-like + label { margin-top: 8px; }
.draft .draft-para .para-rewrite p.note { font-size: .85rem; line-height: 1.5; white-space: normal; margin: 12px 0 0; }

/* 要確認の数字：1 件ごとに［第 N 段落を書き直す］と［正しいと確かめた］（2026-11-08）。まだのものには計算の見当（2026-11-09） */
ul.findings { list-style: none; padding: 0; margin: 16px 0 12px; display: grid; gap: 8px; }
li.finding { display: grid; grid-template-columns: 6em minmax(0, 1fr); column-gap: 16px; align-items: center;
  padding: 10px 16px; border: 1px solid var(--alert-line); border-radius: var(--r-s); background: var(--surface); }
li.finding.is-done { border-color: var(--ok-line); background: var(--wash-faint); }
li.finding p { margin: 0; }
li.finding .f-num { font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; overflow-wrap: anywhere; }
li.finding.is-done .f-num { color: var(--muted); }
li.finding .f-state { display: flex; align-items: center; gap: 12px; font-size: .85rem; }
li.finding .f-state .lv { margin: 0; }
li.finding .f-para { color: var(--muted); }
li.finding .f-ctx { margin-top: 4px; line-height: 1.5; }
li.finding .f-ctx mark { background: var(--alert-bg); color: inherit; font-weight: 700; padding: 0 2px; border-radius: 3px; }
li.finding.is-done .f-ctx mark { background: var(--ok-bg); }
li.finding .f-who { margin-top: 4px; }
li.finding .f-calc { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; row-gap: 2px; }
li.finding .f-calc-k { font-size: .8rem; font-weight: 700; color: var(--muted); }
li.finding .f-calc-v { font-weight: 700; font-variant-numeric: tabular-nums; background: var(--tint-blue); padding: 1px 8px; border-radius: 0; }
li.finding .f-calc .note { flex-basis: 100%; }
li.finding .f-basis { flex: 1 1 20em; line-height: 1.5; }
li.finding .f-hints ul { margin: 0; padding: 0; list-style: none; flex: 1 1 20em; }
li.finding .f-hints li { font-family: var(--mono, ui-monospace, monospace); font-size: .85rem; background: var(--tint-blue); padding: 1px 8px; overflow-wrap: anywhere; }
li.finding .f-hints li + li { margin-top: 2px; }
li.finding .f-todo { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; row-gap: 2px; line-height: 1.5; font-size: .92rem; }
li.finding .f-todo-k { font-size: .8rem; font-weight: 700; color: var(--ink, inherit); flex: none; }
/* 操作は抜粋の下に横 1 列（縦 3 段で背が高かった。2026-11-22） */
li.finding .f-acts { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
li.finding .f-acts .button, li.finding .f-acts button { width: auto; text-align: center; }
li.finding .f-acts .button, li.finding .f-acts button, li.finding form.inline { margin: 0; }
@media (max-width: 720px) {
  li.finding { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
  li.finding .f-acts { grid-column: 1; justify-content: flex-start; }
}
/* 押せない状態は見た目でも分かるように（薄く・矢印の形を変える）。理由はそばの文で示す */
label.is-disabled { color: var(--muted); cursor: not-allowed; }
input:disabled { cursor: not-allowed; opacity: .55; }
button:disabled, button:disabled:hover { cursor: not-allowed; }   /* 薄くしない（上の --disabled-* で 5:1 前後。2026-11-19） */
p.confirm-blocked { color: var(--alert); font-weight: 600; }
/* 確定の操作の枠：チェック・ボタン・理由を 1 つのまとまりに見せる */
/* 確定の帯：設定の保存と同じく画面の下に付いてくる（2026-11-20）。左にチェック、右にボタン */
/* 大事な操作なので地の色で目立たせる（薄いオレンジ＋上にボタンと同じ色の線）。浮いている間だけ上に影（scroll-state。対応しないブラウザは影なし） */
form.confirm-box { position: sticky; bottom: 0; z-index: 5; margin: 32px 0 0; container-type: scroll-state; }
form.confirm-box .confirm-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
                   padding: 16px 20px 18px; background: #fff5ef; border-top: 2px solid var(--cta); transition: box-shadow .2s; }
@container scroll-state(stuck: bottom) {
  form.confirm-box .confirm-inner { box-shadow: 0 -10px 28px rgba(15, 27, 61, .14); }
}
form.confirm-box label { margin: 0; flex: 1 1 24em; }
form.confirm-box label .note { display: block; margin: 2px 0 0 1.9em; font-weight: 400; font-size: .8rem; }
form.confirm-box button { margin: 0; flex: none; }
form.confirm-box p.confirm-blocked { margin: 0; flex-basis: 100%; }
p.sub-h1 { margin: -24px 0 28px; color: var(--muted); font-size: .9rem; }
/* お知らせの一覧（2026-11-08）：1 件 1 行。重要度は点＋文字、題を太く、サイトと日付は小さく */
nav.tabs + nav.toc.filter { margin-top: 16px; }
ul.alert-rows { list-style: none; padding: 0; margin: 20px 0 0; border-top: 1px solid var(--line); }
ul.alert-rows li { display: grid; grid-template-columns: 4.5em minmax(0, 1fr); column-gap: 12px; row-gap: 2px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
ul.alert-rows .lv { grid-row: span 2; align-self: start; margin-top: 2px; min-width: 0; padding: 0; background: none; border-radius: 0; font-weight: 600; font-size: .88rem; text-align: left; }
ul.alert-rows .lv::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 8px; vertical-align: 1px; }
ul.alert-rows .ar-title { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
ul.alert-rows .ar-title:hover { color: var(--blue); text-decoration-color: currentColor; }
ul.alert-rows .ar-meta { font-size: .85rem; color: var(--muted); }
p.empty { color: var(--muted); margin-top: 20px; }
ul.weekly-list { list-style: none; padding: 0; margin: 12px 0 0; }
ul.weekly-list li { display: flex; gap: 16px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
ul.weekly-list .wl-date { color: var(--muted); font-size: .9rem; min-width: 6.5em; font-variant-numeric: tabular-nums; }
/* 作成の履歴（ログ）：小さい文字・詰めた行・折り返さない。狭い画面は横に流す（2026-11-09） */
.table-scroll { overflow-x: auto; }
table.log { font-size: .85rem; width: 100%; }
table.log th, table.log td { padding: 8px 12px; white-space: nowrap; vertical-align: middle; }table.log th { font-size: .78rem; }
table.log .num { text-align: right; font-variant-numeric: tabular-nums; }
table.log .lv { font-size: .85rem; }
table.log .note { font-size: .78rem; }

/* 設定の画面（2026-11-09）：節ごとに 1 枚のカード、短い値の欄は横に並べる（右の空きを減らして締める） */
/* 2026-11-22：箱をやめて、節のあいだを線で区切る（最初の節の上は、タブ・題の線が兼ねる） */
.set-card { padding: 0 0 32px; margin: 0; }
.set-card ~ .set-card { border-top: 1px solid var(--line); }
.set-card > h2:first-child { margin-top: 28px; }
:not(.set-card) + .set-card > h2:first-child { margin-top: 8px; }
nav.toc + form > .set-card:first-of-type, nav.toc + .set-card { margin-top: 20px; }
.set-card > form > button, .set-card > button { margin-top: 24px; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(14em, 1fr)); column-gap: 24px; align-items: end; }
.fields > div > label { margin-top: 24px; }
.fields input.short, .fields select.short { max-width: none; }
.fields input, .fields select { width: 100%; }
input.mid, select.mid { max-width: 30em; }
p.save-bar { display: flex; align-items: center; gap: 16px; margin: 20px 0 0; }
p.save-bar button { margin: 0; flex: none; white-space: nowrap; }   /* ボタンの名前は折らない（横の説明の方を折る。2026-11-23） */
/* 長いフォームの保存：フォームの終わりまで画面の下に付いてくる（設定の画面。2026-11-10） */
p.save-bar.sticky { position: sticky; bottom: 0; z-index: 5; margin: 20px 0 0; padding: 12px 0 16px; background: var(--bg); border-top: 1px solid var(--line); }
@media (max-width: 720px) { p.save-bar.sticky .note { display: none; } }   /* 狭い画面はボタンだけ（説明はボタンの名前で足りる） */
@media (max-width: 720px) { .set-card { padding: 0 0 24px; } }
.set-card > h2 { margin-bottom: 8px; }
.set-card > h2 + p.note { margin-top: 4px; }
.fields > div > label { margin-top: 20px; }
.set-card fieldset > label { margin: 16px 0 0; }
.set-card fieldset > label:first-of-type { margin-top: 8px; }
.set-card fieldset .pair label { margin-top: 12px; }

/* サイトの絞り込み（2026-11-09）：ボタンは長い名前を 1 行で切る。狭い画面では折り返さず横に流す。5 つ以上はプルダウン */
nav.toc.filter a { max-width: 18em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 720px) {
  nav.toc.filter { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  nav.toc.filter a { flex: 0 0 auto; }
}
form.site-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 8px; }
form.site-pick label { margin: 0; font-size: .9rem; }
form.site-pick select { width: auto; min-width: 14em; }
form.site-pick button { margin: 0; }
form.site-pick + .report-site { margin-top: 24px; }
nav.tabs + form.site-pick { margin-top: 16px; }

/* グローバルナビ：広い画面は横並び、720px 以下は［メニュー］（details）で開くパネル（2026-11-09） */
header.top { position: relative; }
.gnav-wide { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.gnav-menu { display: none; }
@media (max-width: 720px) {
  header.top { flex-wrap: nowrap; }
  .brand .note { display: none; }          /* 狭い画面ではホスト名を省く（ログインの画面と設定に出ている） */
  .gnav-wide { display: none; }
  .gnav-menu { display: block; }
  header.top > nav { min-height: 44px; }
  .gnav-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px;
    border: 1px solid var(--line-strong); border-radius: var(--r-s); font-size: .9rem; font-weight: 600; cursor: pointer; color: var(--ink); }
  .gnav-menu summary::-webkit-details-marker { display: none; }
  .gnav-menu .i-close { display: none; }
  .gnav-menu[open] .i-open { display: none; }
  .gnav-menu[open] .i-close { display: inline; }
  .gnav-panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: var(--surface);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 16px 16px; display: flex; flex-direction: column; }
  .gnav-panel a { display: block; padding: 12px 4px; font-size: 1rem; color: var(--ink); border-bottom: 1px solid var(--line); }
  header.top .gnav-panel a.on { text-underline-offset: 6px; }
  .gnav-panel form { display: block; margin-top: 16px; }
  .gnav-panel button { width: 100%; }
}

/* お知らせの設定：送る時刻を種類ごとに 1 行（2026-11-09） */
.sched { margin-top: 16px; border-top: 1px solid var(--line); }
.sched-row { display: grid; grid-template-columns: 11em minmax(0, 1fr); column-gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sched-k { font-weight: 700; font-size: .95rem; }
.sched-desc { flex-basis: 100%; }   /* 説明は選ぶ欄の下の行に */
.sched-v { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 8px; }
select.tiny { width: auto; min-width: 0; max-width: none; padding-top: 8px; padding-bottom: 8px; min-height: 40px; }
fieldset.inline-checks { border: 0; padding: 0; background: none; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: center; }
fieldset.inline-checks legend { font-weight: 700; font-size: .95rem; padding: 0; margin-bottom: 8px; width: 100%; }
fieldset.inline-checks label, .set-card fieldset.inline-checks > label:first-of-type, .set-card fieldset.inline-checks > label.check { margin: 0; font-weight: 500; }
@media (max-width: 640px) { .sched-row { grid-template-columns: 1fr; row-gap: 8px; } }

/* サイトの設定：お知らせの基準の上書き（2026-11-09） */
details.th-override { margin-top: 28px; padding: 0 20px 16px; }
details.th-override > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 16px 0 8px; font-weight: 700; cursor: pointer; }
details.th-override > summary .lv { margin: 0; }
p.br-state { margin: 4px 0 0; } p.br-state .lv { margin: 0 4px 0 0; }
p.br-state + details.th-override { margin-top: 12px; }
details.th-override h3:first-of-type { margin-top: 16px; }

/* 右上の自分のメニュー（2026-11-09）：［メールアドレス ▾］で開く。アカウント・管理・ログアウト */
.me-menu { position: relative; margin-left: 8px; }
.me-menu > summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 4px 12px;
  border: 1px solid var(--line); border-radius: var(--r-s); color: var(--muted); font-size: .88rem; font-weight: 500; cursor: pointer; }
.me-menu > summary::-webkit-details-marker { display: none; }
.me-menu > summary:hover, .me-menu[open] > summary { color: var(--ink); border-color: var(--line-strong); }
.me-menu > summary.on { color: var(--ink); border-color: var(--ink); }
.me-mail { max-width: 16em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 15em; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 8px 0; display: flex; flex-direction: column; }
.me-panel a { display: block; padding: 12px 16px; color: var(--ink); font-size: .92rem; }
.me-panel a:hover { background: var(--tint-blue); }
header.top .me-panel a.on { text-decoration: none; font-weight: 700; background: var(--tint-blue); }
.me-panel form { display: block; padding: 8px 16px 8px; margin: 8px 0 0; border-top: 1px solid var(--line); }
.me-panel button { width: 100%; margin: 0; }
p.me-who { margin: 4px 16px 8px; font-size: .8rem; overflow-wrap: anywhere; }
.gnav-me { margin-top: 12px; padding-top: 4px; border-top: 1px solid var(--line-strong); }
.gnav-me p.me-who { margin: 12px 4px 2px; }

/* 管理（2026-11-09）：題は「管理」1 つ、その下にタブ。表は小さい字の記録の形 */
h1.admin-h1 { margin-bottom: 16px; }
h1.admin-h1 + nav.tabs { margin-top: 0; }
p.admin-lead { margin: 20px 0 16px; }
table.log.audit td.detail { white-space: normal; min-width: 14em; color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
table.log.people td { vertical-align: middle; }
table.log.people form.inline { margin: 0 4px 0 0; }
table.kv { width: auto; min-width: 28em; }
table.kv th[scope=row] { width: 9em; white-space: nowrap; background: none; color: var(--muted); font-weight: 600; font-size: .88rem; }

/* お知らせ 1 件（2026-11-09） */
p.alert-eyebrow { display: flex; align-items: center; gap: 12px; margin: 8px 0 8px; font-size: .9rem; color: var(--muted); }
p.alert-eyebrow .lv { min-width: 0; padding: 0; background: none; font-size: .9rem; }
p.alert-eyebrow .lv::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; margin-right: 8px; vertical-align: 1px; }
h1.alert-h1 { margin: 0 0 32px; }
h1.alert-h1 + p.sub-h1 { margin-top: -24px; }
dl.facts { margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }   /* 2026-11-22：箱をやめて上下の線 */
dl.facts > div { display: grid; grid-template-columns: 9em minmax(0, 1fr); column-gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
dl.facts > div:last-child { border-bottom: 0; }
dl.facts dt { font-weight: 700; font-size: .9rem; color: var(--muted); }
dl.facts dd { margin: 0; }
form.ack-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 32px 0 0; }
form.ack-bar button { margin: 0; }
p.copy-forward { white-space: pre-line; font-family: var(--font); font-weight: 500; font-size: .95rem; line-height: 1.7; }
details.rare-acts { margin-top: 48px; padding: 0 20px 20px; }
details.rare-acts > summary { padding: 16px 0 8px; font-weight: 600; cursor: pointer; }
details.rare-acts h3 { margin-top: 24px; }
ul.timeline { list-style: none; padding: 0; margin: 12px 0 0; }
ul.timeline li { padding: 8px 0; }
ul.timeline .t-day { display: inline-block; min-width: 7em; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { dl.facts > div { grid-template-columns: 1fr; row-gap: 2px; } }

/* ヘルスチェック（2026-11-09）：件数は数字を大きく、0 は薄く。項目の分類は題の下に小さく。対象外は閉じた形 */
table.health-list th[scope=row] { background: none; font-weight: 600; }
table.health-list .lv { font-size: .9rem; }
span.zero { color: var(--muted); opacity: .6; }
.health-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 4px 0 8px; }
p.health-sum { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; }
p.health-sum .hs { display: inline-flex; align-items: baseline; gap: 4px; font-size: .9rem; color: var(--ink); }
p.health-sum .hs b { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
p.health-sum .hs.need { color: var(--alert); } p.health-sum .hs.warn { color: var(--warn); }
p.health-sum .hs.zero { color: var(--muted); }
p.health-sum .hs.zero b { font-weight: 500; }
.health-head form.inline, .health-head button { margin: 0; }
.health-item h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.health-item h2 .lv { margin: 0; }
p.hi-cat { margin: 0 0 12px; font-size: .8rem; color: var(--muted); }
details.remedy-box > summary, details.exclude-box > summary { cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--blue); padding: 8px 0; }
.health-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.health-actions form.inline, .health-actions button { margin: 0; }
details.exclude-box { margin-top: 12px; }
details.exclude-box > summary { color: var(--muted); font-weight: 500; font-size: .85rem; }
details.exclude-box label { margin-top: 8px; }

/* アカウント（2026-11-09） */
.set-card label.check { margin-top: 16px; }
.set-card label.check .note { display: block; margin: 2px 0 0 1.9em; font-weight: 400; }
.set-card table.kv { margin-top: 8px; }

/* お知らせの一覧：対応済み・解消・誤報の行は一歩引かせる（題を薄く・細く。重要度の点は残す） */
ul.alert-rows li.is-closed a.ar-title { color: var(--muted); font-weight: 500; text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent); }
ul.alert-rows li.is-closed .lv { color: var(--muted); }   /* 薄めると文字のコントラストが足りないので灰色に */

/* 週次のお知らせ（1 通）：本文の見出しごとに区切る */
h2.wk-h { font-size: 1.05rem; margin: 40px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.wk-body p { margin: 0; line-height: 1.7; }
.wk-body p.wk-item { margin-top: 12px; font-weight: 600; }
.wk-body p.wk-item:first-child { margin-top: 0; }
.wk-body p.wk-sub { padding-left: 1.2em; font-size: .93rem; }
.wk-lead p.wk-sub { padding-left: 0; color: var(--muted); }
.wk-body p.wk-note { margin-top: 40px; color: var(--muted); font-size: .85rem; }

/* お知らせ 1 件：題 → 重要度・サイト・日付・状態の 1 行 → 「何が」の 1 文（大きめ）→ 残りの項目（2026-11-09） */
h1.alert-h1 { margin: 8px 0 12px; }
p.alert-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0 0 24px; font-size: .9rem; color: var(--muted); }
p.alert-meta > span + span::before { content: "・"; margin: 0 2px; color: var(--muted); }
p.alert-meta .lv { min-width: 0; padding: 0; background: none; font-size: .9rem; }
p.alert-meta .lv::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; margin-right: 8px; vertical-align: 1px; }
div.alert-lead { margin: 0 0 20px; padding: 12px 20px 16px; background: var(--wash); border-radius: 0; }
div.alert-lead p { margin: 0; }
div.alert-lead .lead-k { font-size: 1.15rem; font-weight: 700; line-height: 1.5; }
div.alert-lead .lead-v { margin-top: 4px; font-size: 1rem; line-height: 1.6; }
p.alert-kind { margin-top: 16px; }

/* 週次のお知らせ（1 通）：サイトごとに 1 枚のカード（2026-11-09） */
section.wk-site > h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 1.1rem; }
section.wk-site > h2 .lv { margin: 0; font-size: .8rem; }
.wk-finding { margin: 16px 0 0; padding: 12px 16px; background: var(--warn-bg); border-radius: 0; }
.wk-finding p { margin: 0; }
.wk-finding .wk-ft { font-weight: 700; }
.wk-finding .wk-fs { font-size: .92rem; margin-top: 2px; }
p.wk-change { margin: 12px 0 0; font-size: .92rem; }
.wk-nums { margin-top: 16px; font-variant-numeric: tabular-nums; }
.wk-nums p { margin: 0; }
.wk-nums .wk-nk { font-size: .8rem; font-weight: 700; color: var(--muted); }
.wk-nums .wk-nv { margin-top: 2px; font-variant-numeric: tabular-nums; }
.wk-nums .wk-ns { font-size: .88rem; color: var(--muted); margin-top: 2px; }
details.wk-fwd { margin-top: 16px; }
details.wk-fwd > summary { cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--blue); padding: 4px 0; }
p.wk-note { margin-top: 32px; font-size: .82rem; }

/* 使用データ一覧の補足の 2 つ（複数の行・行の番号の無い数字）は閉じた形（2026-11-09） */
details.used-more { margin: 16px 0 0; border-top: 1px solid var(--line); padding-top: 12px; }
details.used-more > summary { cursor: pointer; font-weight: 600; font-size: .95rem; padding: 4px 0; }
details.used-more > summary .note { font-weight: 400; }
details.used-more .used-list { margin-top: 8px; }

/* 管理の「会社名・ロゴ」：今のロゴの見本（PDF の表紙と同じ上限） */
.logo-preview { max-height: 60px; max-width: 240px; border: 1px solid var(--line, var(--line-grey)); padding: 8px; background: var(--surface); }
table.months .nowrap { white-space: nowrap; }   /* 期の名前（2026 年 7〜9 月期）を途中で折り返さない（F8） */

/* 広告・メルマガの登録（C260）：1 行に 選ぶ・参照元／メディア・件数・種類・名前 */
table.sources td { vertical-align: middle; }
table.sources th { white-space: nowrap; }
table.sources td label { display: inline; margin: 0; font-weight: 500; font-size: inherit; }
table.sources .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.sources select { min-width: 8em; }
table.sources input[type=text] { min-width: 10em; }
table.sources .lv { margin-left: 8px; white-space: nowrap; }
table.sources .camp { display: block; margin-top: 2px; font-family: var(--font); font-size: .82rem; color: var(--muted); }
.flash.fmt p { margin: 0 0 4px; } .flash.fmt ul { margin: 4px 0 8px 1.2em; padding: 0; }

/* 表の数字は桁をそろえる（縦に比べやすく。2026-11-19） */
table td, table th, .num { font-variant-numeric: tabular-nums; }

/* 指で押す画面では、小さな文字のリンク・ボタンも押せる高さに（40px。2026-11-19） */
@media (pointer: coarse) {
  button.linklike, details > summary, ul.alert-rows .ar-title, p.sr-meta > a, .sr-older a, a.sr-settings {
    display: inline-flex; align-items: center; min-height: 40px;
  }
}
.dl-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .dl-bar .button { margin-top: 0; }
/* 休業日の行（2026-11-19） */
fieldset.closed-days { border: 0; padding: 0; margin: 28px 0 0; }
fieldset.closed-days legend { font-weight: 700; font-size: .95rem; padding: 0; margin-bottom: 16px; }
fieldset.closed-days legend .note { display: block; font-weight: normal; }
.closed-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 8px; }
.closed-row label.inline { display: inline; margin: 0; font-weight: 500; }
.closed-row input[type=date] { width: 11em; }
.closed-row label.check { margin: 0; }
p.closed-past-head { margin: 20px 0 4px; }
ul.closed-past { list-style: none; padding: 0; margin: 0; }
ul.closed-past li { display: flex; align-items: center; gap: 16px; padding: 6px 0; border-bottom: 1px solid var(--line); }
ul.closed-past li .mono { min-width: 13em; }
ul.closed-past li label.check { margin: 0; }

/* ===== メリハリ（2026-11-19 採用） =====
   主役（題・見出し・大事な数字・押すもの）を太く大きく、脇役（補足・日付・説明）を小さく薄く。色は増やさない */
h1 { font-size: 1.9rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; }
h2 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; }
h3 { font-weight: 700; }
.note, p.sub-h1, p.crumb { font-size: .85rem; }
p.sub-h1 { color: var(--muted); }
.sr-site h2 { font-size: 1.15rem; font-weight: 700; }
nav.tabs a { font-size: 1rem; }
nav.tabs a.on { color: var(--ink); border-bottom-color: var(--blue); border-bottom-width: 3px; }
button, a.button { font-weight: 700; }
li.finding .f-num { font-size: 1.35rem; font-weight: 700; }
.draft .draft-title { font-size: 1.4rem; font-weight: 700; }
.draft h4 { font-size: 1.1rem; font-weight: 700; }
th { font-size: .8rem; }

/* ===== 紺の上の帯（2026-11-20 採用） =====
   画面の地は白のまま、上の帯だけ LP の文字の紺で締める。開いたメニューの中（白い箱）は今のまま */
header.top { background: radial-gradient(520px 200px at 0 0, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 70%), var(--ink); border-bottom-color: var(--ink); }   /* 左上から円く明るく：ロゴの青い点が沈まないように */
header.top .brand, header.top .brand .wm { color: #fff; }
header.top .brand .note { color: rgba(255, 255, 255, .72); }
header.top .gnav-wide > a { color: rgba(255, 255, 255, .78); }
header.top .gnav-wide > a:hover, header.top .gnav-wide > a.on { color: #fff; }
header.top .gnav-wide > a.on { text-decoration-color: #ff5a36; }   /* いまの画面の下線はロゴの矢印の色 */
header.top .me-menu > summary { color: rgba(255, 255, 255, .85); border-color: rgba(255, 255, 255, .28); background: transparent; }
header.top .me-menu > summary:hover, header.top .me-menu[open] > summary, header.top .me-menu > summary.on { color: #fff; border-color: rgba(255, 255, 255, .7); }
@media (max-width: 720px) {
  header.top .gnav-menu > summary { color: #fff; border-color: rgba(255, 255, 255, .4); background: transparent; }
}

/* 2段階認証の設定ではコピーの外の枠を外す（2026-11-20 採用）。題・値の欄・説明をそのまま並べる */
.totp-manual .copy-box, .totp-uri .copy-box { background: none; border: 0; border-radius: 0; padding: 0; }
.totp-manual .copy-box, .totp-uri .copy-box { margin: 24px 0 0; }
.totp-manual .copy-value, .totp-uri .copy-value { margin-bottom: 0; }
.totp-manual .app-steps { margin-top: 24px; }

/* 画面の題（2026-11-20）：字間を広げ、題の下に紺の線を引いて本文と分ける。ログインの前の画面（枠の中の題）は除く */
body:not(.auth) main > h1, body:not(.auth) .page-head h1 { letter-spacing: .1em; }
body:not(.auth) main > h1, body:not(.auth) .page-head { padding-bottom: 16px; border-bottom: 2px solid var(--ink); margin-bottom: 32px; }


/* サイトを外す（2026-11-20）：設定の下の区切り・取り返しのつかない操作のボタン・ダッシュボードの予定と外したサイト */
.site-remove { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); }
.site-remove h2 { font-size: 1.1rem; }
button.danger { background: var(--surface); color: var(--alert); border-color: var(--alert); }
button.danger:hover { background: var(--alert-bg); color: var(--alert); border-color: var(--alert); }
.sr-removal a { color: var(--warn); font-weight: 600; }
.removed-sites { margin-top: 48px; }
.removed-sites h2 { font-size: 1.1rem; }
.removed-sites ul { list-style: none; padding: 0; margin: 8px 0 0; border-top: 1px solid var(--line); }
.removed-sites li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.removed-sites li button { margin: 0; }

/* ヘルスチェックの結果を 1 つの表に（2026-11-20）。詳しくはポップアップ（popover。JS なし） */
table.health-table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: .92rem; }
table.health-table th, table.health-table td { text-align: left; vertical-align: top; padding: 12px; border-bottom: 1px solid var(--line); }
/* 見出しの行はヘルスチェックの一覧（table.log）と同じ：薄い灰の地・灰の文字（2026-11-20 ユーザー指定） */
table.health-table thead th { font-size: .85rem; color: var(--muted); font-weight: 700; background: var(--wash); padding: 8px 12px; }
table.health-table tbody th { background: none; }
table.health-table tbody th { font-weight: 600; font-size: .92rem; color: var(--ink); width: 34%; }
table.health-table tbody td { font-size: .9rem; }
table.health-table .hi-cat { display: block; font-size: .78rem; color: var(--muted); font-weight: 400; margin-top: 2px; }
table.health-table td:first-child { white-space: nowrap; width: 6.5em; }
table.health-table td:last-child { white-space: nowrap; text-align: right; padding-right: 0; }
table.health-table tr.ht-ok td:nth-child(3), table.health-table tr.ht-ok th { color: var(--muted); font-weight: 400; }
.hi-pop { width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 64px); overflow: auto; padding: 24px 28px; margin: auto;
          border: 1px solid var(--line); border-radius: 0; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.hi-pop::backdrop { background: rgba(15, 27, 61, .35); }
.hi-pop-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.hi-pop-head h2 { font-size: 1.1rem; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hi-pop-head button { margin: 0; flex: none; }
.hi-pop h3 { font-size: .95rem; margin: 24px 0 8px; }
@media (max-width: 640px) {
  table.health-table thead { display: none; }
  /* スマホ：状態・項目・結果を横幅いっぱいで積み、［詳しく］は一番下の右（2026-11-20） */
  table.health-table tr { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "lv lv" "name name" "res res" ". more";
                          gap: 6px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  table.health-table th, table.health-table td { border: 0; padding: 0; width: auto; }
  table.health-table td:first-child { grid-area: lv; }
  table.health-table tbody th { grid-area: name; width: auto; }
  table.health-table td:nth-child(3) { grid-area: res; }
  table.health-table td:last-child { grid-area: more; justify-self: end; align-self: center; }
}

/* ヘルスチェックの「チェックするページ」：箱をやめ、表の下に紺の線で区切った節に（2026-11-20） */
section.health-pages { margin: 48px 0 0; padding: 0; border: 0; background: none; }
section.health-pages > h2 { font-size: 1.1rem; margin: 0 0 12px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
section.health-pages ul.mono-list { margin: 0 0 8px; padding: 0; list-style: none; }
section.health-pages ul.mono-list li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9rem; overflow-wrap: anywhere; }
section.health-pages label:first-of-type { margin-top: 24px; }
details.used-box pre.used-raw { font-size: .78rem; line-height: 1.5; margin: 8px 0 0; }   /* 表の形を持たない古い版のテキスト */

/* 作り直しの回数：説明の文から分けて 1 行に（2026-11-20） */
p.usage-line { margin: 8px 0 4px; font-size: .9rem; }   /* 1 行の文として並べる（flex の間隔で回数が離れていた） */
p.usage-line .note { margin-left: 1em; }
p.usage-line strong { font-variant-numeric: tabular-nums; }
p.usage-line .note { font-size: .82rem; }
p.usage-line .usage-item { white-space: nowrap; }
/* 作り直す：ボタンの横に回数（2026-11-20） */
p.action-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 12px 0 0; }
p.action-row button { margin: 0; }
.usage-of { font-size: .88rem; font-variant-numeric: tabular-nums; }
.usage-of .note { font-size: .8rem; }
details.refetch-box { margin: 32px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
details.refetch-box > summary { cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--blue); padding: 4px 0; }
p.usage-foot { margin-top: 24px; }
.usage-of strong { margin-left: .5em; }   /* ボタンの横の「9月分」と回数の間 */
p.usage-line strong { margin-left: .25em; }   /* 「9月分」と回数の間（和欧のスペースは詰めるので余白で空ける） */
/* 段落の書き直しの回数：本文の上に 1 つ、本文を読む間は上に付いてくる（2026-11-22） */
.draft p.usage-float { position: sticky; top: 0; z-index: 4; border-radius: calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px) 0 0; margin: -24px -32px 16px; padding: 10px 32px; background: var(--surface); border-bottom: 1px solid var(--line); }
@media (max-width: 720px) { .draft p.usage-float { margin-top: -16px; margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; } }
/* 版の表：でき方以外は折り返さない、日時は小さく（2026-11-22） */
table.versions th, table.versions td { white-space: nowrap; }
table.versions .how { white-space: normal; min-width: 14em; }
table.versions td.how { line-height: 1.5; }
table.versions .when { font-size: .85rem; font-variant-numeric: tabular-nums; }
table.versions td.done .when { display: block; margin-bottom: 2px; }   /* 確定の日時・人の下の行に書き出しのリンク */
table.versions td.done { white-space: normal; min-width: 13em; }   /* 日時とメールのあいだで折り返せる */
table.versions td.done .when > span { white-space: nowrap; }
table.versions td.done a { margin-right: 12px; }   /* 和欧のスペースを詰めても PDF・HTML・テキストが離れるように */
/* 要確認の数字の見出し：赤い地の帯ではなく点つきの 1 行＋小さな理由（2026-11-22） */
.findings-head { margin: 20px 0 0; }
.findings-head > p:first-child { margin: 0; font-weight: 700; }
.findings-head > p:first-child::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 10px; vertical-align: 2px; }
.findings-head.is-open > p:first-child { color: var(--alert); }
.findings-head.is-open > p:first-child::before { background: var(--alert); }
.findings-head.is-done > p:first-child { color: var(--ok); }
.findings-head.is-done > p:first-child::before { background: var(--ok); }
.findings-head > p.note { margin: 2px 0 0 18px; }
.findings-head a.jump { margin-left: 12px; font-weight: 600; font-size: .9rem; }
h2.findings-h { scroll-margin-top: 16px; }
h2.findings-h + ul.findings { margin-top: 8px; }
/* 要確認とは（見出しの下）・確かめ方のポップアップ（2026-11-22） */
p.findings-what { margin: 4px 0 0; line-height: 1.7; }
p.findings-what button.linklike { margin-left: 8px; font-size: inherit; }
.hi-pop ul.howto { margin: 16px 0 0; padding-left: 1.2em; line-height: 1.7; }
.hi-pop ul.howto li { margin: 0 0 8px; }
@media (min-width: 721px) { li.finding .f-num { grid-row: span 2; } }   /* 数字は抜粋と操作の 2 行にまたがる */
@media (max-width: 720px) { .findings .f-acts form.inline:has(.f-src) { flex-wrap: nowrap; width: 100%; } .findings .f-src { flex: 1 1 auto; width: auto; min-width: 0; } .findings .f-acts form.inline button { flex: none; white-space: nowrap; } }   /* 狭い画面でも出典の欄とボタンを 1 行に */
/* ジョブの画面（失敗）：表と「次にすること」のあいだを空ける（set-card は margin 0 のため。2026-11-22） */
section.set-card.fail-next { margin-top: 40px; }
/* 欄の下の一言（作成日の「次回：…」。2026-11-23）：横に並んだ欄の高さをそろえたまま出す（流れから外し、その分を下に空ける）。
   1 列になる狭い画面では、ふつうに欄の下に置く */
.fields > div:has(> .field-after) { position: relative; }
.fields:has(.field-after) { padding-bottom: 1.6em; }
.fields .field-after { position: absolute; left: 0; top: 100%; margin: 6px 0 0; white-space: nowrap; }
@media (max-width: 560px) {
  .fields:has(.field-after) { padding-bottom: 0; }
  .fields .field-after { position: static; white-space: normal; }
}
/* 目標（2026-11-23）：キーイベントごとに、主なCVのチェック・月平均・月の目標の欄を 1 行に */
/* 設定の画面の表（目標・広告とメルマガ。2026-11-24 にそろえた）：横幅いっぱい・箱なし（上下の線だけ）・見出しの行は薄い灰の地・
   先頭のチェックの列は真ん中 */
table.set-table { width: 100%; margin: 12px 0 8px; }
table.set-table td, table.set-table th { vertical-align: middle; }
table.set-table td:first-child, table.set-table th:first-child { text-align: center; }
table.set-table td label { margin: 0; font-weight: 400; font-size: inherit; }
table.set-table th .note { font-weight: 400; }
table.set-table th { white-space: nowrap; }
table.goal-table input.goal-n { width: 7em; max-width: 7em; text-align: right; }
table.goal-table th { white-space: nowrap; }
table.goal-table td label { overflow-wrap: anywhere; }
table.goal-table td.num { white-space: nowrap; }
table.goal-table .goal-hint { display: block; margin-top: 4px; white-space: nowrap; font-size: .8rem; line-height: 1.35; }   /* 目標の目安（2026-11-26） */
/* 目安で行が高くなっても入力欄の高さをそろえる：上でそろえ、入力欄の無い欄は 1 行目が入力欄（44px）の中ほどに来るように下げる */
table.goal-table td { vertical-align: top; }
table.goal-table td:not(:has(input[type=text])) { padding-top: 21px; }
table.goal-table td:first-child { padding-top: 25px; }
p.goal-sum { margin: 8px 0 4px; font-weight: 700; }
p.goal-sum .note { font-weight: 400; }
@media (max-width: 560px) {
  table.goal-table th, table.goal-table td { padding-left: 6px; padding-right: 6px; }
  table.goal-table input.goal-n { width: 5.5em; }
}
/* 見出しの色：見本の色の丸から選ぶ（2026-11-23） */
fieldset.swatches { margin-top: 20px; }
fieldset.swatches legend { font-size: .95rem; margin-bottom: 8px; }
fieldset.swatches legend .note { display: block; font-weight: 400; margin-top: 2px; }
fieldset.swatches label.sw { display: inline-flex; align-items: center; gap: 6px; margin: 0 14px 8px 0; font-weight: 400; cursor: pointer; }
.set-card fieldset.swatches > label.sw { margin: 0 14px 8px 0; }
fieldset.swatches .dot { width: 18px; height: 18px; border-radius: 50%; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
fieldset.swatches input.short { display: inline-block; width: 8em; margin-left: 4px; vertical-align: middle; }
fieldset.swatches label.sw-custom { margin-right: 4px; }
fieldset.swatches label.sw input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
fieldset.swatches label.sw input:checked + .dot { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
fieldset.swatches label.sw input:focus-visible + .dot { outline: 2px solid var(--accent, #2563eb); outline-offset: 4px; }
fieldset.swatches label.sw:has(input:checked) { font-weight: 700; }
fieldset.swatches .dot { width: 20px; height: 20px; }
fieldset.swatches .dot-empty { background: repeating-linear-gradient(45deg, #fff 0 3px, #d6dbe1 3px 5px); }
fieldset.swatches .sw-other { display: inline-flex; align-items: center; white-space: nowrap; }
fieldset.swatches .sw-other label.sw { margin-bottom: 0; }
/* 管理 → サイト（2026-11-23）：サイト名は折り返し、ほかの列は 1 行 */
table.sites-admin { width: 100%; }
table.sites-admin td:not(:first-child), table.sites-admin th:not(:first-child) { white-space: nowrap; }
table.log.sites-admin td:first-child { white-space: normal; overflow-wrap: anywhere; }
table.goal-table input.goal-label { width: 100%; min-width: 10em; max-width: 20em; }   /* 表示名は別の列（2026-11-24）。狭い画面は表を横に送る */
table.goal-table th .note { margin-left: 2px; }
/* 下書きの画面の「要点の見出し」（2026-11-24） */
section.headline-box { padding: 4px 0 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
section.headline-box .hl-label { font-weight: 700; margin: 0; } section.headline-box .hl-label .note { font-weight: 400; margin-left: 8px; }
section.headline-box .hl-now { font-size: 1.15rem; font-weight: 700; margin: 6px 0 2px; }
section.headline-box .hl-now .lv { margin-left: 10px; font-size: .8rem; vertical-align: 2px; }
section.headline-box .hl-auto { margin: 0 0 4px; }
ul.hl-sugs { list-style: none; padding: 0; margin: 8px 0; }
ul.hl-sugs li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
ul.hl-sugs li form { margin: 0; flex: none; }
p.vheadline { margin: 12px 0 4px; } p.vheadline .vmark { margin: 0 6px 0 10px; }
.draft .para-rewrite ul.hl-sugs form { background: none; padding: 0; border: 0; margin: 0; }
.draft .para-rewrite ul.hl-sugs form button { margin: 0; }
section.headline-box { scroll-margin-top: 72px; }
.draft .draft-title + section.headline-box { margin-top: 4px; }
/* このページの項目（2026-11-24）：タブの下に文字のリンクを横に並べる。節の見出しは上に付いてくる帯に隠れないよう余白 */
nav.page-toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 28px; font-size: .82rem; }
nav.page-toc a { color: var(--ink); text-decoration: none; padding: 4px 10px; background: var(--wash); border-radius: var(--r-s); white-space: nowrap; }
nav.page-toc a::after { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 2px 0 8px; vertical-align: 3px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); }   /* 「＞」を下向きに回した印   /* ページの下へ移る印（タブ・絞り込みと見分ける） */
nav.page-toc a:hover { background: var(--line); }
nav.page-toc + form > .set-card:first-of-type { margin-top: 8px; }
.set-card h2[id], section[id] { scroll-margin-top: 16px; }
/* 設定の画面の節のまとまり（2026-11-24）：節の見出しを大きく・節のあいだを広く、欄の名前は小さく細めにして差をつける。
   節の中の小見出し（set-sub）は灰色の小さい字で、節の見出しとも欄の名前とも見分ける */
.set-card { padding-bottom: 44px; }
.set-card > h2:first-child { font-size: 1.4rem; margin-top: 44px; margin-bottom: 12px; }
:not(.set-card) + .set-card > h2:first-child, nav.page-toc + form > .set-card:first-of-type > h2:first-child { margin-top: 8px; }
.set-card ~ .set-card { border-top: 1px solid var(--ink); }
.set-card label, .set-card .label-like, .set-card legend { font-size: .9rem; font-weight: 600; }
.set-card label:has(> input[type=checkbox]), .set-card label:has(> input[type=radio]) { font-weight: 400; }
.set-card h3.set-sub { font-size: .82rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; margin: 32px 0 0; padding-top: 16px; border-top: 1px dashed var(--line); }
.set-card > h2 + h3.set-sub { margin-top: 12px; padding-top: 0; border-top: 0; }
.set-card h3.set-sub + label, .set-card h3.set-sub + label.check { margin-top: 12px; }
.set-card h3.set-sub + p.br-state { margin-top: 12px; }
section.site-remove { border-top: 1px solid var(--ink); }
section.site-remove > h2 { font-size: 1.4rem; }
/* レポートで出した提案の表（2026-11-24）：1 行 1 提案。未記録の行は左に色の線 */
table.prop-table td, table.prop-table th { padding: 8px 6px; }
table.prop-table td:not(.prop-title), table.prop-table th { white-space: nowrap; }
table.prop-table td:first-child, table.prop-table th:first-child { text-align: left; white-space: nowrap; }
table.prop-table select.choice:has(option[value=unrecorded]:checked) { border-color: var(--warn, #b45309); box-shadow: 0 0 0 1px var(--warn, #b45309); }   /* 未記録は「その後」の欄の枠をオレンジに */
table.prop-table td.prop-title { width: 100%; }
/* 1 つの提案は 2 行：名前と操作の行、その下に内容の全文（月の列以外の幅）。操作の行の下の線は消して 1 まとまりに見せる */
table.prop-table .prop-name { display: block; font-weight: 600; }
table.prop-table td.prop-title { max-width: 0; }   /* 提案の列は残りの幅だけ使う（保存の列がはみ出さないように） */
table.prop-table tr.prop-head td { border-bottom-color: transparent; padding-bottom: 2px; }
table.prop-table tr.prop-detail p.prop-text { margin: 0 0 4px; font-size: .85rem; line-height: 1.7; color: var(--muted); }
/* その後の選択で、内容の下の入力欄の箱を開く（開閉の操作はない）：実施した → 施策対象（比べる種類の提案）、見送った・載せなかった → 見送った理由 */
table.prop-table tr.prop-detail .prop-box { display: none; margin-top: 8px; }
table.prop-table tr:has(select.choice option:is([value=dropped], [value=rejected]):checked) + tr.prop-detail .prop-box,
table.prop-table tr.cmp:has(select.choice option[value=done]:checked) + tr.prop-detail .prop-box { display: block; }
table.prop-table tr:not(:has(select.choice option[value=done]:checked)) + tr.prop-detail .g-done { display: none; }
table.prop-table tr:not(:has(select.choice option:is([value=dropped], [value=rejected]):checked)) + tr.prop-detail .g-reason { display: none; }
/* 実施した施策の一覧 */
table.done-actions td.wrap { white-space: normal; width: 100%; min-width: 9em; }
table.done-actions td, table.done-actions th { padding-left: 8px; padding-right: 8px; }
table.done-actions form, table.done-actions form button { margin: 0; }
table.done-actions td:first-child, table.done-actions th:first-child { text-align: left; }
table.done-actions td { white-space: nowrap; }
/* 開いた中身だけ薄い地の箱に（月の列は白のまま）。箱の内側に余白、箱と下の線のあいだは白を残す。保存の列の幅まで使う */
table.prop-table tr.prop-detail .prop-box { background: var(--wash); padding: 14px 16px; }
table.prop-table tr.prop-detail td { padding: 0 0 14px 6px; white-space: normal; }
/* 名前が左（細い列）・中身が右の 2 列。名前は小さい灰色の字、欄は高さを詰める */
table.prop-table .prop-grid { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 10px 12px; align-items: center; }
table.prop-table .prop-grid textarea { width: 100%; max-width: none; padding-top: 6px; padding-bottom: 6px; line-height: 1.6;
  min-height: 0; height: calc(1.6em * 2 + 14px); resize: vertical; }   /* 2 行分（長くなったら手で広げられる） */
table.prop-table .prop-grid > label[for^="r-"] { align-self: start; padding-top: 8px; }
table.prop-table .prop-grid > label, table.prop-table .prop-grid > .prop-k { margin: 0; font-size: .8rem; font-weight: 600; color: var(--muted); }
table.prop-table .prop-grid > .prop-k, table.prop-table .prop-grid > label.g-done { align-self: start; padding-top: 12px; }
table.prop-table .prop-grid p.prop-text { margin: 0; font-size: .88rem; line-height: 1.7; color: var(--ink); }
/* チェックは 1 行（説明は名前の横に小さく） */
table.prop-table .prop-grid > label.prop-check { color: var(--ink); font-size: .85rem; font-weight: 400; padding: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 0 4px; }
table.prop-table .prop-grid > label.prop-check .note { display: inline; margin: 0 0 0 8px; }
table.prop-table .prop-grid input[type=text], table.prop-table .prop-grid select { width: 100%; max-width: none; padding-top: 6px; padding-bottom: 6px; }
table.prop-table .prop-pair { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 8px; }
table.prop-table .prop-pair .note { grid-column: 1 / -1; margin: 0; font-size: .75rem; }
/* 絞り込み：表示（記録が要るもの／記録済み／すべて）と月 */
.prop-filter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 16px 0 4px; }
.prop-filter nav.toc.filter { margin: 0; }
.prop-filter nav.toc.filter .cnt { margin-left: 6px; font-size: .8em; opacity: .75; }
form.prop-month { display: flex; align-items: center; gap: 8px; margin: 0; }
form.prop-month select { width: auto; }
form.prop-month button { margin: 0; }
table.prop-table td > select { width: auto; min-width: 0; max-width: none; padding-right: 28px; }
table.prop-table input[type=date] { width: 9.6em; max-width: none; }
table.prop-table form { margin: 0; }
table.prop-table form button { margin: 0; white-space: nowrap; }
table.prop-table th .note { display: none; }   /* 見出しは短く（開き方は表の下の一言で） */
table.prop-table .prop-est { display: block; font-size: .75rem; }
.pri { display: inline-block; min-width: 1.6em; text-align: center; font-size: .78rem; font-weight: 700; padding: 1px 6px; border-radius: var(--r-s); border: 1px solid var(--line); }
.pri.pri-h { background: var(--ink); color: var(--on-fill); border-color: var(--ink); }
p.prop-sum { margin: 12px 0 0; }
/* 施策の記録の「効果を見る場所」：種類の選択と値の欄を 1 行に（2026-11-24） */
.target-pair { display: grid; grid-template-columns: 13em minmax(0, 1fr); gap: 8px; align-items: start; }
.target-pair select, .target-pair input { width: 100%; max-width: none; }
@media (max-width: 560px) { .target-pair { grid-template-columns: 1fr; } }
/* 選んだ施策対象に合わせて、右に入れるものの案内を出し分ける。サイト全体・流入元は入力が要らないので欄を隠す */
.target-pair .t-hint { display: none; margin-top: 4px; font-size: .8rem; color: var(--muted); line-height: 1.5; }
.target-pair:has(option[value=page]:checked) .h-page, .target-pair:has(option[value=query]:checked) .h-query,
.target-pair:has(option[value=site]:checked) .h-site, .target-pair:has(option[value^="ch:"]:checked) .h-ch { display: block; }
.target-pair:has(option:is([value=site], [value^="ch:"]):checked) input { display: none; }
.target-pair:has(option:is([value=site], [value^="ch:"]):checked) .t-hint { margin-top: 0; padding: 10px 12px; background: var(--wash); color: var(--ink); }
/* 実施した施策：月の絞り込み・記録の欄へ・ページ送り */
form.da-month { margin: 12px 0 4px; }
form.da-month label { margin: 0; font-size: .85rem; }
form.da-month .da-jump { margin-left: auto; font-size: .85rem; }
nav.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 12px 0 0; font-size: .88rem; }
nav.pager .off { color: var(--muted); }
nav.pager .pg { color: var(--muted); }
/* 実施した施策：［直す］［削除］を横に、直しているときは記録の欄を薄い地で囲む（2026-11-24） */
table.done-actions .da-ops { display: flex; gap: 6px; align-items: center; }
table.done-actions .da-ops a.button { margin: 0; }
form.editing { background: var(--wash); padding: 4px 16px 16px; }
form.editing .action-row { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
form.editing .action-row button { margin: 0; }
p.prop-done { margin: 12px 0 0; } p.prop-done .lv { margin-right: 8px; }
.prop-grid .t-note { display: block; margin-top: 10px; line-height: 1.5; }   /* 施策対象の説明：上と少し空け、行間は詰める（2026-11-24） */
/* 実施した施策：レポートに載せる／載せない（2026-11-24） */
p.da-count { margin: 12px 0 4px; }
p.da-count strong { margin-left: 4px; }
p.da-count.over { background: #fff7ed; padding: 10px 12px; }
p.da-count .lv { margin-right: 6px; }
table.done-actions form.rp-toggle { display: flex; align-items: center; gap: 6px; margin: 0; white-space: nowrap; }
table.done-actions form.rp-toggle .lv { margin: 0; }
table.done-actions tr.rp-off td:not(:nth-last-child(-n+2)) { color: var(--muted); }
table.done-actions td.da-what .da-kind { display: block; font-size: .78rem; color: var(--muted); }
table.done-actions td.da-what .da-target { display: block; }
table.done-actions td .da-sub { display: block; font-size: .75rem; color: var(--muted); }
table.done-actions .da-ops { gap: 4px; }
/* 多すぎるときの注意：上と少し空け、札の右の文は折り返しても文の頭にそろえる */
p.da-count .da-warn { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; }
p.da-count .da-warn .lv { flex: none; margin: 2px 0 0; }
p.da-count .da-warn .lv.lv-warn { background: var(--warn); color: #fff; }   /* 注意の地（#fff7ed）に溶けないよう塗りつぶす（白との比 5.5） */

/* 施策の「長く見る」（見る期間の上限を選ぶ。2026-11-24） */
table.done-actions .da-obs { display: block; font-size: .78rem; color: var(--muted); margin-top: 4px; white-space: nowrap; }
table.done-actions .da-obs .linklike { margin-left: 6px; font-size: .78rem; }
.obs-pop { width: min(520px, calc(100vw - 32px)); }
.obs-pop .obs-what { color: var(--muted); font-size: .88rem; margin: 8px 0 12px; }
.obs-pop fieldset.obs-choices { border: 0; padding: 0; margin: 0 0 12px; }
.obs-pop fieldset.obs-choices legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.obs-pop fieldset.obs-choices label.check { display: block; margin: 6px 0; }
.obs-pop fieldset.obs-choices .note { display: block; margin-left: 1.6em; }

/* 見出しの長さが違っても、見出しは上で、入力欄は下でそろえる（お知らせの基準。2026-11-25） */
/* 欄の下に目安（2026-11-26）が付いても入力欄の高さがずれないように、見出し・入力欄・目安の 3 段を横の欄どうしでそろえる（subgrid） */
.fields.fields-top { align-items: stretch; }
.fields.fields-top > div { display: grid; grid-row: span 3; grid-template-rows: subgrid; min-width: 0; }
.fields.fields-top > div > .th-head { align-self: start; margin-top: 24px; }
.fields.fields-top > div > .th-head > label { margin-top: 0; }
details.th-desc { margin: 2px 0 8px; font-size: .8rem; line-height: 1.5; }
/* 「空欄なら」の行の右端に［説明］。目安の開閉（青い太字の ▶）と見分けがつくよう、枠の付いた小さな札にする（2026-11-26） */
details.th-desc { font-size: .9rem; }
details.th-desc > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 400; color: var(--muted); padding: 2px 0; }
details.th-desc > summary::-webkit-details-marker { display: none; }
details.th-desc > summary .th-more { flex: none; font-size: .75rem; font-weight: 500; line-height: 1; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 8px; background: var(--bg); white-space: nowrap; }
details.th-desc > summary .th-more::after { content: "＋"; margin-left: 3px; }
details.th-desc[open] > summary .th-more::after { content: "－"; }
details.th-desc > summary:hover .th-more, details.th-desc > summary:focus-visible .th-more { color: var(--ink); border-color: var(--ink); }
details.th-desc[open] { font-size: .8rem; }
details.th-desc[open] > summary { font-size: .9rem; margin-bottom: 2px; }
.fields.fields-top > div > input, .fields.fields-top > div > select, .fields.fields-top > div > .unit-wrap { align-self: end; }
.fields.fields-top > div > .th-hint { align-self: start; margin-bottom: 0; }

/* 書き換えた提案：実施を約束したもの（確定の画面。2026-11-26） */
.commit-pick { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 24px; }
.commit-list { list-style: none; padding: 0; margin: 12px 0 0; }
.commit-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.commit-title { font-weight: 700; }
.commit-text { margin: 4px 0 0 28px; }
.commit-list .note { margin-left: 28px; }

/* ページの呼び名（2026-11-26）：下書きの本文のパスは押せる。設定の画面の表 */
.path-chip { display: inline; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; border-bottom: 1px dashed var(--line-strong);
  background: none; color: inherit; font: inherit; font-weight: inherit; line-height: inherit; vertical-align: baseline; cursor: pointer; }   /* 本文の行の中に置くので、ボタンの高さ・上の余白・flex を打ち消す（行間が広がった。2026-11-26） */
.path-chip:hover, .path-chip:focus-visible { background: var(--line-soft); color: inherit; border-color: var(--line-strong); }
.pl-pop { max-width: 420px; }
.pl-pop input[type=text] { width: 100%; }
.pl-ops { display: flex; gap: 12px; align-items: center; }
.pl-table input[type=text] { width: 100%; min-width: 12em; }

/* お知らせの基準の目安（2026-11-26）：欄の下に、値ごとの過去の回数。今の値は太字 */
.th-hint { margin-top: 4px; font-size: .8rem; line-height: 1.35; }
.th-hint .th-hint-i.cur { font-weight: 600; color: inherit; }
.hints-bar { margin: 8px 0 12px; }
.th-hint p { margin: 2px 0 0; }
.th-hint p.th-hint-h { margin: 0 0 2px; }
table.th-hint-t { border-collapse: collapse; width: auto; margin: 0; background: transparent; }
table.th-hint-t tr, table.th-hint-t td { background: transparent; }
table.th-hint-t td { padding: 1px 12px 1px 0; border: 0; font-size: inherit; line-height: inherit; vertical-align: baseline; }
table.th-hint-t td.num { text-align: right; white-space: nowrap; }
table.th-hint-t tr.cur td { font-weight: 600; color: var(--ink); }
details.th-hint > summary, details.goal-hint > summary { font-size: inherit; font-weight: 600; color: var(--blue); padding: 2px 0; }   /* 目安は畳んでおき、開くと表（2026-11-26） */
details.th-hint[open] > summary, details.goal-hint[open] > summary { margin-bottom: 2px; }

/* 欄の中の単位（％・倍・件 など。2026-11-26）。読み上げは欄の説明にある単位で（ここは aria-hidden） */
.unit-wrap { position: relative; display: block; }
td .unit-wrap { display: inline-block; }
.unit-wrap > input { padding-right: calc(16px + var(--u, 0) * 1em); }
.unit-wrap > .unit-in { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .95rem; pointer-events: none; }

/* 「毎日の確認」「毎週の確認」：上の塊とは離し、下の欄には近づける（見出しがどちらに属するかを間隔で示す。2026-11-26）。
   欄の見出しには上に 24px の余白があるので、その分を詰める */
h3.th-kind { margin: 56px 0 0; }
h3.th-kind + .fields.fields-top { margin-top: -14px; }
details.th-override h3.th-kind:first-of-type { margin-top: 40px; }   /* 上の説明・目安の行から離す */
h3.th-kind .th-prep { margin-left: 12px; font-size: .8rem; font-weight: 400; color: var(--muted); }

/* 運営からのお知らせ（ダッシュボード、2026-11-27） */
.ops-news { margin: 0 0 24px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; }
.ops-news h2 { font-size: .95rem; margin: 0 0 6px; }
.ops-news ul { list-style: none; margin: 0; padding: 0; }
.ops-news li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 4px 0; }
.ops-news time { color: var(--muted); font-variant-numeric: tabular-nums; }
.ops-news .note { margin: 6px 0 0; }
