:root {
  --bg: #f2f5f8;
  --card: #fff;
  --ink: #111c26;
  --line: #8a9bab;
  --red: #b80f16;
  --blue: #0a4da8;
  --snow: #10435f;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0c141b; --card: #18242f; --ink: #f2f6f9; --line: #6d8092; }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Hiragino Sans", Meiryo, sans-serif;
  font-size: 20px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  -webkit-text-size-adjust: 100%;
}
header {
  background: #10202e;
  color: #fff;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  text-align: center;
}
header.red { background: var(--red); }
header.blue { background: var(--blue); }
header.snow { background: var(--snow); }
h1 { font-size: 22px; margin: 0; }
h2 { font-size: 23px; margin: 22px 0 8px; }
h3 { font-size: 22px; margin: 0 0 8px; line-height: 1.35; }
main { max-width: 620px; margin: 0 auto; padding: 12px 14px calc(110px + env(safe-area-inset-bottom)); }

/* ホームと県選択の大きなボタン */
.big {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 150px; margin: 14px 0; padding: 12px;
  border-radius: 22px; color: #fff; text-align: center; text-decoration: none;
}
.big span { font-size: 28px; font-weight: bold; }
.big strong { font-size: 30px; }
.big.red { background: var(--red); }
.big.blue { background: var(--blue); }
.big.snow { background: var(--snow); border: 3px solid #fff3; }
.big.small-big { min-height: 108px; }
.big.small-big span { font-size: 25px; }

/* 外部ページを開くボタン */
.btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 72px; margin: 10px 0; padding: 12px;
  background: var(--card); color: var(--ink);
  border: 4px solid var(--snow); border-radius: 16px;
  font-weight: bold; font-size: 21px; text-align: center; text-decoration: none;
}
.btn.red { border-color: var(--red); }
.btn.blue { border-color: var(--blue); }
.btn small { font-size: 15px; font-weight: normal; line-height: 1.45; }
.btn .place { font-size: 17px; }

.warn { background: #fff0b8; color: #2e2000; border: 4px solid #c26a00; border-radius: 14px; padding: 0 14px 6px; margin: 14px 0; }
.warn h2 { margin-top: 10px; }
.warn ul { padding-left: 1.2em; font-weight: bold; }
.note { background: var(--card); border: 2px dashed var(--line); border-radius: 12px; padding: 10px 12px; }
.unknown { border: 3px dashed #c26a00; border-radius: 10px; padding: 8px 10px; font-size: 18px; }
.small { font-size: 15px; text-align: center; }

.steps { list-style: none; padding: 0; margin: 0; }
.step { background: var(--card); border: 3px solid var(--line); border-radius: 16px; padding: 12px; margin-bottom: 18px; }
.step h3 { display: flex; gap: 10px; align-items: center; }
.step h3 b { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: #fff; font-size: 28px; }
.step.red h3 b { background: var(--red); }
.step.blue h3 b { background: var(--blue); }
figure { margin: 0; background: #fff; border-radius: 12px; border: 2px solid var(--line); }
figure svg { display: block; width: 100%; height: auto; }
.step ul { padding-left: 1.1em; margin: 10px 0 0; font-weight: bold; }
.step li { margin-bottom: 4px; }

.card { background: var(--card); border: 3px solid var(--line); border-radius: 16px; padding: 0 12px 8px; margin: 14px 0; }
.checks { list-style: none; padding: 0; }
.checks label { display: flex; align-items: center; gap: 14px; min-height: 64px; border-top: 1px solid var(--line); font-weight: bold; }
.checks input { flex: none; width: 36px; height: 36px; }

nav {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: var(--bg); border-top: 2px solid var(--line);
}
nav a {
  flex: 1; display: grid; place-items: center; min-height: 68px;
  background: #10202e; color: #fff; border: 2px solid #fff4; border-radius: 16px;
  font-size: 22px; font-weight: bold; text-decoration: none;
}
#offline { margin: 0; padding: calc(8px + env(safe-area-inset-top)) 14px 8px; background: #222; color: #fff; font-weight: bold; text-align: center; font-size: 17px; }
:focus-visible { outline: 4px solid #f59e0b; outline-offset: 2px; }
