:root {
  --bg: #fff9f6;
  --paper: #fffdfb;
  --ink: #47303b;
  --muted: #929792;
  --line: #eadde0;
  --pink: #c97b92;
  --pink-dark: #b96882;
  --pink-soft: #f7ecef;
  --shadow: 0 30px 90px rgba(92, 53, 68, 0.14);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(243, 217, 220, .7), transparent 24rem),
    radial-gradient(circle at 0 100%, rgba(231, 226, 239, .65), transparent 26rem),
    var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  line-height: 1.7;
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.page-shell { width: min(100%, 680px); margin: 0 auto; padding: 0 16px 48px; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 12px;
}

.brand {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-family: Georgia, "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(17px, 4vw, 23px);
  font-weight: 600;
  letter-spacing: .08em;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.free-badge {
  border: 1px solid rgba(201, 123, 146, .7);
  border-radius: 999px;
  padding: 6px 13px;
  color: #b25f78;
  background: rgba(255, 255, 255, .6);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  white-space: nowrap;
}

.experience {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: rgba(255, 253, 251, .95);
  box-shadow: var(--shadow);
}

.loading { min-height: 640px; display: grid; place-items: center; color: var(--muted); }

.intro { position: relative; overflow: hidden; background: #fffaf7; }
.intro-art { display: block; width: 100%; height: auto; }
.intro-action {
  position: absolute;
  left: 9%;
  top: 43.5%;
  z-index: 1;
  width: 82%;
  height: 7%;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: transparent;
  cursor: pointer;
}

.intro-copy { padding: 24px 28px 34px; }
.intro-copy p { margin: 0; color: var(--muted); font-size: 13px; }
.intro-copy strong { color: var(--ink); }

.progress-wrap { padding: 24px 48px 0; }
.progress-head { display: flex; align-items: baseline; justify-content: space-between; color: var(--pink); font-size: 12px; font-weight: 900; letter-spacing: .16em; }
.progress-head .step-count { color: var(--ink); font-family: Georgia, "Hiragino Mincho ProN", serif; font-size: 41px; font-weight: 500; letter-spacing: -.04em; }
.progress-head .step-count small { color: var(--muted); font-size: 15px; letter-spacing: 0; }
.progress-track { height: 7px; margin-top: 12px; overflow: hidden; border-radius: 999px; background: #eee2e5; }
.progress-value { height: 100%; border-radius: inherit; background: var(--pink); transition: width .22s ease; }

.question-screen, .result-screen { padding: 34px 48px 46px; }
.back-button { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; margin: 22px 0 26px; border: 0; color: #7d7278; background: transparent; cursor: pointer; font-size: 14px; }
.eyebrow { margin: 0 0 18px; color: #b25f78; font-size: 11px; font-weight: 900; letter-spacing: .2em; }
h1, h2, h3 { margin: 0; line-height: 1.45; }
h2 { font-size: clamp(27px, 5.8vw, 39px); font-weight: 900; letter-spacing: -.04em; }
.question-helper { margin: 14px 0 24px; color: var(--muted); font-size: 13px; }
.choices { display: grid; gap: 12px; }

.choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 72px;
  border: 1px solid #eadde0;
  border-radius: 17px;
  padding: 14px 18px;
  color: #4d3b44;
  background: #fffdfb;
  cursor: pointer;
  text-align: left;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.choice:hover { border-color: #d9a5b5; transform: translateY(-1px); }
.choice[aria-pressed="true"] { border-color: var(--pink); background: var(--pink-soft); box-shadow: inset 0 0 0 1px rgba(201, 123, 146, .2); }
.choice-text { flex: 1; padding-right: 14px; font-weight: 800; }
.choice-mark { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border: 1px solid #d9d0d4; border-radius: 50%; color: transparent; }
.choice[aria-pressed="true"] .choice-mark { border-color: var(--pink); color: #fff; background: var(--pink); }

.answer-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 20px 0; color: var(--muted); font-size: 11px; }
.question-actions { display: flex; gap: 12px; margin-top: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; border-radius: 999px; padding: 13px 24px; cursor: pointer; font-weight: 900; transition: background .18s ease, transform .18s ease, opacity .18s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:focus-visible, .choice:focus-visible, .back-button:focus-visible, .brand:focus-visible { outline: 3px solid #dba6b6; outline-offset: 3px; }
.button-secondary { min-width: 132px; border: 1px solid #e3d8dc; color: #7d7278; background: #fffdfb; }
.button-primary { flex: 1; border: 0; color: #fff; background: var(--pink); box-shadow: 0 16px 32px rgba(201, 123, 146, .2); }
.button-primary:hover:not(:disabled) { background: var(--pink-dark); }
.button:disabled { cursor: not-allowed; opacity: .45; }

.result-screen { text-align: center; }
.result-screen h2 { font-family: Georgia, "Hiragino Mincho ProN", "Yu Mincho", serif; font-size: clamp(34px, 8vw, 54px); font-weight: 500; letter-spacing: -.035em; }
.result-lead { margin: 18px auto 0; max-width: 430px; color: #59645e; font-size: 14px; line-height: 2; }
.lead-form { max-width: 430px; margin: 26px auto 0; text-align: left; }
.lead-field { display: grid; gap: 8px; margin-top: 16px; }
.lead-field label { color: #5d4b53; font-size: 13px; font-weight: 900; }
.lead-field input { width: 100%; min-height: 54px; border: 1px solid #e3d8dc; border-radius: 14px; padding: 12px 15px; color: var(--ink); background: #fffdfb; font: inherit; font-size: 15px; }
.lead-field input::placeholder { color: #b2a7ac; }
.lead-field input:focus { border-color: var(--pink); outline: 3px solid rgba(201, 123, 146, .18); }
.lead-form .button { width: 100%; margin-top: 24px; }
.thinking-screen { min-height: 430px; padding: 70px 48px 82px; text-align: center; }
.thinking-screen h2 { font-family: Georgia, "Hiragino Mincho ProN", "Yu Mincho", serif; font-size: clamp(32px, 7vw, 48px); font-weight: 500; letter-spacing: -.035em; }
.thinking-copy { margin: 18px auto 0; color: #59645e; font-size: 14px; }
.thinking-orb { display: flex; justify-content: center; gap: 9px; margin: 0 auto 30px; }
.thinking-orb span { width: 11px; height: 11px; border-radius: 50%; background: var(--pink); animation: thinking-pulse 1.2s ease-in-out infinite; }
.thinking-orb span:nth-child(2) { animation-delay: .16s; }
.thinking-orb span:nth-child(3) { animation-delay: .32s; }
@keyframes thinking-pulse { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-8px); opacity: 1; } }
.line-cta { width: 100%; margin-top: 26px; background: #06c755; box-shadow: 0 16px 32px rgba(6, 199, 85, .18); }
.line-cta:hover:not(:disabled) { background: #05b94f; }

.site-footer { display: flex; justify-content: space-between; gap: 12px; padding: 18px 4px 0; color: #7c8580; font-size: 10px; font-weight: 700; letter-spacing: .1em; }

@media (max-width: 560px) {
  .page-shell { padding: 0 0 28px; }
  .site-header { min-height: 62px; padding: 0 16px; }
  .experience { border-radius: 0; border-right: 0; border-left: 0; }
  .progress-wrap { padding: 20px 22px 0; }
  .question-screen, .result-screen { padding: 24px 22px 30px; }
  .lead-form { margin-top: 20px; }
  .thinking-screen { min-height: 390px; padding: 60px 22px 70px; }
  .back-button { margin: 14px 0 22px; }
  .question-actions { flex-direction: column-reverse; }
  .button-secondary, .button-primary { width: 100%; }
  .site-footer { padding: 16px; }
}
