/* ラクワザ 二画面スレビュー(案C・2026-10-01)。設計の理由は DESIGN_RATIONALE.md。
   左=スレ一覧の柱(PCは画面に固定) / 右=本文(約760px)。1023px以下は1列。
   端末ゴシック・Webフォントなし・角丸0・影0・グラデなし・カードなし・アニメなし。 */

:root {
  --bg: #FBFAF6;
  --res: #FBFAF6;
  --res-sunken: #F1EFE7;
  --pane: #E7E4DA;
  --ink: #26241F;
  --mute: #6B685D;
  --pane-mute: #5A574C;
  --rule: #DAD7CA;
  --line: #D8D4C6;
  --pane-line: #C9C5B7;
  --sel: #CFE0D5;
  --hover: #DDD9CC;
  --target: #F3EBC6;
  --quote-bg: #F3F1E9;
  --quote-line: #8E8A78;
  --head-bg: #EFEDE4;
  --link: #0B3FA8;
  --visited: #6B4E9B;
  --ok: #0F6B3A;
  --warn: #A8321E;
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Courier New", monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1D1F23;
    --res: #1D1F23;
    --res-sunken: #14151A;
    --pane: #16171A;
    --ink: #E4E2DB;
    --mute: #A0A09A;
    --pane-mute: #A8A8A1;
    --rule: #2E3036;
    --line: #373A40;
    --pane-line: #2E3036;
    --sel: #243A2E;
    --hover: #22242A;
    --target: #3A3516;
    --quote-bg: #181A1E;
    --quote-line: #6A6A63;
    --head-bg: #22242A;
    --link: #8FB0FF;
    --visited: #BCA3E8;
    --ok: #6FCB93;
    --warn: #FF9C86;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 15px; line-height: 1.7;
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
h1, h2, h3, h4 { line-height: 1.4; font-weight: 700; margin: 0; }
p { margin: 0 0 1em; }
img, svg, video { max-width: 100%; height: auto; }
table, pre { max-width: 100%; }

a { color: var(--link); text-decoration: none; }
a:visited { color: var(--visited); }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--link); outline-offset: 2px;
}
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--res); color: var(--ink); padding: 6px 10px; z-index: 10; border: 1px solid var(--ink); }
.skip-link:focus { left: 8px; top: 8px; }
.skip-link:visited { color: var(--ink); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pc-only { display: none; }

/* ---- 骨格 ---- */
.app { display: flex; flex-direction: column; min-height: 100vh; }
.pane-left { display: contents; }
.pane-right { min-width: 0; background: var(--bg); display: flex; flex-direction: column; flex: 1 0 auto; }
.pane-right > main { flex: 1 0 auto; }
.tv { max-width: 816px; margin: 0 auto; padding: 12px 12px 32px; }

/* ---- 左の柱(スレ一覧) ---- */
.pl-h { background: var(--pane); border-bottom: 1px solid var(--pane-line); padding: 10px 12px 8px; }
.logo { font-size: 17px; font-weight: 700; color: var(--ink); }
.logo:visited { color: var(--ink); }
.pl-nav { display: flex; flex-wrap: wrap; gap: 0 12px; font-size: 13px; margin-top: 2px; }
.pl-nav a { padding: 3px 0; }
.pl-nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.pl-lede { margin: 4px 0 0; font-size: 12px; line-height: 1.6; color: var(--ink); }
.pl-list { background: var(--pane); color: var(--ink); }
.pl-boards { margin: 0; padding: 6px 12px; font-size: 12px; line-height: 1.9; border-bottom: 1px solid var(--pane-line); }
.pl-boards a { margin-right: 8px; white-space: nowrap; }
.pl-boards a[aria-current="page"] { font-weight: 700; color: var(--ink); }
.pl-scope { margin: 0; padding: 6px 12px 0; font-size: 12px; font-weight: 700; }
.pl-note { margin: 0; padding: 6px 12px 2px; font-size: 11px; color: var(--pane-mute); line-height: 1.5; }
.pl { list-style: none; margin: 0; padding: 2px 0 6px; font-size: 13px; line-height: 1.45; }
.pl li a { display: grid; grid-template-columns: 2.2em minmax(0, 1fr) auto; column-gap: 4px; padding: 6px 10px 6px 8px; align-items: baseline; }
.pl li a:hover { background: var(--hover); text-decoration: none; }
.pl li.on a, .pl li.on a:visited { background: var(--sel); color: var(--ink); }
.pl .n { color: var(--pane-mute); text-align: right; font-size: 12px; }
.pl .tt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pl .c { color: var(--pane-mute); font-size: 12px; white-space: nowrap; }
.pl .c.ok { color: var(--ok); }
.pl li.cur-h { padding: 6px 12px 2px; font-size: 11px; color: var(--pane-mute); }
.pl li.cur-h + li { border-bottom: 1px solid var(--pane-line); margin-bottom: 4px; }
.pl-all { margin: 0; padding: 6px 12px 12px; font-size: 13px; border-top: 1px solid var(--pane-line); }

/* ---- 右(本文) ---- */
.tv-bar { font-size: 12px; color: var(--mute); line-height: 1.5; margin: 0 0 8px; }
.tv-bar a { padding: 4px 0; display: inline-block; }
.tv-bar .sp-only { margin-right: 14px; }
.crumb { font-size: 12px; color: var(--mute); margin: 0 0 8px; line-height: 1.5; }
.crumb a { padding: 4px 0; }
.tv h1 { margin: 0; font-size: 25px; line-height: 1.35; font-weight: 700; padding: 8px 0 6px; color: var(--ink); }
.tv h1.list-h1 { font-size: 22px; }
.tv-meta { margin: 0 0 10px; font-size: 12px; color: var(--mute); line-height: 1.6; padding-bottom: 8px; border-bottom: 2px solid var(--pane-line); }
.tv-meta b { font-weight: 400; color: var(--ok); }
.lede { font-size: 14px; color: var(--ink); margin: 0 0 8px; }
.cnt { color: var(--mute); font-size: 13px; font-weight: 400; }
.disclosure { font-size: 12px; color: var(--mute); margin: 0 0 10px; }

/* レス */
.post { padding: 8px 4px 10px 12px; margin-top: 10px; border-left: 3px solid #B9B5A5; }
.post.k-verify { border-left-color: var(--ok); }
.post.k-warn { border-left-color: var(--warn); }
.post.k-note { border-left-color: var(--mute); }
.post:target { background: var(--target); }
.mt { display: flex; flex-wrap: wrap; gap: 0 12px; align-items: baseline; font-size: 13px; line-height: 1.7; color: var(--mute); }
.mt .n { min-width: 1.6em; font-size: 15px; font-weight: 700; color: var(--ink); }
.mt .nm { font-weight: 700; color: var(--ink); }
.mt .kd { font-weight: 700; color: var(--ink); }
.mt .kd.verify { color: var(--ok); }
.mt .kd.warn { color: var(--warn); }
.msg { margin: 3px 0 0; font-size: 15px; line-height: 1.7; }
.msg .tt { display: block; font-weight: 700; margin-bottom: 2px; }
.msg > :last-child { margin-bottom: 0; }
.msg p { margin: 0 0 .6em; }
.msg h3, .msg h4 { font-size: 15px; margin: 1em 0 .4em; }
.msg ul, .msg ol { margin: 0 0 .6em; padding-left: 1.4em; }
.msg li { margin-bottom: .25em; }
.msg hr { border: 0; border-top: 1px solid var(--line); margin: 1.2em 0; }
.msg code { font-family: var(--mono); font-size: .9em; background: var(--res-sunken); padding: 0 .25em; }
.msg pre { margin: .3em 0 .7em; padding: 8px 10px; background: var(--res-sunken); border: 1px solid var(--line); font-family: var(--mono); font-size: 12.5px; line-height: 1.6; overflow-x: auto; white-space: pre; overflow-wrap: normal; max-width: 100%; }
.msg pre code { background: none; padding: 0; font-size: inherit; }
.msg blockquote { margin: .3em 0 .7em; padding: 4px 12px; background: var(--quote-bg); border-left: 3px solid var(--quote-line); font-size: 14px; line-height: 1.7; }
.msg blockquote > :last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; max-width: 100%; margin: .3em 0 .7em; }
.msg table, .static-page table { border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.msg th, .msg td, .static-page th, .static-page td { border: 1px solid var(--line); padding: 3px 12px; text-align: left; vertical-align: top; }
.msg th, .static-page th { background: var(--head-bg); font-weight: 400; white-space: nowrap; }
.msg td.num, .msg th.num, .static-page td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.msg figure { margin: .4em 0 .7em; }
.msg figcaption { font-size: 12px; color: var(--mute); margin-top: 2px; }
/* スマホで図の文字が6pxまで縮むのを実測(2026-10-01)。図は縮めず、枠の中で横に送る */
.figure-card { overflow-x: auto; max-width: 100%; }
.figure-card svg, .svg-scroll svg { display: block; width: 640px; min-width: 640px; height: auto; max-width: none; }
.svg-scroll { overflow-x: auto; max-width: 100%; }
.anchor { font-variant-numeric: tabular-nums; }

/* 出典・タグ・訂正 */
.sources { margin-top: 18px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.7; overflow-wrap: anywhere; }
.sources h2, .same-board h2 { font-size: 13px; margin: 0 0 2px; color: var(--mute); font-weight: 700; }
.sources ul { margin: 0; padding-left: 1.3em; }
.tags { font-size: 12px; color: var(--mute); margin: 12px 0 0; }
.tags a { padding: 4px 0; }
.same-board { margin-top: 22px; }
.operator-note { margin-top: 22px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.7; }
.operator-note h2 { font-size: 13px; margin: 0 0 2px; color: var(--mute); font-weight: 700; }
.operator-note p { margin: 0 0 4px; }
.operator-note a { display: inline-block; padding: 8px 0; font-weight: 700; }
.fixnote { font-size: 12px; color: var(--mute); margin: 14px 0 0; }

/* 新着の冒頭(トップ・板・全スレ・タグ) */
.bn { list-style: none; margin: 0 0 12px; padding: 0; font-size: 13px; line-height: 1.6; }
.bn li { padding: 1px 0; }
.bn a { font-weight: 700; padding: 3px 0; display: inline-block; min-width: 2.6em; }
.hd { padding: 14px 0 8px; border-bottom: 2px solid var(--pane-line); }
.hd:first-of-type { padding-top: 6px; }
.hd-t { font-size: 18px; line-height: 1.4; font-weight: 700; margin: 0; }
.hd .tv-meta { border-bottom: 0; margin: 2px 0 4px; padding-bottom: 0; }
.hd .post { margin-top: 4px; }
.hd-more { margin: 4px 0 4px; font-size: 14px; }
.hd-more a { padding: 6px 0; display: inline-block; }
.rest-h { font-size: 13px; color: var(--mute); margin: 20px 0 4px; font-weight: 700; }
.more { font-size: 14px; margin: 14px 0 0; }

/* 題名だけの一覧(右の列) */
.tl { list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.5; }
.tl li { display: grid; grid-template-columns: 2.4em minmax(0, 1fr); column-gap: 6px; padding: 5px 0; border-bottom: 1px solid var(--rule); }
.tl .n { text-align: right; color: var(--mute); font-size: 12px; padding-top: 3px; }
.tl .row { display: flex; flex-direction: column; min-width: 0; }
.tl .row > a { padding: 2px 0; }
.tl .sub { font-size: 12px; color: var(--mute); }
.tl .empty { display: block; color: var(--mute); }

/* 旧書式の記事に残る部品。崩れない最低限だけ。 */
.point-box, .note-box, .experience-box, .cta-box { margin: 0 0 1em; padding: 6px 12px; border-left: 3px solid var(--line); background: var(--res-sunken); }
.point-box-title, .cta-label { font-weight: 700; margin: 0 0 .3em; }
.fine-print { font-size: 12px; color: var(--mute); }
.compare-table { max-width: 100%; }
a.btn { display: inline-block; border: 1px solid var(--line); padding: 2px 10px; }

/* 広告枠(スロットIDが入るまで何も出力されない) */
.ad-slot { margin: 14px 0; padding: 6px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ad-label { font-size: 11px; color: var(--mute); margin-bottom: 4px; }

/* ---- 固定ページ ---- */
.tv .static-page h1 { font-size: 22px; margin: 0 0 12px; padding: 0; }
.static-page h2 { font-size: 16px; margin: 1.8em 0 .5em; padding-top: .6em; border-top: 1px solid var(--line); }
.static-page h3 { font-size: 15px; margin: 1.4em 0 .4em; }
.static-page ul, .static-page ol { padding-left: 1.5em; margin: 0 0 1em; }
.static-page li { margin-bottom: .3em; }
.static-page table { min-width: 100%; }
.static-page .table-wrap { margin: 0 0 1em; }

/* ---- フォーム・ボタン(検索と送信と道具のみ) ---- */
input, select, textarea, button { font: inherit; color: var(--ink); }
input[type="text"], input[type="search"], input[type="email"], input[type="number"], input[type="date"], select, textarea {
  background: var(--res); border: 1px solid var(--pane-line); border-radius: 0; padding: 6px 8px; max-width: 100%; min-height: 36px;
}
textarea { width: 100%; min-height: 120px; }
button, .tool-btn, .contact-form button[type="submit"], .site-search-form button {
  background: var(--res-sunken); border: 1px solid var(--ink); border-radius: 0; padding: 5px 14px; min-height: 36px; cursor: pointer;
}
button:hover, .tool-btn:hover { background: var(--line); }
.site-search-form { margin: 8px 0 10px; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: 14px; }
.site-search-form input { flex: 1 1 200px; }
.search-count { font-size: 13px; color: var(--mute); }
.contact-form { margin: 18px 0; }
.contact-form .form-row { margin-bottom: 12px; }
.contact-form label { display: block; margin-bottom: 4px; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; }
.contact-form .hp-field { position: absolute; left: -9999px; top: -9999px; }

/* ---- 道具 ---- */
.tool-page-head { margin: 0 0 12px; }
.tv .tool-page-head h1 { font-size: 22px; margin: 0 0 6px; padding: 0; }
.tool-lead { color: var(--mute); }
.trust-badges { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 6px 0 0; font-size: 12px; color: var(--mute); }
.tool-panel, .tool-workspace { border-top: 2px solid var(--pane-line); border-bottom: 1px solid var(--pane-line); padding: 14px 0; margin: 12px 0 18px; }
.tool-panel h2 { font-size: 15px; margin: 0 0 8px; }
.tool-panel label { display: block; margin-bottom: 10px; font-size: 14px; }
.tool-panel label input, .tool-panel label select { display: block; width: 100%; margin-top: 4px; }
.form-row { margin-bottom: 12px; }
.form-row label, .tool-workspace label { display: block; margin-bottom: 4px; font-size: 14px; }
.form-row input, .form-row select, .form-row textarea { width: 100%; max-width: 100%; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-error { color: var(--warn); font-weight: 700; font-size: 14px; }
.tool-output-wrap { margin-top: 12px; }
.tool-output { width: 100%; min-height: 170px; background: var(--res-sunken); border: 1px solid var(--line); padding: 10px; white-space: pre-wrap; font-family: var(--mono); font-size: 13px; line-height: 1.7; }
.tool-output-actions, .result-actions, .common-tool-actions, .tool-inline-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.copy-status, .hint, .result-check { font-size: 12px; color: var(--mute); }
.tool-result { margin-top: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.tool-result > div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.tool-result strong { font-variant-numeric: tabular-nums; }
.result-total { font-weight: 700; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0; margin: 12px 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stat-tile { padding: 8px 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-tile .num { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-tile .label { font-size: 12px; color: var(--mute); }
.limit-list { margin: 12px 0; }
.limit-row { padding: 6px 0; border-bottom: 1px solid var(--rule); }
.limit-row .limit-head { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; margin-bottom: 3px; }
.limit-row .limit-head .name { font-weight: 700; }
.limit-bar { height: 6px; background: var(--res-sunken); border: 1px solid var(--line); }
.limit-bar > div { height: 100%; background: var(--ok); }
.limit-row.over .limit-bar > div { background: var(--warn); }
.limit-row.over .limit-head .status { color: var(--warn); font-weight: 700; }
.shindan-q { border-bottom: 1px solid var(--rule); padding: 10px 0; }
.shindan-q .q-text { font-weight: 700; margin-bottom: 6px; }
.shindan-q .q-opts { display: flex; flex-direction: column; gap: 4px; }
.shindan-q label { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); cursor: pointer; min-height: 40px; }
.q-opts label.is-selected { border-color: var(--ok); }
.shindan-result { border-top: 3px solid var(--ok); padding: 10px 0; margin-top: 14px; }
.shindan-result .type-name { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.shindan-result .related-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 6px 0 10px; }
.share-x { display: inline-block; border: 1px solid var(--ink); padding: 4px 12px; color: var(--ink) !important; }
.diagnosis-progress { margin-bottom: 12px; font-size: 13px; color: var(--mute); }
.diagnosis-progress div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.diagnosis-progress progress { width: 100%; height: 8px; accent-color: var(--ok); }
.tool-details { margin: 6px 0 12px; }
.tool-details summary { cursor: pointer; font-weight: 700; }
.check-row { display: flex !important; align-items: center; gap: 8px; margin-top: 8px !important; }
.check-row input { width: auto !important; min-height: auto !important; margin-top: 0 !important; display: inline-block !important; }
/* 生成ツール(content/generated_tools)に埋まった個別スタイルを、サイトの見た目へ揃える */
.generated-tool section { max-width: none !important; padding: 0 !important; background: transparent !important; border: 0 !important; border-radius: 0 !important; color: inherit !important; font-family: inherit !important; }
.generated-tool h2 { font-size: 15px !important; }
.generated-tool p { color: var(--mute) !important; }
.generated-tool label { display: block; font-size: 14px; }
.generated-tool input { border: 1px solid var(--pane-line) !important; border-radius: 0 !important; padding: 6px 8px !important; font-size: 15px !important; background: var(--res) !important; color: var(--ink) !important; }
.generated-tool button { border: 1px solid var(--ink) !important; border-radius: 0 !important; background: var(--res-sunken) !important; color: var(--ink) !important; font-size: 15px !important; font-weight: 400 !important; padding: 5px 14px !important; }
.generated-tool [aria-live] { border-radius: 0 !important; background: var(--res-sunken) !important; border-top: 1px solid var(--line); color: var(--ink) !important; }
.tool-disclaimer { font-size: 12px; color: var(--mute); margin: 0 0 14px; }
.breadcrumb { font-size: 12px; color: var(--mute); margin-bottom: 10px; }
.breadcrumb .sep { margin: 0 .4em; }
.section-title { font-size: 15px; margin: 18px 0 6px; }
.post-body ol, .post-body ul { padding-left: 1.5em; }
.notice { font-size: 14px; border-left: 3px solid var(--warn); padding-left: 10px; }
.empty-state { color: var(--mute); }

/* ---- フッタ(右の列の末尾) ---- */
.foot { border-top: 1px solid var(--pane-line); color: var(--mute); font-size: 12px; line-height: 1.8; }
.foot-in { max-width: 816px; margin: 0 auto; padding: 10px 12px 28px; }
.foot p { margin: 0 0 4px; }
.foot a { color: var(--link); padding: 4px 0; }
.foot a:visited { color: var(--visited); }

/* ---- スマホ・タブレット(1023px以下は1列) ---- */
@media (max-width: 1023px) {
  .pl-h { order: 0; }
  .pl-list { order: 1; border-bottom: 2px solid var(--pane-line); }
  .pane-right { order: 2; }
  /* 非スレページ: 一覧は画面の高さの42%の枠内で送る。開いたページ本体が第1画面に入る */
  .pl { max-height: 42vh; overflow-y: auto; overscroll-behavior: contain; }
  /* スレページ: 本文が先、一覧(最新20本)は同じ板の別スレのあとへ */
  .is-thread .pane-right, .is-doc .pane-right { order: 1; }
  .is-thread .pl-list, .is-doc .pl-list { order: 2; border-top: 2px solid var(--pane-line); border-bottom: 0; }
  .is-thread .pl, .is-doc .pl { max-height: none; overflow: visible; }
  .is-thread .pl li.late:not(.on), .is-doc .pl li.late:not(.on) { display: none; }
  .is-thread .pl-lede, .is-doc .pl-lede { display: none; }
  .pl .tt { font-size: 14px; }
  .pl li a { padding: 7px 10px 7px 8px; }
}

/* ---- PC(1024px以上は二画面) ---- */
@media (min-width: 1024px) {
  .pc-only { display: inline; }
  .sp-only { display: none; }
  .app { display: grid; grid-template-columns: 340px minmax(0, 1fr); }
  .pane-left {
    display: block; position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain;
    background: var(--pane); border-right: 1px solid var(--pane-line);
  }
  .pl-h { position: sticky; top: 0; z-index: 1; }
  .pl-list { border: 0; }
  .pl { max-height: none; overflow: visible; }
  .pl li a { padding: 3px 10px 3px 8px; }
  .pane-right { order: 0; }
  .tv { padding: 12px 28px 40px; }
  .foot-in { padding: 10px 28px 28px; }
  .tv h1 { font-size: 26px; }
  .tv h1.list-h1 { font-size: 22px; }
}

@media (max-width: 1023px) {
  .tv h1 { font-size: 25px; }
  .tv h1.list-h1 { font-size: 21px; }
}

/* ---- 印刷 ---- */
@media print {
  .pane-left, .foot, .ad-slot, .skip-link { display: none; }
  .app { display: block; }
  body { background: #fff; color: #000; }
}

/* 困りごと別の入口。既存の掲示板の配色と本文幅を使う。 */
.purpose-intro { padding: 12px 0 22px; border-bottom: 3px solid var(--ok); }
.purpose-eyebrow { color: var(--ok); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.tv .purpose-intro h1 { font-size: clamp(24px, 3vw, 34px); line-height: 1.5; margin: 12px 0; }
.purpose-nav { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 20px 0 12px; }
.purpose-nav a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 12px; border: 1px solid var(--pane-line); background: var(--pane); font-weight: 700; }
.purpose-proof { font-size: 12px; color: var(--mute); }
.purpose-section { padding: 22px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 16px; }
.purpose-section h2 { margin: 0 0 6px; font-size: 20px; }
.purpose-section > p { margin: 0 0 12px; color: var(--mute); }
.purpose-links { list-style: none; padding: 0; margin: 0; }
.purpose-links a { display: grid; grid-template-columns: 24px minmax(0,1fr) 16px; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.purpose-number { color: var(--ok); font-weight: 700; }
.purpose-links small { display: block; color: var(--mute); font-size: 12px; margin-top: 4px; }
.purpose-tool { display: inline-block; padding: 10px 0; }
.purpose-next li a { display: inline-block; padding: 8px 0; }
.purpose-nav a:focus-visible, .purpose-links a:focus-visible { outline: 2px solid var(--ok); outline-offset: 3px; }
@media (max-width: 1023px) {
 .is-home .pane-right { order: 1; }
 .is-home .pl-list { order: 2; }
 .is-home .pl { max-height: none; }
 .is-home .pl li.late { display: none; }
}
@media (max-width: 600px) { .purpose-nav { grid-template-columns: 1fr; } .purpose-nav a { min-height: 44px; } }

/* 編集部回答型Q&A。質問と短い回答を本文の前に置く。 */
.qa-answer { background: var(--pane); border-left: 4px solid var(--ok); padding: 16px; margin: 18px 0 24px; }
.qa-answer h2 { font-size: 20px; margin: 8px 0; }
.qa-label { font-size: 13px; font-weight: 700; color: var(--ok); }
.qa-note { font-size: 12px; color: var(--mute); }
.qa-jumps, .qa-entry { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.qa-jumps a, .qa-entry a { display: inline-block; padding: 8px 0; }
.qa-entry { margin: 12px 0; }
.qa-list { padding-left: 24px; }
.qa-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.qa-list h2 { font-size: 19px; margin: 0 0 8px; }
.qa-list p { margin: 8px 0; }
.qa-search { margin: 20px 0; }
.qa-search label { display: block; font-weight: 700; margin-bottom: 6px; }
.qa-search div { display: flex; gap: 8px; }
.qa-search input { flex: 1; min-width: 0; padding: 10px; font: inherit; border: 1px solid var(--line); }
.qa-search button { padding: 10px 16px; font: inherit; border: 1px solid var(--ink); background: var(--pane); color: var(--ink); }
.qa-jumps a:focus-visible, .qa-entry a:focus-visible, .qa-list a:focus-visible { outline: 2px solid var(--ok); outline-offset: 3px; }
