:root {
  --bg: #ffffff; --bg-alt: #f6f7f9; --text: #1b1f24; --sub: #4a5563; --line: #d5dae1;
  --accent: #0b4fb3; --accent-bg: #e8f0fc; --focus: #0b4fb3;
  --c-removable: #0a6b3c; --c-replaceable: #0b4fb3; --c-temporary: #6b4e00;
  --c-delegated: #5a2d91; --c-required: #a12020; --c-review: #3a3f47;
  --b-removable: #e4f4ec; --b-replaceable: #e8f0fc; --b-temporary: #fbf1d4;
  --b-delegated: #f0e8fa; --b-required: #fbe7e7; --b-review: #eceef1;
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.75;
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'BIZ UDPGothic', 'Noto Sans JP', Meiryo, sans-serif; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 10; }
header.site { border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; padding-top: 10px; padding-bottom: 10px; }
.brand { font-weight: 700; color: var(--text); text-decoration: none; margin-right: auto; }
.brand small { font-weight: 400; color: var(--sub); margin-left: 6px; }
nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0; padding: 0; }
nav a { color: var(--sub); text-decoration: none; padding: 4px 2px; border-bottom: 2px solid transparent; }
nav a[aria-current='page'] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
nav a:hover { color: var(--accent); }
main { padding: 24px 0 56px; }
.eyebrow { margin: 0; font-weight: 700; color: var(--accent); letter-spacing: .05em; }
.tagline { margin: 0 0 14px; font-size: 1.05rem; font-weight: 600; color: var(--sub); }
h1 { font-size: 1.7rem; line-height: 1.4; margin: 0 0 12px; }
h2 { font-size: 1.3rem; margin: 36px 0 10px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
h3 { font-size: 1.07rem; margin: 22px 0 6px; }
p, li { max-width: 46em; }
.lead { font-size: 1.08rem; color: var(--sub); }
.note { font-size: .9rem; color: var(--sub); }
.panel { border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; background: var(--bg); margin: 12px 0; }
.panel.alt { background: var(--bg-alt); }
.cta { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 20px 0; }
.cta a { display: block; border: 1px solid var(--accent); border-radius: 6px; padding: 14px; text-decoration: none; color: var(--text); background: var(--accent-bg); }
.cta a strong { display: block; color: var(--accent); font-size: 1.05rem; }
button, select { font: inherit; color: inherit; }
.btn { border: 1px solid var(--accent); background: var(--accent); color: #fff; padding: 8px 16px; border-radius: 4px; cursor: pointer; }
.btn.ghost { background: #fff; color: var(--accent); }
.btn:hover { filter: brightness(.95); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; padding: 0; list-style: none; }
.tabs button { border: 1px solid var(--line); background: #fff; padding: 7px 14px; border-radius: 4px; cursor: pointer; }
.tabs button[aria-pressed='true'] { background: var(--accent); color: #fff; border-color: var(--accent); }
fieldset { border: 1px solid var(--line); border-radius: 6px; margin: 12px 0; padding: 10px 14px 12px; }
legend { font-weight: 700; padding: 0 6px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 4px 14px; }
label.opt { display: flex; gap: 8px; align-items: flex-start; padding: 3px 0; cursor: pointer; }
label.opt input { margin-top: .45em; width: 1.05em; height: 1.05em; }
label.opt small { display: block; color: var(--sub); line-height: 1.5; }
.item-card { border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px; margin: 10px 0; background: var(--bg-alt); }
.item-card h4 { margin: 0 0 4px; }
.item-card .row { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.item-card select { padding: 4px 6px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.q { border-top: 1px solid var(--line); padding: 8px 0; }
.q:first-of-type { border-top: 0; }
.q .choices { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.badge { display: inline-block; font-weight: 700; font-size: .85rem; padding: 1px 9px; border-radius: 4px; border: 1px solid currentColor; white-space: nowrap; }
.badge.removable { color: var(--c-removable); background: var(--b-removable); }
.badge.replaceable { color: var(--c-replaceable); background: var(--b-replaceable); }
.badge.temporary { color: var(--c-temporary); background: var(--b-temporary); }
.badge.delegated { color: var(--c-delegated); background: var(--b-delegated); }
.badge.required { color: var(--c-required); background: var(--b-required); }
.badge.review { color: var(--c-review); background: var(--b-review); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin: 12px 0; }
.tile { border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; background: var(--bg-alt); }
.tile b { display: block; font-size: 1.6rem; line-height: 1.2; }
.card { border: 1px solid var(--line); border-left: 6px solid var(--line); border-radius: 6px; padding: 10px 14px; margin: 12px 0; }
.card.removable { border-left-color: var(--c-removable); } .card.replaceable { border-left-color: var(--c-replaceable); }
.card.temporary { border-left-color: var(--c-temporary); } .card.delegated { border-left-color: var(--c-delegated); }
.card.required { border-left-color: var(--c-required); } .card.review { border-left-color: var(--c-review); }
.card h3 { margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
dl.kv { display: grid; grid-template-columns: 9em 1fr; gap: 4px 12px; margin: 6px 0; }
dl.kv dt { color: var(--sub); font-size: .9rem; } dl.kv dd { margin: 0; }
@media (max-width: 560px) { dl.kv { grid-template-columns: 1fr; } dl.kv dt { margin-top: 6px; } }
details { margin: 6px 0; } summary { cursor: pointer; font-weight: 600; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; display: block; overflow-x: auto; }
th, td { border: 1px solid var(--line); padding: 6px 9px; text-align: left; vertical-align: top; }
th { background: var(--bg-alt); }
.tag { display: inline-block; background: var(--accent-bg); color: var(--accent); border-radius: 4px; padding: 0 7px; margin: 1px 4px 1px 0; font-size: .85rem; }
.mat { font-size: .8rem; border: 1px solid var(--line); border-radius: 4px; padding: 0 6px; color: var(--sub); }
.diagram { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.diagram text { fill: var(--text); font-family: inherit; } .diagram .sub { fill: var(--sub); }
.diagram .box { fill: var(--bg-alt); stroke: #7b8594; stroke-width: 1.5; }
.diagram .hold { fill: #fbe7e7; stroke: #a12020; stroke-width: 1.5; }
.diagram .tok { fill: var(--accent-bg); stroke: var(--accent); stroke-width: 1.5; }
.diagram line, .diagram path { stroke: #4a5563; stroke-width: 1.8; fill: none; }
.diagram .dash { stroke-dasharray: 6 5; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 18px 0; font-size: .88rem; color: var(--sub); }
@media print { header.site, .actions, .noprint { display: none; } }
.legend { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.grp { border-left: 4px solid var(--line); padding: 4px 0 4px 10px; margin: 8px 0; }
.grp.high { border-left-color: var(--c-required); } .grp.mid { border-left-color: var(--c-delegated); }
.grp.low { border-left-color: var(--c-removable); } .grp.alts { border-left-color: var(--accent); }
.grp-title { font-size: .85rem; font-weight: 700; color: var(--sub); margin-bottom: 3px; }
.grp .badge { margin: 2px 6px 2px 0; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ladder { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; padding: 0; margin: 10px 0; }
.ladder li { border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; }
.ladder small { display: block; color: var(--sub); line-height: 1.45; margin-top: 2px; }
.lv { border-radius: 4px; padding: 1px 8px; font-weight: 700; font-size: .85rem; border: 1px solid currentColor; }
.ladder li.lv { font-size: 1rem; border-width: 1px; }
.lv0 { color: #0a6b3c; background: #e4f4ec; } .lv1 { color: #0b4fb3; background: #e8f0fc; }
.lv2 { color: #5a2d91; background: #f0e8fa; } .lv3 { color: #6b4e00; background: #fbf1d4; }
.lv4 { color: #3a3f47; background: #eceef1; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; margin-bottom: 8px; }
.col { border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; font-size: .92rem; }
.col-t { font-weight: 700; font-size: .85rem; margin-bottom: 3px; }
.col.own { background: var(--b-replaceable); } .col.none { background: var(--b-removable); } .col.ext { background: var(--b-required); }
pre.code { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: 12px; overflow-x: auto; font-size: .85rem; line-height: 1.55; }
.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.three .panel { margin: 0; }
table.qtable { font-size: .9rem; }
table.qtable td:first-child, table.qtable th:first-child { text-align: center; }
table.qtable tbody th[scope=row] { min-width: 7.5em; }
table.qtable tr.on td, table.qtable tr.on th { background: var(--accent-bg); }
table.qtable input[type=checkbox] { width: 1.15em; height: 1.15em; }
.imp { display: inline-block; min-width: 2.2em; text-align: center; font-weight: 700; border: 1px solid currentColor; border-radius: 4px; padding: 0 6px; }
.imp.high { color: var(--c-required); background: var(--b-required); }
.imp.mid { color: var(--c-temporary); background: var(--b-temporary); }
.imp.low { color: var(--c-removable); background: var(--b-removable); }


.article { padding-top: 20px; padding-bottom: 48px; max-width: 760px; }
.article h1 { font-size: 1.6rem; }
.article h2 { font-size: 1.2rem; margin-top: 32px; }
.answer { border-left: 6px solid var(--accent); background: var(--accent-bg); padding: 12px 16px; border-radius: 0 6px 6px 0; margin: 16px 0; }
.answer p { margin: 4px 0 0; font-size: 1.05rem; }
.timeline { list-style: none; margin: 12px 0; padding: 0 0 0 14px; border-left: 3px solid var(--line); }
.timeline li { position: relative; padding: 4px 0 14px 16px; }
.timeline li::before { content: ''; position: absolute; left: -22px; top: 10px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; }
.timeline .when { display: block; font-weight: 700; color: var(--accent); font-size: .92rem; }
.timeline .what { display: block; }
.weight { display: flex; gap: 16px; align-items: stretch; border: 1px solid var(--line); border-radius: 6px; padding: 12px 16px; background: var(--bg-alt); }
.weight-score { min-width: 96px; text-align: center; align-self: center; }
.weight-score .num { font-size: 2.4rem; font-weight: 700; line-height: 1; }
.weight-score .max { color: var(--sub); }
.weight-score .tier { display: block; margin-top: 4px; font-weight: 700; color: var(--c-required); }
.weight-body { flex: 1; }
.meter { height: 12px; background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin: 6px 0; max-width: 360px; }
.meter i { display: block; height: 100%; background: var(--accent); }
.formula-line { margin: 4px 0; font-size: .92rem; color: var(--sub); }
.alts dt { font-weight: 700; margin-top: 10px; }
.alts dd { margin: 2px 0 0 1em; }
.today { font-size: 1.05rem; padding: 10px 14px; background: var(--bg-alt); border-left: 6px solid var(--c-removable); border-radius: 0 6px 6px 0; }
.sources li { margin: 4px 0; font-size: .92rem; word-break: break-all; }
.cards { list-style: none; padding: 0; display: grid; gap: 12px; }
.card { display: block; border: 1px solid var(--line); border-radius: 6px; padding: 12px 16px; text-decoration: none; color: var(--text); background: #fff; }
.card:hover { border-color: var(--accent); background: var(--accent-bg); }
.card .cat { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--accent); margin-bottom: 2px; }
.card strong { display: block; font-size: 1.05rem; }
.card .desc { display: block; color: var(--sub); font-size: .92rem; margin-top: 4px; }
.sister { margin: 0 0 8px; }
@media (max-width: 600px) { .weight { flex-direction: column; } }
