:root {
  --color-bg: #0c0e1c;
  --color-surface: #161a30;
  --color-ink: #f4ecd8;
  --color-accent: #caa452;
  --color-gold: #e9c873;
  --color-line: #caa452;
  --color-muted: #a79a78;
  --max-width: 480px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: "Hiragino Kaku Gothic Pro", "Yu Gothic", "Noto Sans JP", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.top-hero {
  text-align: center;
  padding-top: 8vh;
}

.top-hero .kicker {
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--color-gold);
  font-weight: 700;
  margin-bottom: 8px;
}

.top-hero h1 {
  font-size: 27px;
  line-height: 1.5;
  margin: 0 0 16px;
}

.top-hero p.lead {
  font-size: 15px;
  color: var(--color-muted);
  margin-bottom: 28px;
}

.hero-moon-sample {
  font-size: 64px;
  text-align: center;
  margin: 8px 0 20px;
}

.btn {
  display: inline-block;
  width: 100%;
  max-width: 320px;
  padding: 16px 24px;
  background: var(--color-accent);
  color: #14101a;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.05em;
}

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

.btn-outline {
  background: transparent;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0 32px;
}

.feature-item {
  border: 1px solid #3a3560;
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--color-surface);
}

.feature-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--color-gold);
}

.feature-text {
  font-size: 13px;
  color: var(--color-muted);
}

.disclaimer {
  font-size: 12px;
  color: var(--color-muted);
  text-align: center;
  margin-top: 24px;
  line-height: 1.7;
}

.plus-teaser {
  margin-top: 24px;
  padding: 14px;
  border: 1px dashed var(--color-accent);
  border-radius: 6px;
  text-align: center;
  color: var(--color-muted);
  font-size: 13px;
  background: rgba(202, 164, 82, 0.08);
}

.progress-bar {
  height: 6px;
  background: #262b4a;
  border-radius: 3px;
  margin-bottom: 24px;
  overflow: hidden;
}

.progress-bar-fill {
  width: 0;
  height: 100%;
  background: var(--color-gold);
  transition: width 0.2s ease;
}

.question-block {
  margin-bottom: 28px;
}

.question-label {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.question-index {
  font-size: 12px;
  color: var(--color-muted);
  margin-bottom: 4px;
}

.choice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.choice-option {
  display: block;
  padding: 12px 14px;
  border: 2px solid #3a3560;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  background: var(--color-surface);
  color: var(--color-ink);
}

.choice-option input {
  margin-right: 8px;
}

.choice-option.selected {
  border-color: var(--color-gold);
  background: rgba(233, 200, 115, 0.12);
  font-weight: 700;
}

textarea, input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 2px solid #3a3560;
  border-radius: 6px;
  font-family: inherit;
  resize: vertical;
  background: var(--color-surface);
  color: var(--color-ink);
}

.char-count {
  text-align: right;
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 4px;
}

.nav-buttons {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.nav-buttons .btn {
  flex: 1;
}

.error-message {
  color: #e0715c;
  font-size: 14px;
  margin-top: 8px;
  white-space: pre-wrap;
}

.loading {
  text-align: center;
  padding: 60px 20px;
}

.card-preview-box {
  margin: 24px auto;
  border: 1px solid var(--color-accent);
  border-radius: 6px;
  padding: 16px;
  background: var(--color-surface);
}

.result-card img {
  width: 100%;
  border-radius: 4px;
  display: block;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.waitlist-note {
  margin-top: 10px;
  font-size: 13px;
}

footer.site-footer {
  text-align: center;
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 40px;
}

footer.site-footer a {
  color: var(--color-gold);
}

.hidden {
  display: none !important;
}

/* --- Plus関連 --- */

.plus-price-box {
  margin: 28px 0;
  padding: 24px 20px;
  border: 2px solid var(--color-accent);
  border-radius: 8px;
  text-align: center;
  background: rgba(202, 164, 82, 0.08);
}

.plus-price {
  font-size: 34px;
  font-weight: 700;
  color: var(--color-gold);
  margin: 0 0 16px;
}

.plus-price-note {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--color-muted);
  margin-top: 4px;
}

.plus-note {
  font-size: 13px;
  color: var(--color-muted);
  margin-top: 14px;
}

.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.unlock-success-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-gold);
  text-align: center;
  margin-top: 20px;
}

.plus-panel {
  margin-top: 32px;
  padding: 20px;
  border: 2px solid var(--color-accent);
  border-radius: 8px;
  background: var(--color-surface);
}

.plus-panel h2 {
  font-size: 17px;
  margin: 0 0 14px;
  color: var(--color-gold);
}

.plus-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.plus-controls label {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  font-weight: 700;
  gap: 6px;
}

.plus-controls select {
  padding: 10px 12px;
  font-size: 15px;
  border: 2px solid #3a3560;
  border-radius: 6px;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: inherit;
}

.past-lives-list {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.past-life-item {
  border: 1px solid #3a3560;
  border-radius: 6px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.15);
}

.past-life-item .past-life-title {
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 4px;
  font-size: 14px;
}

.past-life-item .past-life-story {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.7;
}

.related-person-box,
.long-story-box {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.8;
}

.related-person-box h3,
.long-story-box h3 {
  font-size: 15px;
  margin: 18px 0 8px;
  color: var(--color-ink);
}

.related-person-box .rp-role {
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 4px;
}

.plus-upsell {
  margin-top: 32px;
  padding: 20px;
  border: 1px dashed var(--color-accent);
  border-radius: 6px;
  text-align: center;
  color: var(--color-muted);
  font-size: 14px;
  background: rgba(202, 164, 82, 0.08);
}

.plus-upsell .btn {
  margin-top: 12px;
}

/* --- 法務ページ（特定商取引法・プライバシー） --- */

.legal-container {
  max-width: 640px;
}

.legal-title {
  font-size: 22px;
  margin: 20px 0 24px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 24px;
}

.legal-table th,
.legal-table td {
  border: 1px solid #3a3560;
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  width: 34%;
  background: var(--color-surface);
  font-weight: 700;
}

.legal-section {
  margin-bottom: 22px;
}

.legal-section h2 {
  font-size: 16px;
  margin: 0 0 8px;
  color: var(--color-gold);
}

.legal-section p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-ink);
}

.legal-back {
  font-size: 13px;
  margin-top: 28px;
}

.legal-back a {
  color: var(--color-gold);
}
