:root {
  --text:        #3a2f4a;
  --text-soft:   #6b5b7e;
  --text-dim:    #9890a8;
  --gold:        #c9a961;
  --gold-deep:   #a88842;
  --gold-light:  #e8d59a;
  --lavender:    #d8c8e8;
  --cream:       #faf6ed;
  --card:        rgba(255, 255, 255, 0.72);
  --card-border: rgba(201, 169, 97, 0.35);
  --shadow:      0 10px 40px rgba(120, 90, 140, 0.12);
}

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

html, body { min-height: 100vh; }

body {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  color: var(--text);
  line-height: 1.9;
  letter-spacing: 0.04em;
  padding: 32px 16px 64px;
  background:
    radial-gradient(circle at 15% 10%, rgba(232, 213, 154, 0.45) 0%, transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(216, 200, 232, 0.55) 0%, transparent 50%),
    radial-gradient(circle at 50% 90%, rgba(244, 224, 224, 0.45) 0%, transparent 55%),
    linear-gradient(180deg, #fbf7ee 0%, #f3ebf5 50%, #ecf0f7 100%);
  background-attachment: fixed;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(201, 169, 97, 0.35), transparent),
    radial-gradient(1.5px 1.5px at 70% 60%, rgba(201, 169, 97, 0.3), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(216, 200, 232, 0.5), transparent),
    radial-gradient(2px 2px at 85% 15%, rgba(232, 213, 154, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 10% 65%, rgba(201, 169, 97, 0.3), transparent);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.screen { display: none; animation: fadeIn 0.6s ease-out; }
.screen.active { display: block; }

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

h1 {
  font-size: 2.6rem;
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: 0.3em;
  font-weight: 400;
  background: linear-gradient(135deg, var(--gold-deep) 0%, var(--gold) 50%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 20px rgba(201, 169, 97, 0.2);
}

h2 {
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 32px;
  line-height: 1.8;
  text-align: center;
  color: var(--text);
}

h3 {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 14px;
  color: var(--gold-deep);
  letter-spacing: 0.15em;
  text-align: center;
}

.lead {
  text-align: center;
  color: var(--text-soft);
  margin-bottom: 48px;
  font-size: 1rem;
}

#start-screen {
  text-align: center;
  padding: 32px 20px 48px;
}

.start-ornament {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 16px;
  letter-spacing: 0.5em;
  opacity: 0.7;
}

.start-sub {
  text-align: center;
  color: var(--text-soft);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.hero-image {
  display: block;
  width: 78%;
  max-width: 320px;
  height: auto;
  margin: 0 auto 24px;
  border-radius: 50%;
  box-shadow: 0 12px 40px rgba(201, 169, 97, 0.35);
  animation: heroGlow 4s ease-in-out infinite;
}

@keyframes heroGlow {
  0%, 100% { box-shadow: 0 12px 40px rgba(201, 169, 97, 0.30); }
  50%      { box-shadow: 0 12px 48px rgba(201, 169, 97, 0.55); }
}

.start-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.start-badge {
  display: inline-block;
  background: rgba(201, 169, 97, 0.12);
  border: 1px solid var(--gold);
  color: var(--gold-deep);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.btn-start {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: fit-content;
  max-width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 18px 40px !important;
  animation: lpPulse 2.5s ease-in-out infinite;
}

.btn-start-main {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  pointer-events: none;
}

.btn-start-sub {
  font-size: 0.78rem;
  opacity: 0.92;
  letter-spacing: 0.05em;
  pointer-events: none;
}

.start-note {
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.btn {
  display: inline-block;
  padding: 16px 40px;
  font-size: 1rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.2em;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-deep) 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(201, 169, 97, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(201, 169, 97, 0.55);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-link {
  background: transparent;
  color: var(--text-dim);
  text-decoration: underline;
  display: block;
  margin: 28px auto 0;
  font-family: inherit;
  border: none;
  cursor: pointer;
  letter-spacing: 0.1em;
}

.btn-link:hover { color: var(--gold-deep); }

.progress { margin-bottom: 36px; }

.progress-bar {
  height: 2px;
  background: rgba(201, 169, 97, 0.2);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 10px;
}

#progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  width: 0%;
  transition: width 0.5s ease;
  box-shadow: 0 0 8px rgba(201, 169, 97, 0.6);
}

.progress-text {
  text-align: center;
  font-size: 0.85rem;
  color: var(--gold-deep);
  letter-spacing: 0.2em;
}

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

.option {
  background: var(--card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--card-border);
  color: var(--text);
  padding: 18px 24px;
  text-align: left;
  border-radius: 14px;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: 0.05em;
  line-height: 1.6;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.option:hover {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.92);
  transform: translateX(4px);
  box-shadow: 0 12px 32px rgba(201, 169, 97, 0.2);
}

.result-card, .form-card {
  background: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 40px 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.result-card {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.result-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(232, 213, 154, 0.3) 0%, transparent 50%);
  pointer-events: none;
  animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.6; }
  50%      { transform: rotate(180deg) scale(1.1); opacity: 1; }
}

.result-card > * { position: relative; z-index: 1; }

.result-label {
  color: var(--text-soft);
  margin-bottom: 12px;
  letter-spacing: 0.25em;
  font-size: 0.95rem;
}

#result-name {
  font-size: 2.8rem;
  margin-bottom: 8px;
  letter-spacing: 0.25em;
  font-weight: 400;
  background: linear-gradient(135deg, var(--gold-deep) 0%, var(--gold) 50%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.result-reading {
  color: var(--text-dim);
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  margin-bottom: 12px;
}

.result-catchphrase {
  color: var(--gold-deep);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  line-height: 1.7;
  margin-bottom: 22px;
  font-weight: 500;
}

.result-image {
  display: block;
  max-width: 280px;
  width: 80%;
  height: auto;
  margin: 8px auto 28px;
  border-radius: 12px;
  filter: drop-shadow(0 8px 24px rgba(201, 169, 97, 0.3));
}

.result-intro {
  text-align: left;
  color: var(--text);
  line-height: 2;
  font-size: 0.98rem;
  margin-bottom: 28px;
}

.result-traits {
  list-style: none;
  counter-reset: trait;
  text-align: left;
  padding: 0;
  margin: 0;
}

.trait-item {
  counter-increment: trait;
  position: relative;
  padding: 18px 0 18px 52px;
  border-top: 1px solid rgba(201, 169, 97, 0.2);
}

.trait-item:first-child {
  border-top: none;
  padding-top: 8px;
}

.trait-item::before {
  content: counter(trait);
  position: absolute;
  left: 0;
  top: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  letter-spacing: 0;
  box-shadow: 0 3px 10px rgba(201, 169, 97, 0.35);
}

.trait-item:first-child::before {
  top: 8px;
}

.trait-title {
  font-size: 1.1rem;
  color: var(--gold-deep);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  font-weight: 500;
}

.trait-body {
  color: var(--text);
  line-height: 1.95;
  font-size: 0.95rem;
}

/* ─── 龍からのメッセージ ─── */
.result-message {
  margin-top: 36px;
  padding: 32px 24px 28px;
  background: linear-gradient(160deg, rgba(255, 252, 240, 0.85), rgba(247, 240, 250, 0.85));
  border: 1px solid rgba(201, 169, 97, 0.5);
  border-radius: 16px;
  position: relative;
  text-align: center;
  box-shadow: 0 8px 28px rgba(201, 169, 97, 0.18);
}

.result-message::before,
.result-message::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: translateX(-50%);
}

.result-message::before { top: 16px; }
.result-message::after  { bottom: 16px; }

.message-ornament {
  color: var(--gold-deep);
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  margin-bottom: 20px;
  font-weight: 500;
}

.message-quote {
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--text);
  margin: 0 0 22px;
  padding: 0 16px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.08em;
  position: relative;
  background: linear-gradient(135deg, var(--gold-deep) 0%, var(--gold) 50%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.message-quote::before,
.message-quote::after {
  display: inline-block;
  color: var(--gold);
  -webkit-text-fill-color: var(--gold);
  font-size: 1.1em;
  opacity: 0.7;
}

.message-quote::before { content: "「"; }
.message-quote::after  { content: "」"; }

.message-body {
  color: var(--text);
  line-height: 2;
  font-size: 0.95rem;
  text-align: left;
  white-space: pre-line;
}

.share-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(250, 246, 237, 0.92));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid var(--gold);
  border-radius: 18px;
  padding: 32px 22px;
  margin-bottom: 24px;
  box-shadow: 0 12px 40px rgba(201, 169, 97, 0.25);
  text-align: center;
  position: relative;
}

.share-heading {
  font-size: 1.2rem !important;
  color: var(--gold-deep) !important;
  margin-bottom: 10px !important;
  letter-spacing: 0.15em;
  font-weight: 500;
}

.share-lead {
  color: var(--text-soft);
  font-size: 0.88rem;
  margin-bottom: 24px;
  line-height: 1.7;
}

.share-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 520px) {
  .share-buttons { grid-template-columns: repeat(2, 1fr); }
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 12px;
  border-radius: 14px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  min-height: 56px;
}

.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.share-btn:active {
  transform: translateY(-1px);
}

.share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.share-wide {
  grid-column: 1 / -1;
}

.share-line {
  background: linear-gradient(135deg, #06c755, #04a847);
  box-shadow: 0 8px 22px rgba(6, 199, 85, 0.45);
}

.share-fb {
  background: linear-gradient(135deg, #2188ff, #1664d6);
  box-shadow: 0 8px 22px rgba(33, 136, 255, 0.45);
}

.share-threads {
  background: linear-gradient(135deg, #1a1a1a, #000);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.share-x {
  background: linear-gradient(135deg, #1a1a1a, #000);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.share-copy {
  background: linear-gradient(135deg, #a78bd8, #8769b8);
  color: #fff;
  box-shadow: 0 8px 22px rgba(135, 105, 184, 0.45);
}

.share-instagram {
  background: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #8134af 100%);
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(221, 42, 123, 0.4);
}

.share-message {
  margin-top: 16px;
  min-height: 1.4em;
  font-size: 0.9rem;
  color: var(--gold-deep);
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* ─── ステップメール登録カード ─── */
.lp-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(247, 240, 250, 0.92));
  border: 2px solid var(--gold);
  padding: 36px 24px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.lp-card::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -10%;
  width: 120%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(232, 213, 154, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.lp-card > * { position: relative; z-index: 1; }

.lp-banner {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 auto 20px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(201, 169, 97, 0.25);
}

.lp-bullets-head {
  text-align: center;
  color: var(--gold-deep);
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  font-weight: 600;
}

.lp-lead strong {
  color: var(--gold-deep);
  font-weight: 600;
}

.lp-proof {
  text-align: center;
  background: rgba(201, 169, 97, 0.1);
  border-radius: 999px;
  padding: 10px 18px;
  margin: 0 auto 18px;
  max-width: 360px;
  font-size: 0.9rem;
  color: var(--text);
  letter-spacing: 0.05em;
}

.lp-proof strong {
  color: var(--gold-deep);
  font-weight: 700;
}

.lp-proof-icon {
  margin-right: 4px;
}

.lp-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #fff;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  margin-bottom: 18px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(201, 169, 97, 0.35);
}

.lp-pretitle {
  color: var(--text-soft);
  font-size: 0.88rem;
  margin-bottom: 8px;
  letter-spacing: 0.1em;
}

.lp-title {
  font-size: 1.7rem !important;
  color: var(--text) !important;
  margin-bottom: 20px !important;
  letter-spacing: 0.15em;
  line-height: 1.5 !important;
  font-weight: 400;
}

.lp-title-accent {
  background: linear-gradient(135deg, var(--gold-deep), var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.3em;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.lp-lead {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.95;
  margin-bottom: 24px;
}

.lp-bullets {
  list-style: none;
  padding: 0;
  margin: 0 auto 24px;
  text-align: left;
  max-width: 380px;
  background: rgba(250, 246, 237, 0.6);
  border-radius: 12px;
  padding: 18px 22px;
}

.lp-bullets li {
  position: relative;
  padding-left: 28px;
  padding-top: 6px;
  padding-bottom: 6px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
}

.lp-bullets li::before {
  content: "✦";
  position: absolute;
  left: 4px;
  top: 8px;
  color: var(--gold);
  font-size: 0.9rem;
}

.lp-note {
  text-align: center;
  color: var(--text-soft);
  font-size: 0.85rem;
  margin-bottom: 22px;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.lp-form {
  text-align: left;
  max-width: 420px;
  margin: 0 auto;
}

.btn-lp {
  width: 100%;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 18px 24px !important;
  margin-top: 14px;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-deep) 100%) !important;
  box-shadow: 0 10px 28px rgba(201, 169, 97, 0.5) !important;
  animation: lpPulse 2.5s ease-in-out infinite;
}

.btn-lp:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(201, 169, 97, 0.6) !important;
}

.btn-main,
.btn-sub {
  /* iOS Safariでspanがクリックを奪う問題を回避 */
  pointer-events: none;
}

.btn-main {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.btn-sub {
  font-size: 0.78rem;
  opacity: 0.92;
  letter-spacing: 0.1em;
}

/* ボタン全体のクリックを確実に受け取る */
.btn-lp {
  touch-action: manipulation; /* タップ遅延・ダブルタップズーム抑制 */
  -webkit-tap-highlight-color: rgba(201, 169, 97, 0.3);
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.btn-lp:disabled,
.btn-lp[aria-busy="true"] {
  cursor: wait;
  opacity: 0.7;
  animation: none;
}

@keyframes lpPulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(201, 169, 97, 0.5); }
  50%      { box-shadow: 0 10px 32px rgba(201, 169, 97, 0.75), 0 0 0 4px rgba(201, 169, 97, 0.12); }
}

.form-card label {
  display: block;
  margin-bottom: 18px;
  font-size: 0.9rem;
  color: var(--text-soft);
  letter-spacing: 0.15em;
}

.form-card input {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  letter-spacing: 0.05em;
  transition: all 0.2s;
}

.form-card input:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.15);
}

.form-card button { width: 100%; margin-top: 12px; }

.form-message {
  margin-top: 16px;
  text-align: center;
  font-size: 0.9rem;
  min-height: 1.4em;
  letter-spacing: 0.05em;
}

.form-message.success { color: var(--gold-deep); }
.form-message.error   { color: #c46666; }

/* ハニーポット: 画面外に飛ばして完全に隠す(視覚・スクリーンリーダー両方から) */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}
