/* Shared visual language with the ContactForm PD site. */
:root{--bg:#f3f6f8;--surface-alt:#f6f8fa;--border:#dce4e9;--text:#152a40;--text-muted:#596d7e;--accent:#21634f;--accent-soft:#e7f5ef;--code-bg:#102437}
html{scroll-padding-top:24px}
body{font-family:Inter,"Noto Sans JP","Yu Gothic",Meiryo,sans-serif;-webkit-font-smoothing:antialiased;font-size:15px}
header{display:block;padding:0;background:#102437;color:white;border:0}
.header-inner{max-width:1180px;margin:auto;padding:24px 32px 32px}
.brand-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:32px}
.cfpd-back{color:#e5eef4;margin:0;font-size:14px;font-weight:700;letter-spacing:.02em}
.cfpd-back:hover{color:#a2f4d4}
.cfpd-back .brand-mark{width:30px;height:32px;color:#a2f4d4;border-color:#658b85;letter-spacing:-1px;font-size:13px}
.local-note{font-size:12px;color:#b7d8cd;display:flex;align-items:center;gap:8px}
.local-note::before{content:"";width:7px;height:7px;border-radius:50%;background:#a2f4d4}
.eyebrow{font-size:11px;letter-spacing:.2em;font-weight:700;color:#a2f4d4;margin-bottom:8px}
header h1{font-size:clamp(24px,3vw,34px);letter-spacing:.03em;margin-bottom:10px}
header p{color:#c0ced9;font-size:14px;max-width:720px;line-height:1.9}
.step-wrap{background:white;border-bottom:1px solid var(--border)}
header .steps{max-width:1180px;margin:auto;padding:20px 32px;gap:0;font-family:inherit;counter-reset:step}
header .steps>span{flex:1;position:relative;display:flex;align-items:center;gap:10px;padding:0;background:none;border-radius:0;font-size:13px;font-weight:600;color:var(--text-muted)}
header .steps>span::before{counter-increment:step;content:counter(step,decimal-leading-zero);display:grid;place-items:center;flex:none;width:32px;height:32px;border:1px solid var(--border);border-radius:50%;font-size:11px;background:white}
header .steps>span.current{background:none;color:var(--accent);font-weight:700}
header .steps>span.current::before{background:var(--accent);color:white;border-color:var(--accent)}
header .steps>span.done::before{content:"✓";background:var(--accent-soft);color:var(--accent);border-color:#aed6c5}
#step-badge-detail{display:none}
/* 事前確認バナー（コミット0efb10eには無かった、後日追加されたお知らせ帯）。
   ダークヘッダーの下にフルブリードで表示しつつ、テキストは1180pxグリッドに揃える。 */
.cfpd-precheck-notice{padding:0;background:#fff8e6;border-bottom:1px solid #f0d98c}
.cfpd-precheck-inner{max-width:1180px;margin:auto;padding:12px 32px;color:#6b5410;font-size:0.82rem;line-height:1.7}
.cfpd-precheck-inner a{color:#8a5a00;text-decoration:underline;font-weight:600}
main{max-width:1180px;padding:40px 32px 64px;display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:32px;align-items:start}
.screen{min-width:0}
h2{font-size:24px;letter-spacing:.02em;margin-bottom:8px;line-height:1.5}
.hint{line-height:1.85;margin-bottom:24px}
.card,.group-card,.meta-bar{border-radius:14px;padding:24px;margin-bottom:20px;box-shadow:0 3px 12px #183c5010}
.card h3{font-size:16px;margin-bottom:20px;display:flex;align-items:center;gap:10px}
#screen-summary{counter-reset:section}
#screen-summary>.card>h3::before{counter-increment:section;content:counter(section,decimal-leading-zero);font-size:11px;font-weight:700;color:var(--accent);background:var(--accent-soft);padding:5px 7px;border-radius:5px}
label{font-size:13px;font-weight:500;color:var(--text);margin-bottom:7px}
.row{gap:18px;margin-bottom:16px}
input[type=text],input[type=number],select,textarea{padding:11px 12px;min-height:46px;border-radius:8px;font-size:14px;transition:border-color .15s,box-shadow .15s}
input:focus,select:focus,textarea:focus{outline:0;border-color:var(--accent);box-shadow:0 0 0 3px #21634f20}
input[type=checkbox],input[type=radio]{accent-color:var(--accent);width:17px;height:17px;flex-shrink:0}
.check-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.check-item{background:white;padding:14px 12px;margin:0;border-radius:9px;gap:10px;transition:background .15s,border-color .15s;min-width:0}
.check-item:has(input:checked){background:var(--accent-soft);border-color:#72ac96}
.check-item:hover{border-color:var(--accent)}
.check-item .t{font-size:13px;color:var(--text)}
.check-item .d{font-size:11px;line-height:1.7;display:inline-block;margin-top:3px}
.radio-pill{border-radius:8px;background:white;margin-bottom:0;font-size:12px;padding:10px}
.radio-pill:has(input:checked){border-color:#72ac96;background:var(--accent-soft)}
button{min-height:42px;border-radius:8px;background:white;font-weight:600;padding:10px 16px;transition:background .15s,box-shadow .15s}
button:hover{background:var(--accent-soft)}
button.primary:hover{background:#184b3c}
button.big{font-size:14px;padding:14px 22px}
button.small,button.icon{min-height:34px}
:focus-visible{outline:3px solid #348b70;outline-offset:4px}
.actions-bar{align-items:center;flex-wrap:wrap;gap:12px;background:white;border:1px solid var(--border);padding:16px;border-radius:12px;margin-top:24px}
.actions-bar>div{display:flex;flex-wrap:wrap;gap:8px}
.field-chip{background:#f8fafb;flex-wrap:wrap;gap:10px;width:100%;text-align:left}
.field-chip .label{min-width:0;overflow-wrap:anywhere}
.field-chip .type-badge{background:#e6edf2;color:#435d70}
.field-chip .chevron{font-size:22px}
.field-chip .chip-del{margin-left:auto}
#fieldsCard .group-card{box-shadow:none;background:var(--surface-alt)}
.detail-head{gap:12px;flex-wrap:wrap}.detail-head .back{min-width:0}
.inline-check{white-space:normal}
.code-actions{flex-wrap:wrap}.code-panel{min-width:0}.code-panel pre{max-width:100%}
.code-block{border-radius:12px}
.wizard-aside{position:sticky;top:24px;background:white;border:1px solid var(--border);border-radius:14px;padding:24px}
.aside-kicker{color:var(--accent);font-size:11px;font-weight:700;letter-spacing:.15em}
.wizard-aside h2{font-size:17px;margin:10px 0 12px}
.wizard-aside p{font-size:12px;color:var(--text-muted);line-height:1.9;margin:0}
.selection-stat{display:flex;align-items:baseline;gap:8px;border-top:1px solid var(--border);margin-top:22px;padding-top:18px}
.selection-stat strong{font-size:32px;line-height:1.3;font-weight:600;color:var(--accent)}
.selection-stat span{font-size:12px;color:var(--text-muted)}
@media(max-width:900px){main{grid-template-columns:minmax(0,1fr);max-width:780px}.wizard-aside{display:none}.header-inner{max-width:780px}header .steps{max-width:780px}.card,.group-card{padding:22px}.cfpd-precheck-inner{max-width:780px}}
@media(max-width:560px){.header-inner{padding:20px 20px 24px}.brand-row{margin-bottom:26px;flex-wrap:wrap;gap:10px}.local-note{font-size:11px}header p{font-size:12px}header .steps{padding:16px 12px;gap:8px}header .steps>span{flex-direction:column;text-align:center;gap:7px;font-size:10px;line-height:1.4}header .steps>span::before{width:28px;height:28px}main{padding:26px 16px 40px}h2{font-size:21px}.card,.group-card,.meta-bar{padding:18px;border-radius:12px}.check-grid{grid-template-columns:1fr}.card h3{font-size:15px}.row>div{min-width:0;flex-basis:100%}.actions-bar>button,.actions-bar>div,.actions-bar>div>button{width:100%}.actions-bar>div{display:grid}.field-chip .badges{flex-basis:100%;order:3}input[type=text],input[type=number],select,textarea{font-size:16px}.detail-head h2{font-size:18px}.hint{font-size:12px}.opt-row input{min-width:0}.cfpd-precheck-inner{padding:12px 20px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
