/* Reel Quest site — one stylesheet, no external fonts. */
:root {
  --bg: #F5F2EF;
  --surface: #FFFFFF;
  --text: #2B2430;
  --text-sub: #5E5463;
  --accent: #C2410C;
  --line: #E4DDD7;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161216;
    --surface: #221C22;
    --text: #F4EEF1;
    --text-sub: #C3B8BE;
    --accent: #FFA36B;
    --line: #3A3139;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Segoe UI", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }

header.site {
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.lang { font-size: 14px; }

main { padding: 24px 0 48px; }
h1 { font-size: 1.6rem; line-height: 1.4; margin: 0 0 8px; }
h2 { font-size: 1.15rem; line-height: 1.5; margin: 32px 0 8px; padding-top: 8px; border-top: 1px solid var(--line); }
h3 { font-size: 1rem; margin: 20px 0 4px; }
p, ul, ol, dl { margin: 0 0 12px; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: 4px; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.sub { color: var(--text-sub); font-size: 0.92rem; }
.meta { color: var(--text-sub); font-size: 0.9rem; margin-bottom: 20px; }

.hero { text-align: center; padding: 16px 0 8px; }
.hero img { width: 120px; height: 120px; border-radius: 26px; box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.hero h1 { margin-top: 16px; }

.cards { list-style: none; padding: 0; display: grid; gap: 12px; margin-top: 24px; }
.cards a {
  display: block; padding: 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; text-decoration: none; color: var(--text); font-weight: 700;
}
.cards a span { display: block; font-weight: 400; color: var(--text-sub); font-size: 0.92rem; }
.cards a:hover { border-color: var(--accent); }

.box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 0 0 12px; }

.table-scroll { overflow-x: auto; margin: 0 0 12px; }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; background: var(--surface); }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
th { font-weight: 700; }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 0 0 10px; }
summary { font-weight: 700; cursor: pointer; }
details p:last-child { margin-bottom: 0; }

footer.site { border-top: 1px solid var(--line); padding: 20px 0 32px; font-size: 0.9rem; color: var(--text-sub); }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 8px; }
