:root {
  color-scheme: light;
  --navy: #062b3b;
  --navy-2: #0b4255;
  --cyan: #35c7ce;
  --cyan-soft: #e5f8f7;
  --ink: #17262c;
  --muted: #607077;
  --line: #d9e2e5;
  --paper: #f5f7f6;
  --white: #fff;
  --danger: #a9342e;
  --warning: #805b08;
  --radius: 16px;
  --shadow: 0 18px 44px rgba(6, 43, 59, 0.11);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: linear-gradient(180deg, #eaf4f4 0, var(--paper) 260px); }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(53, 199, 206, .45); outline-offset: 3px; }
.app-shell { width: min(100%, 760px); min-height: 100vh; margin: 0 auto; background: var(--white); box-shadow: var(--shadow); }
.site-header { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; color: white; background: var(--navy); }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 2px solid var(--cyan); font-weight: 900; font-size: 21px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 14px; letter-spacing: .04em; }
.brand small { margin-top: 2px; font-size: 10px; opacity: .72; }
.secure-note { max-width: 130px; font-size: 10px; line-height: 1.45; text-align: right; opacity: .72; }
main { padding: 0 20px 40px; }
.progress { display: flex; align-items: flex-start; padding: 18px 0 10px; }
.progress > span { width: 38px; flex: 0 0 38px; height: 38px; display: grid; place-items: center; position: relative; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--muted); font-weight: 800; font-size: 13px; }
.progress > span > span { position: absolute; top: 42px; left: 50%; width: 70px; transform: translateX(-50%); color: var(--muted); font-size: 9px; font-weight: 600; text-align: center; }
.progress > span.is-current, .progress > span.is-done { border-color: var(--navy); color: white; background: var(--navy); }
.progress > span.is-current > span { color: var(--navy); }
.progress > i { flex: 1; height: 1px; margin-top: 19px; background: var(--line); }
.progress > i.is-done { background: var(--navy); }
.screen { display: none; padding: 48px 0 12px; }
.screen.is-active { display: block; animation: enter .25s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }
.hero-icon { width: 80px; height: 80px; margin: 4px auto 22px; display: grid; place-items: center; color: var(--cyan); background: var(--navy); border-radius: 50%; }
.hero-icon svg { width: 50px; fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; }
.eyebrow { margin: 0 0 10px; color: #087c82; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-align: center; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(26px, 7.4vw, 40px); line-height: 1.35; letter-spacing: -.035em; text-align: center; }
.lead { margin: 18px auto 0; max-width: 560px; color: var(--muted); font-size: 15px; line-height: 1.9; text-align: center; }
.lead.small { font-size: 13px; }
.notice-card, .policy-note { margin: 28px 0 22px; padding: 18px; border-left: 4px solid var(--cyan); background: var(--cyan-soft); }
.notice-card strong, .policy-note strong { display: block; margin-bottom: 8px; font-size: 14px; }
.notice-card ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.section-heading { margin-bottom: 34px; }
.section-heading > p:last-child { margin: 14px auto 0; color: var(--muted); font-size: 13px; text-align: center; }
fieldset { min-width: 0; margin: 0; padding: 26px 0; border: 0; border-top: 1px solid var(--line); }
legend, .review-editor > span { width: 100%; margin-bottom: 8px; font-size: 17px; font-weight: 800; }
.required-mark, .optional, .recommended-mark { display: inline-block; margin-left: 6px; padding: 2px 6px; vertical-align: 2px; border-radius: 3px; font-size: 9px; font-weight: 800; }
.required-mark { color: white; background: var(--navy); }
.optional { color: var(--muted); background: #edf1f2; }
.recommended-mark { color: #075f64; background: var(--cyan-soft); }
.field-help { margin: 0 0 12px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.privacy-help { margin-top: 9px; margin-bottom: 0; }
.specific-experience-field { padding: 22px 16px; border: 1px solid #b9e4e3; background: #f4fbfb; }
.specific-experience-field legend { padding-top: 4px; }
input[type="text"], textarea { width: 100%; border: 1px solid #bdcbd0; border-radius: 10px; background: white; color: var(--ink); font-size: 16px; }
input[type="text"] { min-height: 52px; padding: 0 14px; }
textarea { min-height: 100px; padding: 14px; line-height: 1.7; resize: vertical; }
.choice-grid, .choice-stack { display: grid; gap: 9px; }
.choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-stack { grid-template-columns: 1fr; }
.choice { display: block; position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { min-height: 50px; display: flex; align-items: center; padding: 12px 14px; border: 1px solid #c8d4d7; border-radius: 10px; background: white; font-size: 13px; font-weight: 650; line-height: 1.45; cursor: pointer; }
.choice input:checked + span { border-color: var(--navy); color: var(--navy); background: var(--cyan-soft); box-shadow: inset 0 0 0 1px var(--navy); }
.choice input:focus-visible + span { outline: 3px solid rgba(53, 199, 206, .45); outline-offset: 2px; }
.consent-box { display: flex; gap: 12px; margin: 22px 0; padding: 16px; border: 1px solid var(--line); background: #fafbfb; font-size: 12px; line-height: 1.7; }
.consent-box input { width: 22px; height: 22px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--navy); }
.button { width: 100%; min-height: 56px; display: inline-grid; place-items: center; padding: 14px 18px; border: 1px solid var(--navy); border-radius: 8px; font-weight: 800; font-size: 15px; line-height: 1.35; text-align: center; text-decoration: none; cursor: pointer; }
.button-primary { color: white; background: var(--navy); box-shadow: 0 8px 18px rgba(6, 43, 59, .16); }
.button-primary:active { background: var(--navy-2); transform: translateY(1px); }
.button-secondary { color: var(--navy); background: white; box-shadow: none; }
.button-row { display: grid; grid-template-columns: .65fr 1.35fr; gap: 10px; margin-top: 24px; }
.error-box, .warning-box { margin: 18px 0; padding: 14px; border-radius: 8px; font-size: 13px; line-height: 1.7; }
.error-box { color: var(--danger); border: 1px solid #e1aaa6; background: #fff5f4; }
.warning-box { color: var(--warning); border: 1px solid #dec67b; background: #fffaf0; }
.review-editor { display: block; position: relative; }
.review-editor textarea { min-height: 220px; margin-top: 10px; border-width: 2px; font-size: 16px; }
.review-editor small { display: block; margin-top: 6px; color: var(--muted); text-align: right; }
.rewrite-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 12px 0 22px; }
.rewrite-actions button { min-height: 42px; padding: 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--navy); background: white; font-size: 11px; font-weight: 750; cursor: pointer; }
.variation-button { width: 100%; min-height: 50px; padding: 11px 14px; border: 2px solid var(--navy); border-radius: 8px; color: var(--navy); background: var(--cyan-soft); font-size: 14px; font-weight: 800; cursor: pointer; }
.variation-button span { margin-right: 4px; font-size: 18px; }
.variation-help { margin: 8px 4px 0; color: var(--muted); font-size: 11px; line-height: 1.6; text-align: center; }
.policy-note { margin-top: 22px; }
.policy-note p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.status-line { min-height: 24px; color: #087c82; font-size: 13px; font-weight: 700; text-align: center; }
.success-mark { width: 78px; height: 78px; display: grid; place-items: center; margin: 4px auto 24px; border: 3px solid var(--cyan); border-radius: 50%; color: var(--navy); font-size: 40px; font-weight: 900; }
.step-list { margin: 28px 0 22px; padding: 0; list-style: none; counter-reset: steps; }
.step-list li { counter-increment: steps; display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.step-list li::before { content: counter(steps); width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: white; background: var(--navy); font-weight: 800; }
[data-screen="share"] .button, [data-screen="complete"] .button { margin-top: 12px; }
footer { display: flex; justify-content: space-between; gap: 14px; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--muted); background: #f7f9f9; font-size: 11px; }
footer p { margin: 0; }
footer a { color: inherit; }

@media (min-width: 640px) {
  main { padding-left: 64px; padding-right: 64px; }
  .screen { padding-top: 58px; }
  .choice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .secure-note { display: none; }
  .stack-mobile { grid-template-columns: 1fr; }
  .stack-mobile .button-primary { order: -1; }
  .rewrite-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
