:root {
  color-scheme: light;
  --yellow: #F4C542;
  --navy: #1F2A44;
  --coral: #F2785C;
  --cream: #FDF6DF;
  --gray: #6B6F7A;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #F3EBD2; color: var(--navy); font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif; line-height: 1.8; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
h1, h2, h3 { word-break: auto-phrase; text-wrap: balance; line-break: strict; }

.demo-bar { padding: 8px 16px; background: var(--navy); color: #fff; font-size: 13px; text-align: center; }
.demo-bar p { margin: 0; line-height: 1.6; }
.back-link { width: min(100%, 640px); margin: 0 auto; padding: 10px 16px; background: var(--yellow); font-size: 14px; }
.back-link a { color: var(--navy); font-weight: 700; text-underline-offset: 4px; }

.lp { width: min(100%, 640px); margin: 0 auto; background: var(--yellow); box-shadow: 0 12px 48px rgba(31,42,68,.14); }
.panel { position: relative; width: 100%; }
.panel img { display: block; width: 100%; height: auto; }

.hotspot { position: absolute; display: block; padding: 0; border: 0; border-radius: 16px; background: transparent; cursor: pointer; }
.hs-fv { left: 6%; width: 88%; top: 89.5%; height: 6%; }
.hs-end { left: 4.5%; width: 91%; top: 85.5%; height: 6%; }
.hotspot:hover { background: rgba(255,255,255,.12); }
.hotspot:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

.sticky-cta { position: fixed; left: 50%; bottom: 14px; z-index: 20; transform: translate(-50%, 140%); width: min(calc(100% - 32px), 420px); min-height: 54px; display: flex; align-items: center; justify-content: center; border: 3px solid var(--navy); border-radius: 14px; background: var(--yellow); color: var(--navy); font-size: 17px; font-weight: 700; text-decoration: none; box-shadow: 0 8px 24px rgba(31,42,68,.3); transition: transform .4s ease; }
.sticky-cta.show { transform: translate(-50%, 0); }

.footer { max-width: 640px; margin: 0 auto; padding: 28px 20px 96px; background: var(--navy); color: #fff; text-align: center; }
.footer p { margin: 0 0 12px; font-size: 14px; }
.footer small { opacity: .7; font-size: 12px; }

.quiz { width: min(calc(100% - 24px), 500px); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 18px; background: #fff; color: var(--navy); }
.quiz::backdrop { background: rgba(31,42,68,.55); }
.dlg { position: relative; padding: 22px 20px 20px; }
.dlg-demo { margin: 0 52px 0 0; padding: 6px 10px; border-radius: 8px; background: var(--cream); font-size: 13px; }
.dlg-close { position: absolute; top: 12px; right: 10px; min-width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--gray); font: inherit; font-size: 13px; cursor: pointer; }
.dlg h2 { margin: 14px 0 16px; font-size: 20px; line-height: 1.5; }
.dlg fieldset { margin: 0 0 14px; padding: 0; border: 0; }
.dlg legend { margin-bottom: 8px; font-size: 15px; font-weight: 700; }
.qn { display: inline-block; margin-right: 8px; padding: 0 8px; border-radius: 6px; background: var(--navy); color: var(--yellow); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 2px solid #E6E1D3; border-radius: 999px; background: #fff; font-size: 15px; cursor: pointer; }
.chips input:checked + span { border-color: var(--navy); background: var(--yellow); font-weight: 700; }
.chips input:focus-visible + span { outline: 3px solid var(--coral); outline-offset: 2px; }

.result { margin: 6px 0 14px; padding: 14px 16px; border-radius: 12px; background: var(--navy); color: #fff; }
.result p { margin: 0; }
.result-label { color: var(--yellow); font-size: 13px; }
.result-course { margin: 2px 0 4px !important; font-size: 18px; font-weight: 700; line-height: 1.5; }
.result-note { font-size: 14px; opacity: .9; }

.msg-label { display: block; margin-bottom: 4px; color: var(--gray); font-size: 14px; }
.dlg textarea { width: 100%; padding: 10px; border: 1px solid #E6E1D3; border-radius: 8px; background: var(--cream); color: var(--navy); font: inherit; font-size: 16px; resize: vertical; }
.dlg-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.dlg-actions button { flex: 1 1 180px; min-height: 48px; border-radius: 12px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.btn-copy { border: 0; background: var(--coral); color: #fff; }
.btn-send { flex: 1 1 180px; display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 12px; border: 2px solid #E6E1D3; border-radius: 12px; background: transparent; color: var(--gray); font-size: 15px; font-weight: 700; text-align: center; text-decoration: none; cursor: not-allowed; }
.btn-send.is-live { border-color: #06C755; background: #06C755; color: #fff; cursor: pointer; }
.copied { min-height: 1.8em; margin: 8px 0 0; font-size: 14px; color: var(--coral); }

@media (max-width: 640px) { .lp { box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .sticky-cta { transition: none; } }
