:root {
  --bg: #fafafa;
  --ink: #1a1a1a;
  --text: #333333;
  --muted: #666666;
  --link: #0066cc;
  --surface: #ffffff;
  --line: #e1e8f0;
  --action: #1c1e24;
  --on-action: #ffffff;
  --shadow: 0 1px 2px #0000000d;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141317;
    --ink: #f5efe6;
    --text: #ddd6cc;
    --muted: #a39b91;
    --link: #5eaacb;
    --surface: #221f27;
    --line: #2e2b33;
    --action: #f1f1f3;
    --on-action: #141317;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141317;
  --ink: #f5efe6;
  --text: #ddd6cc;
  --muted: #a39b91;
  --link: #5eaacb;
  --surface: #221f27;
  --line: #2e2b33;
  --action: #f1f1f3;
  --on-action: #141317;
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, system-ui, "Segoe UI", Roboto, Oxygen, Ubuntu, "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
}
main { max-width: 800px; margin: 0 auto; padding: 40px 20px 64px; }
h1 { margin: 0 0 24px; font-size: 32px; line-height: 1.6; color: var(--ink); }
h2 { margin: 32px 0 16px; font-size: 24px; line-height: 1.6; color: var(--ink); }
.updated { margin: 0 0 32px; font-size: 14px; color: var(--muted); }
p { margin: 0 0 16px; }
ul { margin: 0 0 16px; padding-left: 24px; }
li { margin-bottom: 8px; }
a { color: var(--link); }
.legal-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 32px;
}
.legal-bar a.home { color: var(--ink); font-weight: 700; text-decoration: none; }
.legal-bar a.home:hover { color: var(--link); }
.faq { margin-top: 48px; }
.faq h2 { margin: 32px 0 16px; font-size: 24px; line-height: 1.6; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  margin: 10px 0;
}
.faq summary {
  cursor: pointer;
  min-height: 44px;
  color: var(--ink);
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  font-size: 17px;
  font-weight: 700;
  list-style: none;
  display: flex;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 22px; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { color: var(--text); padding: 0 22px 18px; }
.faq .answer p { margin: 0 0 10px; }
.faq ol { margin: 0 0 10px; padding-left: 22px; }
.faq li { margin: 4px 0; }
.still-stuck { color: var(--muted); margin: 28px 0 14px; font-size: 16px; }
.btn {
  background: var(--action);
  min-height: 56px;
  color: var(--on-action);
  box-shadow: var(--shadow);
  border-radius: 16px;
  justify-content: center;
  align-items: center;
  padding: 0 28px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
}
.btn:hover { color: var(--on-action); opacity: 0.92; }
.legal-foot { margin-top: 48px; }
