/* 全施工店で共通。スマホ1列: 写真のファーストビュー → 1問ずつの質問カード → 地域の施工店の安心 → 写真 → 次の4ステップ → 会社情報。
   申込後のページも同じ部品。明るい1テーマで固定。--company / --brand / --brand-deep / --brand-light / --tint は src/pages/common.js の themeVars が .page に入れる（電気代の訴求は全社オレンジ、ほかの色も上書き）*/
:root {
  --step: #ee7f23;
  --badge: #ffd84d;
  --gold: #ffe27a;
  --line-green: #06c755;
  --line-soft: #ecf9f0;
  --ink: #16243a;
  --muted: #5a6778;
  --line: #d3deea;
  --edge: #c9dcef;
  --rail: #bcd3e8;
  --dot: #d9e5ef;
  --surface: #f6faff;
  --field: #f6f9fc;
  --paper: #ffffff;
  --stage: #dde5ee;
  --err: #b42318;
  --err-soft: #fdecea;
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --num: "Archivo", "Noto Sans JP", "Arial Black", sans-serif;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
img { max-width: 100%; }
/* 画像で出す段 */
.shot { display: block; width: 100%; height: auto; }
body { margin: 0; background: var(--stage); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.6; }
.in { padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
h1, h2, h3, p, ol, dl, dd { margin: 0; padding: 0; }
ol { list-style: none; }
button { font: inherit; color: inherit; }
button:focus-visible, .opt input:focus-visible + span, input:focus-visible { outline: 3px solid var(--step); outline-offset: 2px; }

.page { max-width: 480px; margin: 0 auto; background: var(--paper); }

/* 社名の帯 */
.brandbar { background: var(--paper); padding-block: 8px; }
.brandbar .in { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.co { display: grid; min-width: 0; line-height: 1.25; }
.co small { font-size: 10.5px; font-weight: 500; }
.co b { font-size: 17px; font-weight: 900; color: var(--company); }
.co img { display: block; height: 30px; width: auto; max-width: 180px; }
.limit { font-size: 12px; font-weight: 700; color: #fff; background: var(--brand); border-radius: 999px; padding: 3px 11px; white-space: nowrap; }

/* ファーストビュー */
.fv { position: relative; isolation: isolate; background: 50% 60% / cover no-repeat; padding-block: 10px 0; text-align: center; }
.fv::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(255,255,255,.82) 0, rgba(255,255,255,.55) 45%, rgba(255,255,255,.12) 100%); }
.eyebrow { font-size: clamp(15px, 4.5vw, 20px); font-weight: 900; line-height: 1.4; }
.eyebrow em { font-style: normal; color: var(--brand); }
.mainword { font-size: clamp(66px, 20vw, 96px); font-weight: 900; line-height: 1.12; letter-spacing: .02em; color: var(--brand); -webkit-text-stroke: 10px #fff; paint-order: stroke fill; filter: drop-shadow(0 3px 5px rgba(0,0,0,.3)); }
.lead { display: inline-block; margin-top: 4px; background: var(--brand); color: #fff; font-size: clamp(13.5px, 3.9vw, 16px); font-weight: 700; border-radius: 999px; padding: 5px 18px; }
.stats { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.stat { flex: 1 1 0; min-width: 0; max-width: 60%; display: grid; gap: 2px; align-content: start; }
.stat .box { background: var(--paper); border: 2px solid var(--edge); border-radius: 10px; padding: 6px 2px 7px; }
.stat .k { font-size: 12.5px; font-weight: 700; color: var(--brand); }
.stat .k::after { content: ""; display: block; width: 58%; height: 2px; margin: 1px auto 2px; background: #c9a24a; }
.stat .v { font-weight: 900; font-size: clamp(18px, 5.3vw, 25px); line-height: 1.15; color: var(--brand); white-space: nowrap; }
.stat .v .d { font-family: var(--num); font-weight: 800; }
.stat .v small { font-size: 12px; font-weight: 900; }
.stat .n { font-size: 10.5px; font-weight: 500; color: var(--ink); line-height: 1.35; text-shadow: 0 0 4px #fff, 0 0 4px #fff; }
.arw { width: 0; height: 0; margin: 6px auto 0; border-left: 40px solid transparent; border-right: 40px solid transparent; border-top: 30px solid var(--brand); }

/* 質問カード */
.formwrap { background: var(--tint); padding-block: 14px 18px; }
.card { background: var(--paper); border: 3px solid var(--brand); border-radius: 20px; padding: 14px 18px 20px; }
.progress { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--dot); }
.dots i.on { background: var(--step); }
.count { font-size: 14px; font-weight: 900; color: var(--step); }
.step { display: grid; gap: 10px; margin-top: 14px; animation: in .18s ease-out; }
@keyframes in { from { transform: translateY(5px); } to { transform: none; } }
.q { background: var(--brand-deep); color: #fff; text-align: center; font-size: 18px; font-weight: 900; border-radius: 14px; padding: 12px 10px; line-height: 1.35; text-wrap: balance; }
.q small { display: block; font-size: 12px; font-weight: 500; opacity: .85; }
.opts { display: grid; gap: 10px; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.opt span { display: block; font-size: 16px; font-weight: 700; border: 2px solid var(--line); border-radius: 12px; padding: 13px 14px; background: var(--paper); }
.opt input:checked + span { border-color: var(--brand); background: var(--tint); color: var(--brand-deep); }
.warn { font-size: 13px; line-height: 1.5; color: var(--err); background: var(--err-soft); border-radius: 8px; padding: 8px 10px; }
.notice { font-size: 13px; line-height: 1.5; color: var(--brand-deep); background: var(--tint); border-radius: 8px; padding: 8px 10px; }
.field { display: grid; gap: 4px; }
.field label { display: flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 700; color: var(--brand); }
.req { font-size: 10.5px; color: #fff; background: var(--brand); border-radius: 4px; padding: 0 6px; font-weight: 700; line-height: 1.7; }
.field input { width: 100%; font: inherit; font-size: 16px; padding: 12px 13px; border: 2px solid var(--line); border-radius: 10px; background: var(--field); color: var(--ink); }
.field input:focus { background: var(--paper); border-color: var(--brand); }
.hint { font-size: 12px; color: var(--muted); }
.err { font-size: 12.5px; color: var(--err); }
.err:empty { display: none; }
.next { justify-self: center; min-width: 62%; border: 0; background: var(--brand-deep); color: #fff; font-size: 17px; font-weight: 900; border-radius: 999px; padding: 12px 24px; cursor: pointer; box-shadow: 0 5px 12px rgba(0,0,0,.2); }
.backbtn { justify-self: center; border: 0; background: #9a9fa6; color: #fff; font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 6px 18px; cursor: pointer; }
.agree { font-size: 12px; color: var(--muted); }

/* 送信ボタン */
.ctaw { position: relative; margin-top: 8px; }
.cta { display: block; width: 100%; border: 0; border-radius: 16px; background: linear-gradient(180deg, var(--brand-light) 0, var(--brand) 100%); box-shadow: 0 5px 0 var(--brand-deep); color: #fff; padding: 11px 8px 13px 62px; cursor: pointer; text-align: center; }
.cta .s { display: block; font-size: 12px; font-weight: 700; }
.cta .m { display: block; font-size: clamp(20px, 6vw, 25px); font-weight: 900; line-height: 1.25; }
.burst { position: absolute; left: -8px; top: -10px; width: 74px; height: 74px; pointer-events: none; display: grid; place-items: center; }
.burst svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.burst polygon { fill: var(--badge); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.burst span { position: relative; font-size: 12.5px; font-weight: 900; line-height: 1.15; text-align: center; color: var(--ink); }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-top: 4px; }
.trust span { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.trust svg { width: 13px; height: 13px; color: #2e7d1e; flex: none; }

/* 地域の施工店の安心 */
.safe { background: var(--tint); padding-block: 4px 18px; }
.safe .panel { background: var(--brand); border-radius: 16px; padding: 0 10px 12px; }
.ttl { display: block; width: fit-content; margin: 0 auto 10px; transform: translateY(-1px) skewX(-8deg); background: var(--brand-deep); color: #fff; font-size: 17px; font-weight: 900; padding: 5px 20px; }
.ttl > * { display: block; transform: skewX(8deg); }
.safe .row { display: flex; gap: 7px; }
.safe .c { flex: 1 1 0; min-width: 0; background: var(--paper); border-radius: 12px; padding: 10px 5px 11px; text-align: center; display: grid; gap: 4px; justify-items: center; align-content: start; }
.safe .c svg { width: 30px; height: 30px; color: var(--brand); }
.safe .c b { font-size: 15px; font-weight: 900; color: var(--brand); line-height: 1.3; }
.safe .c span { font-size: 11.5px; line-height: 1.4; color: var(--muted); word-break: keep-all; overflow-wrap: anywhere; }

/* 写真 */
.people { background: var(--tint); padding-block: 0 18px; }
.people figure { position: relative; margin: 0; border-radius: 14px; overflow: hidden; background: var(--line); }
.people img { display: block; width: 100%; height: auto; aspect-ratio: 7 / 4.2; object-fit: cover; object-position: 50% 45%; }
.people figcaption { position: absolute; inset: auto 0 0; background: var(--brand); color: #fff; font-size: 17px; font-weight: 900; text-align: center; letter-spacing: .06em; padding: 6px 0 7px; }
.eg { position: absolute; top: 8px; right: 8px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(22,36,58,.75); border-radius: 999px; padding: 1px 9px; }

/* 次の4ステップ */
.flow { background: var(--tint); padding-block: 0 20px; }
.flow .box { background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; padding: 14px 12px 14px 14px; }
.tag { display: inline-block; background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 2px 13px; }
.flow h2 { font-size: 18px; font-weight: 900; line-height: 1.35; margin: 6px 0 12px; }
.flow h2 em { font-style: normal; color: var(--brand); font-size: 21px; }
.tl { display: grid; gap: 10px; }
.tl li { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; }
.tl li:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 30px; bottom: -10px; width: 4px; background: var(--rail); }
.num { position: relative; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--brand); background: var(--paper); color: var(--brand); font-family: var(--num); font-weight: 800; font-size: 15px; }
.num svg { width: 16px; height: 16px; }
.now .num { background: var(--brand); color: #fff; }
.done .num { background: #2e9d4e; border-color: #2e9d4e; color: #fff; }
.tc { position: relative; background: var(--paper); border: 1.5px solid var(--line); border-radius: 13px; padding: 9px 12px 10px; display: grid; gap: 2px; min-width: 0; }
.now .tc { border: 2px solid var(--brand); }
.when { justify-self: start; font-size: 11.5px; font-weight: 700; color: var(--brand); background: var(--tint); border-radius: 6px; padding: 0 7px; }
.done .when { color: #1f7a3a; background: #e6f6ea; }
.tc h3 { font-size: 16px; font-weight: 900; line-height: 1.4; }
.tc p { font-size: 12.5px; line-height: 1.5; color: var(--muted); word-break: keep-all; overflow-wrap: anywhere; }
.nexthere { position: absolute; top: -11px; right: 8px; background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 1px 11px; }
.lineok { margin-top: 5px; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 9px; align-items: center; background: var(--line-soft); border: 1.5px solid var(--line-green); border-radius: 10px; padding: 6px 9px; }
.lineok div b { display: block; font-size: 14px; font-weight: 900; color: #079a44; line-height: 1.35; }
.lineok div span { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.lineic { width: 38px; height: 38px; border-radius: 10px; background: var(--line-green); color: #fff; display: grid; place-items: center; font-family: var(--num); font-size: 11px; font-weight: 800; }

/* 運営会社 */
.company { background: var(--brand); color: #fff; padding-block: 16px 22px; }
.company h2 { text-align: center; font-size: 17px; font-weight: 900; }
.company .sub { text-align: center; font-size: 12px; margin-bottom: 10px; }
.company .sheet { background: var(--paper); color: var(--ink); border-radius: 14px; padding: 14px 16px; display: grid; gap: 7px; font-size: 14px; }
.company .sheet b { font-size: 19px; font-weight: 900; color: var(--brand); }
.company dl { display: grid; grid-template-columns: 5em minmax(0, 1fr); gap: 3px 6px; }
.company dt { color: var(--muted); font-size: 12.5px; padding-top: 1px; }
.company a { color: inherit; }
.links a { display: inline-block; padding-block: 11px; font-size: 13.5px; color: var(--brand); }
.links { display: flex; gap: 14px; flex-wrap: wrap; }

/* 申込後のページ */
.thero { background: var(--brand); color: #fff; text-align: center; padding-block: 16px 18px; display: grid; gap: 4px; justify-items: center; }
.thero .ok { margin: 0 auto 4px; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: #2e9d4e; display: grid; place-items: center; }
.thero .ok svg { width: 24px; height: 24px; }
.thero h1 { font-size: clamp(21px, 6.2vw, 27px); font-weight: 900; line-height: 1.35; text-wrap: balance; }
.thero p { font-size: 13.5px; font-weight: 500; }
.tbody { background: var(--tint); padding-block: 14px 18px; }
.tbody > .in { display: grid; gap: 14px; }
.result { background: var(--brand-deep); color: #fff; border-radius: 16px; padding: 14px 16px 14px; display: grid; gap: 4px; }
.result h2 { font-size: 16.5px; font-weight: 900; text-align: center; line-height: 1.4; }
.result .basis { text-align: center; font-size: 12px; opacity: .85; margin-bottom: 4px; }
.r { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 10px; border-top: 1px solid rgba(255,255,255,.28); padding-block: 7px 8px; }
.r .l { font-size: 13.5px; font-weight: 700; }
.r .l small { display: block; font-size: 11px; font-weight: 400; opacity: .85; }
.r .val { margin-left: auto; color: var(--gold); font-weight: 900; font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.r .val b { font-family: var(--num); font-weight: 800; font-size: clamp(22px, 6.4vw, 27px); }
.result .fine { font-size: 11.5px; line-height: 1.55; opacity: .9; border-top: 1px solid rgba(255,255,255,.28); padding-top: 8px; }
.tracks { display: flex; gap: 8px; }
.track { flex: 1 1 0; min-width: 0; background: var(--paper); border: 2px solid var(--edge); border-radius: 12px; text-align: center; padding: 8px 4px; }
.track .k { font-size: 12.5px; font-weight: 700; color: var(--brand); }
.track .v { font-weight: 900; font-size: 25px; line-height: 1.2; color: var(--brand); }
.track .v .d { font-family: var(--num); font-weight: 800; }
.track .v small { font-size: 13px; font-weight: 900; }
.tbody .people, .tbody .flow { padding: 0; background: none; }
.tbody .people .in, .tbody .flow .in { padding: 0; }
.tel { background: var(--paper); border: 2.5px solid var(--brand); border-radius: 16px; padding: 13px 14px 14px; display: grid; gap: 6px; text-align: center; justify-items: center; }
.tel .k { font-size: 14px; font-weight: 700; color: var(--brand-deep); }
.tel .no a { color: inherit; text-decoration: none; }
.tel .no { font-family: var(--num); font-weight: 800; font-size: clamp(30px, 9vw, 38px); line-height: 1.1; color: var(--brand); }
.tel .hrs { font-size: 12px; color: var(--muted); }
.pill { display: block; text-align: center; text-decoration: none; border: 0; border-radius: 999px; font-weight: 900; color: #fff; cursor: pointer; }
.pill.green { background: #23a24d; font-size: 15px; padding: 9px 26px; }
.tel .easy { font-size: 12.5px; color: var(--ink); text-wrap: balance; }
.linebox { background: var(--line-soft); border: 1.5px solid #b6e6c7; border-radius: 16px; padding: 12px 14px; display: grid; gap: 6px; justify-items: center; text-align: center; }
.pill.line { width: 100%; background: var(--line-green); font-size: 17px; padding: 12px 10px; box-shadow: 0 4px 0 #049a41; }
.linebox p { font-size: 12px; color: var(--muted); }
.nomail { font-size: 12.5px; color: var(--muted); }
.nomail b { display: block; font-size: 13.5px; color: var(--ink); }

@media (prefers-reduced-motion: reduce) { .step { animation: none; } .toast { transition: none; } }

/* LINE がない施工店はメールだけ案内する */
.lineok.mail { background: var(--tint); border-color: var(--brand); }
.lineok.mail div b { color: var(--brand); }
.lineic svg { width: 22px; height: 22px; }
.lineok.mail .lineic { background: var(--brand); }

/* 送信まわり */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin-top: 8px; display: flex; justify-content: center; }
.cta:disabled { opacity: .6; cursor: wait; }

/* プライバシーポリシー */
.legal { padding-block: 16px 24px; font-size: 14px; }
.legal .in { display: grid; gap: 8px; }
.legal h1 { font-size: 22px; font-weight: 900; line-height: 1.4; }
.legal h2 { font-size: 15.5px; font-weight: 900; margin-top: 8px; }
.legal a { color: var(--brand); }

/* 右上の電話申込み。スクロールしても出続ける */
.callfab { position: sticky; top: calc(8px + env(safe-area-inset-top, 0px)); z-index: 20; height: 0; display: flex; justify-content: flex-end; padding-right: var(--gutter-r); }
.callfab a { display: flex; align-items: center; gap: 6px; height: fit-content; min-height: 44px; margin-top: 8px; background: #15803d; color: #fff; text-decoration: none; border-radius: 999px; padding: 5px 13px 5px 10px; box-shadow: 0 3px 10px rgba(0,0,0,.3); }
.callfab svg { width: 19px; height: 19px; flex: none; }
.callfab b { display: block; font-size: 12.5px; font-weight: 900; line-height: 1.25; }
.callfab small { display: block; font-family: var(--num); font-size: 11.5px; font-weight: 800; line-height: 1.2; }
.callfab:not([hidden]) + .brandbar .co { max-width: calc(100% - 142px); }
.fv .limit { display: inline-block; margin-bottom: 3px; }

/* 申込後のページ: 先頭の写真と、流れの中の電話番号・写真 */
.thero { position: relative; isolation: isolate; background-size: cover; background-position: 50% 55%; }
.thero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--brand); opacity: .74; }
.tc .ic { position: absolute; top: 9px; right: 9px; width: 32px; height: 32px; border-radius: 50%; background: var(--tint); color: var(--brand); display: grid; place-items: center; }
.tc .ic svg { width: 18px; height: 18px; }
.now .tc .ic { top: 15px; }
.tc .tel { margin-top: 7px; padding: 10px 10px 11px; border-width: 2px; border-radius: 12px; gap: 5px; }
.tc .tel .no { font-size: clamp(24px, 7.4vw, 32px); }
.tc .linebox { margin-top: 8px; padding: 10px; border-radius: 12px; }
.tc .linebox .pill.line { font-size: 15.5px; padding: 11px 8px; }
.flowpic { position: relative; margin: 6px 0 0; border-radius: 10px; overflow: hidden; background: var(--line); }
.flowpic img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 8; object-fit: cover; }

/* 電気代の訴求: 朝の光の写真に合わせて暖かい色で覆い、ボタンの白い文字を読みやすくする */
.fv.sunny::before { background: linear-gradient(180deg, rgba(255,247,237,.86) 0, rgba(255,243,228,.6) 45%, rgba(255,236,214,.14) 100%); }
.cta { text-shadow: 0 1px 2px rgba(0,0,0,.35); }

/* 防災の訴求: 夕暮れの写真に合わせて文字を白くし、明かりのついた家が見えるように間を空ける */
.fv.night { background-position: 60% 50%; }
.fv.night::before { background: linear-gradient(180deg, rgba(8,16,32,.5) 0, rgba(8,16,32,.04) 45%, rgba(8,16,32,.04) 65%, rgba(8,16,32,.5) 100%); }
.fv.night .stats { margin-top: 104px; }
.fv.night .eyebrow { color: #fff; }
.fv.night .eyebrow em { color: var(--gold); }
.fv.night .stat .n { color: #fff; text-shadow: 0 0 4px #000, 0 0 4px #000; }

/* もしもの停電のとき */
.prep { background: var(--tint); padding-block: 4px 18px; }
.prep .panel { background: var(--brand-deep); border-radius: 16px; padding: 0 10px 12px; }
.prep .ttl { background: var(--brand); }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.rows li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: center; background: var(--paper); border-radius: 12px; padding: 9px 12px; }
.rows svg { width: 28px; height: 28px; color: var(--brand); }
.rows b { display: block; font-size: 15px; font-weight: 900; color: var(--brand); line-height: 1.35; }
.rows span { display: block; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.prep .fine { margin-top: 8px; font-size: 11.5px; line-height: 1.55; color: #fff; opacity: .9; }
.tbody .prep { padding: 0; background: none; }
.tbody .prep .in { padding: 0; }
