:root { color-scheme: light; --ink: #414332; --muted: #696958; --line: #e7dfcd; --accent: #943f63; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fcf6e3; font-family: system-ui, -apple-system, sans-serif; line-height: 1.75; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .table-wrap:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
main { max-width: 920px; margin: auto; padding: 28px 24px 64px; }
.top-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand { color: var(--ink); font-size: 19px; font-weight: 800; letter-spacing: .08em; text-decoration: none; }
.top-nav > a:last-child { font-size: 14px; }
.language-nav { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; font-size: 14px; }
article { scroll-margin-top: 20px; }
[lang="ja"] h1 { line-height: 1.5; letter-spacing: normal; }
header { margin: 42px 0 26px; }
h1 { margin: 0; font-size: clamp(28px, 5vw, 38px); line-height: 1.25; letter-spacing: -.03em; }
h2 { margin: 0 0 14px; font-size: 22px; line-height: 1.4; }
h3 { margin: 24px 0 10px; font-size: 17px; }
p { margin: 12px 0; }
.subtitle, .note { color: var(--muted); font-size: 14px; }
.card { padding: 28px; margin-top: 20px; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
dl { margin: 0; }
.detail { display: grid; grid-template-columns: minmax(150px, 1fr) 2fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.detail:first-child { padding-top: 0; }
.detail:last-child { border-bottom: 0; padding-bottom: 0; }
dt { font-weight: 650; }
dd { margin: 0; }
dd p:first-child { margin-top: 0; }
dd p:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; white-space: nowrap; }
th, td { text-align: right; padding: 12px 10px; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { text-align: left; }
thead { background: #faf7f0; }
footer { margin-top: 30px; font-size: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
@media (max-width: 580px) {
  main { padding: 20px 16px 40px; }
  header { margin-top: 32px; }
  .card { padding: 22px 18px; border-radius: 16px; }
  .detail { grid-template-columns: 1fr; gap: 4px; }
}
.language-nav [aria-current="page"] { color: var(--ink); font-weight: 700; text-decoration: none; }
