/* 土台：色の変数・書体・全体のレイアウト
   値は試作（prototype/index.html）と同じ。px は rem（16px = 1rem）に置き換えた */

:root {
  /* 色（SPEC 12章） */
  --ink: #4A3B45;        /* 文字 */
  --sub: #6E5C68;        /* 補助の文字 */
  --paper: #FFF6F2;      /* 地 */
  --card: #FFFFFF;       /* カード */
  --line: #F1DDE3;       /* 線・空のバー */
  --accent: #C2476D;     /* 主なボタン・数字 */
  --pink: #F29BB3;       /* 進み具合（途中） */
  --green: #8FD9B6;      /* 進み具合（全部）・チェック・スイッチのオン */
  --mint: #5FB894;       /* ロゴの「ぶ」 */
  --ink-on: #FFF8EE;     /* 濃い地の上の文字 */
  --shelf: #F1D9C6;      /* 棚の板 */

  --soft: 0 3px 0 rgba(74, 59, 69, .12), 0 12px 26px rgba(74, 59, 69, .09);

  /* 書体（SPEC 11章）。欧文は Nunito、和文は見出しが M PLUS Rounded 1c、本文が Zen Maru Gothic */
  --title: 'Nunito', 'M PLUS Rounded 1c', 'Zen Maru Gothic', sans-serif;
  --title-w: 800;
  --body: 'Nunito', 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  display: flex;
  justify-content: center;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* 画面には出さず、読み上げにだけ出す */
.u-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* アプリの外枠と画面 */
.app {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 460px;
  padding: 16px 16px 28px;
}

.app__view {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* おだやかモード：動きを止める。スプラッシュだけはいつも動かす（SPEC 4章・9章）
   端末の「視差効果を減らす」は、最初におだやかモードをオンにするだけ（設定であとから切れる） */
.page--calm *:not(.splash):not(.splash *) {
  animation: none !important;
  transition: none !important;
}
