:root {
  --ink: #13222e; --sub: #4d5f6d; --line: #d9e1e7; --bg: #f6f8fa; --card: #ffffff;
  --navy: #0f2a3d; --accent: #f26b21; --accent-ink: #b84a0f; --ok: #1f7a4d; --warn: #b3261e; --line-green: #06c755;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.7 "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", system-ui, sans-serif; }
a { color: var(--accent-ink); }
h1, h2, h3 { line-height: 1.35; }
h1 { font-size: 1.6rem; margin: .4em 0 .5em; }
h2 { font-size: 1.25rem; margin: 1.6em 0 .6em; }
h3 { font-size: 1.05rem; margin: 1.2em 0 .4em; }
.note { font-size: .875rem; color: var(--sub); }
.center { text-align: center; }
.eyebrow { font-size: .8rem; letter-spacing: .12em; color: var(--accent-ink); font-weight: 700; margin: 0; }

.test-banner { background: #fff4d6; color: #6b4a00; font-size: .875rem; padding: 8px 16px; text-align: center; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-size: .78rem; line-height: 1.2; }
.brand strong { font-size: 1rem; }
.mark { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0 18%, var(--accent) 19%); flex: none; }
.topnav { display: flex; gap: 14px; align-items: center; font-size: .875rem; }
.topnav a { color: var(--ink); text-decoration: none; }
.topnav .nav-cta { background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 999px; font-weight: 700; min-height: 40px; display: inline-flex; align-items: center; }
@media (max-width: 560px) { .topnav a:not(.nav-cta) { display: none; } }

main { max-width: 960px; margin: 0 auto; padding: 16px; }
.footer { border-top: 1px solid var(--line); background: var(--card); padding: 20px 16px 32px; text-align: center; font-size: .875rem; color: var(--sub); }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-bottom: 8px; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.button.big { min-height: 56px; padding: 12px 26px; font-size: 1.05rem; width: 100%; max-width: 420px; }
.button.line { background: var(--line-green); border-color: var(--line-green); color: #fff; }
.button.warn { color: var(--warn); border-color: var(--warn); }
.button:disabled { opacity: .45; cursor: not-allowed; }
.linklike { background: none; border: 0; padding: 4px 6px; color: var(--accent-ink); font: inherit; font-size: .875rem; text-decoration: underline; cursor: pointer; min-height: 44px; }

.hero { display: grid; gap: 20px; padding: 12px 0 8px; }
.hero h1 { font-size: 2rem; }
.lede { font-size: 1.02rem; }
@media (min-width: 820px) { .hero { grid-template-columns: 1.4fr 1fr; align-items: center; } .hero h1 { font-size: 2.5rem; } }
.progress-card, .receipt { background: var(--navy); color: #fff; border-radius: 18px; padding: 22px; }
.progress-card .note, .receipt .note { color: #b8c8d4; }
.progress-label { margin: 0; font-weight: 700; color: #ffb48a; }
.progress-big { font-size: 2.1rem; font-weight: 800; margin: .1em 0; }
progress.meter { width: 100%; height: 14px; appearance: none; border: 0; border-radius: 999px; overflow: hidden; background: #23465e; }
progress.meter::-webkit-progress-bar { background: #23465e; border-radius: 999px; }
progress.meter::-webkit-progress-value { background: var(--accent); border-radius: 999px; }
progress.meter::-moz-progress-bar { background: var(--accent); border-radius: 999px; }
.section { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 18px 18px; margin: 18px 0; }
.section.band { background: #fff7f1; border-color: #f7cfb5; }
.section.danger { border-color: #f0c4c1; }
.steps { display: grid; gap: 12px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step h3 { margin-top: .4em; }
.checks { padding-left: 1.2em; }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }

/* アンケート */
.survey { max-width: 720px; margin: 0 auto; }
.survey-top { display: flex; align-items: center; gap: 12px; position: sticky; top: 61px; background: var(--bg); padding: 8px 0; z-index: 5; }
.survey-top .count { font-weight: 700; white-space: nowrap; font-size: .95rem; }
.survey-top progress.meter { background: var(--line); height: 10px; }
.survey-top progress.meter::-webkit-progress-bar { background: var(--line); }
.block-head { margin: 4px 0 0; font-weight: 700; color: var(--accent-ink); }
.question-title { font-size: 1.4rem; margin: .5em 0 .3em; scroll-margin-top: 120px; }
.question-title:focus { outline: none; }
.hint { color: var(--sub); font-size: .95rem; margin: 0 0 12px; }
.choices { display: grid; gap: 10px; }
@media (min-width: 560px) { .choices.many { grid-template-columns: 1fr 1fr; } }
.choice { text-align: left; min-height: 56px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--card); font: inherit; color: var(--ink); cursor: pointer; display: flex; flex-direction: column; justify-content: center; }
.choice strong { font-size: 1rem; }
.choice small { color: var(--sub); font-size: .875rem; }
.choice.selected, .chip.selected, .product.selected { border-color: var(--accent); background: #fff1e8; box-shadow: inset 0 0 0 1px var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.chip { min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); font: inherit; font-size: .95rem; color: var(--ink); cursor: pointer; }
.chip small { margin-left: 6px; color: var(--sub); font-size: .8rem; }
.chip.special { border-style: dashed; }
.chip:disabled { opacity: .45; }
.nav-row { display: flex; justify-content: space-between; gap: 12px; margin: 22px 0 6px; }
.nav-row .button { flex: 1; max-width: 240px; }
.nav-row .button.primary { margin-left: auto; }
.exchange-row h2 { font-size: 1.05rem; margin: 1em 0 .2em; }
.subhead { font-size: 1rem; margin: 1.2em 0 .4em; }
.current-choice { background: #eef6f1; border-radius: 8px; padding: 8px 12px; margin: 6px 0; font-size: .95rem; }
.same-box { border: 1.5px solid #f7cfb5; background: #fff7f1; border-radius: var(--radius); padding: 10px 14px; margin: 10px 0; }
.same-box p { margin: 0 0 4px; }
.thickness { border: 1.5px solid var(--accent); border-radius: var(--radius); padding: 4px 14px 10px; margin: 10px 0; background: #fff; }
.search-label { display: block; font-weight: 700; margin: 1em 0 4px; font-size: .95rem; }
.search { width: 100%; min-height: 48px; font: inherit; font-size: 16px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; }
.popular-grid, .product-list { display: grid; gap: 8px; }
@media (min-width: 560px) { .popular-grid, .product-list { grid-template-columns: 1fr 1fr; } }
.product { text-align: left; min-height: 52px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--card); font: inherit; color: var(--ink); cursor: pointer; display: flex; flex-direction: column; }
.product strong { font-size: 1rem; }
.product span { font-size: .875rem; color: var(--sub); }
.empty { color: var(--sub); font-size: .95rem; }
.notice { background: #fff4d6; border: 1px solid #f1d58a; border-radius: var(--radius); padding: 10px 14px; font-size: .95rem; }
.review { border-top: 1px solid var(--line); margin: 12px 0 18px; }
.review-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: center; }
.review-q { grid-column: 1 / -1; font-size: .875rem; color: var(--sub); }
.review-q small { margin-left: 6px; color: var(--accent-ink); }
.turnstile-slot { margin: 12px 0; min-height: 0; }
.form-status { min-height: 1.5em; font-size: .95rem; }
.consent ul { padding-left: 1.2em; }

/* 受付ページ */
.member-no { font-size: 1.15rem; margin: .2em 0; }
.member-no b { font-size: 2.6rem; color: #ffb48a; margin-left: 6px; }
.bookmark { border-top: 1px solid #2c4c63; padding-top: 10px; }
dl.summary { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 6px 12px; margin: 0; }
dl.summary dd { overflow-wrap: anywhere; }
dl.summary dt { color: var(--sub); font-size: .875rem; padding-top: 2px; }
dl.summary dd { margin: 0; }
.card-preview { max-width: 270px; margin: 10px auto; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.card-preview canvas { width: 100%; height: auto; display: block; }
.check { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.check input { width: 22px; height: 22px; }
.inline-form label, #missing-form label, .report label { display: block; margin: 8px 0; font-size: .95rem; }
.inline-form input, #missing-form input, .report input, .report select { display: block; width: 100%; min-height: 48px; font: inherit; font-size: 16px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 10px; margin-top: 4px; background: #fff; }
.missing-item { border: 1px solid var(--line); border-radius: 10px; margin: 10px 0; }
.done { color: var(--ok); font-weight: 700; }

/* 説明ページ・製品 */
.prose { max-width: 760px; margin: 0 auto; }
.prose.wide { max-width: 960px; }
.facts { border-collapse: collapse; width: 100%; background: var(--card); margin: 10px 0; }
.facts th, .facts td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; font-size: .95rem; }
.facts th { background: #f0f4f7; width: 38%; font-weight: 600; }
.facts.small th, .facts.small td { font-size: .8rem; padding: 6px 8px; width: auto; }
.product-page .kana { color: var(--sub); margin-top: -0.6em; }
.crumbs { font-size: .875rem; color: var(--sub); }
.cta-box { background: #fff7f1; border: 1px solid #f7cfb5; border-radius: var(--radius); padding: 4px 18px 18px; margin: 20px 0; }
.report { margin: 18px 0; }
.report summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; }
.brand-group { border-bottom: 1px solid var(--line); }
.brand-group summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; font-weight: 700; }
.product-links { columns: 2; column-gap: 24px; padding-left: 1.1em; }
@media (max-width: 560px) { .product-links { columns: 1; } }
.product-links li { break-inside: avoid; padding: 4px 0; }
.tag { font-size: .75rem; background: #e9edf0; border-radius: 6px; padding: 1px 6px; color: var(--sub); }
.checker fieldset { border: 1px solid var(--line); border-radius: var(--radius); margin: 12px 0; padding: 8px 14px; background: var(--card); }
.checker legend { font-weight: 700; padding: 0 4px; }
.radio { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.radio input { width: 20px; height: 20px; }
.checker-result { font-size: 1.3rem; font-weight: 800; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 16px; }
dl.news dt { font-weight: 700; margin-top: 12px; }
dl.news dd { margin: 0; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120px); background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 999px; transition: transform .25s; z-index: 50; font-size: .95rem; }
.toast.visible { transform: translateX(-50%) translateY(0); }
.loading { color: var(--sub); }

/* 管理画面 */
body.admin main { max-width: 1100px; }
.admin-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px 14px; margin: 14px 0; }
form.inline { display: inline; }
form.inline button, form.inline input { font: inherit; font-size: .85rem; min-height: 32px; }

.family { border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 8px 12px; }
.family > strong { display: block; }
.family .chips { margin: 4px 0 0; }
