:root {
  /* ベース */
  --cream: #FFF8EC;
  --white: #FFFFFF;
  /* 一の位 = 橙 */
  --ones: #FFB703;
  --ones-line: #B25E00;
  --ones-band: #FFF0C2;
  /* 十の位 = 青 */
  --tens: #1E5BB8;
  --tens-line: #123F85;
  --tens-band: #E1EDFF;
  /* 百の位 = 無彩（追補） */
  --hun: #5B5B5B;
  --hun-line: #2B2B2B;
  --hun-band: #ECE6DA;
  /* 無彩 */
  --ink: #2B2B2B;
  --ink-sub: #5B5B5B;
  --line: #E6DCCB;
  --key-line: #8C8068;

  /* 文字は4段だけ */
  --fs-l: 48px;
  --fs-m: 32px;
  --fs-s: 20px;
  --fs-xs: 16px;
  --ff: "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Meiryo", "Noto Sans JP", sans-serif;

  /* 縦の段階（data-tier で切替） */
  --h-header: 56px;
  --h-chip: 24px;
  --h-row: 56px;
  --h-block: 128px;
  --h-ans: 72px;
  --h-key: 56px;
  --card-pad: 16px;
  --rod-h: 40px;
  --pitch: 24px;

  --sa-top: env(safe-area-inset-top, 0px);
  --sa-bot: env(safe-area-inset-bottom, 0px);
  --sa-l: env(safe-area-inset-left, 0px);
  --sa-r: env(safe-area-inset-right, 0px);
}

html[data-tier="b"] {
  --h-header: 48px;
  --h-row: 48px;
  --h-block: 96px;
  --h-ans: 64px;
  --h-key: 48px;
  --card-pad: 8px;
  --rod-h: 32px;
}

@media (max-width: 359px) {
  :root { --card-pad: 8px; }
}
