:root {
  --primary: #f06595;
  --primary-glow: rgba(240, 101, 149, 0.4);
  --secondary: #fcc2d7;
  --accent: #ffd43b;
  --bg-color: #fff0f6;
  --text-main: #343a40;
  --text-muted: #868e96;
  --card-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(255, 255, 255, 0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(252, 194, 215, 0.3), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(240, 101, 149, 0.15), transparent 25%);
}

#particle-canvas {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: -1; pointer-events: none;
}

.page {
  max-width: 600px; margin: 0 auto; padding: 2rem 1rem;
  min-height: 100vh; display: flex; flex-direction: column;
}

.hero { text-align: center; margin-bottom: 3rem; animation: fadeInDown 0.8s ease; }
.hero__logo { font-size: 0.9rem; color: var(--primary); letter-spacing: 2px; margin-bottom: 1rem; text-transform: uppercase; font-family: 'Inter', sans-serif;}
.hero__logo-icon { font-size: 1.2rem; }
.hero__title { font-size: 2.2rem; font-weight: 700; margin-bottom: 1rem; color: #495057; line-height: 1.3;}
.hero__lead { color: var(--text-muted); font-size: 1rem; margin-bottom: 2rem; }
.sp-only { display: none; }
@media(max-width:480px){ .sp-only{display:block;} .hero__title{font-size:1.8rem;} }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 2rem; border-radius: 50px; font-weight: bold;
  border: none; cursor: pointer; transition: all 0.3s ease;
  font-family: 'Shippori Mincho', serif; font-size: 1.1rem;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #e64980);
  color: #fff; box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
}
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid #ced4da; }
.btn-ghost:hover { background: #f8f9fa; color: var(--text-main); }
.btn-large { width: 100%; padding: 1.2rem; font-size: 1.2rem; }

.card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
}

.hidden { display: none !important; }

/* イントロ */
.intro h2 { text-align: center; font-size: 1.5rem; margin-bottom: 1rem; color: #495057; }
.intro > p { text-align: center; color: var(--text-muted); margin-bottom: 2rem; }
.axis-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2rem; }
.axis-card {
  background: #fff; border: 1px solid #f1f3f5; border-radius: 12px;
  padding: 1.2rem; text-align: center; transition: transform 0.3s ease;
}
.axis-card:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(240,101,149,0.1); }
.axis-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.axis-label { font-weight: bold; color: var(--primary); margin-bottom: 0.5rem; }
.axis-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; }
.points { list-style: none; margin-bottom: 2rem; }
.points li { position: relative; padding-left: 1.5rem; margin-bottom: 0.8rem; color: #495057; }
.points li::before { content: "✨"; position: absolute; left: 0; top: 0; color: var(--accent); }
.start-cta { text-align: center; }

/* クイズ */
.progress { width: 100%; height: 6px; background: #e9ecef; border-radius: 3px; margin-bottom: 1.5rem; overflow: hidden; }
.progress__bar { height: 100%; background: var(--primary); width: 0%; transition: width 0.3s ease; }
.quiz-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.quiz-count { font-weight: bold; color: var(--primary); font-family: 'Inter', sans-serif; }
.quiz-badge { font-size: 0.8rem; padding: 0.3rem 0.8rem; background: var(--secondary); color: #d6336c; border-radius: 20px; font-weight: bold;}
.question { font-size: 1.4rem; text-align: center; margin-bottom: 2rem; color: #495057; min-height: 4.2rem;}
.scale-guides { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; padding: 0 10px; }
.scale-choices { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3rem; position: relative; padding: 20px 0;}
.scale-choices::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 2px; background: #e9ecef; z-index: 1; transform: translateY(-50%);}
.choice-dot {
  position: relative; z-index: 2; border: 4px solid #fff; border-radius: 50%;
  cursor: pointer; transition: all 0.2s ease; background: #ced4da; box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.choice-dot:hover { transform: scale(1.2); }
.choice-dot.active { border-color: #fff; transform: scale(1.3); }
.dot-lg { width: 44px; height: 44px; }
.dot-md { width: 34px; height: 34px; }
.dot-sm { width: 24px; height: 24px; }
.tone-positive.active { background: var(--primary); box-shadow: 0 0 15px var(--primary-glow); }
.tone-negative.active { background: #748ffc; box-shadow: 0 0 15px rgba(116, 143, 252, 0.4); }
.tone-neutral.active { background: #868e96; }
.nav { display: flex; justify-content: space-between; gap: 1rem; }
.nav .btn { flex: 1; }

/* 結果 */
.result-header { text-align: center; margin-bottom: 3rem; }
.pill { display: inline-block; padding: 0.4rem 1.2rem; background: var(--secondary); color: #a61e4d; border-radius: 50px; font-size: 0.9rem; font-weight: bold; margin-bottom: 2rem; }
.gauge-container { position: relative; width: 200px; height: 120px; margin: 0 auto 1.5rem; overflow: hidden; }
.gauge-svg { width: 100%; height: 100%; transform: rotate(180deg); }
.gauge-percent { position: absolute; bottom: 10px; left: 0; right: 0; font-size: 2.8rem; font-weight: 900; font-family: 'Inter', sans-serif; color: var(--primary); }
.gauge-label { font-size: 0.9rem; color: var(--text-muted); font-weight: bold; }
.result-code { font-size: 1rem; color: #adb5bd; letter-spacing: 2px; margin-bottom: 0.5rem; font-family: 'Inter', sans-serif;}
.result-name { font-size: 1.8rem; font-weight: bold; color: #495057; margin-bottom: 1rem; }
.result-desc { color: var(--text-muted); }

.result-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 3rem; }
.result-box { background: #fff; border-radius: 12px; padding: 1.5rem; border: 1px solid #f8f9fa; }
.result-box h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem;}
.result-box ul { list-style: none; }
.result-box li { position: relative; padding-left: 1.2rem; margin-bottom: 0.5rem; color: #495057; font-size: 0.95rem; }
.result-box li::before { content: "・"; position: absolute; left: 0; color: var(--primary); font-weight: bold; }

.result-actions { display: flex; flex-direction: column; gap: 1rem; }
.share-buttons { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.5rem; }
.btn-social { font-size: 0.9rem; padding: 0.8rem; font-family: 'Inter', sans-serif; }
.btn-x { background: #000; color: #fff; border:none; }
.btn-x:hover { background: #333; color: #fff; }
.btn-facebook { background: #1877F2; color: #fff; border:none; }
.btn-facebook:hover { background: #166fe5; }
.btn-line { background: #06C755; color: #fff; border:none; }
.btn-line:hover { background: #05b34c; }

.site-footer { text-align: center; color: #adb5bd; font-size: 0.8rem; padding: 2rem 0; font-family: 'Inter', sans-serif;}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
