/* ============================================================
   副業診断テンプレート – diagnosis.css
   Design: Luxury Olive Green × Warm Gold × Textured Depth
   ============================================================ */

/* ── CSS Variables ── */
:root {
  /* Palette */
  --olive-deep:    #111408;
  --olive-dark:    #191c0a;
  --olive-mid:     #222810;
  --olive-rich:    #2e3614;
  --olive-accent:  #6b7c1a;
  --olive-bright:  #8fa620;
  --olive-light:   #b2c93a;
  --olive-pale:    rgba(143, 166, 32, 0.10);
  --olive-glow:    rgba(143, 166, 32, 0.22);

  --gold:          #C9A84C;
  --gold-light:    #E8C96A;
  --gold-pale:     rgba(201, 168, 76, 0.12);
  --gold-glow:     rgba(201, 168, 76, 0.30);

  --cream:         #F5F0E8;
  --cream-dim:     #B8B2A6;
  --cream-faint:   #6E6B64;

  --yes-green:     #5DB87A;
  --yes-bg:        rgba(93, 184, 122, 0.10);
  --no-rose:       #D46B5A;
  --no-bg:         rgba(212, 107, 90, 0.10);

  --border:        rgba(201, 168, 76, 0.16);
  --border-mid:    rgba(201, 168, 76, 0.32);
  --border-strong: rgba(201, 168, 76, 0.55);

  --card-bg:       rgba(22, 26, 8, 0.72);
  --card-bg2:      rgba(30, 36, 10, 0.80);

  /* Fonts */
  --font-serif:  'Cormorant Garamond', 'Noto Serif JP', serif;
  --font-body:   'Noto Sans JP', sans-serif;
  --font-display:'DM Serif Display', 'Noto Serif JP', serif;

  /* Layout */
  --max-w: 720px;
  --pad-h: 1.5rem;
  --radius: 6px;

  /* Animation */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0; padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

/* ── Body ── */
body.diagnosis-template {
  background: var(--olive-deep);
  color: var(--cream);
  font-family: var(--font-body);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════════════
   BACKGROUND LAYERS
══════════════════════════════════════════ */
.diag-bg-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.diag-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  opacity: 0.18;
  filter: saturate(0.6) brightness(0.7);
  transition: opacity 1.2s ease;
}

.diag-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%,   rgba(107,124,26,0.28) 0%, transparent 65%),
    radial-gradient(ellipse 60% 80% at 100% 100%, rgba(201,168,76,0.10) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 0%   80%,  rgba(17,20,8,0.90)    0%, transparent 60%),
    linear-gradient(170deg, rgba(17,20,8,0.97) 0%, rgba(25,28,10,0.92) 50%, rgba(17,20,8,0.97) 100%);
}

#canvas-bg {
  position: absolute;
  inset: 0;
  opacity: 0.45;
}

/* ══════════════════════════════════════════
   ROOT & INNER
══════════════════════════════════════════ */
.diag-root {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
}

.diag-section {
  position: relative;
  z-index: 1;
}

.diag-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-h);
}

/* ══════════════════════════════════════════
   FADE-UP ANIMATION
══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; transform: scaleX(1); }
  50%       { opacity: 1.0; transform: scaleX(1.02); }
}

@keyframes scrollHint {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0.3; }
}

.fade-up         { animation: fadeUp 0.75s var(--ease-out) both; }
.d1              { animation-delay: 0.12s; }
.d2              { animation-delay: 0.22s; }
.d3              { animation-delay: 0.34s; }
.d4              { animation-delay: 0.46s; }
.d5              { animation-delay: 0.58s; }

/* ══════════════════════════════════════════
   INTRO SECTION
══════════════════════════════════════════ */
.intro-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 3rem var(--pad-h);
}

.intro-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.intro-badge {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  color: var(--gold);
  border: 1px solid var(--border-mid);
  padding: 0.4em 1.4em;
  border-radius: 2em;
  margin-bottom: 2rem;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 500;
  background: rgba(201,168,76,0.05);
  backdrop-filter: blur(4px);
}

.intro-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 300;
  line-height: 1.45;
  color: var(--cream);
  margin-bottom: 1.6rem;
  letter-spacing: 0.02em;
}

.intro-heading em {
  font-style: normal;
  color: var(--gold-light);
  font-weight: 400;
  position: relative;
  display: inline-block;
}

.intro-lead {
  font-size: clamp(0.88rem, 2.2vw, 1rem);
  color: var(--cream-dim);
  line-height: 2;
  margin-bottom: 2.8rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Intro Button */
.intro-btn {
  display: inline-block;
  position: relative;
  background: linear-gradient(135deg, var(--olive-accent), var(--gold), var(--olive-bright));
  background-size: 200% 100%;
  color: var(--olive-deep);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 0;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  letter-spacing: 0.08em;
  overflow: hidden;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
  box-shadow: 0 4px 28px rgba(143,166,32,0.22), 0 2px 8px rgba(0,0,0,0.4);
  margin-bottom: 1.4rem;
  animation: shimmer 3s linear 1.5s infinite;
}

.intro-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 36px rgba(143,166,32,0.38), 0 4px 16px rgba(0,0,0,0.5);
}

.intro-btn:active {
  transform: translateY(-1px) scale(0.99);
}

.btn-inner {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.05rem 3rem;
}

.btn-label { position: relative; z-index: 1; }
.btn-arrow  { position: relative; z-index: 1; font-size: 1.1rem; transition: transform 0.25s ease; }
.intro-btn:hover .btn-arrow { transform: translateX(4px); }

.intro-meta {
  font-size: 0.78rem;
  color: var(--cream-faint);
  letter-spacing: 0.04em;
}

/* Scroll hint */
.intro-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollHint 2s ease 2s infinite;
}

/* ══════════════════════════════════════════
   PROGRESS BAR
══════════════════════════════════════════ */
.quiz-section {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.quiz-progress-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding: 1.8rem var(--pad-h) 0.6rem;
}

.quiz-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.progress-label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--cream-faint);
  font-weight: 500;
}

.progress-count {
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.progress-track {
  height: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 1px;
  overflow: visible;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--olive-accent), var(--gold));
  border-radius: 1px;
  transition: width 0.55s var(--ease-out);
  position: relative;
}

.progress-glow {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px 4px var(--gold-glow);
  transition: left 0.55s var(--ease-out);
  animation: pulseGlow 2s ease infinite;
}

/* ══════════════════════════════════════════
   QUIZ CARD
══════════════════════════════════════════ */
.quiz-card-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem var(--pad-h) 3rem;
}

.q-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2.8rem 2.8rem 2rem;
  max-width: 660px;
  width: 100%;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 48px rgba(0,0,0,0.5), 0 1px 0 rgba(201,168,76,0.12) inset;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.q-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.q-num {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1rem;
  font-family: var(--font-body);
}

.q-text {
  font-family: var(--font-serif);
  font-size: clamp(1.12rem, 3vw, 1.45rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--cream);
  margin-bottom: 0.65rem;
  letter-spacing: 0.01em;
}

.q-sub {
  font-size: 0.83rem;
  color: var(--cream-faint);
  line-height: 1.75;
  margin-bottom: 2.2rem;
  padding-left: 0.8rem;
  border-left: 2px solid var(--border);
}

/* Answer Buttons */
.q-answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}

.ans-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.3rem 1rem;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.25s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.ans-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.25s;
}

.ans-mark {
  font-size: 1.25rem;
  line-height: 1;
  color: var(--cream-faint);
  transition: color 0.25s, transform 0.3s var(--ease-spring);
}

.ans-label {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cream-dim);
  transition: color 0.25s;
}

.ans-desc {
  font-size: 0.72rem;
  color: var(--cream-faint);
  transition: color 0.25s;
}

/* YES hover/selected */
.ans-yes:hover,
.ans-yes.selected {
  border-color: var(--yes-green);
  background: var(--yes-bg);
  box-shadow: 0 0 20px rgba(93,184,122,0.12);
}
.ans-yes:hover .ans-mark,
.ans-yes.selected .ans-mark { color: var(--yes-green); transform: scale(1.15); }
.ans-yes:hover .ans-label,
.ans-yes.selected .ans-label { color: var(--yes-green); }
.ans-yes:hover .ans-desc,
.ans-yes.selected .ans-desc  { color: rgba(93,184,122,0.8); }

/* NO hover/selected */
.ans-no:hover,
.ans-no.selected {
  border-color: var(--no-rose);
  background: var(--no-bg);
  box-shadow: 0 0 20px rgba(212,107,90,0.12);
}
.ans-no:hover .ans-mark,
.ans-no.selected .ans-mark { color: var(--no-rose); transform: scale(1.15); }
.ans-no:hover .ans-label,
.ans-no.selected .ans-label { color: var(--no-rose); }
.ans-no:hover .ans-desc,
.ans-no.selected .ans-desc  { color: rgba(212,107,90,0.8); }

/* Nav */
.q-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.nav-back {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  color: var(--cream-faint);
  font-size: 0.83rem;
  cursor: pointer;
  font-family: var(--font-body);
  transition: color 0.2s;
  padding: 0.3rem 0;
  visibility: hidden;
}

.nav-back:hover { color: var(--cream-dim); }
.nav-back-arrow { transition: transform 0.2s; }
.nav-back:hover .nav-back-arrow { transform: translateX(-3px); }

/* Progress dots */
.q-dots {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 160px;
}

.q-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  transition: background 0.3s, transform 0.3s;
}

.q-dot.done     { background: var(--olive-bright); }
.q-dot.active   { background: var(--gold); transform: scale(1.4); }

/* ══════════════════════════════════════════
   SUMMARY SECTION
══════════════════════════════════════════ */
.summary-section {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 4rem 0;
  display: flex;
  align-items: flex-start;
}

.summary-inner {
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
}

.summary-header {
  text-align: center;
  margin-bottom: 2.4rem;
}

.summary-badge {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  color: var(--olive-light);
  border: 1px solid rgba(143,166,32,0.35);
  padding: 0.32em 1.1em;
  border-radius: 2em;
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-weight: 600;
}

.summary-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
}

.summary-sub {
  font-size: 0.85rem;
  color: var(--cream-faint);
  line-height: 1.8;
}

/* Answers grid */
.answers-grid {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 2.4rem;
}

.a-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.65rem 1rem;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
}

.a-row:hover {
  border-color: var(--border-mid);
  background: var(--card-bg2);
}

.a-q {
  flex: 1;
  font-size: 0.80rem;
  color: var(--cream-dim);
  line-height: 1.55;
}

.a-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.2em 0.65em;
  border-radius: 3px;
  flex-shrink: 0;
}

.a-badge.yes { background: rgba(93,184,122,0.15); color: var(--yes-green); }
.a-badge.no  { background: rgba(212,107,90,0.12);  color: var(--no-rose); }

/* Diagnose button */
.diagnose-wrap { text-align: center; }

.diagnose-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: linear-gradient(135deg, var(--olive-accent) 0%, var(--gold) 50%, var(--olive-bright) 100%);
  background-size: 200% 100%;
  color: var(--olive-deep);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 1.1rem 3.2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: all 0.3s var(--ease-spring);
  box-shadow: 0 4px 28px rgba(143,166,32,0.22);
  margin-bottom: 1rem;
  animation: shimmer 3s linear 1s infinite;
}

.diagnose-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 36px rgba(143,166,32,0.35);
}

.diagnose-icon { font-size: 0.9rem; }

.diagnose-hint {
  font-size: 0.75rem;
  color: var(--cream-faint);
}

/* ══════════════════════════════════════════
   RESULT SECTION
══════════════════════════════════════════ */
.result-section {
  padding: 4rem 0 6rem;
}

.result-inner {
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

/* Result intro */
.result-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.result-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--cream-faint);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.result-type-badge {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  border: 1px solid;
  padding: 0.35em 1.1em;
  border-radius: 2em;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  font-weight: 600;
}

/* ── タイプ名の上の前置きラベル ── */
.result-pre-label {
  font-size: 0.80rem;
  color: var(--cream-faint);
  letter-spacing: 0.18em;
  margin-bottom: 1rem;
  font-weight: 400;
}

/* ── タイプ名装飾ライン ── */
.type-name-deco {
  display: block;
  width: 3px;
  height: 26px;
  margin: 0 auto 0.9rem;
  border-radius: 2px;
  opacity: 0.75;
}

/* ── タイプ名見出し本体 ── */
.result-type-name {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.2vw, 2.0rem); /* PCでも19文字が1行に収まる安全サイズ */
  font-weight: 600;                          /* 太字 */
  line-height: 1.25;
  letter-spacing: 0.06em;
  color: var(--tc, var(--gold-light));
  margin-bottom: 0;
  position: relative;
  display: block;
  padding-bottom: 1.1rem;
  word-break: keep-all;   /* PC: CJK文字が途中で折り返さないよう制御 */
  overflow-wrap: normal;
  /* 発光グロー効果（タイプカラーで光る） */
  text-shadow:
    0 0 14px var(--tc, rgba(201,168,76,0.60)),
    0 0 30px var(--tc, rgba(201,168,76,0.30)),
    0 0  2px rgba(255,255,255,0.10);
}

/* ── タイプ名セグメント・区切り文字 (PC:inline / SP:block/none) ── */
.type-name-seg {
  display: inline;
}
.type-name-dot {
  display: inline;
  opacity: 0.55;
  letter-spacing: 0.02em;
}

.result-type-name::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 1px;
  background: var(--tc, var(--gold));
  opacity: 0.55;
}

/* ── タグライン（キャッチフレーズ） ── */
.result-tagline {
  font-size: clamp(0.9rem, 2.4vw, 1.04rem);
  color: var(--cream-dim);
  line-height: 2;
  max-width: 600px;
  margin: 1.6rem auto 2rem;
  letter-spacing: 0.02em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* PC では <wbr> を無効化してダイナミックな1行表示 */
@media (min-width: 640px) {
  .result-tagline wbr { display: none; }
}

/* スマホでは適切な位置で折り返す */
@media (max-width: 639px) {
  .result-type-name {
    font-size: clamp(1.5rem, 7.5vw, 1.9rem); /* SP: 各セグメントが読みやすいサイズ */
    letter-spacing: 0.03em;
    padding-bottom: 0.9rem;
    line-height: 1.5;
    word-break: normal;        /* リセット */
    overflow-wrap: break-word;
  }
  /* SP: 各セグメントを1行ずつブロック表示 */
  .type-name-seg {
    display: block;
    width: 100%;
  }
  /* SP: 区切り文字「・」を非表示 */
  .type-name-dot {
    display: none;
  }
  .result-tagline {
    font-size: 0.88rem;
    line-height: 2;
    text-align: left;
  }
}

/* Result cards */
.r-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.9rem 2.1rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}

.r-card.vis {
  opacity: 1;
  transform: translateY(0);
}

.r-card-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.1rem;
}

.r-card-icon {
  width: 38px; height: 38px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.r-card-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--cream-faint);
  text-transform: uppercase;
  font-weight: 600;
}

.r-card h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 1rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.r-card p {
  font-size: 0.9rem;
  color: var(--cream-dim);
  line-height: 1.9;
  margin-bottom: 0.75rem;
}
.r-card p:last-child { margin-bottom: 0; }

/* Roadmap */
.roadmap { margin-top: 0.5rem; }
.rm-step { display: flex; gap: 1rem; margin-bottom: 1.4rem; }
.rm-step:last-child { margin-bottom: 0; }

.rm-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.rm-body h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 0.3rem;
  letter-spacing: 0.03em;
  line-height: 1.5;
}

.rm-body p {
  font-size: 0.85rem;
  color: var(--cream-dim);
  line-height: 1.85;
  margin: 0;
}

/* Priority table */
.priority-table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
.priority-table td {
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.85rem;
  vertical-align: top;
}
.priority-table td:first-child {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.05em; white-space: nowrap;
  padding-right: 1rem;
}
.priority-table td:last-child { color: var(--cream-dim); line-height: 1.75; }
/* 文字色をより鮮明に ＋ 行背景色を追加 */
.tag-must   { color: #F07888; } /* ピンク系 */
.tag-should { color: var(--gold-light); } /* 黄金系 */
.tag-may    { color: #72AAEE; } /* ブルー系 */

/* ── Success Guardrails 行背景色 ── */
/* 必須：ピンク系 */
.priority-table tr.prow-must {
  background: rgba(230, 80, 100, 0.13) !important;
}
.priority-table tr.prow-must td:first-child {
  border-left: 3px solid rgba(230, 80, 100, 0.60);
  padding-left: 0.75rem;
}
/* 重要：イエロー・ゴールド系 */
.priority-table tr.prow-should {
  background: rgba(210, 175, 40, 0.13) !important;
}
.priority-table tr.prow-should td:first-child {
  border-left: 3px solid rgba(210, 175, 40, 0.60);
  padding-left: 0.75rem;
}
/* 推奨：ブルー系 */
.priority-table tr.prow-may {
  background: rgba(65, 130, 210, 0.13) !important;
}
.priority-table tr.prow-may td:first-child {
  border-left: 3px solid rgba(65, 130, 210, 0.60);
  padding-left: 0.75rem;
}

/* AI roles */
.ai-roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 0.55rem;
}
.ai-role {
  background: rgba(107,124,26,0.08);
  border: 1px solid rgba(143,166,32,0.22);
  border-radius: 5px;
  padding: 0.75rem 0.9rem;
}
.ai-role-label {
  font-size: 0.68rem;
  color: var(--olive-light);
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
  font-weight: 700;
  text-transform: uppercase;
}
.ai-role-text {
  font-size: 0.82rem;
  color: var(--cream-dim);
  line-height: 1.65;
}

/* Score bars */
.score-wrap { margin-top: 0.5rem; }
.score-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.6rem; }
.score-label { font-size: 0.75rem; color: var(--cream-dim); min-width: 130px; flex-shrink: 0; }
.score-track { flex: 1; height: 3px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }
.score-bar   { height: 100%; border-radius: 2px; transition: width 1.1s var(--ease-out); }
.score-val   { font-size: 0.72rem; color: var(--cream-faint); min-width: 30px; text-align: right; }

/* ── CTA Button (無料レポート) ── */
.cta-block {
  margin-top: 2.5rem;
  text-align: center;
  padding: 2.2rem 1.5rem;
  background: linear-gradient(135deg, rgba(107,124,26,0.12), rgba(201,168,76,0.08));
  border: 1px solid var(--border-mid);
  border-radius: 10px;
}

.cta-lead {
  font-size: 0.88rem;
  color: var(--cream-dim);
  margin-bottom: 1.4rem;
  line-height: 1.85;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--olive-deep);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 1.05rem 2.8rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: all 0.3s var(--ease-spring);
  box-shadow: 0 4px 24px var(--gold-glow);
}
.cta-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 36px var(--gold-glow);
}

/* Result footer */
.result-footer {
  text-align: center;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
}

.restart-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--cream-dim);
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 0.75rem 2.2rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.restart-btn:hover {
  border-color: var(--border-mid);
  color: var(--cream);
}

.result-footer p {
  font-size: 0.78rem;
  color: var(--cream-faint);
}

/* ══════════════════════════════════════════
   PC BREAK
══════════════════════════════════════════ */
.pc-br { display: none; }
@media (min-width: 640px) {
  .pc-br { display: inline; }
}

/* ══════════════════════════════════════════
   RESPONSIVE – TABLET (max 768px)
══════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --pad-h: 1.2rem; }
  .q-card { padding: 2.2rem 1.8rem 1.6rem; }
  .r-card { padding: 1.6rem 1.4rem; }
}

/* ══════════════════════════════════════════
   RESPONSIVE – MOBILE (max 520px)
══════════════════════════════════════════ */
@media (max-width: 520px) {
  :root { --pad-h: 1rem; }

  .intro-heading { font-size: 1.9rem; }
  .intro-lead    { font-size: 0.88rem; }
  .btn-inner     { padding: 0.95rem 2.2rem; }

  .q-card  { padding: 1.8rem 1.2rem 1.4rem; border-radius: 8px; }
  .q-text  { font-size: 1.1rem; }
  .q-sub   { font-size: 0.8rem; }

  .q-answers { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .ans-btn   { padding: 1.1rem 0.6rem; }

  .r-card     { padding: 1.4rem 1rem; border-radius: 6px; }
  .ai-roles   { grid-template-columns: 1fr; }
  .score-label{ min-width: 100px; font-size: 0.7rem; }

  .cta-btn    { padding: 1rem 2rem; font-size: 0.95rem; }

  .summary-section { padding: 3rem 0; }
  .result-section  { padding: 3rem 0 5rem; }

  .q-dots { display: none; }
}

/* ══════════════════════════════════════════
   SELECTION COLOR
══════════════════════════════════════════ */
::selection {
  background: rgba(143,166,32,0.3);
  color: var(--cream);
}

/* ══════════════════════════════════════════
   RESULT HERO IMAGE & お疲れ様でした
══════════════════════════════════════════ */

/* ── お疲れ様でした ── */
.result-hero-img-wrap {
  text-align: center;
  margin-bottom: 3rem;
}

.result-hero-otsukare {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 1.1rem;
}

.otsukare-line {
  display: block;
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
}
.otsukare-line:last-child {
  background: linear-gradient(to left, transparent, var(--gold));
}

.otsukare-text {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 4vw, 1.75rem);
  font-weight: 300;
  color: var(--gold-light);
  letter-spacing: 0.22em;
  white-space: nowrap;
}

.result-hero-otsukare-lead {
  font-size: clamp(0.83rem, 2.2vw, 0.93rem);
  color: var(--cream-dim);
  line-height: 2;
  max-width: 520px;
  margin: 0 auto 2rem;
  letter-spacing: 0.03em;
}

/* ── ヒーロー画像フレーム ── */
.result-hero-img-figure {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px var(--border),
    0 12px 60px rgba(0,0,0,0.65),
    0 4px 16px rgba(0,0,0,0.4);
  aspect-ratio: 16 / 9;
  background: var(--olive-mid);
}

.result-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 6s ease;
}

.result-hero-img-wrap:hover .result-hero-img {
  transform: scale(1.04);
}

/* タイプカラーのグラデーションオーバーレイ */
.result-hero-img-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      transparent 40%,
      rgba(17, 20, 8, 0.72) 100%
    ),
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--type-color) 14%, transparent) 0%,
      transparent 55%
    );
  pointer-events: none;
}

/* 画像なし時のシンプル表示 */
.result-hero-no-img {
  padding: 2.5rem 0 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

/* ── レスポンシブ ── */
@media (max-width: 520px) {
  .result-hero-img-figure {
    border-radius: 7px;
    aspect-ratio: 4 / 3;
  }

  .otsukare-text {
    font-size: 1.2rem;
    letter-spacing: 0.15em;
  }

  .result-hero-otsukare-lead {
    font-size: 0.83rem;
    line-height: 1.9;
  }

  .otsukare-line {
    max-width: 40px;
  }
}
