/* 1列のスマホ前提。危ない所だけ赤、操作のリンクは青のボタン、済みは緑 */
:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --ink: #1b2330;
  --muted: #5b6576;
  --line: #dbe2ec;
  --accent: #1f5fbf;
  --accent-soft: #e6eefb;
  --warn: #b3261e;
  --warn-soft: #fdeceb;
  --ok: #1d7a46;
  --ok-soft: #e5f4ec;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  --font-head: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Sans", sans-serif;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #11161e; --surface: #19202b; --ink: #e7ecf3; --muted: #a0abbd; --line: #2c3645;
    --accent: #7fb0ff; --accent-soft: #1d2b43; --warn: #ff8a80; --warn-soft: #3a1f1f;
    --ok: #6fd39b; --ok-soft: #173326;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--font-body);
  font-size: 16px; line-height: 1.75;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.wrap { max-width: 640px; margin: 0 auto; padding-block: 24px 48px; display: flex; flex-direction: column; gap: 28px; }
h1, h2, h3 { font-family: var(--font-head); text-wrap: balance; margin: 0; line-height: 1.35; }
h1 { font-size: 1.7rem; font-weight: 900; }
h2 { font-size: 1.2rem; font-weight: 700; padding-bottom: 6px; border-bottom: 2px solid var(--accent); }
.lead { color: var(--muted); font-size: 0.92rem; margin: 6px 0 0; }
section { display: flex; flex-direction: column; gap: 12px; }
p { margin: 0; }
a { color: var(--accent); }
a:focus-visible, summary:focus-visible, input:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.rules { background: var(--warn-soft); border: 2px solid var(--warn); border-radius: 12px; padding: 14px 16px; }
.rules h2 { border: 0; padding: 0; color: var(--warn); }
.rules ol { margin: 8px 0 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 6px; }
.rules b { color: var(--warn); }
ul.plain { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 4px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: s; }
.steps > li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 12px 52px; position: relative; }
.steps > li::before { content: counter(s); position: absolute; left: 12px; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--surface); font-weight: 700; font-size: 0.9rem; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.steps > li.done { background: var(--ok-soft); border-color: var(--ok); }
.steps > li.done::before { content: "✓"; background: var(--ok); }
.steps h3 { font-size: 1.02rem; font-family: var(--font-body); font-weight: 700; margin-bottom: 2px; }
.steps p + p { margin-top: 4px; }
.check { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 700; color: var(--ok); cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--ok); }
.no { color: var(--warn); font-weight: 700; }
.yes { color: var(--ok); font-weight: 700; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 6px 14px; font-size: 0.88rem; font-weight: 500; }
a.btn[target]::after { content: "↗"; font-size: 0.8em; }
.note { color: var(--muted); font-size: 0.86rem; }
code { font-family: ui-monospace, "Consolas", monospace; background: var(--accent-soft); padding: 1px 6px; border-radius: 4px; font-size: 0.92em; overflow-wrap: anywhere; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
summary { cursor: pointer; padding: 12px 14px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "＋"; color: var(--accent); flex: none; }
details[open] summary::after { content: "－"; }
details > div { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.faq { display: flex; flex-direction: column; gap: 8px; }
.order { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 2px; }
.who { background: var(--accent); color: var(--surface); border-radius: 10px; padding: 10px 14px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.who a { color: var(--surface); font-weight: 500; font-size: 0.9rem; }
.status { font-size: 0.85rem; color: var(--muted); min-height: 1.4em; }
.members { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.member { display: flex; flex-direction: column; gap: 4px; text-decoration: none; background: var(--surface); border: 1px solid var(--accent); border-radius: 12px; padding: 14px; color: var(--ink); }
.member b { font-size: 1.1rem; color: var(--accent); }
.member span { font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.notice { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 10px 14px; }
.notice time { display: block; font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: 0.86rem; }
th, td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; white-space: nowrap; }
th { color: var(--muted); font-weight: 500; }
td.c { text-align: center; }
td.ok { color: var(--ok); font-weight: 700; }
td.grp { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
footer { color: var(--muted); font-size: 0.84rem; border-top: 1px solid var(--line); padding-top: 12px; }
