/* FLY ID の画面（spec_1 4.5・03 の 1.2）
   - 見出しも本文も同じゴシック体（端末にある書体だけ。Web フォントは読まない）。
   - 角は 0（ボタン・欄・帯すべて）。影・グラデーションは使わない。区切りは線・余白・色。 */
:root {
  --font: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  --bg: #f5f6f8; --surface: #ffffff; --surface2: #eef1f5;
  --ink: #141c28; --ink2: #465163; --muted: #6f7a8b; --line: #d5dbe3;
  --accent: #1f5fc9; --accent-ink: #ffffff; --good: #0c8a0c; --warn: #b97a00; --crit: #c53030; --ok-ink: #0a6e0a;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f131a; --surface: #161b24; --surface2: #1d2430;
    --ink: #e8ecf2; --ink2: #b4becb; --muted: #8a95a5; --line: #2c3543;
    --accent: #6c9cf0; --accent-ink: #0f131a; --good: #2fbf2f; --warn: #f0b429; --crit: #ef6b6b; --ok-ink: #2fbf2f;
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1rem; line-height: 1.7; }
h1, h2, h3, button, input { font-family: var(--font); }
h1 { font-size: 1.375rem; line-height: 1.4; font-weight: 700; margin: 0 0 16px; }
h2 { font-size: 1.125rem; line-height: 1.4; font-weight: 700; margin: 24px 0 8px; }
p { margin: 0 0 8px; }
.bar { height: 56px; border-top: 4px solid var(--accent); background: var(--surface); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px; padding: 0 16px; font-weight: 700; }
.bar .sub { color: var(--ink2); font-weight: 400; }
main { max-width: 560px; margin: 0 auto; padding: 24px 16px 48px; }
.panel { background: var(--surface); border: 1px solid var(--line); padding: 24px 16px; margin-bottom: 16px; }
.note { color: var(--ink2); font-size: 0.875rem; }
.btn { display: block; width: 100%; min-height: 48px; margin: 16px 0 8px; padding: 8px 16px; font-size: 1rem; font-weight: 700;
  border: 2px solid var(--accent); background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.btn.second { background: var(--surface); color: var(--accent); }
.link { display: inline-block; min-height: 44px; min-width: 44px; padding: 10px 0; border: 0; background: none;
  color: var(--accent); text-decoration: underline; font-size: 1rem; cursor: pointer; }
label { display: block; font-weight: 700; margin: 16px 0 4px; }
input[type="text"] { display: block; width: 100%; height: 48px; padding: 0 12px; font-size: 1.25rem; letter-spacing: 0.2em;
  border: 2px solid var(--ink2); background: var(--surface); color: var(--ink); font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.band { background: var(--surface2); border-left: 4px solid var(--accent); padding: 8px 12px; margin: 16px 0; }
.band.crit { border-left-color: var(--crit); }
.band.ok { border-left-color: var(--good); }
.band:empty { display: none; }
[hidden] { display: none !important; }
.qr { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.qr svg { width: 220px; height: 220px; background: #ffffff; border: 8px solid #ffffff; }
.num { font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.choices { display: flex; gap: 16px; }
.choices button { width: 64px; height: 64px; font-size: 1.5rem; font-weight: 700; border: 2px solid var(--muted);
  background: var(--surface); color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
/* ---- spec_2 で足した共通の部品（筋 B・C の画面も使う。各筋の CSS は shared*.css・account*.css に置く） ---- */
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 8px; top: 8px; z-index: 10; background: var(--surface); padding: 8px 12px; border: 2px solid var(--accent); }
h1, h2, h3, button, input, select, textarea { font-family: var(--font); }
.btn.inline { display: inline-block; width: auto; min-width: 96px; margin: 0; }
.btn.crit { border-color: var(--crit); background: var(--crit); color: var(--accent-ink); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
input[type="password"], input[type="number"], input[type="email"], input[inputmode="numeric"], select, textarea {
  display: block; width: 100%; min-height: 48px; padding: 0 12px; font-size: 1.25rem; border: 2px solid var(--ink2);
  background: var(--surface); color: var(--ink); font-variant-numeric: tabular-nums; }
textarea { padding: 8px 12px; font-size: 1rem; min-height: 96px; }
input[inputmode="numeric"], input[type="password"] { letter-spacing: 0.2em; }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); min-height: 64px; }
.row-main { display: flex; flex-direction: column; min-width: 0; }
.row-main .note { margin: 0; }
table { width: 100%; border-collapse: collapse; margin: 16px 0; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; background: var(--surface2); }
.who { background: var(--surface); border-bottom: 4px solid var(--warn); padding: 16px; font-size: 1.25rem; font-weight: 700; }
.who .link { font-size: 1.25rem; }
.big { font-size: 3rem; font-weight: 700; letter-spacing: 0.15em; font-variant-numeric: tabular-nums; }
.timer { font-variant-numeric: tabular-nums; color: var(--ink2); }
.code-block { font-family: var(--font); font-size: 1.5rem; font-weight: 700; letter-spacing: 0.1em; font-variant-numeric: tabular-nums;
  border: 2px solid var(--ink); padding: 12px 16px; background: var(--surface); word-break: break-all; }
.stack > * + * { margin-top: 8px; }
@media print {
  .bar, .skip, .btn, .link, #nojs { display: none !important; }
  body { background: #ffffff; color: #000000; }
  .panel { border: 0; padding: 0; }
}
