/* ============================================ */
/* RESET & BASE                                  */
/* ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Colors: 桜×神社 */
  --color-bg: #fdf7f5;
  --color-bg-2: #faebe9;
  --color-cream: #fff9f7;
  --color-paper: #fffaf8;
  --color-ink: #3a2a2a;
  --color-ink-soft: #6b4f4f;
  --color-ink-light: #9b8585;
  --color-sakura: #f8c9d4;
  --color-sakura-deep: #e893a7;
  --color-rose: #d85a75;
  --color-rose-deep: #c8394e;
  --color-crimson: #a02942;
  --color-gold: #d4a94a;
  --color-gold-light: #e8c97a;
  --color-white: #ffffff;
  --color-line: #06c755;
  --color-line-dark: #04a848;

  /* Typography */
  --font-serif: 'Noto Serif JP', serif;
  --font-sans: 'Noto Sans JP', sans-serif;

  /* Shadows */
  --shadow-soft: 0 4px 20px rgba(200, 57, 78, 0.08);
  --shadow-medium: 0 8px 32px rgba(200, 57, 78, 0.12);
  --shadow-card: 0 12px 40px rgba(160, 41, 66, 0.15);
  --shadow-deep: 0 16px 48px rgba(160, 41, 66, 0.22);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--color-ink);
  background-color: var(--color-bg);
  background-image:
    radial-gradient(circle at 20% 10%, rgba(248, 201, 212, 0.4) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(232, 147, 167, 0.25) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(255, 249, 247, 0.6) 0%, transparent 70%);
  background-attachment: fixed;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(232, 147, 167, 0.02) 0px, rgba(232, 147, 167, 0.02) 1px, transparent 1px, transparent 3px);
  pointer-events: none;
  z-index: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ============================================ */
/* SAKURA PETALS (背景アニメーション)            */
/* ============================================ */
.sakura-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -50px;
  font-size: 20px;
  opacity: 0.7;
  animation: fall linear infinite;
  filter: drop-shadow(0 2px 4px rgba(232, 147, 167, 0.3));
}

.petal-1  { left: 5%;  font-size: 18px; animation-duration: 15s; animation-delay: 0s; }
.petal-2  { left: 15%; font-size: 24px; animation-duration: 18s; animation-delay: 2s; }
.petal-3  { left: 25%; font-size: 16px; animation-duration: 12s; animation-delay: 4s; }
.petal-4  { left: 35%; font-size: 22px; animation-duration: 20s; animation-delay: 1s; }
.petal-5  { left: 48%; font-size: 18px; animation-duration: 14s; animation-delay: 5s; }
.petal-6  { left: 60%; font-size: 20px; animation-duration: 17s; animation-delay: 3s; }
.petal-7  { left: 72%; font-size: 16px; animation-duration: 13s; animation-delay: 6s; }
.petal-8  { left: 82%; font-size: 24px; animation-duration: 19s; animation-delay: 2s; }
.petal-9  { left: 90%; font-size: 18px; animation-duration: 16s; animation-delay: 4s; }
.petal-10 { left: 96%; font-size: 20px; animation-duration: 21s; animation-delay: 7s; }

@keyframes fall {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(110vh) translateX(80px) rotate(720deg);
    opacity: 0;
  }
}

/* ============================================ */
/* 鳥居装飾                                      */
/* ============================================ */
.torii-deco {
  position: fixed;
  font-size: 60px;
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
  color: var(--color-crimson);
}

.top-left  { top: 20px; left: 10px; transform: rotate(-12deg); }
.top-right { top: 20px; right: 10px; transform: rotate(12deg); }

/* ============================================ */
/* APP LAYOUT                                   */
/* ============================================ */
.app {
  position: relative;
  z-index: 10;
  max-width: 520px;
  margin: 0 auto;
  padding: 20px 16px 60px;
  min-height: 100vh;
}

.screen {
  display: none;
  animation: screen-fade 0.5s ease;
}

.screen.active {
  display: block;
}

@keyframes screen-fade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================ */
/* START SCREEN                                 */
/* ============================================ */
.start-card {
  background: var(--color-paper);
  border-radius: 24px;
  padding: 22px 20px 20px;
  box-shadow: var(--shadow-card);
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(232, 147, 167, 0.2);
}

.start-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--color-sakura-deep) 0%, var(--color-rose) 50%, var(--color-crimson) 100%);
}

.start-card::after {
  content: "";
  position: absolute;
  top: 30px;
  left: -30px;
  right: -30px;
  height: 2px;
  background-image: repeating-linear-gradient(90deg, var(--color-gold) 0 8px, transparent 8px 16px);
  opacity: 0.3;
}

.start-title {
  font-family: var(--font-serif);
  margin-bottom: 8px;
  margin-top: 4px;
  line-height: 1.25;
}

.start-title__main {
  display: block;
  font-size: 26px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-rose-deep) 0%, var(--color-crimson) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.04em;
  filter: drop-shadow(0 2px 8px rgba(200, 57, 78, 0.15));
}

.start-sub {
  font-size: 12px;
  color: var(--color-ink-light);
  margin-bottom: 12px;
  letter-spacing: 0.06em;
}

.start-character {
  margin: 6px auto 10px;
  max-width: 140px;
  position: relative;
}

.start-character::before {
  content: "";
  position: absolute;
  inset: -10px -20px;
  background: radial-gradient(ellipse at center, rgba(248, 201, 212, 0.5) 0%, transparent 65%);
  z-index: -1;
}

.start-character__img {
  width: 100%;
  filter: drop-shadow(0 8px 20px rgba(200, 57, 78, 0.2));
  animation: character-bob 4s ease-in-out infinite;
}

@keyframes character-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.start-description {
  font-size: 13px;
  color: var(--color-ink-soft);
  margin-bottom: 14px;
  line-height: 1.7;
}

.start-description p {
  margin-bottom: 8px;
}

.start-description__em {
  background: linear-gradient(180deg, transparent 60%, rgba(248, 201, 212, 0.5) 60%);
  padding: 4px 4px;
  display: inline-block;
  border-radius: 4px;
}

.start-description__em span {
  color: var(--color-rose-deep);
  font-weight: 700;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--color-rose) 0%, var(--color-rose-deep) 50%, var(--color-crimson) 100%);
  color: white;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(200, 57, 78, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.btn-primary:hover::before,
.btn-primary:active::before {
  transform: translateX(100%);
}

.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 4px 12px rgba(200, 57, 78, 0.3);
}

.btn-primary__arrow {
  font-size: 22px;
  line-height: 1;
}

.start-note {
  font-size: 10px;
  color: var(--color-ink-light);
  margin-top: 8px;
}

/* ============================================ */
/* PROGRESS BAR                                 */
/* ============================================ */
.progress-bar {
  position: relative;
  width: 100%;
  height: 6px;
  background: rgba(232, 147, 167, 0.2);
  border-radius: 100px;
  margin-bottom: 14px;
  overflow: visible;
}

.progress-bar__fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--color-sakura-deep), var(--color-rose-deep), var(--color-crimson));
  border-radius: 100px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(200, 57, 78, 0.5);
}

.progress-bar__label {
  position: absolute;
  right: 0;
  top: -24px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-rose-deep);
  font-family: var(--font-serif);
}

/* ============================================ */
/* QUESTION SCREEN                              */
/* ============================================ */
.question-card {
  background: var(--color-paper);
  border-radius: 24px;
  padding: 18px 18px 14px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(232, 147, 167, 0.2);
  position: relative;
  overflow: hidden;
}

.question-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-sakura-deep), var(--color-rose-deep));
}

.question-character {
  text-align: center;
  margin-bottom: 6px;
  max-width: 95px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.question-character::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(248, 201, 212, 0.4) 0%, transparent 60%);
  z-index: -1;
}

.question-character__img {
  width: 100%;
  filter: drop-shadow(0 6px 14px rgba(200, 57, 78, 0.18));
  animation: q-char-fade 0.5s ease;
}

@keyframes q-char-fade {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.question-number {
  text-align: center;
  margin-bottom: 4px;
  font-family: var(--font-serif);
}

.question-number__label {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--color-gold);
  font-weight: 700;
}

.question-number__value {
  display: inline-block;
  font-size: 22px;
  font-weight: 900;
  color: var(--color-rose-deep);
  margin-left: 6px;
  line-height: 1;
}

.question-text {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-ink);
  text-align: center;
  margin-bottom: 14px;
  padding: 12px 12px;
  background: linear-gradient(135deg, rgba(248, 201, 212, 0.12), rgba(232, 147, 167, 0.08));
  border-radius: 14px;
  border-top: 1px solid rgba(232, 147, 167, 0.2);
  border-bottom: 1px solid rgba(232, 147, 167, 0.2);
  position: relative;
}

.question-text::before,
.question-text::after {
  content: "🌸";
  font-size: 10px;
  position: absolute;
  opacity: 0.5;
}

.question-text::before { top: 4px; left: 8px; }
.question-text::after  { bottom: 4px; right: 8px; }

/* Likert Scale */
.likert-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 12px;
}

.likert-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 11px 16px;
  background: var(--color-cream);
  border: 2px solid rgba(232, 147, 167, 0.3);
  border-radius: 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-ink);
  text-align: left;
  transition: all 0.2s;
  position: relative;
}

.likert-btn:hover,
.likert-btn:active,
.likert-btn.selected {
  background: linear-gradient(135deg, var(--color-rose), var(--color-rose-deep));
  border-color: var(--color-rose-deep);
  color: white;
  transform: translateX(4px);
  box-shadow: 0 6px 16px rgba(200, 57, 78, 0.25);
}

.likert-btn:hover .likert-btn__dot,
.likert-btn:active .likert-btn__dot,
.likert-btn.selected .likert-btn__dot {
  background: white;
  border-color: white;
}

.likert-btn__dot {
  display: inline-block;
  flex-shrink: 0;
  background: var(--color-rose-deep);
  border: 2px solid var(--color-rose-deep);
  border-radius: 50%;
  transition: all 0.2s;
}

.likert-btn__dot--xl { width: 20px; height: 20px; }
.likert-btn__dot--l  { width: 16px; height: 16px; }
.likert-btn__dot--m  { width: 12px; height: 12px; }
.likert-btn__dot--s  { width:  8px; height:  8px; }

.likert-btn__label {
  flex: 1;
  letter-spacing: 0.02em;
}

.btn-back {
  display: block;
  margin: 0 auto;
  padding: 6px 16px;
  font-size: 12px;
  color: var(--color-ink-light);
  background: transparent;
  border: 1px solid rgba(155, 133, 133, 0.3);
  border-radius: 100px;
  transition: all 0.2s;
}

.btn-back:hover {
  color: var(--color-rose-deep);
  border-color: var(--color-rose);
}

.btn-back:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ============================================ */
/* LOADING SCREEN                               */
/* ============================================ */
.loading-card {
  background: var(--color-paper);
  border-radius: 28px;
  padding: 48px 24px;
  box-shadow: var(--shadow-card);
  text-align: center;
  border: 1px solid rgba(232, 147, 167, 0.2);
  position: relative;
  overflow: hidden;
}

.loading-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(248, 201, 212, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(232, 147, 167, 0.2) 0%, transparent 50%);
  z-index: 0;
}

.loading-character {
  position: relative;
  max-width: 200px;
  margin: 0 auto 28px;
  z-index: 1;
}

.loading-character__img {
  width: 100%;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 8px 20px rgba(200, 57, 78, 0.25));
  animation: loading-pulse 2s ease-in-out infinite;
}

.loading-aura {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle, rgba(248, 201, 212, 0.6) 0%, transparent 60%);
  border-radius: 50%;
  animation: aura-spin 8s linear infinite;
  z-index: 1;
}

.loading-aura::before,
.loading-aura::after {
  content: "";
  position: absolute;
  inset: 10%;
  border: 2px dashed rgba(232, 147, 167, 0.5);
  border-radius: 50%;
  animation: aura-spin 10s linear infinite reverse;
}

.loading-aura::after {
  inset: 25%;
  border-color: rgba(212, 169, 74, 0.4);
  animation-duration: 15s;
}

@keyframes aura-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes loading-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.loading-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 900;
  color: var(--color-rose-deep);
  margin-bottom: 20px;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

.loading-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.loading-dots span {
  width: 10px;
  height: 10px;
  background: var(--color-rose-deep);
  border-radius: 50%;
  animation: dot-bounce 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40% { transform: translateY(-8px); opacity: 1; }
}

.loading-sub {
  font-size: 13px;
  color: var(--color-ink-soft);
  position: relative;
  z-index: 1;
}

/* ============================================ */
/* RESULT SCREEN                                */
/* ============================================ */
.result-header {
  background: linear-gradient(135deg, var(--color-paper) 0%, #fff5f2 100%);
  border-radius: 28px 28px 24px 24px;
  padding: 28px 22px 32px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(232, 147, 167, 0.25);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

.result-header::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--color-sakura-deep), var(--color-rose), var(--color-crimson), var(--color-rose), var(--color-sakura-deep));
  background-size: 200% 100%;
  animation: gradient-shift 4s linear infinite;
}

@keyframes gradient-shift {
  from { background-position: 0% 50%; }
  to   { background-position: 200% 50%; }
}

.result-header::after {
  content: "◆";
  position: absolute;
  top: 14px;
  right: 20px;
  font-size: 14px;
  color: var(--color-gold);
  opacity: 0.5;
}

.result-header__badge {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--color-ink-soft);
  padding: 4px 14px;
  background: rgba(232, 147, 167, 0.12);
  border-radius: 100px;
  margin-bottom: 20px;
  font-weight: 500;
}

.result-character {
  max-width: 200px;
  margin: 0 auto 20px;
  position: relative;
}

.result-character::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, rgba(248, 201, 212, 0.55) 0%, transparent 65%);
  z-index: -1;
}

.result-character__img {
  width: 100%;
  filter: drop-shadow(0 10px 24px rgba(200, 57, 78, 0.3));
  animation: result-reveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes result-reveal {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}

.result-type-wrap {
  animation: result-reveal 0.8s 0.3s both cubic-bezier(0.34, 1.56, 0.64, 1);
}

.result-type__kana {
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--color-gold);
  margin-bottom: 6px;
  font-weight: 700;
}

.result-type__name {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 900;
  line-height: 1.3;
  background: linear-gradient(135deg, var(--color-rose-deep) 0%, var(--color-crimson) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
  filter: drop-shadow(0 2px 6px rgba(200, 57, 78, 0.2));
}

.result-type__catch {
  font-size: 13px;
  color: var(--color-ink-soft);
  letter-spacing: 0.05em;
  line-height: 1.6;
  padding: 0 8px;
}

.result-border-badge {
  margin-top: 16px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(212, 169, 74, 0.15), rgba(232, 201, 122, 0.1));
  border: 1px dashed var(--color-gold);
  border-radius: 12px;
  font-size: 12px;
  color: var(--color-ink-soft);
  line-height: 1.5;
}

.result-border-badge span {
  font-weight: 700;
  color: var(--color-rose-deep);
}

/* ============================================ */
/* SECTION TITLE                                */
/* ============================================ */
.section-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 900;
  color: var(--color-ink);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.05em;
}

.section-title__mark {
  color: var(--color-rose-deep);
  font-size: 12px;
}

/* ============================================ */
/* MATRIX (4象限)                                */
/* ============================================ */
.result-matrix {
  background: var(--color-paper);
  border-radius: 24px;
  padding: 22px 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(232, 147, 167, 0.2);
  margin-bottom: 20px;
}

.matrix-wrap {
  position: relative;
  padding: 32px 40px;
}

.matrix-grid {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(232, 147, 167, 0.2);
  box-shadow: inset 0 2px 8px rgba(200, 57, 78, 0.05);
}

.matrix-quadrant {
  background: linear-gradient(135deg, #fff5f2 0%, #ffe8e3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-ink-soft);
  text-align: center;
  line-height: 1.4;
  padding: 4px;
  transition: all 0.3s;
}

.matrix-quadrant.active {
  background: linear-gradient(135deg, var(--color-rose), var(--color-rose-deep));
  color: white;
  transform: scale(1.02);
  z-index: 1;
}

.matrix-axis-label {
  position: absolute;
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-rose-deep);
  text-align: center;
  line-height: 1.3;
}

.matrix-axis-label span {
  font-size: 9px;
  color: var(--color-ink-light);
  font-weight: 500;
}

.matrix-axis-label--top    { top: -4px; left: 50%; transform: translateX(-50%); }
.matrix-axis-label--bottom { bottom: -4px; left: 50%; transform: translateX(-50%); }
.matrix-axis-label--left   {
  left: -8px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center;
  white-space: nowrap;
}
.matrix-axis-label--right  {
  right: -8px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
  white-space: nowrap;
}

.matrix-plot {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 2;
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
}

.matrix-plot.shown {
  opacity: 1;
}

.matrix-plot__dot {
  position: absolute;
  width: 18px;
  height: 18px;
  background: radial-gradient(circle, #fff 0%, var(--color-rose-deep) 70%);
  border: 3px solid white;
  border-radius: 50%;
  top: -9px;
  left: -9px;
  box-shadow: 0 4px 12px rgba(200, 57, 78, 0.5), 0 0 0 3px rgba(200, 57, 78, 0.3);
  animation: plot-pulse 2s ease-in-out infinite;
}

.matrix-plot__ring {
  position: absolute;
  width: 40px;
  height: 40px;
  top: -20px;
  left: -20px;
  border: 2px solid rgba(200, 57, 78, 0.3);
  border-radius: 50%;
  animation: plot-ring 2s ease-out infinite;
}

@keyframes plot-pulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(200, 57, 78, 0.5), 0 0 0 3px rgba(200, 57, 78, 0.3); }
  50% { box-shadow: 0 4px 12px rgba(200, 57, 78, 0.5), 0 0 0 8px rgba(200, 57, 78, 0.15); }
}

@keyframes plot-ring {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ============================================ */
/* RESULT SECTIONS                              */
/* ============================================ */
.result-section {
  background: var(--color-paper);
  border-radius: 24px;
  padding: 22px 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(232, 147, 167, 0.2);
  margin-bottom: 20px;
}

.result-summary {
  font-size: 14px;
  line-height: 2;
  color: var(--color-ink);
  letter-spacing: 0.02em;
}

.strength-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.strength-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(248, 201, 212, 0.15), rgba(232, 147, 167, 0.08));
  border-radius: 12px;
  border-left: 3px solid var(--color-rose-deep);
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-ink);
}

.strength-list li::before {
  content: "🌸";
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================ */
/* LOCKED CONTENT & CTA                         */
/* ============================================ */
.result-locked {
  position: relative;
  background: var(--color-paper);
  border-radius: 24px;
  padding: 22px 20px 28px;
  box-shadow: var(--shadow-medium);
  border: 2px solid rgba(200, 57, 78, 0.25);
  margin-bottom: 20px;
  overflow: hidden;
}

.result-locked::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold-light), var(--color-gold), var(--color-gold-light));
}

.locked-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  position: relative;
}

.locked-content::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 250, 248, 0.85) 70%, var(--color-paper) 100%);
  pointer-events: none;
}

.locked-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(232, 147, 167, 0.08), rgba(200, 57, 78, 0.05));
  border-radius: 12px;
  filter: blur(1.5px);
  opacity: 0.8;
}

.locked-item__icon {
  font-size: 22px;
  flex-shrink: 0;
  filter: grayscale(0.5);
}

.locked-item__title {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 2px;
}

.locked-item__sub {
  font-size: 11px;
  color: var(--color-ink-light);
  line-height: 1.4;
}

/* CTA Card */
.cta-card {
  position: relative;
  background: linear-gradient(135deg, #fff 0%, #fff5f2 100%);
  border: 2px solid var(--color-rose);
  border-radius: 20px;
  padding: 24px 18px 22px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(200, 57, 78, 0.18);
}

.cta-card::before {
  content: "✨";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 16px;
  border: 1px solid var(--color-rose);
  box-shadow: 0 2px 6px rgba(200, 57, 78, 0.15);
}

.cta-character {
  max-width: 110px;
  margin: 0 auto 12px;
}

.cta-character__img {
  width: 100%;
  filter: drop-shadow(0 4px 10px rgba(200, 57, 78, 0.2));
}

.cta-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 900;
  color: var(--color-ink);
  line-height: 1.4;
  margin-bottom: 14px;
}

.cta-title span {
  color: var(--color-rose-deep);
}

.cta-description {
  font-size: 13px;
  line-height: 1.8;
  color: var(--color-ink-soft);
  margin-bottom: 16px;
}

.cta-description strong {
  color: var(--color-rose-deep);
  background: linear-gradient(180deg, transparent 65%, rgba(248, 201, 212, 0.6) 65%);
  padding: 0 2px;
}

.cta-benefits {
  list-style: none;
  text-align: left;
  background: rgba(248, 201, 212, 0.12);
  border-radius: 12px;
  padding: 14px 14px 14px 16px;
  margin-bottom: 20px;
  border: 1px dashed rgba(232, 147, 167, 0.4);
}

.cta-benefits li {
  position: relative;
  padding-left: 22px;
  font-size: 12px;
  color: var(--color-ink);
  line-height: 1.6;
  margin-bottom: 6px;
}

.cta-benefits li:last-child {
  margin-bottom: 0;
}

.cta-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-rose-deep);
  font-weight: 900;
}

.btn-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 16px;
  background: linear-gradient(180deg, var(--color-line), var(--color-line-dark));
  color: white;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(6, 199, 85, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.btn-line::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: translateX(-100%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

.btn-line:active {
  transform: translateY(2px);
  box-shadow: 0 4px 10px rgba(6, 199, 85, 0.3);
}

.btn-line__icon {
  background: white;
  color: var(--color-line-dark);
  font-size: 11px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
}

.cta-note {
  font-size: 10px;
  color: var(--color-ink-light);
  margin-top: 10px;
  line-height: 1.5;
}

/* ============================================ */
/* RESTART BUTTON                               */
/* ============================================ */
.result-restart {
  text-align: center;
  margin-bottom: 30px;
}

.btn-restart {
  padding: 10px 20px;
  font-size: 12px;
  color: var(--color-ink-soft);
  background: transparent;
  border: 1px solid rgba(155, 133, 133, 0.4);
  border-radius: 100px;
  transition: all 0.2s;
}

.btn-restart:hover {
  color: var(--color-rose-deep);
  border-color: var(--color-rose);
  background: rgba(248, 201, 212, 0.1);
}

/* ============================================ */
/* FOOTER                                       */
/* ============================================ */
.footer {
  text-align: center;
  padding: 20px 0;
  font-size: 11px;
  color: var(--color-ink-light);
}

/* ============================================ */
/* RESPONSIVE ADJUSTMENTS                       */
/* ============================================ */
@media (min-width: 480px) {
  .start-title__main { font-size: 34px; }
  .result-type__name { font-size: 36px; }
  .question-text { font-size: 18px; }
}

@media (max-width: 360px) {
  .app { padding: 16px 12px 40px; }
  .start-card, .question-card, .result-header { padding-left: 18px; padding-right: 18px; }
  .start-title__main { font-size: 26px; }
  .result-type__name { font-size: 26px; }
  .question-text { font-size: 15px; padding: 10px 10px; }
  .likert-btn { padding: 10px 14px; font-size: 14px; }
  .matrix-axis-label { font-size: 10px; }
  .matrix-axis-label span { font-size: 8px; }
  .matrix-wrap { padding: 28px 34px; }
}

/* 画面高さが低いスマホ (iPhone SE/mini) 向けのタイトモード */
@media (max-height: 720px) {
  .app { padding-top: 14px; padding-bottom: 28px; }
  .progress-bar { margin-bottom: 10px; }
  .question-card { padding: 14px 16px 10px; border-radius: 20px; }
  .question-character { max-width: 82px; margin-bottom: 4px; }
  .question-number { margin-bottom: 2px; }
  .question-number__label { font-size: 9px; }
  .question-number__value { font-size: 20px; }
  .question-text { font-size: 15px; margin-bottom: 10px; padding: 10px 10px; line-height: 1.55; }
  .likert-group { gap: 6px; margin-bottom: 8px; }
  .likert-btn { padding: 9px 14px; font-size: 14px; }
  .btn-back { padding: 4px 14px; font-size: 11px; }

  /* スタート画面のタイトモード */
  .start-card { padding: 16px 18px 14px; }
  .start-title { margin-bottom: 4px; margin-top: 0; }
  .start-title__main { font-size: 22px; }
  .start-sub { font-size: 11px; margin-bottom: 6px; }
  .start-character { max-width: 110px; margin: 2px auto 6px; }
  .start-description { font-size: 12px; margin-bottom: 10px; line-height: 1.6; }
  .start-description p { margin-bottom: 4px; }
  .btn-primary { padding: 12px 20px; font-size: 15px; }
  .start-note { font-size: 9px; margin-top: 6px; }
}

/* ============================================ */
/* LIFF: パーソナライズ挨拶                       */
/* ============================================ */
.result-greeting {
  background: linear-gradient(135deg, rgba(248, 201, 212, 0.25), rgba(232, 147, 167, 0.15));
  border: 1px solid rgba(232, 147, 167, 0.4);
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 16px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-ink);
}

.result-greeting #result-greeting-name {
  font-weight: 900;
  color: var(--color-rose-deep);
  font-size: 15px;
}

/* ============================================ */
/* LIFF: アンロックコンテンツ                     */
/* ============================================ */
.result-section--unlocked {
  border: 2px solid rgba(212, 169, 74, 0.25);
  position: relative;
}

.unlocked-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}

/* 盲点リスト */
.blindspot-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blindspot-list li {
  padding: 16px 16px;
  background: linear-gradient(135deg, rgba(200, 57, 78, 0.04), rgba(248, 201, 212, 0.08));
  border-radius: 14px;
  border-left: 4px solid var(--color-crimson);
}

.blindspot-title {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-crimson);
  margin-bottom: 8px;
  line-height: 1.5;
}

.blindspot-body {
  font-size: 13px;
  line-height: 1.9;
  color: var(--color-ink);
  letter-spacing: 0.01em;
}

/* 相性 */
.compat-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.compat-card {
  padding: 16px 16px;
  border-radius: 14px;
  border: 2px solid;
  position: relative;
}

.compat-card--good {
  background: linear-gradient(135deg, rgba(248, 201, 212, 0.18), rgba(255, 245, 242, 1));
  border-color: var(--color-rose);
}

.compat-card--tough {
  background: linear-gradient(135deg, rgba(212, 169, 74, 0.12), rgba(255, 250, 240, 1));
  border-color: rgba(212, 169, 74, 0.5);
}

.compat-card__label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
}

.compat-card--good .compat-card__label {
  background: var(--color-rose-deep);
  color: white;
}

.compat-card--tough .compat-card__label {
  background: var(--color-gold);
  color: white;
}

.compat-card__name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 900;
  margin-bottom: 8px;
  color: var(--color-ink);
}

.compat-card__reason {
  font-size: 13px;
  line-height: 1.8;
  color: var(--color-ink-soft);
}

/* ヒント */
.tips-list {
  list-style: none;
  counter-reset: tip-counter;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tips-list li {
  position: relative;
  padding: 14px 16px 14px 48px;
  background: linear-gradient(135deg, rgba(248, 201, 212, 0.1), rgba(255, 249, 247, 1));
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-ink);
  counter-increment: tip-counter;
}

.tips-list li::before {
  content: counter(tip-counter);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, var(--color-rose), var(--color-rose-deep));
  color: white;
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(200, 57, 78, 0.3);
}

/* 相談予約CTA */
.consult-card {
  background: linear-gradient(135deg, #fff 0%, #fff5f2 100%);
  border: 2px solid var(--color-rose-deep);
  border-radius: 20px;
  padding: 24px 20px 20px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(200, 57, 78, 0.18);
  margin-bottom: 20px;
  position: relative;
}

.consult-card::before {
  content: "💐";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 16px;
  border: 1px solid var(--color-rose-deep);
}

.consult-card__title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 900;
  color: var(--color-rose-deep);
  margin-bottom: 10px;
}

.consult-card__desc {
  font-size: 13px;
  line-height: 1.8;
  color: var(--color-ink-soft);
  margin-bottom: 18px;
}

.btn-consult {
  display: block;
  width: 100%;
  padding: 16px 16px;
  background: linear-gradient(135deg, var(--color-rose-deep), var(--color-crimson));
  color: white;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(200, 57, 78, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-consult:active {
  transform: translateY(2px);
  box-shadow: 0 3px 8px rgba(200, 57, 78, 0.25);
}

.consult-card__note {
  font-size: 10px;
  color: var(--color-ink-light);
  margin-top: 10px;
}

/* ============================================ */
/* LIFF: 再チェックボタン                         */
/* ============================================ */
.btn-recheck {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--color-cream);
  border: 2px solid var(--color-rose);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-rose-deep);
  letter-spacing: 0.05em;
  transition: all 0.2s;
}

.btn-recheck:hover,
.btn-recheck:active {
  background: var(--color-rose);
  color: white;
}

.btn-recheck:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-recheck--highlight {
  animation: recheck-glow 2s ease-in-out infinite;
}

@keyframes recheck-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 57, 78, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(200, 57, 78, 0); }
}
