/* Eternity ヘルプ
   ページ内に style や script を書かない（CSP で禁止している）ので、見た目はすべてここ */
:root {
  --bg: #0e0f1a; --panel: #171826; --panel-2: #1e1f30; --line: #282a3d;
  --text: #eceaf6; --muted: #9a94b4; --accent: #7c5cff; --accent-2: #b39bff;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f7fb; --panel: #ffffff; --panel-2: #f0eff7; --line: #e3e1ee;
    --text: #1b1a26; --muted: #625d7a; --accent: #6a48f5; --accent-2: #5b3de0;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Yu Gothic UI", system-ui, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.85; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-2); }
.wrap { max-width: 820px; margin: 0 auto; padding: 0 20px; }

header { border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; gap: 10px; height: 60px; }
header .logo { display: flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; }
header .logo img { width: 30px; height: 30px; border-radius: 7px; }
header .logo b { font-size: 17px; }
header .logo span { color: var(--muted); font-size: 13px; margin-left: 2px; }
header nav { margin-left: auto; display: flex; gap: 16px; align-items: center; font-size: 13.5px; }
header nav a { color: var(--muted); text-decoration: none; }
header nav .open { color: #fff; background: var(--accent); padding: 6px 13px; border-radius: 7px; font-weight: 700; }

main { padding: 40px 20px 60px; }
h1 { font-size: 28px; margin-bottom: 8px; }
.lead { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }
.toc { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.toc a { font-size: 13px; text-decoration: none; color: var(--text); background: var(--panel);
  border: 1px solid var(--line); padding: 6px 13px; border-radius: 999px; }
.toc a:hover { border-color: var(--accent); }
section { margin-top: 34px; }
h2 { font-size: 19px; margin-bottom: 12px; }
details { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; }
details[open] { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
summary { cursor: pointer; padding: 14px 18px; font-weight: 700; font-size: 14.5px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "＋"; float: right; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "－"; }
details > *:not(summary) { padding: 0 18px; font-size: 14px; color: var(--muted); }
details > *:last-child { padding-bottom: 16px; }
details ol, details ul { padding-left: 36px; }
details li { margin-bottom: 4px; }
details b { color: var(--text); }
ul.docs { list-style: none; display: grid; gap: 8px; }
ul.docs a { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 18px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 14.5px; }
ul.docs a:hover { border-color: var(--accent); }

footer { border-top: 1px solid var(--line); padding: 28px 0 56px; color: var(--muted); font-size: 12.5px; }
footer .links { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
footer a { color: var(--muted); text-decoration: none; }

.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.lost h1 { font-size: 26px; margin-bottom: 8px; }
.lost p { color: var(--muted); margin-bottom: 20px; }
.lost a { color: #fff; background: var(--accent); padding: 11px 22px; border-radius: 8px; text-decoration: none; font-weight: 700; }

@media (max-width: 600px) { header nav a:not(.open) { display: none; } }
