/* ときなおし — 紙の白・インクの紺・朱色（採点の赤ペン） */
:root {
  --paper: #f5f3ee; --card: #ffffff; --ink: #1c2427; --sub: #5e686c; --line: #dcd7cc;
  --vermilion: #13705f; --vermilion-soft: #ddefea; --navy: #13705f; --correct: #a86400;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #0f1416; --card: #182024; --ink: #ecf0f1; --sub: #a3aeb2; --line: #2a3438;
    --vermilion: #5ccdb6; --vermilion-soft: #13312b; --navy: #5ccdb6; --correct: #f2b04c; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.8;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; }
a { color: var(--navy); }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }
header.site { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 5; }
header.site .wrap { display: flex; align-items: center; gap: 16px; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav.site a { font-size: 14px; text-decoration: none; color: var(--sub); margin-left: 14px; white-space: nowrap; }
nav.site a:hover { color: var(--ink); }
.hero { padding: 56px 0 40px; display: grid; gap: 32px; align-items: center; }
@media (min-width: 760px) { .hero { grid-template-columns: 1.1fr 0.9fr; } }
.eyebrow { color: var(--vermilion); font-weight: 700; font-size: 14px; letter-spacing: 0.04em; }
h1 { font-size: clamp(30px, 6vw, 46px); line-height: 1.35; margin: 8px 0 16px; letter-spacing: 0.01em; }
h2 { font-size: 24px; margin: 56px 0 16px; line-height: 1.5; }
h3 { font-size: 17px; margin: 0 0 6px; }
.lead { font-size: 17px; color: var(--sub); }
.cta { display: inline-block; margin-top: 20px; background: var(--vermilion); color: #fff; font-weight: 700; text-decoration: none;
  padding: 14px 26px; border-radius: 16px; }
.note { font-size: 13px; color: var(--sub); }
.hero img { width: 100%; max-width: 320px; height: auto; justify-self: center; }
.grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.card.em { background: var(--vermilion-soft); border-color: transparent; }
.steps { counter-reset: step; }
.steps .card { position: relative; padding-left: 62px; }
.steps .card::before { counter-increment: step; content: counter(step); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px;
  border-radius: 50%; border: 2.5px solid var(--vermilion); color: var(--vermilion); font-weight: 800; display: grid; place-items: center; }
table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; }
th { width: 34%; color: var(--sub); font-weight: 600; }
tr:last-child th, tr:last-child td { border-bottom: none; }
.doc { padding: 40px 0 24px; }
.doc h1 { font-size: 30px; }
.doc h2 { font-size: 19px; margin: 36px 0 10px; }
.doc .meta { color: var(--sub); font-size: 14px; }
.doc .summary { background: var(--vermilion-soft); border-radius: 16px; padding: 18px 20px; margin: 20px 0; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
details + details { margin-top: 10px; }
summary { font-weight: 700; cursor: pointer; }
footer.site { border-top: 1px solid var(--line); margin-top: 64px; padding: 28px 0 48px; color: var(--sub); font-size: 13px; }
footer.site a { color: var(--sub); margin-right: 14px; }
.qid { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 2px 8px; }
/* 端末の言語に合うほうだけ見せる（build.py が両方を1ページに入れる） */
html[lang="ja"] [data-l="en"], html[lang="en"] [data-l="ja"] { display: none; }
[lang="en"] { line-height: 1.65; }
[lang="en"] h1 { line-height: 1.2; }
[lang="en"] nav.site a { font-size: 13px; margin-left: 10px; }
@media (max-width: 480px) { nav.site a { font-size: 12px; margin-left: 8px; } header.site .wrap { gap: 4px; } .brand { gap: 7px; font-size: 15px; } }
.brand { white-space: nowrap; flex-shrink: 0; }
/* 幅の狭い画面では、上の帯の「紹介」を出さない（左のアプリ名が同じ行き先） */
@media (max-width: 480px) { nav.site a:first-child { display: none; } }
