@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Noto+Serif+JP:wght@400;500;700&display=swap');

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

:root {
  --primary: #2a1b4e;
  --primary-light: #3d2b6b;
  --accent: #c9a84c;
  --accent-light: #e8d48b;
  --text: #f0e6ff;
  --text-muted: #b8a4d6;
  --white: #ffffff;
  --bg-dark: #110b20;
  --bg-card: rgba(42, 27, 78, 0.6);
  --gradient-mystic: linear-gradient(135deg, #1a0f30 0%, #2a1b4e 40%, #1e1245 70%, #0d0820 100%);
  --gradient-gold: linear-gradient(135deg, #c9a84c, #e8d48b, #c9a84c);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
}

/* ===== Stars Background ===== */
.stars-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.stars-bg .star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  animation: twinkle 3s infinite alternate;
}

@keyframes twinkle {
  0% { opacity: 0.2; }
  100% { opacity: 1; }
}

/* ===== Container ===== */
.container {
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ===== Portfolio Notice ===== */
.portfolio-notice {
  text-align: center;
  padding: 6px 10px;
  font-size: 0.65rem;
  color: var(--text-muted);
  background: rgba(0,0,0,0.4);
  letter-spacing: 0.05em;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 20px 40px;
  background: var(--gradient-mystic);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 20%, rgba(100, 60, 180, 0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(201, 168, 76, 0.08) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(1deg); }
  66% { transform: translate(-20px, 20px) rotate(-1deg); }
}

.hero-icon {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 30px;
}

.hero-icon .moon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  position: absolute;
  top: 10px;
  left: 10px;
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.3);
}

.hero-icon .moon-inner {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-dark);
  position: absolute;
  top: 10px;
  left: 30px;
}

.hero-icon .sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: sparkle 2s ease-in-out infinite;
}

.hero-icon .sparkle:nth-child(3) { top: 0; right: 5px; animation-delay: 0s; }
.hero-icon .sparkle:nth-child(4) { top: 20px; right: 0; animation-delay: 0.5s; }
.hero-icon .sparkle:nth-child(5) { bottom: 5px; right: 15px; animation-delay: 1s; }

@keyframes sparkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.hero-subtitle {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.3em;
  margin-bottom: 16px;
  position: relative;
}

.hero-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 20px;
  position: relative;
  background: linear-gradient(180deg, #fff 0%, #e8d48b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  position: relative;
  max-width: 360px;
}

.hero-badge {
  display: inline-block;
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid var(--accent);
  border-radius: 30px;
  padding: 8px 24px;
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 30px;
  position: relative;
}

.hero-cta {
  position: relative;
}

.btn-start {
  display: inline-block;
  background: var(--gradient-gold);
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 48px;
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: 0.1em;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.4);
  transition: all 0.3s ease;
}

.btn-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(201, 168, 76, 0.6);
}

.hero-note {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 12px;
  position: relative;
}

.scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid var(--accent);
  border-radius: 12px;
  opacity: 0.5;
}

.scroll-indicator::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
  0%, 100% { top: 6px; opacity: 1; }
  50% { top: 20px; opacity: 0.3; }
}

/* ===== Section Common ===== */
section {
  padding: 60px 20px;
  position: relative;
}

.section-label {
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.3em;
  text-align: center;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.6;
}

.section-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 40px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.divider {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 40px;
}

/* ===== About Section ===== */
.about {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #1a0f30 100%);
}

.about-card {
  background: var(--bg-card);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 16px;
  padding: 30px 24px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.about-card p {
  font-size: 0.9rem;
  line-height: 2;
  color: var(--text);
}

.about-card .highlight {
  color: var(--accent);
  font-weight: 500;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.about-feature {
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
}

.about-feature .feature-num {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 700;
}

.about-feature .feature-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== Quiz Section ===== */
.quiz {
  background: var(--gradient-mystic);
  padding-bottom: 80px;
}

.quiz-progress {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
}

.quiz-progress .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.2);
  border: 1px solid rgba(201, 168, 76, 0.3);
  transition: all 0.3s;
}

.quiz-progress .dot.active {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(201, 168, 76, 0.5);
}

.quiz-progress .dot.completed {
  background: var(--accent);
  opacity: 0.6;
}

.quiz-progress .line {
  width: 20px;
  height: 1px;
  background: rgba(201, 168, 76, 0.3);
}

.quiz-card {
  background: var(--bg-card);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 20px;
  padding: 30px 20px;
  backdrop-filter: blur(10px);
  max-width: 440px;
  margin: 0 auto;
}

.quiz-number {
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-align: center;
  margin-bottom: 10px;
}

.quiz-question {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.7;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.9rem;
}

.quiz-option:hover {
  background: rgba(201, 168, 76, 0.08);
  border-color: rgba(201, 168, 76, 0.3);
}

.quiz-option.selected {
  background: rgba(201, 168, 76, 0.12);
  border-color: var(--accent);
}

.quiz-option .radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(201, 168, 76, 0.4);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.quiz-option.selected .radio {
  border-color: var(--accent);
}

.quiz-option.selected .radio::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.quiz-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.btn-quiz-nav {
  padding: 12px 32px;
  border-radius: 50px;
  border: none;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Noto Sans JP', sans-serif;
}

.btn-quiz-prev {
  background: transparent;
  border: 1px solid rgba(201, 168, 76, 0.3);
  color: var(--text-muted);
}

.btn-quiz-prev:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-quiz-next {
  background: var(--gradient-gold);
  color: var(--primary);
  font-weight: 700;
}

.btn-quiz-next:hover {
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.4);
}

.btn-quiz-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

/* ===== Result Section (hidden initially) ===== */
.result {
  background: linear-gradient(180deg, #1a0f30 0%, var(--bg-dark) 100%);
  display: none;
  text-align: center;
}

.result.show {
  display: block;
}

.result-card {
  background: var(--bg-card);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 20px;
  padding: 40px 24px;
  backdrop-filter: blur(10px);
  max-width: 440px;
  margin: 0 auto 30px;
}

.result-type {
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.3em;
  margin-bottom: 12px;
}

.result-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #fff 0%, #e8d48b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.result-desc {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 2;
  margin-bottom: 30px;
}

.result-cta {
  margin-top: 20px;
}

.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #06C755;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 40px;
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 20px rgba(6, 199, 85, 0.4);
  transition: all 0.3s;
}

.btn-line:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(6, 199, 85, 0.6);
}

.btn-line svg {
  width: 24px;
  height: 24px;
}

.result-benefits {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid rgba(201, 168, 76, 0.1);
  border-radius: 12px;
  padding: 16px 18px;
  text-align: left;
}

.benefit-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.benefit-text {
  font-size: 0.85rem;
  line-height: 1.6;
}

.benefit-text strong {
  color: var(--accent);
}

/* ===== Testimonials ===== */
.testimonials {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #1a0f30 100%);
}

.testimonial-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid rgba(201, 168, 76, 0.1);
  border-radius: 16px;
  padding: 24px 20px;
  backdrop-filter: blur(10px);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--white);
  font-weight: 500;
  flex-shrink: 0;
}

.testimonial-info .name {
  font-size: 0.85rem;
  font-weight: 500;
}

.testimonial-info .age {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.testimonial-stars {
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.testimonial-text {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.8;
}

/* ===== CTA Section ===== */
.cta {
  background: var(--gradient-mystic);
  text-align: center;
  padding: 60px 20px;
}

.cta-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.7;
}

.cta-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

/* ===== Footer ===== */
.footer {
  background: #0a0615;
  padding: 30px 20px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  font-size: 0.7rem;
  color: rgba(184, 164, 214, 0.4);
  margin-top: 8px;
}

.footer-portfolio {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 12px;
  opacity: 0.7;
}

/* ===== Fade-in animation ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== PC Side Panels ===== */
@media (min-width: 481px) {
  body {
    display: flex;
    justify-content: center;
  }

  .pc-side-left,
  .pc-side-right {
    display: block;
    position: fixed;
    top: 0;
    bottom: 0;
    width: calc((100vw - 480px) / 2);
    background: var(--gradient-mystic);
    z-index: 10;
  }

  .pc-side-left {
    left: 0;
    border-right: 1px solid rgba(201, 168, 76, 0.1);
  }

  .pc-side-right {
    right: 0;
    border-left: 1px solid rgba(201, 168, 76, 0.1);
  }

  .pc-side-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 80%;
    max-width: 300px;
  }

  .pc-side-content .side-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 12px;
    letter-spacing: 0.1em;
  }

  .pc-side-content .side-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.8;
  }

  .container {
    box-shadow: 0 0 60px rgba(42, 27, 78, 0.5);
  }
}

@media (max-width: 480px) {
  .pc-side-left,
  .pc-side-right {
    display: none;
  }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
