:root {
  --ink: #171f2a;
  --muted: #35465a;
  --line: #aebdca;
  --paper: #f2f6f7;
  --surface: #ffffff;
  --surface-strong: #e5edf0;
  --navy: #17283a;
  --teal: #00776d;
  --blue: #175f9a;
  --wash: #ddece8;
  --radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-size: 16px; line-height: 1.62; }
a { color: var(--blue); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover, a:focus-visible { color: #0e4a78; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 8px; top: 8px; background: var(--surface); padding: 6px 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.nav-shell { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 860px; margin: 0 auto; padding: 10px 16px; }
.brand { color: var(--navy); font-weight: 800; text-decoration: none; white-space: nowrap; }
.search { flex: 1; max-width: 420px; }
.search input { width: 100%; font: inherit; font-size: 16px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.search input:focus { outline: 2px solid var(--teal); outline-offset: 1px; }

.shell { max-width: 860px; margin: 0 auto; padding: 8px 16px 28px; }
h1 { font-size: 26px; line-height: 1.2; margin: 14px 0 6px; font-weight: 700; }
h2 { font-size: 14px; margin: 20px 0 6px; color: var(--navy); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.lede { color: var(--muted); font-size: 15px; margin: 0 0 8px; }
.lede p { margin: 0 0 6px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
ul.plain li a { text-decoration: none; }
ul.plain li a:hover { text-decoration: underline; }
ul.plain .count { color: var(--muted); font-size: 14px; }
.crumb { font-size: 13px; color: var(--muted); margin-top: 12px; }
.crumb a { text-decoration: none; }
.letters { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 10px 0 4px; font-size: 14px; font-weight: 600; }
.letters a { text-decoration: none; }
.factbox { background: var(--surface-strong); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; font-size: 14px; margin: 12px 0; }
.factbox div { display: flex; gap: 10px; padding: 4px 0; }
.factbox b { flex: none; width: 150px; color: var(--muted); font-weight: 600; }
.factbox a { word-break: break-all; }
.contents { font-size: 14px; margin: 8px 0 14px; line-height: 1.8; }
.contents a { text-decoration: none; white-space: nowrap; }
details.section { border-top: 1px solid var(--line); }
details.section summary { cursor: pointer; list-style: none; font-size: 18px; font-weight: 700; padding: 12px 0; color: var(--navy); }
details.section summary::-webkit-details-marker { display: none; }
details.section summary::before { content: "▸ "; color: var(--teal); }
details.section[open] summary::before { content: "▾ "; }
details.section div { padding-bottom: 10px; }
details.section h3 { font-size: 15px; margin: 12px 0 4px; }
details.section p, details.section li { font-size: 15px; line-height: 1.6; margin: 6px 0; }
.disclaimer { color: var(--muted); font-size: 12.5px; line-height: 1.5; margin-top: 24px; border-top: 1px solid var(--line); padding-top: 10px; }
.disclaimer p { margin: 7px 0; }
.disclaimer a, .about a { overflow-wrap: anywhere; }
.about p { max-width: 70ch; }
.site-footer { color: var(--muted); font-size: 12px; text-align: center; padding: 18px 16px 28px; }
@media (min-width: 768px) {
  h1 { font-size: 32px; }
  details.section summary { pointer-events: none; }
  details.section summary::before, details.section[open] summary::before { content: ""; }
}

.note { color: var(--muted); font-size: 14px; border-left: 3px solid var(--line); padding-left: 10px; margin-top: 10px; }
