/* 建設職アトラス — 建設の職業情報メディア。
   背景はオフホワイトの紙色、濃紺は見出し帯とフッターに限定、アクセントは安全橙。
   固有モチーフ: 建物の断面詳細図のレベル記号 ▽ と寸法線の細い罫線 */
:root {
  --paper: #f6f4ee; --surface: #fffefb; --ink: #1c2530; --muted: #56616c; --line: #d8d3c6; --line-soft: #e8e4d9;
  --navy: #1f3347; --navy-2: #2b455e; --accent: #d9622b; --accent-ink: #a8431a;
  --monopoly: #a8372a; --monopoly-bg: #f8e6e2;
  --placement: #1f5f82; --placement-bg: #e1eef5;
  --license: #7a5d12; --license-bg: #f5ecd0;
  --skill: #2f6b46; --skill-bg: #e2f0e7;
  --st-held: #2f6b46; --st-ready: #1f5f82; --st-next: #8a6a12; --st-near: #b45a1c; --st-check: #6a6f76; --st-far: #8d949b;
  --radius: 6px; --wrap: 1120px;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Noto Sans JP", "BIZ UDPGothic", Meiryo, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Consolas, "Courier New", monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.85; color: var(--ink); background: var(--paper); letter-spacing: .01em; overflow-wrap: break-word; word-break: auto-phrase; line-break: strict; }
img, svg { max-width: 100%; }
a { color: var(--placement); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { line-height: 1.4; font-weight: 700; margin: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: .8125rem; color: var(--muted); line-height: 1.7; }
.mono { font-family: var(--mono); }

/* ヘッダー */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header::before { content: ""; display: block; height: 4px; background: var(--navy); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; padding-block: 6px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.logo { width: 34px; height: 34px; color: var(--navy); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-ja { font-size: 1.375rem; font-weight: 800; letter-spacing: .12em; }
.brand-en { font-size: .6875rem; color: var(--muted); letter-spacing: .08em; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; flex-wrap: wrap; }
.site-nav a { display: block; padding: 8px 12px; text-decoration: none; color: var(--ink); font-size: .9375rem; font-weight: 600; border-bottom: 3px solid transparent; }
.site-nav a:hover { color: var(--accent-ink); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.site-nav .ns { display: none; }

/* ボタン・部品 */
.btn { display: inline-block; padding: 10px 20px; background: var(--navy); color: #fff; border: 1px solid var(--navy); border-radius: var(--radius); text-decoration: none; font-weight: 700; font-size: .9375rem; cursor: pointer; font-family: inherit; line-height: 1.5; }
.btn:hover { background: var(--navy-2); color: #fff; }
.btn-accent { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn-accent:hover { background: var(--navy); border-color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.link-arrow { font-weight: 700; }
.tag, .gate, .role, .conf { display: inline-block; font-size: .75rem; font-weight: 700; line-height: 1.5; padding: 1px 8px; border-radius: 3px; vertical-align: middle; white-space: nowrap; }
.gate-monopoly { color: var(--monopoly); background: var(--monopoly-bg); }
.gate-placement { color: var(--placement); background: var(--placement-bg); }
.gate-license { color: var(--license); background: var(--license-bg); }
.gate-skill { color: var(--skill); background: var(--skill-bg); }
.role { color: var(--navy); background: #e6ebf0; }
.tag-deep { color: #fff; background: var(--navy); }
.tag-basic { color: var(--muted); background: #ece8dc; }
.conf-page { color: var(--skill); border: 1px solid var(--skill); background: transparent; }
.conf-search { color: var(--accent-ink); border: 1px solid var(--accent); background: #fdf0e8; }
.conf-none { color: var(--muted); border: 1px dashed var(--muted); }
.eyebrow { font-size: .8125rem; font-weight: 700; color: var(--accent-ink); letter-spacing: .08em; margin-bottom: 10px; }

/* パンくず・ページ見出し */
.crumbs ol { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 4px; font-size: .8125rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 4px; }
.crumbs a { color: var(--muted); }
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 28px 0 26px; }
.page-head h1 { font-size: clamp(1.5rem, 3.4vw, 2.125rem); color: var(--navy); margin-bottom: 12px; }
.lede { font-size: 1.0625rem; max-width: 46em; margin-bottom: 0; color: #2a3541; }
.kana { color: var(--muted); font-size: .875rem; margin-bottom: 12px; }
.points { margin: 16px 0 0; padding-left: 1.2em; max-width: 46em; }
.points li { margin-bottom: 4px; }

/* 節の見出し: ▽ とレベル番号 + 寸法線 */
.block { padding: 36px 0 8px; scroll-margin-top: 80px; }
.lv { display: flex; align-items: baseline; gap: 10px; font-size: 1.3125rem; color: var(--navy); margin: 0 0 18px; padding-bottom: 8px; border-bottom: 1px solid var(--navy); position: relative; }
.lv::after { content: ""; position: absolute; right: 0; bottom: -4px; width: 56px; height: 7px; border-left: 1px solid var(--navy); border-right: 1px solid var(--navy); }
.lv-mark { color: var(--accent); font-size: .9em; }
.lv-no { font-family: var(--mono); font-size: .875rem; color: var(--muted); letter-spacing: .06em; }
.lv-text { flex: 1; }
.sec-lead { max-width: 46em; color: #2a3541; }

/* トップ */
.hero { background: linear-gradient(180deg, var(--surface), var(--paper)); border-bottom: 1px solid var(--line); padding: 40px 0 36px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 36px; align-items: center; }
.hero h1 { font-size: clamp(1.875rem, 4.6vw, 3rem); color: var(--navy); line-height: 1.3; letter-spacing: .02em; margin-bottom: 18px; }
.hero-lede { max-width: 38em; color: #2a3541; }
.hero-search { display: flex; gap: 8px; margin: 18px 0 14px; }
.hero-search input { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid #aaa597; border-radius: var(--radius); font: inherit; background: #fff; }
.hero-links { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; }
.hero-fig { margin: 0; background: var(--surface); border: 1px solid var(--line); padding: 14px 14px 10px; border-radius: var(--radius); }
.hero-fig figcaption { font-size: .75rem; color: var(--muted); margin-top: 6px; }

/* 断面図(SVG) */
.section-svg { width: 100%; height: auto; display: block; }
.section-svg .zone { fill: #f1eee4; stroke: #8b8676; stroke-width: 1; }
.section-svg .zone.on { fill: #f6c9ad; stroke: var(--accent-ink); stroke-width: 1.6; }
.section-svg .zone.ops { fill: #e4eaf0; stroke: #7b8a99; }
.section-svg .zone.ops.on { fill: #bcd0e2; stroke: var(--placement); }
.section-svg .zl { font-size: 14px; fill: var(--ink); font-family: var(--font); font-weight: 600; }
.section-svg.compact .zl { font-size: 11.5px; }
.section-svg .zl.on { fill: #5b1f08; }
.section-svg .zl.vert { font-size: 12px; }
.section-svg .tick, .section-svg .gl { stroke: var(--navy); stroke-width: 1.4; }
.section-svg .tri { fill: var(--accent); }
.section-svg .lvl { font-size: 11px; fill: var(--navy); font-family: var(--mono); font-weight: 700; }
.section-svg a .zg { cursor: pointer; }
.section-svg a:hover .zone, .section-svg a:focus-visible .zone { fill: #f6c9ad; stroke: var(--accent-ink); }
.section-svg a:hover .zone.ops, .section-svg a:focus-visible .zone.ops { fill: #bcd0e2; }

/* カード群 */
.feat-list, .job-list, .rel-list, .pair-list { list-style: none; padding: 0; margin: 0; }
.feat-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feat a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.feat a:hover { border-top-color: var(--accent); box-shadow: 0 2px 10px rgba(31,51,71,.12); }
.job-code { font-family: var(--mono); font-size: .75rem; color: var(--muted); letter-spacing: .08em; }
.feat-title { font-size: 1.25rem; font-weight: 700; color: var(--navy); }
.feat-lede { font-size: .9375rem; line-height: 1.75; flex: 1; }
.feat-meta, .job-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.feat-more { font-weight: 700; color: var(--placement); font-size: .875rem; }
.gate-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gate-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; font-size: .9375rem; line-height: 1.7; }
.gate-card p { margin-bottom: 8px; }
.gate-ex { color: var(--muted); font-size: .8125rem; }
.gate-jobs { font-size: .8125rem; margin: 0; }
.gate-card-monopoly { border-top: 4px solid var(--monopoly); } .gate-card-placement { border-top: 4px solid var(--placement); } .gate-card-license { border-top: 4px solid var(--license); } .gate-card-skill { border-top: 4px solid var(--skill); }
.sec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sec-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.sec-card h3 { color: var(--navy); font-size: 1.0625rem; margin-bottom: 4px; }
.sec-card p { font-size: .875rem; color: var(--muted); }
.sec-card ul { margin: 0; }
.trust-list li { margin-bottom: 8px; }

/* 職業一覧 */
.filter { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 12px 14px; align-items: end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 24px 0 8px; }
.f-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.f-field label { font-size: .8125rem; font-weight: 700; color: var(--navy); }
.f-field input, .f-field select, .route-form select { font: inherit; font-size: .9375rem; padding: 9px 10px; border: 1px solid #aaa597; border-radius: var(--radius); background: #fff; color: var(--ink); width: 100%; min-width: 0; }
.f-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; }
.f-count { margin: 0; font-weight: 700; color: var(--navy); }
.jobs-main { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; padding-bottom: 40px; }
.zone-aside { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; position: sticky; top: 84px; }
.aside-h { font-weight: 700; color: var(--navy); margin-bottom: 8px; font-size: .9375rem; }
.job-list { display: flex; flex-direction: column; gap: 12px; }
.job-card { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: var(--radius); position: relative; }
.job-card[hidden] { display: none; }
.job-card:hover { border-left-color: var(--accent); }
.job-link { display: grid; gap: 4px; padding: 14px 16px 14px; text-decoration: none; color: var(--ink); }
.job-title { font-size: 1.1875rem; font-weight: 700; color: var(--navy); }
.job-short { font-size: .875rem; color: #2a3541; line-height: 1.7; }
.job-section { position: absolute; right: 12px; top: 12px; font-size: .75rem; color: var(--muted); }
.hit-note { font-size: .75rem; color: var(--accent-ink); }
.empty { padding: 24px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }

/* 職業ページ */
.job-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; align-items: start; padding-bottom: 56px; }
.toc { position: sticky; top: 84px; font-size: .875rem; padding-top: 28px; max-height: calc(100vh - 100px); overflow: auto; }
.toc-h { font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 5px 10px; margin-left: -1px; border-left: 3px solid transparent; text-decoration: none; color: var(--muted); line-height: 1.5; }
.toc a:hover { color: var(--ink); }
.toc a[aria-current="true"] { border-left-color: var(--accent); color: var(--ink); font-weight: 700; }
.toc-no { font-family: var(--mono); font-size: .6875rem; margin-right: 6px; opacity: .7; }
.job-body { min-width: 0; }
.job-body p, .job-body li { max-width: 46em; }
.facts { margin: 0; display: grid; gap: 0; border: 1px solid var(--line); background: var(--surface); }
.facts > div { display: grid; grid-template-columns: 9em 1fr; border-bottom: 1px solid var(--line-soft); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { background: #efece2; padding: 10px 14px; font-weight: 700; font-size: .875rem; color: var(--navy); }
.facts dd { margin: 0; padding: 10px 14px; font-size: .9375rem; }
.tasks { list-style: none; padding: 0; margin: 0 0 8px; border: 1px solid var(--line); background: var(--surface); }
.tasks li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 14px; border-bottom: 1px solid var(--line-soft); max-width: none; }
.tasks li:last-child { border-bottom: 0; }
.task-rate { font-family: var(--mono); font-weight: 700; color: var(--navy); flex: none; }
.zone-wrap { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--line); padding: 16px; border-radius: var(--radius); }
.flow { list-style: none; padding: 0; margin: 16px 0; counter-reset: none; }
.flow li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding-bottom: 20px; position: relative; max-width: none; }
.flow li::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: repeating-linear-gradient(to bottom, var(--navy) 0 6px, transparent 6px 10px); }
.flow li:last-child::before { display: none; }
.flow-no { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center; font-family: var(--mono); }
.flow-body h3 { font-size: 1.0625rem; color: var(--navy); margin-bottom: 4px; }
.flow-zone { font-size: .75rem; font-weight: 600; color: var(--accent-ink); border: 1px solid var(--accent); padding: 0 8px; border-radius: 99px; margin-left: 6px; white-space: nowrap; }
.flow-body p { margin-bottom: 6px; }
.flow-with { font-size: .875rem; color: var(--muted); }
.flow-with span { font-weight: 700; color: var(--navy); margin-right: 8px; }
.sub-h { font-size: 1.0625rem; color: var(--navy); margin: 22px 0 10px; }
.manage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 10px; }
.manage > div { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); padding: 10px 14px; }
.manage dt { font-weight: 800; color: var(--navy); } .manage dd { margin: 2px 0 0; font-size: .875rem; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.tool h3 { font-size: .9375rem; color: var(--navy); margin-bottom: 6px; }
.tool ul { margin: 0; padding-left: 1.2em; font-size: .875rem; }
.skills > div { background: var(--surface); border: 1px solid var(--line); padding: 10px 14px; margin-bottom: 8px; display: grid; grid-template-columns: 11em 1fr; gap: 12px; }
.skills dt { font-weight: 700; color: var(--navy); } .skills dd { margin: 0; font-size: .9375rem; }
.gate-lead { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--navy); padding: 12px 16px; max-width: 46em; }
.qual-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 16px 0; }
.qual-card h3 { font-size: 1.125rem; color: var(--navy); margin-bottom: 8px; }
.qual-kind { font-size: .75rem; font-weight: 600; color: var(--muted); margin-left: 8px; }
.qual-card dl { margin: 0; display: grid; grid-template-columns: 9em 1fr; gap: 6px 14px; font-size: .9375rem; }
.qual-card dt { font-weight: 700; color: var(--navy); font-size: .8125rem; padding-top: 2px; }
.qual-card dd { margin: 0; } .qual-card dd ul { margin: 0; padding-left: 1.2em; }
.law-box { border: 2px solid var(--navy); background: var(--surface); padding: 14px 18px; margin: 20px 0; }
.law-box h3 { font-size: 1rem; color: var(--navy); margin-bottom: 8px; }
.law-table, .facts-table, .cmp-table { border-collapse: collapse; width: 100%; background: var(--surface); }
.law-table th, .law-table td, .facts-table th, .facts-table td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; font-size: .9375rem; }
.law-table th, .facts-table thead th, .facts-table tbody th { background: #efece2; color: var(--navy); font-weight: 700; }
.caution { background: #fdf0e8; border: 1px solid var(--accent); border-left-width: 5px; padding: 10px 14px; font-size: .875rem; max-width: 46em; }
.qual-list { list-style: none; padding: 0; } .qual-list li { padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 8px; display: flex; flex-direction: column; gap: 2px; } .qual-list span { font-size: .875rem; color: var(--muted); }
.mini-link { font-size: .8125rem; font-weight: 700; }
.env-points li { margin-bottom: 6px; }
.env-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; background: var(--surface); border: 1px solid var(--line); padding: 14px 16px; margin-bottom: 8px; }
.env-row { display: grid; grid-template-columns: 11em 1fr; align-items: center; gap: 10px; font-size: .875rem; }
.bar { display: inline-flex; align-items: center; gap: 8px; width: 100%; height: 12px; background: #e9e5d8; border-radius: 99px; position: relative; }
.bar-fill { display: block; height: 100%; background: var(--navy); border-radius: 99px; }
.bar-num { position: absolute; right: 6px; top: -4px; font-size: .75rem; font-family: var(--mono); font-weight: 700; color: var(--navy); }
.bar.na { background: none; font-size: .75rem; color: var(--muted); height: auto; }
.env-row .bar { margin-right: 36px; width: auto; flex: 1; }
.cmp-table .bar { display: block; margin-top: 6px; width: 100%; max-width: 160px; }
.career { list-style: none; padding: 0; counter-reset: c; }
.career li { display: grid; grid-template-columns: 8em 1fr; gap: 12px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--navy); margin-bottom: 8px; max-width: none; }
.career strong { color: var(--navy); }
.faq details { background: var(--surface); border: 1px solid var(--line); margin-bottom: 8px; border-radius: var(--radius); }
.faq summary { cursor: pointer; padding: 12px 16px; font-weight: 700; color: var(--navy); }
.faq details p { padding: 0 16px 12px; margin: 0; }
.rel-list li { padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 8px; display: flex; flex-direction: column; max-width: none; }
.rel-list span { font-size: .8125rem; color: var(--muted); }
.provenance { margin: 44px 0 0; border: 2px solid var(--navy); background: var(--surface); padding: 18px 22px; }
.prov-h { font-size: 1.0625rem; color: var(--navy); margin-bottom: 10px; }
.provenance dl { display: grid; grid-template-columns: 7em 1fr; gap: 8px 14px; margin: 0 0 8px; font-size: .9375rem; }
.provenance dt { font-weight: 700; color: var(--navy); } .provenance dd { margin: 0; } .provenance ul { margin: 0; padding-left: 1.2em; }
.prov-note { font-size: .8125rem; color: var(--muted); margin: 0; }

/* 比較 */
.cmp-form { grid-template-columns: repeat(3, 1fr); }
.cmp-out { margin-top: 20px; }
.cmp-notes { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--accent); padding: 14px 18px; margin: 20px 0 16px; }
.cmp-h { font-size: 1.0625rem; color: var(--navy); margin-bottom: 6px; }
.cmp-notes ul { margin: 0; }
.cmp-scroll { overflow-x: auto; border: 1px solid var(--line); }
.cmp-table th, .cmp-table td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; font-size: .9375rem; min-width: 190px; }
.cmp-table thead th { background: var(--navy); color: #fff; position: sticky; top: 0; }
.cmp-table thead th a { color: #fff; }
.cmp-table tbody th { background: #efece2; color: var(--navy); min-width: 150px; position: sticky; left: 0; }
.row-note { display: block; font-size: .6875rem; font-weight: 400; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.pair-list li { margin-bottom: 8px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; max-width: none; }
.pair-list a { font-weight: 700; } .pair-list span { font-size: .875rem; color: var(--muted); }

/* 資格ルート図 */
.route-wrap { padding-bottom: 56px; }
.route-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 24px 0 14px; }
.rf-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; }
.rf-field { display: flex; flex-direction: column; gap: 4px; }
.rf-field label { font-size: .8125rem; font-weight: 700; color: var(--navy); }
.rf-note { font-size: .8125rem; color: var(--muted); margin: 10px 0 0; }
.route-summary { background: #eaf1f6; border: 1px solid var(--placement); border-left-width: 6px; padding: 12px 18px; margin-bottom: 14px; }
.route-summary p { margin: 0 0 4px; } .sum-goal { margin-top: 6px !important; }
.legend { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.st { display: inline-block; font-size: .75rem; font-weight: 700; padding: 1px 10px; border-radius: 99px; color: #fff; }
.st-held { background: var(--st-held); } .st-ready { background: var(--st-ready); } .st-next { background: var(--st-next); } .st-near { background: var(--st-near); } .st-check { background: var(--st-check); } .st-far { background: var(--st-far); }
.goal-h { font-size: 1.375rem; color: var(--navy); margin-bottom: 12px; }
.holdings { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 10px 16px 12px; margin: 0 0 18px; }
.holdings legend { font-weight: 700; font-size: .875rem; color: var(--navy); padding: 0 6px; }
.hold-grid { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.hold { font-size: .875rem; display: flex; gap: 6px; align-items: center; }
.hold input { width: 18px; height: 18px; accent-color: var(--navy); }
.route-board { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; align-items: start; }
.route-lines { display: none; position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.route-lane { position: relative; z-index: 1; }
.lane-h { font-size: .9375rem; color: #fff; background: var(--navy); padding: 8px 12px; margin-bottom: 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.lane-no { font-family: var(--mono); font-size: .75rem; opacity: .8; }
.lane-lead { font-size: .6875rem; font-weight: 400; opacity: .8; flex-basis: 100%; }
.lane-nodes { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.rn { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--st-far); border-radius: var(--radius); padding: 10px 12px; font-size: .875rem; line-height: 1.6; cursor: pointer; transition: opacity .15s, box-shadow .15s; }
.rn[data-state="held"] { border-left-color: var(--st-held); } .rn[data-state="ready"] { border-left-color: var(--st-ready); background: #f1f7fb; } .rn[data-state="next"] { border-left-color: var(--st-next); } .rn[data-state="near"] { border-left-color: var(--st-near); } .rn[data-state="check"] { border-left-color: var(--st-check); border-left-style: dashed; } .rn[data-state="far"] { border-left-color: var(--st-far); }
.rn-top { display: flex; flex-direction: column; gap: 2px; }
.rn-state { font-size: .6875rem; font-weight: 700; color: var(--muted); }
.rn[data-state="ready"] .rn-state { color: var(--st-ready); } .rn[data-state="held"] .rn-state { color: var(--st-held); } .rn[data-state="near"] .rn-state { color: var(--st-near); } .rn[data-state="next"] .rn-state { color: var(--st-next); }
.rn-label { font-size: .9375rem; font-weight: 700; color: var(--navy); }
.rn-sub { margin: 2px 0 6px; font-size: .75rem; color: var(--muted); line-height: 1.5; }
.rn-alts { list-style: none; margin: 6px 0; padding: 0; }
.rn-alts li { display: grid; grid-template-columns: 1.4em 1fr; gap: 4px; padding: 4px 0; border-top: 1px dashed var(--line); font-size: .8125rem; }
.rn-alts li + li::before { content: none; }
.alt-mark { font-weight: 800; text-align: center; color: var(--st-far); }
.rn-alts li[data-mark="ok"] .alt-mark { color: var(--st-held); } .rn-alts li[data-mark="next"] .alt-mark { color: var(--st-next); } .rn-alts li[data-mark="near"] .alt-mark { color: var(--st-near); } .rn-alts li[data-mark="check"] .alt-mark { color: var(--st-check); } .rn-alts li[data-mark="no"] .alt-mark { color: var(--monopoly); }
.alt-note { color: var(--muted); font-size: .75rem; }
.rn-detail { font-size: .75rem; margin-top: 4px; } .rn-detail summary { cursor: pointer; color: var(--placement); font-weight: 700; }
.rn-src { margin: 4px 0 0; }
.rn.sel { box-shadow: 0 0 0 3px var(--accent); }
.has-focus .rn.dim { opacity: .35; }
.rl { fill: none; stroke: #9ba6b0; stroke-width: 1.5; }
.has-focus .rl { opacity: .15; } .has-focus .rl.on { opacity: 1; stroke: var(--accent); stroke-width: 2.4; }
.route-notes ul { max-width: 46em; }

/* 汎用文書 */
.doc { padding-top: 24px; padding-bottom: 56px; } .doc h2 { font-size: 1.25rem; color: var(--navy); margin: 28px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); } .doc h3 { font-size: 1.0625rem; color: var(--navy); margin: 20px 0 8px; } .doc p, .doc li { max-width: 46em; }
.src-list { list-style: none; padding: 0; } .src-list li { background: var(--surface); border: 1px solid var(--line); padding: 10px 14px; margin-bottom: 8px; max-width: none; scroll-margin-top: 80px; } .src-list p { margin: 0 0 4px; }
.src-line { font-size: .875rem; }
.doc .block { padding-top: 24px; }

/* フッター */
.site-footer { background: var(--navy); color: #dfe6ec; padding: 36px 0 28px; margin-top: 40px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 28px; }
.site-footer a { color: #fff; } .site-footer .brand { color: #fff; } .site-footer .logo, .site-footer .brand-en { color: #cfd9e2; }
.site-footer h2 { font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: #aebdca; margin-bottom: 8px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; font-size: .9375rem; } .site-footer li { margin-bottom: 4px; }
.foot-lead { margin-top: 12px; font-size: .8125rem; line-height: 1.8; }
.footer-note { grid-column: 1 / -1; font-size: .75rem; color: #aebdca; border-top: 1px solid #3a5069; padding-top: 14px; margin: 0; line-height: 1.8; }

/* JS 無効時は全ルートを順に表示、有効時は選択中だけ */
html:not(.js) .route-goal[hidden] { display: block; }
html:not(.js) .route-form, html:not(.js) .route-summary, html:not(.js) .legend { display: none; }
html:not(.js) .job-card[hidden] { display: block; }

@media (min-width: 981px) { .route-lines { display: block; } }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .feat-list, .sec-grid { grid-template-columns: 1fr; }
  .gate-grid { grid-template-columns: repeat(2, 1fr); }
  .jobs-main { grid-template-columns: 1fr; } .zone-aside { position: static; max-width: 420px; }
  .filter { grid-template-columns: repeat(2, 1fr); } .f-q { grid-column: 1 / -1; }
  .job-layout { grid-template-columns: 1fr; gap: 0; } .toc { position: static; max-height: none; padding-top: 18px; } .toc ol { display: flex; flex-wrap: wrap; border: 0; gap: 4px; } .toc a { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 3px 12px; } .toc a[aria-current="true"] { border-color: var(--accent); }
  .tool-grid, .zone-wrap { grid-template-columns: 1fr; }
  .route-board { grid-template-columns: 1fr; gap: 18px; } .route-lane + .route-lane .lane-h::before { content: "↓"; }
  .rf-row, .cmp-form { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .site-header .wrap { min-height: 52px; } .brand-ja { font-size: 1.25rem; } .brand-en { display: none; }
  .site-nav .nl { display: none; } .site-nav .ns { display: inline; } .site-nav a { padding: 8px 8px; font-size: .875rem; }
  .gate-grid, .manage, .env-grid { grid-template-columns: 1fr; }
  .facts > div, .provenance dl, .qual-card dl, .skills > div, .career li { grid-template-columns: 1fr; gap: 2px; }
  .env-row { grid-template-columns: 9em 1fr; }
  .hero-search { flex-direction: column; } .hero-search .btn { width: 100%; }
  .filter { grid-template-columns: 1fr; padding: 12px; }
  .job-section { position: static; padding: 0 16px 10px; } .job-card { display: flex; flex-direction: column; }
  .lv { font-size: 1.125rem; } .lv::after { display: none; }
  .flow li { grid-template-columns: 36px 1fr; gap: 10px; } .flow-no { width: 36px; height: 36px; } .flow li::before { left: 17px; top: 36px; }
  .tasks li { flex-direction: column; gap: 2px; }
  .cmp-table th, .cmp-table td { min-width: 150px; padding: 8px 10px; font-size: .875rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print { .site-header, .site-footer, .toc, .filter, .route-form { display: none; } body { background: #fff; } }
.src-list a, .doc a { overflow-wrap: anywhere; word-break: break-all; }
.doc a[href^="/"], .doc .link-arrow { word-break: auto-phrase; }
@media (max-width: 760px) {
  .facts-table, .law-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .facts-table th, .facts-table td { min-width: 9em; }
}

/* a11y: 白文字の状態ラベルのコントラスト(まだ先)と、リンクのタップ領域 */
.st.st-far { background: #e3e6e9; color: #2c343b; box-shadow: inset 0 0 0 1px #aeb5bb; }
.site-footer li a { display: inline-block; padding: 5px 0; }
.crumbs a { display: inline-block; padding: 4px 0; }
.qual-card dd a, .law-table a, .provenance a, .rn-src a { display: inline-block; padding: 3px 0; }
.sec-card li a, .cmp-table a, .facts-table a { display: inline-block; padding: 3px 0; }
.hold { padding: 6px 4px; min-height: 32px; }
.rn-detail summary { padding: 4px 0; cursor: pointer; }
.gate-unsorted { color: #3b434a; background: #e9ebee; }
.sort-val { display: inline-block; margin-top: 4px; font-size: .8125rem; font-weight: 700; color: var(--navy); background: #eef2f6; padding: 1px 8px; border-radius: 3px; }
.f-note { grid-column: 1 / -1; margin: 0; }
.sec-count { display: inline-block; margin-left: 8px; font-size: .75rem; font-weight: 700; color: var(--muted); }
.sec-more { margin: 10px 0 0; font-size: .875rem; }
.pair-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.pair-list li { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--navy); padding: 10px 14px; }
.pair-list a { font-weight: 700; display: inline-block; padding: 3px 0; }
.pair-list span { display: block; font-size: .875rem; color: var(--muted); }
.kind-nav ul { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kind-nav a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); text-decoration: none; font-size: .875rem; font-weight: 600; color: var(--ink); }
.kind-count { margin-left: 6px; color: var(--muted); font-weight: 700; }
.qual-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.qi { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--navy); padding: 14px 16px; font-size: .9375rem; }
.qi h3 { font-size: 1.0625rem; color: var(--navy); margin-bottom: 8px; }
.qi p { margin: 0 0 8px; }
.qi-k { display: inline-block; font-size: .75rem; font-weight: 700; color: var(--muted); margin-right: 8px; }
.qi-facts { margin: 0 0 8px; display: grid; gap: 4px; }
.qi-facts div { display: grid; grid-template-columns: 9em 1fr; gap: 8px; font-size: .875rem; }
.qi-facts dt { color: var(--muted); font-weight: 700; } .qi-facts dd { margin: 0; }
.qi-jobs a { display: inline-block; padding: 3px 0; }
@media (max-width: 760px) { .qual-index { grid-template-columns: 1fr; } .qi-facts div { grid-template-columns: 1fr; gap: 0; } }
