:root {
  --primary: #ff6900;
  --primary-hover: #FF8447;
  --text: #333333;
  --dark: #292f36;
  --bg: #f9f8f8;
  --line: #e6e6e6;
  --danger: #d70f1c;
  --ok: #1a7f37;
  --muted: #6b6b6b;
  --font: "Albert Sans", "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
/* スマホ幅では折り返しを減らすため、画面幅に合わせて文字を縮める（最小 12px・最大 16px） */
html { -webkit-text-size-adjust: 100%; font-size: clamp(12px, 3.7vw, 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 1rem; line-height: 1.7; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
h1 { font-size: 1.3rem; line-height: 1.4; margin: .2em 0 .6em; }
h2 { font-size: 1.1rem; line-height: 1.4; margin: 0 0 .6em; }
p { margin: 0 0 .8em; }

.site-header { background: var(--dark); color: #fff; position: sticky; top: 0; z-index: 10; }
.site-header .inner { max-width: 560px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.logo { width: 110px; height: auto; }
.site-title { font-size: .85rem; opacity: .9; }
.progress { max-width: 560px; margin: 0 auto; padding: 0 16px 10px; display: flex; align-items: center; gap: 12px; font-size: .85rem; }
.progress[hidden] { display: none; }
.progress .bar { flex: 1; height: 6px; background: rgba(255,255,255,.25); border-radius: 3px; overflow: hidden; }
.progress .bar span { display: block; height: 100%; background: var(--primary); }

.container { max-width: 560px; margin: 0 auto; padding: 16px 16px 32px; }
.site-footer { text-align: center; color: var(--muted); font-size: .8rem; padding: 16px; }

.hero { padding: 8px 0 4px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px; margin: 0 0 16px; }
.card-case summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: bold; }
.card-case[open] summary { margin-bottom: 8px; }
.step-no { color: var(--primary); font-weight: bold; margin: 0; font-size: .9rem; }
.strong { font-weight: bold; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.danger { color: var(--danger); }
.notice { background: #fff4ec; border: 1px solid #ffd2b3; border-radius: 10px; padding: 10px 12px; }
.error { color: var(--danger); font-weight: bold; margin: 8px 0; }
.error:empty { display: none; }
.loading { text-align: center; color: var(--muted); padding: 40px 0; }

.plain { margin: 0 0 16px; }
.prep-list { display: grid; gap: 10px; margin: 12px 0 16px; }
.prep-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.prep-item input { width: 22px; height: 22px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--primary); }
.prep-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.prep-item label { display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.prep-label { font-weight: bold; color: var(--dark); }
.prep-detail { font-size: .85rem; color: var(--muted); line-height: 1.6; }
.prep-os { display: block; margin-top: 6px; padding: 8px 10px; background: var(--bg); border-radius: 8px; font-size: .82rem; line-height: 1.6; }
.prep-os-name { display: block; font-weight: bold; color: var(--dark); }
summary.prep-os-name { cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
summary.prep-os-name::-webkit-details-marker { display: none; }
summary.prep-os-name::after { content: "＋"; float: right; color: var(--primary); }
details[open] > summary.prep-os-name::after { content: "－"; }
details[open] > summary.prep-os-name { margin-bottom: 4px; }
.prep-os ol { margin: 2px 0 0; padding-left: 1.3em; }
.prep-note-text { display: block; }
.prep-warn { background: none; border: 0; padding: 0 2px; margin-top: 10px; }
.prep-warn .prep-os-name { color: #c24e00; }
.prep-os .sample { margin: 8px auto 0; max-width: 220px; }
.plain > .privacy { margin: 0; padding: 0; border: 0; }
.policy-box { max-height: 260px; overflow-y: auto; -webkit-overflow-scrolling: touch; margin-top: 8px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-size: .8rem; line-height: 1.7; }
.policy-box:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.policy-box h3 { margin: 14px 0 4px; font-size: .9rem; color: var(--dark); }
.policy-box p { margin: 0 0 6px; }
.policy-src { margin-top: 12px !important; }
.policy-hint { margin: 6px 0 0; font-size: .8rem; color: var(--muted); }
.consent.is-locked { opacity: .5; }
.consent.is-locked label { cursor: not-allowed; }
.facts { margin: 0; }
.facts dt { font-weight: bold; }
.facts dd { margin: 0 0 8px; }
.facts ul, .checklist, .todo { margin: 0 0 12px; padding-left: 1.4em; }
.checklist li, .todo li { margin-bottom: 4px; }

.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 10px 20px; border: 2px solid var(--primary); border-radius: 50px; background: var(--primary); color: #fff; font: inherit; font-weight: bold; text-align: center; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-outline { background: #fff; color: var(--primary); }
.btn-outline:hover { background: #fff4ec; color: var(--primary); }
.btn-choice { background: #fff; color: var(--text); border-color: #cfcfcf; font-weight: normal; }
.btn-choice:hover { background: #fff; border-color: var(--primary); }
.btn-choice[aria-pressed="true"] { background: #fff4ec; border-color: var(--primary); color: var(--primary); font-weight: bold; }
.btn-choice[aria-pressed="true"]::before { content: "✓"; margin-right: .4em; }
.btn-sub { width: auto; min-height: 44px; background: #fff; color: var(--dark); border-color: var(--line); font-weight: normal; }
.btn-sub:hover { background: var(--bg); border-color: var(--line); }
.btn-text { background: none; border-color: transparent; color: var(--muted); font-weight: normal; }
.btn-text:hover { background: none; border-color: transparent; text-decoration: underline; }
.btn-tel { margin: 8px 0; }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; font: inherit; min-height: 44px; cursor: pointer; }

.choices { display: grid; gap: 10px; margin: 8px 0; }
.question { font-weight: bold; margin: 12px 0 4px; padding: 0; }
.question-box { border: 0; padding: 0; margin: 16px 0 0; min-width: 0; }
.actions { display: grid; gap: 8px; margin-top: 16px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.turnstile { min-height: 65px; margin: 8px 0; }

.samples { display: grid; gap: 12px; margin: 12px 0; }
.samples:has(.sample + .sample) { grid-template-columns: 1fr 1fr; gap: 8px; }
.sample { margin: 0; background: var(--bg); border-radius: 10px; padding: 10px; }
.sample-img { position: relative; max-width: 220px; margin: 0 auto; }
.red-box { position: absolute; border: 3px solid #e60012; border-radius: 6px; pointer-events: none; }
.sample figcaption { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 6px; }

.slots { display: grid; gap: 12px; margin: 12px 0; }
.slot { border: 1px dashed #cfcfcf; border-radius: 10px; padding: 12px; }
.slot-title { font-weight: bold; margin-bottom: 8px; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-input:focus-visible + .file-btn { outline: 2px solid var(--primary); outline-offset: 2px; }
.slot progress { width: 100%; height: 8px; margin-top: 8px; accent-color: var(--primary); }
.slot-status { margin: 8px 0 0; font-size: .9rem; color: var(--muted); }
.slot-status.ok { color: var(--ok); font-weight: bold; }
.slot-status.ng { color: var(--danger); font-weight: bold; }
.slot .btn-sub { margin-top: 8px; }

.field { margin: 12px 0; }
.field label { display: block; font-weight: bold; margin-bottom: 4px; }
input[type=text], input[type=tel], input[type=email], textarea, .resume-url { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; min-height: 44px; border: 1px solid #cfcfcf; border-radius: 10px; background: #fff; color: var(--text); }
input:focus, textarea:focus { outline: 2px solid var(--primary); border-color: var(--primary); }

.case-id { font-size: 1.1rem; margin-bottom: 4px; }
.case-id strong { letter-spacing: .05em; }
.resume-url { font-size: 16px; margin: 4px 0 8px; color: var(--muted); }
.copy-msg { font-size: .875rem; color: var(--ok); }

.missing { display: grid; gap: 8px; margin: 12px 0 16px; }
.contact { background: var(--bg); border-radius: 10px; padding: 12px; margin: 12px 0; }
.contact-name { font-weight: bold; margin: 0; }
.done h1 { margin-top: 0; }
.privacy { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.card > .privacy:first-child { margin: 0; padding: 0; border: 0; }

.consent { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px; min-height: 48px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.consent input { width: 22px; height: 22px; margin: 0; flex-shrink: 0; accent-color: var(--primary); }
.consent label { flex: 1; min-width: 0; font-weight: bold; font-size: min(1rem, 3.4vw); white-space: nowrap; cursor: pointer; }
.consent-req { flex-shrink: 0; font-size: .75rem; font-weight: bold; color: #fff; background: var(--primary); border-radius: 50px; padding: 2px 10px; }

.device-cards { display: grid; gap: 12px; margin: 8px 0 16px; }
.device-thumb { flex: 0 0 72px; width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: 10px; }
.device-thumb-none { display: flex; align-items: center; justify-content: center; background: var(--bg, #f9f8f8); border: 1px solid var(--line); font-size: 1.6rem; font-weight: bold; color: var(--muted); }
.device-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.device-card { display: flex; flex-direction: row; align-items: center; gap: 14px; width: 100%; min-height: 72px; padding: 16px 44px 16px 18px; position: relative; background: #fff; border: 2px solid var(--line); border-radius: 14px; color: var(--text); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.device-card::after { content: "›"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--primary); }
.device-card:hover, .device-card:focus-visible { border-color: var(--primary); }
.device-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.device-card[aria-pressed="true"] { border-color: var(--primary); background: #fff4ec; }
.device-card[aria-pressed="true"]::after { content: "✓"; font-size: 1.3rem; font-weight: bold; }
.usage-cards { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; margin: 8px 0; }
.usage-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px 12px; background: #fff; border: 2px solid #cfcfcf; border-radius: 12px; color: var(--text); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.usage-card:hover { border-color: var(--primary); }
.usage-head { display: flex; align-items: center; gap: 8px; }
.usage-radio { flex: none;  width: 20px; height: 20px; border: 2px solid #b5b5b5; border-radius: 50%; background: #fff; box-sizing: border-box; }
.usage-label { font-size: 1.15rem; font-weight: bold; }
.usage-sub { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.usage-card[aria-pressed="true"] { background: #fff4ec; border-color: var(--primary); }
.usage-card[aria-pressed="true"] .usage-radio { border-color: var(--primary); border-width: 6px; }
.usage-card[aria-pressed="true"] .usage-label { color: var(--primary); }
.usage-note { margin: 4px 0 0; font-size: .9rem; }

/* 安全確認: 左に項目、右に「当てはまる／当てはまらない」 */
.safety-list { display: grid; gap: 10px; margin: 12px 0 16px; }
.safety-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.safety-label { font-weight: bold; color: var(--dark); line-height: 1.5; min-width: 0; }
.safety-btns { display: flex; gap: 6px; }
/* ○×（はい／いいえ）。選ぶまでは薄い線、選んだ方を塗りで強調し、もう一方は薄くする */
.yn-guide { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; color: var(--muted); font-size: .85rem; text-align: center; }
.yn-guide::before, .yn-guide::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.yn { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 52px; padding: 4px 0; background: none; border: 0; border-radius: 8px; color: var(--muted); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.yn-mark { position: relative; display: block; width: 34px; height: 34px; }
.yn-yes .yn-mark { border: 4px solid currentColor; border-radius: 50%; box-sizing: border-box; }
.yn-no .yn-mark::before, .yn-no .yn-mark::after { content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 4px; margin: -2px 0 0 -20px; background: currentColor; border-radius: 2px; transform: rotate(45deg); }
.yn-no .yn-mark::after { transform: rotate(-45deg); }
.yn-text { font-size: .75rem; font-weight: bold; }
.yn[aria-pressed="true"].yn-yes { color: #c24e00; background: #fff4ec; }
.yn[aria-pressed="true"].yn-no { color: #2f5fbf; background: #eef3fc; }
.safety-row:has(.yn[aria-pressed="true"]) .yn[aria-pressed="false"] { opacity: .35; }
.btn-compact { width: auto; min-height: 44px; padding: 6px 8px; font-size: .8rem; white-space: nowrap; }
.btn-compact[aria-pressed="true"]::before { content: none; }
.caution { margin: 12px 0; padding: 12px 14px; background: #fdecee; border: 2px solid var(--danger); border-radius: 10px; color: var(--danger); font-weight: bold; font-size: 1.05rem; }
.caution p { margin: 0 0 4px; }
.caution p:last-child { margin: 0; }

.device-name { font-size: 1.05rem; font-weight: bold; color: var(--dark); }
.device-note { font-size: .85rem; color: var(--muted); }
.done > .btn { margin-top: 8px; }

/* 各ステップ冒頭の「このステップで必要な写真」 */
.photo-need { margin: 4px 0 12px; padding: 10px 12px; border-left: 4px solid var(--primary); background: #fff4ec; border-radius: 0 8px 8px 0; }
.photo-need-none { border-left-color: #cfcfcf; background: var(--bg); }
.photo-need-title { margin: 0; font-weight: bold; color: var(--dark); }
.photo-need ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.photo-need li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: .9rem; }
.photo-need-label::before { content: "📷 "; }
.photo-need-tag { flex: none; font-size: .75rem; color: var(--muted); }
.photo-need-tag.req { color: #c24e00; font-weight: bold; }

/* 選択肢（複数）。長い文言でもきれいに折り返すよう左寄せのカード */
.opt-card { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 10px 14px; background: #fff; border: 2px solid #cfcfcf; border-radius: 12px; color: var(--text); font: inherit; font-size: .95rem; line-height: 1.5; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.opt-card:hover { border-color: var(--primary); }
.opt-card .usage-radio { flex: none; }
.opt-text { flex: 1; min-width: 0; }
.opt-card[aria-pressed="true"] { background: #fff4ec; border-color: var(--primary); }
.opt-card[aria-pressed="true"] .usage-radio { border-color: var(--primary); border-width: 6px; }
.opt-card[aria-pressed="true"] .opt-text { color: var(--primary); font-weight: bold; }
.slot-status:empty { display: none; }

/* 提出欄の対応形式・スクリーンショットの撮り方 */
.slot-formats { margin: 2px 0 6px; font-size: .78rem; color: var(--muted); }
.howto { margin: 0 0 8px; padding: 6px 10px; background: var(--bg); border-radius: 8px; font-size: .85rem; }
.howto summary { cursor: pointer; font-weight: bold; color: var(--dark); }
.howto-name { margin: 6px 0 0; font-weight: bold; }
.howto ul { margin: 2px 0 4px; padding-left: 1.2em; }
/* 自由記述のヒント */
.text-hint { margin: 4px 0 6px; padding: 8px 10px; background: var(--bg); border-radius: 8px; font-size: .85rem; color: var(--muted); }
.text-hint p { margin: 0; font-weight: bold; color: var(--dark); }
.text-hint ul { margin: 4px 0 0; padding-left: 1.2em; }

/* 充電器No. の桁数 */
.digit-count { margin: 4px 0 0; font-size: .85rem; color: var(--muted); }
.digit-count:empty { display: none; }
.digit-count.warn { color: #c24e00; font-weight: bold; }

.yn-extra { margin-top: 8px; font-size: .9rem; }
