/* =========================================================
   moura 先行登録アンケート（survey.html）
   ========================================================= */
@font-face { font-family: "LINE Seed JP"; font-weight: 400; font-style: normal; font-display: swap; src: url(assets/fonts/lineseedjp-400.woff2) format("woff2"); }
@font-face { font-family: "LINE Seed JP"; font-weight: 700; font-style: normal; font-display: swap; src: url(assets/fonts/lineseedjp-700.woff2) format("woff2"); }
@font-face { font-family: "LINE Seed JP"; font-weight: 800; font-style: normal; font-display: swap; src: url(assets/fonts/lineseedjp-800.woff2) format("woff2"); }
:root {
  --white: #ffffff;
  --ink: #16201a;
  --ink-3: #5e6770;
  --line: #dfe7ef;
  --green: #007f00;
  --green-bright: #269b00;
  --mint: #f5fdf2;
  --mint-2: #e6f8dd;
  --f-jp: "LINE Seed JP", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --f-en: "LINE Seed JP", "Hiragino Sans", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--mint); color: var(--ink); font-family: var(--f-jp); line-height: 1.7; -webkit-font-smoothing: antialiased; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.s-header { padding: 24px 16px; display: flex; justify-content: center; }
.s-header__logo img { height: 28px; display: block; }

.s-main { width: min(680px, 100%); margin: 0 auto; padding: 24px 16px 96px; }
.s-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 800; color: var(--green); }
.s-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-bright); }
.s-title { margin: 12px 0 16px; font-size: clamp(28px, 5vw, 40px); font-weight: 800; line-height: 1.3; }
.s-lead { margin: 0 0 40px; font-size: 15px; font-weight: 700; color: var(--ink-3); }

.survey { display: grid; gap: 20px; }
.survey__q { margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); display: grid; gap: 10px; }
.survey__q legend { float: left; width: 100%; margin-bottom: 8px; padding: 0; font-size: 15px; font-weight: 800; line-height: 1.6; }
.survey__q legend em { margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--green-bright); color: var(--white); font-size: 11px; font-style: normal; vertical-align: 2px; }
.survey__q label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 600; line-height: 1.6; cursor: pointer; }
.survey__q label:hover { background: var(--mint); }
.survey__q label:has(input:checked) { background: var(--mint-2); }
.survey__q input[type="radio"], .survey__q input[type="checkbox"] { margin-top: 4px; accent-color: var(--green); flex: none; }
.survey__text { width: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); font: 500 15px var(--f-en); resize: vertical; }
.survey__text:focus { outline: 2px solid var(--green-bright); outline-offset: 1px; }
.survey__note { margin: 0; font-size: 12px; color: var(--ink-3); }
.survey__q.is-error { border-color: #d93025; }
.survey__msg { margin: 0; min-height: 1.5em; text-align: center; font-size: 14px; font-weight: 800; color: #d93025; }

.s-btn { justify-self: center; display: inline-block; padding: 18px 48px; border: 0; border-radius: 999px; background: var(--green-bright); color: var(--white); font: 800 16px var(--f-jp); text-decoration: none; cursor: pointer; }
.s-btn:hover { background: var(--green); }
.s-btn:disabled { opacity: .6; cursor: default; }
.s-btn--ghost { background: transparent; color: var(--green); border: 2px solid var(--green-bright); }
.s-btn--ghost:hover { background: var(--mint-2); }

.s-done { padding: 40px 24px; border-radius: 20px; background: var(--white); text-align: center; display: grid; gap: 16px; justify-items: center; }
.s-done h2 { margin: 0; font-size: 22px; font-weight: 800; }
.s-done p { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink-3); }

.s-footer { padding: 24px 16px 40px; text-align: center; font: 500 12px var(--f-en); color: var(--ink-3); }

@media (max-width: 600px) {
  .survey__q { padding: 20px 16px; }
  .s-btn { width: 100%; text-align: center; }
}

/* ---------- 1問1答 ---------- */
.s-progress { height: 6px; border-radius: 999px; background: var(--mint-2); overflow: hidden; }
.s-progress span { display: block; height: 100%; width: 0; background: var(--green-bright); transition: width .4s ease; }
.s-count { margin: 12px 0 0; min-height: 1.7em; font: 600 13px var(--f-en); color: var(--green); }
.step { display: grid; gap: 16px; padding-top: 16px; animation: step-in .35s ease; }
@keyframes step-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .step { animation: none; } .s-progress span { transition: none; } }
.step__title { margin: 0; font-size: clamp(28px, 6vw, 40px); font-weight: 800; line-height: 1.35; }
.step__lead { margin: 0 0 8px; font-size: 15px; font-weight: 700; color: var(--ink-3); }
.step__label { font-size: 14px; font-weight: 800; }
.step__err { margin: 0; min-height: 1.5em; font-size: 13px; font-weight: 800; color: #d93025; }
.step__q { margin: 0 0 8px; font-size: clamp(20px, 4.4vw, 26px); font-weight: 800; line-height: 1.5; }
.step__q small { display: block; margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.step__other { display: grid; gap: 16px; }
.choices { display: grid; gap: 10px; }
.choices label { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); font-size: 15px; font-weight: 700; line-height: 1.6; cursor: pointer; transition: border-color .2s, background .2s; }
.choices label:hover { border-color: var(--green-bright); }
.choices label:has(input:checked) { border-color: var(--green-bright); background: var(--mint-2); }
.choices input { margin-top: 5px; accent-color: var(--green); flex: none; }
.s-badge { justify-self: start; margin: 0; padding: 4px 12px; border-radius: 999px; background: var(--mint-2); color: var(--green); font-size: 13px; font-weight: 800; }
.s-link { justify-self: center; border: 0; background: none; color: var(--ink-3); font: 700 14px var(--f-jp); text-decoration: underline; cursor: pointer; }
.s-back { justify-self: start; margin-top: 8px; border: 0; background: none; color: var(--ink-3); font: 700 14px var(--f-jp); cursor: pointer; }
.s-back:hover { color: var(--green); }
.step__agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 700; line-height: 1.6; cursor: pointer; }
.step__agree input { margin-top: 4px; accent-color: var(--green); flex: none; }
.step__agree a { color: var(--green); }
.choices--grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
