:root {
  color-scheme: light;
  --kinari: #F5F2EC;
  --sumi: #26292B;
  --teal: #2F6F6A;
  --teal-pale: #DCE9E6;
  --gray: #6B6F70;
  --line: #D6D3CC;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #E4E1DA; color: var(--sumi); 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(--teal); 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(--kinari); font-size: 14px; }
.back-link a { color: var(--sumi); text-underline-offset: 4px; }

.lp { width: min(100%, 640px); margin: 0 auto; background: var(--kinari); box-shadow: 0 12px 48px rgba(38,41,43,.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: 8px; background: transparent; cursor: pointer; }
.hotspot:hover { background: rgba(255,255,255,.14); }
.hotspot:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.guide-link { display: flex; align-items: center; justify-content: center; width: calc(100% - 32px); max-width: 440px; min-height: 52px; margin: 0 auto 28px; border: 1.5px solid var(--teal); border-radius: 8px; background: #fff; color: var(--teal); font: inherit; font-size: 15px; cursor: pointer; }
.guide-link:hover { background: var(--teal-pale); }
.guide-link:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.sticky-cta { position: fixed; left: 50%; bottom: 14px; z-index: 20; transform: translate(-50%, 140%); width: min(calc(100% - 32px), 440px); min-height: 54px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--teal); color: #fff; font-size: 16px; text-decoration: none; box-shadow: 0 8px 24px rgba(38,41,43,.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(--sumi); color: #fff; text-align: center; }
.footer p { margin: 0 0 12px; font-size: 14px; }
.footer small { opacity: .7; font-size: 12px; }

/* 状況を選ぶダイアログ */
.guide { width: min(calc(100% - 24px), 520px); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 12px; background: var(--kinari); color: var(--sumi); }
.guide::backdrop { background: rgba(38,41,43,.55); }
.dlg { position: relative; padding: 22px 20px 20px; }
.dlg-demo { margin: 0 52px 0 0; padding: 6px 10px; border-radius: 6px; background: var(--teal-pale); font-size: 13px; }
.dlg-close { position: absolute; top: 12px; right: 10px; min-width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--sumi); font: inherit; font-size: 13px; cursor: pointer; }
.dlg h2 { margin: 14px 0 6px; font-weight: 400; font-size: 20px; line-height: 1.55; letter-spacing: .03em; }
.dlg-lead { margin: 0 0 16px; color: var(--gray); font-size: 14px; }
.dlg fieldset { margin: 0 0 16px; padding: 0; border: 0; }
.dlg legend { margin-bottom: 8px; font-size: 14px; color: var(--teal); }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choices.col1 { grid-template-columns: 1fr; }
.choices label { position: relative; }
.choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choices span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 6px 4px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; font-size: 15px; line-height: 1.4; text-align: center; cursor: pointer; }
.choices.col1 span { justify-content: flex-start; padding-left: 40px; text-align: left; }
.choices.col1 span::before { content: ""; position: absolute; left: 14px; width: 16px; height: 16px; border: 1.5px solid var(--gray); border-radius: 3px; background: #fff; }
.choices input:checked + span { border-color: var(--teal); background: var(--teal-pale); }
.choices.col1 input:checked + span::before { border-color: var(--teal); background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center/12px no-repeat; }
.choices input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }

.result { margin: 6px 0 16px; padding: 16px; border-top: 3px solid var(--teal); background: #fff; }
.result h3 { margin: 0 0 8px; font-weight: 400; font-size: 16px; color: var(--teal); }
.result h3:not(:first-child) { margin-top: 20px; }
.result ul, .result ol { margin: 0; padding: 0; list-style: none; }
.r-docs li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.55; }
.doc-note { grid-column: 1 / -1; color: var(--gray); font-size: 12px; }
.who { padding: 2px 8px; border-radius: 4px; font-size: 12px; white-space: nowrap; }
.who.office { background: var(--teal); color: #fff; }
.who.home { border: 1px solid var(--gray); color: var(--gray); }
.r-docs-sum { margin: 8px 0 0; font-size: 13px; color: var(--teal); }
.r-limits li { display: grid; gap: 0; padding: 8px 10px; margin-bottom: 6px; border-left: 3px solid var(--line); background: var(--kinari); font-size: 14px; line-height: 1.6; }
.r-limits li.warn { border-left-color: #B5533C; }
.lim-t { font-size: 15px; }
.lim-d { color: var(--gray); font-size: 13px; }
.r-limits-note { margin: 4px 0 0; color: var(--gray); font-size: 12px; }
.r-steps { counter-reset: st; }
.r-steps li { position: relative; display: grid; gap: 0; padding: 0 0 12px 40px; font-size: 15px; line-height: 1.55; }
.r-steps li::before { counter-increment: st; content: counter(st); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 14px; line-height: 28px; text-align: center; }
.r-steps li:not(:last-child)::after { content: ""; position: absolute; left: 13.5px; top: 30px; bottom: 2px; width: 1px; background: var(--line); }
.st-d { color: var(--gray); font-size: 13px; }

.msg-label { display: block; margin-bottom: 4px; font-size: 14px; }
.dlg textarea { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--sumi); 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: 8px; font: inherit; font-size: 15px; text-align: center; text-decoration: none; }
.btn-copy { border: 0; background: var(--teal); color: #fff; cursor: pointer; }
.btn-line { border: 1.5px solid var(--line); background: transparent; color: var(--gray); 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(--teal); }

@media (max-width: 640px) { .lp { box-shadow: none; } }
@media (max-width: 340px) { .choices:not(.col1) { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .sticky-cta { transition: none; } }

.hs-fv { left: 7%; width: 86%; top: 89%; height: 6%; }
.hs-end { left: 7%; width: 86%; top: 84.5%; height: 7%; }
.result li, .dlg-lead, .r-docs-sum, .r-limits-note { word-break: auto-phrase; line-break: strict; }
.skip-link { display: block; margin: -6px 0 16px; padding: 8px 0; min-height: 44px; border: 0; background: transparent; color: var(--teal); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.skip-link:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.r-unknown { margin: 0; font-size: 15px; line-height: 1.8; word-break: auto-phrase; }
[hidden] { display: none !important; }
.choices.col1 input[type="radio"] + span::before { border-radius: 50%; }
.choices.col1 input[type="radio"]:checked + span::before { background: var(--teal); box-shadow: inset 0 0 0 3px #fff; background-image: none; }
.choices span { word-break: auto-phrase; line-break: strict; }
