:root {
	--bg: #0f1115;
	--panel: #171a21;
	--text: #e8eaf0;
	--muted: #9aa3b2;
	--accent: #7cf5c4;
	--accent-ink: #062a1c;
	--warn: #ffb86b;
	--line: #2a2f3a;
	color-scheme: dark;
}
* { box-sizing: border-box; }
html { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.55; }
a { color: var(--accent); }
main { max-width: 1040px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
header.site, footer.site { max-width: 1040px; margin: 0 auto; padding: 1rem; display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
footer.site { color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--line); margin-top: 2rem; }
.brand { font-weight: 700; text-decoration: none; color: var(--text); font-size: 1.15rem; }
header.site nav a { margin-left: 1rem; }
.ja { color: var(--muted); font-size: 0.85em; font-weight: 400; }
h1 { font-size: 1.8rem; line-height: 1.25; margin: 0 0 0.75rem; }
h2 { font-size: 1.25rem; margin: 2rem 0 0.5rem; }
h3 { font-size: 1rem; margin: 1rem 0 0.25rem; }
p.ja { color: var(--muted); font-size: 0.9rem; }
.hero p { max-width: 60ch; }
.cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.button { display: inline-block; padding: 0.6rem 1.1rem; border-radius: 8px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; border: 1px solid var(--accent); cursor: pointer; font-size: 1rem; }
.button .ja { color: inherit; opacity: 0.75; }
.button.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.button.big { padding: 1rem 1.5rem; font-size: 1.15rem; }
.tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--line); margin: 1.5rem 0 0; flex-wrap: wrap; }
.tabs a { padding: 0.5rem 0.9rem; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs a.active { color: var(--text); border-bottom-color: var(--accent); }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
th, td { padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { color: var(--muted); font-weight: 600; font-size: 0.8rem; }
thead th .ja { display: block; font-size: 0.75rem; }
td.num, th.num { text-align: right; white-space: nowrap; }
td.strong { font-weight: 700; color: var(--accent); }
td.warn { color: var(--warn); }
td.empty { color: var(--muted); text-align: center; padding: 2rem; }
tbody th small { display: block; color: var(--muted); font-weight: 400; }
.note, .hint { color: var(--muted); font-size: 0.85rem; }
.instructions { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 1rem; margin: 1rem 0; }
.instructions .label { margin: 0 0 0.5rem; font-weight: 600; }
.instructions pre { white-space: pre-wrap; word-break: break-word; background: var(--bg); padding: 0.75rem; border-radius: 6px; margin: 0.5rem 0; font-size: 0.95rem; }
code { background: var(--panel); padding: 0.1em 0.35em; border-radius: 4px; }
.step { max-width: 640px; margin: 2rem auto; padding: 2rem; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.step .progress { color: var(--muted); font-size: 0.85rem; margin: 0 0 0.5rem; }
.step h1 .ja { display: block; margin-top: 0.4rem; }
.choices { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.choices .button .ja { display: block; }
.checkbox { display: inline-flex; gap: 0.6rem; align-items: center; font-size: 1.15rem; padding: 1rem; border: 1px solid var(--line); border-radius: 8px; margin: 1rem 0; }
.checkbox input { width: 1.4rem; height: 1.4rem; }
.done .code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 2.2rem; letter-spacing: 0.1em; margin: 0.5rem 0 1rem; }
label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
input:not([type="checkbox"]), select { width: 100%; max-width: 480px; padding: 0.6rem 0.7rem; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 1rem; }
.form { max-width: 640px; }
.error { color: var(--warn); font-weight: 600; }
.chip { display: inline-block; padding: 0.1rem 0.6rem; border-radius: 999px; font-size: 0.8rem; background: var(--line); }
.chip.official { background: var(--accent); color: var(--accent-ink); }
.meta { color: var(--muted); }
.session { border: 1px solid var(--line); border-radius: 10px; padding: 0.5rem 1rem 1rem; margin: 1rem 0; }
.kv th { width: 12rem; color: var(--muted); font-weight: 500; }
.kv small { color: var(--muted); }
.runs { padding-left: 1.2rem; }
.about p, .about li { max-width: 72ch; }
@media (max-width: 640px) { .step { padding: 1.25rem; } h1 { font-size: 1.4rem; } }
