:root {
  --rose-50: #FFF8F5;
  --rose-100: #FCE9EE;
  --rose-200: #F8D3DC;
  --rose-300: #F0B5C3;
  --rose-400: #E58CA1;
  --rose-500: #D9627A;
  --rose-600: #C4445A;
  --rose-700: #9E3247;
  --cream: #FFF8F2;
  --ink: #2D2A2E;
  --ink-soft: #5A555A;
  --line-soft: #F0DDE2;
  --gold: #C9A961;
  --shadow-soft: 0 10px 40px -10px rgba(217, 98, 122, 0.25);
  --shadow-card: 0 4px 20px -4px rgba(196, 68, 90, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--ink);
  background: var(--rose-50);
  line-height: 1.6;
  overscroll-behavior: none;
}

body {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, var(--rose-100) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, var(--rose-100) 0%, transparent 70%),
    var(--cream);
  overflow-x: hidden;
}

a { color: inherit; }

button {
  font-family: inherit;
  color: inherit;
}

/* === Progress Bar === */
.progress-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 242, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 14px 20px 10px;
  border-bottom: 1px solid rgba(240, 221, 226, 0.6);
  display: none;
}
.progress-wrap.show { display: block; }
.progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.1em;
}
.progress-label { color: var(--ink-soft); font-weight: 500; }
.progress-count {
  color: var(--rose-600);
  font-weight: 700;
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  letter-spacing: 0.05em;
}
.progress-bar {
  height: 4px;
  background: var(--rose-100);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--rose-400), var(--rose-600));
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  width: 0%;
}

/* === Screens === */
.screen {
  display: none;
  padding: 28px 20px 48px;
  min-height: calc(100vh - 60px);
  animation: fadeSlide 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.screen.active { display: block; }
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === FV (MV image-based) === */
#screen-fv {
  padding: 0 0 32px;
  min-height: 100vh;
  background: linear-gradient(180deg, #FCE9EE 0%, #FCE9EE 60%, #FFF5F8 100%);
}

.mv-wrap {
  position: relative;
  width: 100%;
  display: block;
  user-select: none;
}
.mv-img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: bottom;
}

/* === FV CTA === */
.mv-cta-area {
  padding: 20px 20px 24px;
  background: #FCE9EE;
  position: relative;
}
.mv-cta-lead {
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 14px;
  line-height: 1.6;
  font-weight: 500;
}
.mv-cta-lead-strong {
  color: var(--rose-600);
  font-weight: 900;
  font-size: 16px;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.02em;
}

.mv-cta-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 14px 14px 14px 8px;
  background: linear-gradient(180deg, #E58CA1 0%, #D9627A 50%, #C4445A 100%);
  color: white;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  text-align: left;
  box-shadow:
    0 10px 28px -8px rgba(196, 68, 90, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -2px 4px rgba(158, 50, 71, 0.3);
  transition: transform 0.15s ease;
  animation: mvCtaPulse 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  position: relative;
  gap: 10px;
  min-height: 44px;
}
.mv-cta-btn:active { transform: scale(0.98); }
@keyframes mvCtaPulse {
  0%, 100% {
    box-shadow:
      0 10px 28px -8px rgba(196, 68, 90, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.4),
      inset 0 -2px 4px rgba(158, 50, 71, 0.3),
      0 0 0 0 rgba(217, 98, 122, 0.5);
  }
  50% {
    box-shadow:
      0 10px 28px -8px rgba(196, 68, 90, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.4),
      inset 0 -2px 4px rgba(158, 50, 71, 0.3),
      0 0 0 14px rgba(217, 98, 122, 0);
  }
}

.mv-cta-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #FFE761;
  color: #C4445A;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.15),
    inset 0 -2px 4px rgba(196, 168, 0, 0.3);
  font-family: 'Zen Maru Gothic', sans-serif;
}
.mv-cta-text {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-align: center;
}
.mv-cta-arrow {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-right: 4px;
}
.mv-cta-arrow svg { width: 12px; height: 12px; margin-left: 2px; }

.mv-footnote {
  text-align: center;
  padding: 14px 16px 0;
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
}

/* === Question Screens === */
.q-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--rose-600);
  font-weight: 600;
  margin-bottom: 8px;
}
.q-eyebrow .q-num {
  font-size: 28px;
  font-weight: 700;
  vertical-align: middle;
  margin-right: 4px;
}
.q-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 6px;
  color: var(--ink);
}
.q-title-accent { color: var(--rose-600); }
.q-sub {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.q-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.q-option {
  width: 100%;
  padding: 18px 20px;
  background: white;
  border: 1.5px solid var(--line-soft);
  border-radius: 14px;
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 8px -4px rgba(0, 0, 0, 0.04);
  min-height: 44px;
}
.q-option:hover {
  border-color: var(--rose-300);
  transform: translateX(2px);
}
.q-option:focus-visible {
  outline: 2px solid var(--rose-500);
  outline-offset: 2px;
}
.q-option:active { transform: scale(0.99); }
.q-option.selected {
  background: linear-gradient(135deg, var(--rose-100) 0%, var(--rose-50) 100%);
  border-color: var(--rose-500);
  color: var(--rose-700);
  font-weight: 700;
}
.q-option-radio {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--rose-300);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.q-option.selected .q-option-radio {
  background: var(--rose-500);
  border-color: var(--rose-500);
}
.q-option-radio::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: white;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.q-option.selected .q-option-radio::after { opacity: 1; }

.q-select-wrap {
  display: flex;
  flex-direction: column;
}
.q-select {
  padding: 18px 20px;
  padding-right: 44px;
  border-radius: 14px;
  font-size: 16px;
  min-height: 44px;
  background-position: right 18px center;
  box-shadow: 0 2px 8px -4px rgba(0, 0, 0, 0.04);
}

.q-input-wrap {
  display: flex;
  flex-direction: column;
}
.q-age-field {
  display: flex;
  align-items: center;
  gap: 10px;
}
.q-age-input {
  flex: 1;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 16px 20px;
}
.q-age-input::-webkit-outer-spin-button,
.q-age-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.q-age-unit {
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-soft);
}
.q-input-wrap .form-note { margin-top: 10px; }

.q-option-multi .q-option-radio { border-radius: 5px; }
.q-option-multi .q-option-radio::after {
  width: 6px; height: 10px;
  background: transparent;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  border-radius: 0;
  transform: rotate(45deg) translate(-1px, -2px);
}

.q-actions {
  margin-top: 28px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.btn-back {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: white;
  border: 1.5px solid var(--line-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  transition: all 0.15s ease;
}
.btn-back:hover { border-color: var(--rose-300); color: var(--rose-600); }
.btn-back:focus-visible {
  outline: 2px solid var(--rose-500);
  outline-offset: 2px;
}
.btn-back:active { transform: scale(0.95); }
.btn-next {
  flex: 1;
  padding: 16px 24px;
  background: var(--ink);
  color: white;
  border: none;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.4;
  pointer-events: none;
  min-height: 44px;
}
.btn-next.enabled {
  opacity: 1;
  pointer-events: auto;
  background: linear-gradient(180deg, var(--rose-500) 0%, var(--rose-600) 100%);
  box-shadow: 0 6px 20px -6px rgba(196, 68, 90, 0.5);
}
.btn-next.enabled:active { transform: scale(0.98); }
.btn-next:focus-visible {
  outline: 2px solid var(--rose-500);
  outline-offset: 2px;
}
.btn-next.is-submitting {
  pointer-events: none;
  opacity: 0.7;
}

/* === Form === */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-group {
  margin-bottom: 18px;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.form-label .required {
  display: inline-block;
  background: var(--rose-500);
  color: white;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: 2px;
  font-weight: 700;
}
.form-label .optional {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 500;
  margin-left: 6px;
}
.form-input, .form-select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line-soft);
  border-radius: 12px;
  font-size: 16px;
  background: white;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--rose-500);
  box-shadow: 0 0 0 3px rgba(217, 98, 122, 0.15);
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23C4445A' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.form-note {
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 4px;
  line-height: 1.5;
}

.form-consent {
  margin: 20px 0;
  padding: 14px 16px;
  background: rgba(252, 233, 238, 0.5);
  border-radius: 12px;
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.form-consent a { color: var(--rose-600); text-decoration: underline; }

/* === Thank You === */
#screen-thanks {
  text-align: center;
  padding-top: 48px;
}
.thanks-icon {
  width: 80px; height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--rose-400), var(--rose-600));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes popIn {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}
.thanks-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ink);
}
.thanks-lead {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 32px;
  line-height: 1.7;
}
.thanks-lead-accent { color: var(--rose-600); }
.thanks-card {
  background: white;
  border-radius: 16px;
  padding: 24px 20px;
  margin-bottom: 16px;
  text-align: left;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--rose-100);
}
.thanks-card-tag {
  display: inline-block;
  background: #06C755;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}
.thanks-card-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}
.thanks-card-desc {
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 14px;
  line-height: 1.6;
}
.btn-line {
  display: block;
  width: 100%;
  padding: 14px;
  background: #06C755;
  color: white;
  border: none;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  min-height: 44px;
  line-height: 20px;
}
.btn-line:focus-visible {
  outline: 2px solid #06C755;
  outline-offset: 2px;
}
.footer-note {
  margin-top: 32px;
  font-size: 10px;
  color: var(--ink-soft);
  text-align: center;
  padding: 16px;
  line-height: 1.6;
}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
