/* =========================================================================
 * styles.css — M&A適性診断
 * デザイン: 白ベース × ダークネイビー × RBオレンジ
 * フォント: Zen Kaku Gothic New / Archivo
 * ========================================================================= */

:root {
  --bg: #F5F5F7;
  --surface: #FFFFFF;
  --line: #E6E6EA;
  --ink: #1D1D1F;
  --sub: #6E6E73;
  --faint: #A1A1A6;
  --navy: #14223D;
  --navy-hover: #1E3052;
  --accent: #E8602C;          /* RBオレンジ */
  --accent-soft: rgba(232, 96, 44, 0.08);

  --font-ja: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  --font-mono: 'Archivo', sans-serif;
}

/* ---- リセット ---------------------------------------------------------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-ja);
  background: var(--bg);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ---- レイアウト -------------------------------------------------------- */
.app-root {
  min-height: 100vh;
  background: var(--bg);
}
.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
}
.footer {
  text-align: center;
  padding: 30px 0 44px;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 1.5px;
  font-family: var(--font-mono);
}

/* ---- 共通ユーティリティ ------------------------------------------------ */
.text-accent { color: var(--accent); }
.brand-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--accent);
  font-weight: 800;
}

/* ---- アニメーション ---------------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@keyframes pop {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.animate-fadeup { animation: fadeUp .32s ease both; }
.animate-pop    { animation: pop .5s cubic-bezier(.2,.8,.2,1) both; }

/* =========================================================================
 * Intro（トップページ）
 * ========================================================================= */
.intro {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 0;
}
.intro__brand-label { margin-bottom: 20px; }
.intro__title {
  font-weight: 900;
  font-size: 40px;
  line-height: 1.3;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.intro__lead {
  color: var(--sub);
  font-size: 15px;
  line-height: 1.95;
  margin: 0;
  max-width: 460px;
}
.intro__tags {
  display: flex;
  gap: 8px;
  margin: 24px 0 0;
  flex-wrap: wrap;
}
.intro__tag {
  font-size: 12px;
  color: var(--sub);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 13px;
  background: var(--surface);
}
.intro__buttons {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---- ボタン: メイン（イントロのサクッと診断） -------------------------- */
.btn-start-primary {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-family: var(--font-ja);
  box-shadow: 0 12px 28px rgba(20, 34, 61, 0.20);
}
.btn-start-primary .title { font-size: 17px; font-weight: 800; display: block; }
.btn-start-primary .sub   { font-size: 12px; font-weight: 600; opacity: 0.85; }
.btn-start-primary .arrow { font-size: 18px; }

/* ---- ボタン: セカンダリ（本格診断） ------------------------------------ */
.btn-start-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-family: var(--font-ja);
  transition: border-color .15s ease;
}
.btn-start-secondary:hover { border-color: var(--navy); }
.btn-start-secondary .title { font-size: 17px; font-weight: 700; display: block; }
.btn-start-secondary .sub   { font-size: 12px; font-weight: 500; color: var(--sub); }
.btn-start-secondary .arrow { font-size: 18px; color: var(--faint); }

/* =========================================================================
 * Quiz（質問画面）
 * ========================================================================= */
.quiz {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
}
.quiz__header {
  position: sticky;
  top: 0;
  padding-top: 20px;
  background: var(--bg);
  z-index: 2;
}
.quiz__header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 9px;
}
.quiz__category { font-size: 12px; font-weight: 700; color: var(--ink); }
.quiz__category .light-tag { color: var(--faint); font-weight: 600; }
.quiz__category .dai-name  { color: var(--accent); }
.quiz__counter {
  font-size: 12px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-weight: 700;
}
.quiz__progress {
  height: 4px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}
.quiz__progress-bar {
  height: 100%;
  background: var(--accent);
  transition: width .25s ease;
}
.quiz__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 380px;
}
.quiz__chu {
  font-size: 12px;
  color: var(--faint);
  margin-bottom: 14px;
  font-weight: 600;
}
.quiz__q {
  font-size: 23px;
  line-height: 1.65;
  font-weight: 800;
  margin: 0 0 30px;
  letter-spacing: -0.01em;
}
.quiz__choices {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.quiz__back-row { margin-top: 18px; }
.btn-back {
  background: none;
  border: none;
  font-size: 14px;
  color: var(--sub);
}
.btn-back[disabled] { color: var(--line); cursor: default; }

/* ---- 選択肢ボタン ------------------------------------------------------ */
.choice {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  text-align: left;
  transition: all .14s ease;
  font-family: var(--font-ja);
}
.choice:hover { border-color: #CFCBC0; }
.choice__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid #CBD0CE;
  background: transparent;
}
.choice__label { font-size: 16px; font-weight: 700; color: var(--ink); }
.choice.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.choice.is-active .choice__dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 96, 44, 0.15);
}
.choice.is-active .choice__label { color: var(--accent); }

/* =========================================================================
 * Result（結果画面）
 * ========================================================================= */
.result { padding: 40px 0 20px; }

/* ---- キャラクターカード ------------------------------------------------ */
.char-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 0 0 32px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(27, 29, 32, 0.06);
}
.char-card__band {
  background: linear-gradient(135deg, var(--navy), var(--navy-hover));
  padding: 22px 26px;
}
.char-card__rarity {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 5px 13px;
  letter-spacing: 1px;
}
.char-card__rarity-label {
  font-weight: 600;
  font-family: var(--font-ja);
  font-size: 11px;
  opacity: 0.9;
}
.char-card__icon-wrap {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--surface);
  margin: 28px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  box-shadow: 0 6px 18px rgba(20, 34, 61, 0.12);
  border: 3px solid var(--navy);  /* 個別色はJSで上書き */
}
.char-card__inner { padding: 16px 26px 0; }
.char-card__type-label {
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 2px;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-weight: 700;
}
.char-card__name {
  font-weight: 900;
  font-size: 30px;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.char-card__catch {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  border-radius: 999px;
  padding: 6px 16px;
}
.char-card__open {
  color: var(--sub);
  font-size: 15px;
  line-height: 1.9;
  margin: 18px auto 0;
  max-width: 420px;
}
.char-card__axes {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.char-card__axis {
  font-size: 12px;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 10px;
  background: var(--bg);
  color: var(--faint);
  border: 1px solid var(--line);
}

/* ---- カード共通 -------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  margin-top: 16px;
  box-shadow: 0 10px 26px rgba(27, 29, 32, 0.04);
}
.card__title {
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 16px;
  font-family: var(--font-mono);
}
.card__text { color: var(--ink); font-size: 15px; line-height: 1.95; margin: 0; }
.card__text-sub { color: var(--sub); font-size: 14px; line-height: 1.9; margin-top: 14px; }

/* ---- レーダー ---------------------------------------------------------- */
.radar-wrap { height: 280px; }
.radar-svg  { width: 100%; height: 100%; display: block; }

/* ---- 本格診断アップグレード（lightモード時のみ） ---------------------- */
.upgrade {
  margin-top: 16px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 26px 22px;
  text-align: center;
}
.upgrade__icon { font-size: 22px; margin-bottom: 8px; }
.upgrade__title { font-weight: 800; font-size: 19px; margin: 0 0 8px; }
.upgrade__lead {
  color: var(--sub);
  font-size: 14px;
  line-height: 1.9;
  margin: 0 auto 18px;
  max-width: 420px;
}
.upgrade__btn {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 34px;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(20, 34, 61, 0.20);
  font-family: var(--font-ja);
}

/* ---- 14項目スコアバー -------------------------------------------------- */
.score-list { display: flex; flex-direction: column; gap: 13px; }
.score-row__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 5px;
}
.score-row__name { font-size: 14px; font-weight: 700; color: var(--ink); }
.score-row__name.is-key { /* キー軸のときキャラ色をJSで設定 */ }
.score-row__star { font-size: 10px; margin-right: 5px; }
.score-row__desc {
  font-size: 11px;
  color: var(--faint);
  font-weight: 400;
  margin-left: 8px;
}
.score-row__tier { font-size: 12px; font-weight: 700; }
.score-bar {
  height: 6px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}
.score-bar__fill {
  height: 100%;
  width: 0;
  transition: width .6s ease;
}
.score-list__legend { font-size: 11px; color: var(--faint); margin-top: 14px; }

/* ---- 所見・低キー軸ボックス・お金ありき ------------------------------- */
.findings-head { font-size: 13px; font-weight: 700; color: #C99A2E; margin-bottom: 8px; }
.findings-item {
  background: #FBF6E9;
  border: 1px solid #EFE2BE;
  border-radius: 12px;
  padding: 13px 15px;
  margin-bottom: 8px;
}
.findings-item__axis { font-weight: 700; color: #A9842A; font-size: 14px; }
.findings-item__text { margin: 6px 0 0; font-size: 13.5px; color: var(--sub); line-height: 1.85; }

.narikin {
  margin-top: 16px;
  background: #FBEEEA;
  border: 1px solid #F0CFC5;
  border-radius: 12px;
  padding: 13px 15px;
}
.narikin__title { font-weight: 700; color: #C0573D; font-size: 14px; }
.narikin__text { margin: 6px 0 0; font-size: 13.5px; color: var(--sub); line-height: 1.85; }

/* ---- NEXT STEP（CTA） --------------------------------------------------- */
.next-step {
  margin-top: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 22px;
  text-align: center;
  box-shadow: 0 10px 26px rgba(27, 29, 32, 0.05);
}
.next-step__label {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 800;
  font-family: var(--font-mono);
  margin-bottom: 10px;
}
.next-step__head {
  font-weight: 900;
  font-size: 21px;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.next-step__lead {
  color: var(--sub);
  font-size: 14px;
  line-height: 1.95;
  margin: 0 auto 22px;
  max-width: 430px;
}
.next-step__blocks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---- TimeRexブロック（中途/新卒2チップ） ------------------------------ */
.timerex {
  border-radius: 16px;
  padding: 16px 16px 14px;
  font-family: var(--font-ja);
  text-align: center;
}
.timerex--primary {
  background: var(--navy);
  color: #fff;
  padding: 18px 18px 16px;
  box-shadow: 0 10px 26px rgba(20, 34, 61, 0.20);
}
.timerex--secondary {
  background: var(--bg);
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.timerex__head {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 10px;
}
.timerex__icon { font-size: 19px; }
.timerex--primary .timerex__icon { font-size: 22px; }
.timerex__head-text { text-align: left; }
.timerex__head-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.timerex--primary .timerex__head-title { color: #fff; font-size: 16px; font-weight: 800; }
.timerex__head-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--sub);
}
.timerex--primary .timerex__head-sub { color: rgba(255, 255, 255, 0.78); font-weight: 600; }
.timerex__chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.timerex-chip {
  text-decoration: none;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 14px;
}
.timerex--primary .timerex-chip {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.timerex--secondary .timerex-chip {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.timerex-chip__arrow { font-size: 14px; opacity: 0.9; }

/* ---- LINEブロック ------------------------------------------------------ */
.line-block {
  text-decoration: none;
  border-radius: 16px;
  padding: 15px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  font-family: var(--font-ja);
}
.line-block--primary {
  background: var(--navy);
  color: #fff;
  padding: 16px 22px;
  box-shadow: 0 10px 26px rgba(20, 34, 61, 0.20);
}
.line-block--secondary {
  background: var(--bg);
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.line-block__icon { font-size: 19px; opacity: 0.9; }
.line-block--primary .line-block__icon { font-size: 22px; opacity: 1; }
.line-block__text { text-align: left; }
.line-block__title {
  display: block;
  font-size: 15px;
  font-weight: 700;
}
.line-block--primary .line-block__title { font-size: 16px; font-weight: 800; }
.line-block__sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--sub);
}
.line-block--primary .line-block__sub { color: rgba(255, 255, 255, 0.85); font-weight: 600; }

/* ---- もう一度診断する -------------------------------------------------- */
.reset-row { text-align: center; }
.btn-reset {
  margin-top: 18px;
  background: none;
  border: none;
  color: var(--sub);
  font-size: 13px;
  text-decoration: underline;
  font-family: var(--font-ja);
}

/* =========================================================================
 * レスポンシブ微調整
 * ========================================================================= */
@media (max-width: 420px) {
  .intro__title { font-size: 34px; }
  .quiz__q { font-size: 20px; }
  .char-card__name { font-size: 26px; }
}
