/* 70代の方にも読みやすいよう、文字は大きめ(本文 20px)、押す場所は高さ 56px 以上、色の差ははっきり。スマホは1列。 */
:root {
  --ink: #1d1d1f;
  --muted: #4a4a4f;
  --bg: #ffffff;
  --band: #2d2a5e;
  --band-ink: #ffffff;
  --accent: #2d2a5e;
  --line: #c9c9d1;
  --card: #f5f5f8;
  --error-bg: #fdecec;
  --error: #9b1c1c;
  --note-bg: #eef4ea;
}
/* この画面は明るい色だけで作っている。ブラウザの自動のダークモード(色の反転)をさせない(反転した QR は読めないアプリが多い) */
:root { color-scheme: only light; }
* { box-sizing: border-box; }
html { font-size: 20px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.8;
}
.top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding: 12px 16px; background: var(--band); color: var(--band-ink);
}
.brand { color: var(--band-ink); font-size: 1.4rem; font-weight: 700; text-decoration: none; letter-spacing: 0.04em; }
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.top nav a, .top nav .link { color: var(--band-ink); font-size: 1rem; }
.top nav form { margin: 0; }
main { max-width: 40rem; margin: 0 auto; padding: 24px 16px 48px; }
h1 { font-size: 1.6rem; line-height: 1.4; margin: 0.4em 0 0.8em; }
h2 { font-size: 1.25rem; margin: 0 0 0.4em; }
p, li { font-size: 1rem; }
a { color: var(--accent); }
label { display: block; font-weight: 700; margin: 1em 0 0.3em; }
input[type=email], input[type=text], input:not([type]), input[inputmode] {
  width: 100%; font-size: 1.2rem; padding: 12px 14px; min-height: 56px;
  border: 2px solid var(--line); border-radius: 8px;
}
input.code { font-size: 1.8rem; letter-spacing: 0.3em; text-align: center; max-width: 14rem; }
input:focus, button:focus, a:focus { outline: 3px solid #f0b400; outline-offset: 2px; }
button, .button {
  display: inline-block; margin-top: 1.2em; min-height: 56px; padding: 12px 28px;
  font-size: 1.1rem; font-weight: 700; color: #fff; background: var(--accent);
  border: none; border-radius: 8px; cursor: pointer; text-decoration: none;
}
button:disabled { opacity: 0.6; cursor: wait; }
button.link { margin: 0; min-height: 0; padding: 0; background: none; font-weight: 400; text-decoration: underline; font-size: 1rem; }
.error { background: var(--error-bg); color: var(--error); padding: 12px 16px; border-radius: 8px; font-weight: 700; }
.note { background: var(--note-bg); padding: 12px 16px; border-radius: 8px; }
.card { background: var(--card); padding: 16px 20px; border-radius: 10px; margin: 16px 0; }
.list { padding-left: 1.2em; }
.list li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.tag { font-size: 0.8rem; background: var(--line); padding: 2px 8px; border-radius: 4px; }
fieldset { border: 2px solid var(--line); border-radius: 10px; padding: 8px 16px 16px; margin: 16px 0; }
legend { font-weight: 700; padding: 0 6px; }
.check { display: flex; align-items: center; gap: 12px; font-weight: 400; min-height: 48px; }
.check input { width: 28px; height: 28px; flex: none; }
/* QR: 白い背景と黒い点(色の設定に左右されない)。1辺 280px、狭い画面でも 240px より小さくしない。縦横の比は viewBox で固定 */
.qr-box { margin: 16px 0; padding: 0; background: #ffffff; width: max-content; }
.qr { display: block; width: 280px; min-width: 240px; max-width: 100%; height: auto; aspect-ratio: 1 / 1; background: #ffffff; }
.secret { font-family: monospace; font-size: 1rem; word-break: break-all; }
footer { text-align: center; color: var(--muted); font-size: 0.85rem; padding: 24px 16px; }
