/* =========================================================
   キャリア自己理解診断 — theme.css
   デザイントークン（handoff: キャリア自己理解診断.dc.html ＋ 設計書§8）
   - #FF9E00 上の文字は必ず #111111（白文字禁止）
   - #B45D00 は白文字CTA用
   - 角丸最大8px／影なし／fixed・sticky禁止（iframe埋め込み前提）
   ========================================================= */

:root {
  /* brand */
  --primary: #FF9E00;
  --primary-hover: #F09400;
  --cta: #B45D00;
  --secondary: #EEA02A;
  --accent: #FEC837;

  /* text */
  --ink: #111111;
  --ink-2: #333333;
  --ink-3: #666666;
  --ink-placeholder: #767676;
  --label-muted: #66625B; /* 4.5:1以上（旧#8A8478は3.5:1でAA不適合） */

  /* surfaces */
  --bg: #FFFFFF;
  --cream: #FDF6EC;
  --cream-warm: #FFFBF3;
  --cream-selected: #FFF6E6;
  --surface-soft: #F7F5F1;

  /* lines */
  --line: #ECE8E0;
  --line-2: #E8E4DC;
  --line-3: #EFECE6;
  --line-cream: #F0E6D4;
  --line-cream-2: #F0E3CB;
  --line-cream-3: #F5EFE2;
  --line-tag: #E3D5B8;
  --line-input: #CCC7BE;
  --line-option: #D5D0C7;
  --line-radio: #B3ADA2;
  --line-frame: #DDD9D1;

  /* bars / tracks */
  --track: #EEEBE5;
  --track-cream-2: #E8DCC4;

  /* form errors（フォーム専用。診断データ表現には不使用） */
  --err: #C2452D;
  --err-bg: #FDF3F1;

  /* submitting（プライマリ減光） */
  --submitting-bg: #FFD98C;

  /* type */
  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-num: "Inter", "Noto Sans JP", sans-serif;

  --radius-s: 4px;
  --radius-m: 6px;
  --radius-l: 8px; /* 最大 */
}

/* ---------- reset / base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-jp);
  font-size: 14px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
button {
  font: inherit; color: inherit; background: none; border: none;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
select, input {
  font: inherit; color: var(--ink);
}
strong, b { font-weight: 700; }

.num, .en { font-family: var(--font-num); }

/* visually hidden（スクリーンリーダー用） */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* focus ring（キーボード操作） */
:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 2px;
}

/* ---------- app shell（fixed/sticky不使用・内部スクロールなし） ---------- */
.app-root {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.screen {
  width: 100%;
  margin: 0 auto;
}

/* 画面ごとの中央寄せ幅（PC）。モバイルは全幅＋左右24pxパディング */
.shell { width: 100%; margin: 0 auto; padding: 0 24px; }
.shell--420 { max-width: 468px; }  /* 420 + padding */
.shell--520 { max-width: 568px; }
.shell--560 { max-width: 608px; }
.shell--640 { max-width: 688px; }
.shell--720 { max-width: 768px; }
.shell--760 { max-width: 808px; }
.shell--flush { padding: 0; }

/* motion（prefers-reduced-motion時はアニメーション無効） */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
