:root {
  color-scheme: light;
  --kraft: #E8DAC0;
  --paper: #F6EFE1;
  --ink: #23365C;
  --kaki: #E07B39;
  --green: #2F5D3A;
  --line: #D8C9AC;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #DCCBAA; color: var(--ink); 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(--green); 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(--kraft); font-size: 14px; }
.back-link a { color: var(--ink); text-underline-offset: 4px; }

.lp { width: min(100%, 640px); margin: 0 auto; background: var(--kraft); box-shadow: 0 12px 48px rgba(35,54,92,.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: 10px; background: transparent; cursor: pointer; }
.hs-fv { left: 16%; width: 63%; top: 70%; height: 18%; }
.hs-end { left: 5%; width: 90%; top: 82.5%; height: 8.5%; }
.hotspot:hover { background: rgba(255,255,255,.12); }
.hotspot:focus-visible { outline: 3px solid var(--kaki); outline-offset: 3px; }

.calc-link { display: flex; align-items: center; justify-content: center; width: calc(100% - 32px); max-width: 420px; min-height: 48px; margin: 0 auto 24px; border: 1.5px solid var(--ink); border-radius: 10px; background: var(--paper); color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; }
.calc-link:focus-visible { outline: 3px solid var(--kaki); 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: 1.5px solid var(--ink); border-radius: 10px; background: var(--paper); color: var(--ink); font-size: 17px; text-decoration: none; box-shadow: 0 8px 24px rgba(35,54,92,.25); transition: transform .4s ease; }
.sticky-cta.show { transform: translate(-50%, 0); }

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

.order { width: min(calc(100% - 24px), 480px); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 14px; background: var(--paper); color: var(--ink); }
.order::backdrop { background: rgba(35,54,92,.5); }
.dlg { position: relative; padding: 22px 20px 20px; }
.dlg-demo { margin: 0 52px 0 0; padding: 6px 10px; border-radius: 8px; background: var(--kraft); font-size: 13px; }
.dlg-close { position: absolute; top: 12px; right: 10px; min-width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.dlg h2 { margin: 14px 0 16px; font-weight: 400; font-size: 20px; line-height: 1.55; }
.dlg fieldset { margin: 0 0 14px; padding: 0; border: 0; }
.dlg legend { margin-bottom: 8px; font-size: 14px; }
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.people label { position: relative; }
.people input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.people span { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-size: 16px; cursor: pointer; }
.people input:checked + span { border-color: var(--kaki); background: #FBE6D6; font-weight: 700; }
.people input:focus-visible + span { outline: 3px solid var(--kaki); outline-offset: 2px; }

.result { margin: 6px 0 14px; padding: 14px 16px; border: 1.5px solid var(--ink); border-radius: 10px; background: #fff; }
.result p { margin: 0; }
.result-label { color: var(--kaki); font-size: 13px; }
.result-size { margin: 2px 0 8px !important; }
.size-name { font-size: 26px; font-weight: 700; margin-right: 10px; }
.size-detail { font-size: 15px; }
.result-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 8px; }
.result-nums div { padding: 8px 10px; border-radius: 8px; background: var(--paper); }
.result-nums dt { font-size: 12px; }
.result-nums dd { margin: 0; font-size: 20px; font-weight: 700; color: var(--kaki); }
.result-note { font-size: 12px; }

.msg-label { display: block; margin-bottom: 4px; font-size: 14px; }
.dlg textarea { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; resize: vertical; }
.dlg-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.btn-copy, .btn-line { flex: 1 1 180px; display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 12px; border-radius: 10px; font: inherit; font-size: 15px; text-align: center; text-decoration: none; }
.btn-copy { border: 0; background: var(--kaki); color: #fff; cursor: pointer; }
.btn-line { border: 1.5px solid var(--line); background: transparent; color: #7A7468; cursor: not-allowed; }
.btn-line.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(--kaki); }

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