/* ============================================================
   ヌリバ — flow.css
   order.html（依頼ウィザード） / partner.html（加盟店コンソール）
   NURIBA OS のアプリ画面として統一。tokens.css に依存。
   ============================================================ */

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body.flow{
  background:
    radial-gradient(1100px 700px at 72% -8%, rgba(255,106,43,.075), transparent 62%),
    radial-gradient(900px 600px at -10% 110%, rgba(94,112,130,.10), transparent 55%),
    var(--deep);
  background-attachment:fixed;
  color:var(--ink);
  font-family:var(--f-jp);
  font-size:var(--fs-body);
  line-height:1.75;
  min-height:100vh;
  -webkit-font-smoothing:antialiased;
}
.flow a{color:inherit}
.flow b{font-weight:700}
.mono{font-family:var(--f-num);letter-spacing:.08em}

/* ---- アプリ枠 ---- */
.app{
  max-width:1180px;margin:0 auto;padding:18px 16px 60px;
}
.app__frame{
  position:relative;
  background:#11151D;
  border:1px solid #293140;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03), 0 40px 120px rgba(0,0,0,.55);
  border-radius:18px;
  overflow:hidden;
}
.app__frame::after{
  content:"";position:absolute;inset:0;pointer-events:none;z-index:60;opacity:.5;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .025 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.app__bar{
  display:flex;align-items:center;gap:14px;
  padding:12px 18px;
  background:var(--paper-2);
  border-bottom:1px solid var(--fog);
}
.app__dots{display:flex;gap:6px}
.app__dots i{width:9px;height:9px;border-radius:50%;background:var(--ink-12)}
.app__dots i:first-child{background:var(--orange)}
.app__title{font-family:var(--f-num);font-size:11px;letter-spacing:.22em;color:var(--ink-50);text-transform:uppercase}
.app__title b{color:var(--ink)}
.app__title em{font-style:normal;color:var(--ink-30);margin:0 6px}
.app__bar .sp{flex:1}
.app__home{font-size:12px;color:var(--ink-50);text-decoration:none;border:1px solid var(--fog);border-radius:8px;padding:5px 12px}
.app__home:hover{color:var(--ink);border-color:var(--glass-brd)}

/* ---- ステップレール ---- */
.rail{
  position:relative;
  display:flex;gap:0;
  padding:0 18px;
  background:#0E1117;
  border-bottom:1px solid #293140;
  overflow-x:auto;
}
.rail::after{
  content:"";position:absolute;left:0;bottom:-1px;height:2px;width:var(--prog,8%);
  background:linear-gradient(90deg,transparent,var(--orange));
  transition:width .6s cubic-bezier(.2,.8,.2,1);
}
.rail__s{
  display:flex;align-items:center;gap:10px;
  padding:19px 18px 16px;
  font-size:12.5px;color:#788294;
  border-bottom:3px solid transparent;
  white-space:nowrap;
}
.rail__s i{
  font-family:var(--f-num);font-style:normal;font-size:11px;letter-spacing:.1em;
  width:28px;height:28px;border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;
  border:1px solid #303847;
  transition:all .2s ease-out;
}
.rail__s.on{color:var(--ink);border-bottom-color:var(--orange)}
.rail__s.on i{border-color:var(--orange);color:var(--orange);box-shadow:0 0 14px rgba(255,106,43,.25)}
.rail__s.done{color:var(--ink-50)}
.rail__s.done i{background:transparent;border-color:#68D9A3;color:#68D9A3;font-size:0}
.rail__s.done i::before{content:"✓";font-size:13px}

/* ---- ステップ本体 ---- */
.step{display:none;padding:34px clamp(18px,4vw,46px) 42px}
.step.on{display:block;animation:stepIn .22s ease-out backwards}
@keyframes stepIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.step h2{
  font-size:var(--fs-h3);font-weight:900;margin:0 0 6px;letter-spacing:.02em;
}
.step .k{
  font-family:var(--f-num);font-size:10px;letter-spacing:.3em;color:var(--orange);
  text-transform:uppercase;display:block;margin-bottom:10px;
}
.step .lead{color:var(--ink-70);font-size:14px;margin:0 0 24px;max-width:46em}
.step .lead b{color:var(--ink)}

/* ---- 写真スロット ---- */
.shots{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:8px 0 10px}
@media(max-width:720px){.shots{grid-template-columns:1fr 1fr}}
.shot{
  position:relative;aspect-ratio:4/3;border-radius:14px;overflow:hidden;cursor:pointer;
  background:var(--paper-2);
  border:1.5px dashed var(--ink-12);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;
  transition:border-color .25s,background .25s;
}
.shot:hover,.shot.over{border-color:var(--orange);background:var(--orange-tint)}
.shot svg{width:46px;height:46px;stroke:var(--ink-30);fill:none;stroke-width:1.4}
.shot:hover svg{stroke:var(--orange)}
.shot b{font-size:13px;color:var(--ink-70)}
.shot small{font-size:11px;color:var(--ink-30)}
.shot.req b::after{content:" ★";color:var(--orange);font-size:11px}
.shot img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.shot.has{border-style:solid;border-color:var(--glass-brd)}
.shot .tag{
  position:absolute;left:10px;top:10px;z-index:2;
  font-size:10.5px;font-weight:700;letter-spacing:.1em;
  background:rgba(6,8,11,.78);backdrop-filter:blur(6px);
  padding:4px 10px;border-radius:99px;color:var(--on-photo);
}
.shot .rm{
  position:absolute;right:8px;top:8px;z-index:2;width:26px;height:26px;border-radius:50%;
  background:rgba(6,8,11,.78);color:var(--on-photo);border:none;cursor:pointer;font-size:13px;line-height:1;
}
.sampleTry{
  margin-top:14px;display:flex;align-items:center;gap:12px;flex-wrap:wrap;
}
.sampleTry .btn{padding:10px 18px;font-size:13px}
.sampleTry small{color:var(--ink-30);font-size:11.5px}
.rule{
  display:flex;gap:10px;align-items:flex-start;
  background:var(--glass);border:1px solid var(--glass-brd);border-radius:12px;
  padding:13px 16px;font-size:13px;color:var(--ink-70);margin-top:16px;
}
.rule b{color:var(--orange)}
.rule .ic{flex:0 0 auto;width:18px;height:18px;margin-top:3px;color:var(--orange)}

/* ---- パース生成ステージ ---- */
.gen{display:grid;grid-template-columns:1.25fr .9fr;gap:26px;align-items:start}
@media(max-width:860px){.gen{grid-template-columns:1fr}}
.gen__stage{
  position:relative;border-radius:14px;overflow:hidden;
  background:#0D121B;border:1px solid #293140;
  background-image:linear-gradient(rgba(126,153,187,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(126,153,187,.07) 1px,transparent 1px);
  background-size:24px 24px;
  aspect-ratio:16/10.6;min-height:300px;
}
.gen__stage::before{
  content:"";position:absolute;inset:10px;pointer-events:none;z-index:4;
  background:
    linear-gradient(#56637a,#56637a) left top/14px 1.5px no-repeat,
    linear-gradient(#56637a,#56637a) left top/1.5px 14px no-repeat,
    linear-gradient(#56637a,#56637a) right top/14px 1.5px no-repeat,
    linear-gradient(#56637a,#56637a) right top/1.5px 14px no-repeat,
    linear-gradient(#56637a,#56637a) left bottom/14px 1.5px no-repeat,
    linear-gradient(#56637a,#56637a) left bottom/1.5px 14px no-repeat,
    linear-gradient(#56637a,#56637a) right bottom/14px 1.5px no-repeat,
    linear-gradient(#56637a,#56637a) right bottom/1.5px 14px no-repeat;
  opacity:.75;
}
.gen__stage svg{position:absolute;inset:0;width:100%;height:100%}
.gen__scan{
  position:absolute;inset:0;pointer-events:none;opacity:0;z-index:3;
}
.gen__scan.go{opacity:1}
.gen__scan::before{
  content:"";position:absolute;left:0;right:0;height:34%;top:-40%;
  background:linear-gradient(180deg,transparent,var(--orange-glow) 70%,var(--orange));
  animation:scanY 1.5s cubic-bezier(.4,0,.2,1) infinite;
  mix-blend-mode:screen;
}
@keyframes scanY{to{top:110%}}
.gen__hint{
  position:absolute;left:14px;bottom:12px;z-index:4;
  font-family:var(--f-num);font-size:10px;letter-spacing:.24em;color:var(--on-photo-70);
  text-transform:uppercase;
}
.gen__hint i{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--moss);margin-right:7px;vertical-align:1px;animation:ledB 1.4s infinite}
@keyframes ledB{50%{opacity:.25}}
.gen__log{
  position:absolute;left:14px;top:12px;z-index:4;font-family:var(--f-num);
  font-size:10.5px;line-height:1.9;color:var(--on-photo-45);letter-spacing:.06em;
  text-align:left;pointer-events:none;
}
.gen__log b{color:var(--orange);font-weight:600}

/* ---- 選定パネル ---- */
.panel{display:flex;flex-direction:column;gap:18px}
.panel__g label{
  display:block;font-family:var(--f-num);font-size:10px;letter-spacing:.26em;
  color:var(--ink-30);text-transform:uppercase;margin-bottom:9px;
}
.segs{display:flex;flex-wrap:wrap;gap:8px}
.seg{
  border:1px solid #303847;background:#0D1016;color:var(--ink-70);
  font-size:12.5px;padding:8px 14px;border-radius:10px;cursor:pointer;
  transition:all .2s;font-family:var(--f-jp);
}
.seg:hover{border-color:var(--glass-brd);color:var(--ink)}
.seg.on{background:var(--orange);border-color:var(--orange);color:#fff;font-weight:700}
.chips{display:flex;flex-direction:column;gap:12px;max-height:300px;overflow-y:auto;padding-right:6px}
.chips::-webkit-scrollbar{width:6px}
.chips::-webkit-scrollbar-thumb{background:#303847;border-radius:3px}
.cgrp label{display:block;font-size:10.5px;letter-spacing:.14em;color:#788294;margin-bottom:7px;font-family:var(--f-num)}
.cgrp .row{display:flex;flex-wrap:wrap;gap:9px}
.chip{
  width:36px;height:36px;border-radius:9px;cursor:pointer;border:2px solid transparent;
  outline:1px solid #303847;transition:transform .18s ease-out;
  position:relative;
}
.chip:hover{transform:translateY(-2px)}
.chip.on{border-color:#F5F7FA;outline:2px solid var(--orange)}
.chip.on::after{content:"✓";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#fff;font-size:15px;text-shadow:0 1px 4px rgba(0,0,0,.8)}
.chip__code{
  font-family:var(--f-num);font-size:12.5px;letter-spacing:.05em;color:#A5AFBF;
  margin-top:10px;min-height:18px;
}
.pick{
  margin-top:4px;border:1px solid #293140;border-radius:12px;overflow:hidden;background:#0D1016;
}
.pick .pr{display:flex;align-items:center;gap:10px;padding:9px 13px;border-top:1px solid #1D2430;font-size:12px}
.pick .pr:first-child{border-top:none}
.pick .pr i{width:18px;height:18px;border-radius:5px;outline:1px solid rgba(255,255,255,.14)}
.pick .pr span{color:#788294;width:58px;flex:none}
.pick .pr b{font-family:var(--f-num);font-weight:500;color:var(--ink);font-size:12px;letter-spacing:.04em}
.layers{display:flex;gap:6px;margin-bottom:10px}
.layers .seg{padding:6px 12px;font-size:12px}

/* ---- フォーム ---- */
.form{display:grid;grid-template-columns:repeat(2,1fr);gap:18px 22px;max-width:760px}
@media(max-width:680px){.form{grid-template-columns:1fr}}
.f{display:flex;flex-direction:column;gap:7px}
.f.wide{grid-column:1/-1}
.f label{font-size:12.5px;font-weight:700;color:var(--ink-70)}
.f label small{font-weight:400;color:var(--ink-30);margin-left:6px}
.f input,.f select,.f textarea{
  background:#0D1016;color:var(--ink);
  border:1px solid #303847;border-radius:11px;
  padding:0 14px;height:48px;font-size:15px;font-family:var(--f-jp);
  transition:border-color .18s ease-out,box-shadow .18s ease-out;
}
.f textarea{height:auto;min-height:88px;padding:12px 14px}
.f input:focus,.f select:focus,.f textarea:focus{outline:none;border-color:var(--orange);box-shadow:0 0 0 1px var(--orange)}
.f label{color:#AAB4C4}
.f .u{display:flex;align-items:center;gap:10px}
.f .u input{flex:1}
.f .u span{color:var(--ink-50);font-size:13px}
.checks{display:flex;flex-wrap:wrap;gap:9px}
.ck{
  display:flex;align-items:center;gap:7px;font-size:13px;color:var(--ink-70);
  border:1px solid var(--fog);border-radius:10px;padding:8px 13px;cursor:pointer;
  transition:all .2s;user-select:none;
}
.ck input{accent-color:var(--orange);margin:0}
.ck:has(input:checked){border-color:var(--orange);background:var(--orange-tint);color:var(--ink)}

/* ---- 見積結果 ---- */
.result{display:grid;grid-template-columns:1fr 1fr;gap:26px;align-items:start}
@media(max-width:900px){.result{grid-template-columns:1fr}}
.quote{
  background:#171C26;border:1px solid #293140;border-radius:16px;padding:28px 28px 22px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
.quote__sum{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin:4px 0 2px}
.quote__sum b{font-family:var(--f-num);font-size:clamp(32px,4.6vw,40px);font-weight:700;letter-spacing:.01em;color:var(--ink);font-variant-numeric:tabular-nums}
.quote__sum span{color:var(--ink-50);font-size:13px}
.quote__note{font-size:11.5px;color:var(--ink-30);margin:2px 0 16px}
.quote table{width:100%;border-collapse:collapse;font-size:13px}
.quote td{padding:13px 0;border-top:1px solid #293140;color:var(--ink-70);vertical-align:top}
.quote td:last-child{text-align:right;font-family:var(--f-num);color:var(--ink);white-space:nowrap}
.quote td small{display:block;color:var(--ink-30);font-size:11px}
.quote .bar{height:3px;border-radius:2px;background:#293140;margin-top:7px;overflow:hidden}
.quote .bar i{display:block;height:100%;background:linear-gradient(90deg,#FF8048,#F65320);border-radius:2px;width:0;transition:width .9s cubic-bezier(.2,.8,.2,1)}
.quote tr.oh td{color:var(--ink-50)}
.quote tr.tt td{border-top:1.5px solid var(--glass-brd);font-weight:700;color:var(--ink);padding-top:12px}
.grade{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:18px}
@media(max-width:860px){.grade{grid-template-columns:repeat(2,1fr)}}
.gcard{
  position:relative;border:1px solid #303847;background:#0D1016;border-radius:13px;
  padding:14px 14px 12px;cursor:pointer;text-align:left;font-family:var(--f-jp);
  transition:all .2s ease-out;color:var(--ink-70);
}
.gcard:hover{border-color:#56637a;transform:translateY(-2px)}
.gcard.on{border-color:var(--orange);background:rgba(255,106,43,.07);box-shadow:0 0 22px rgba(255,106,43,.1)}
.gcard b{display:block;font-size:14.5px;font-weight:900;color:var(--ink);margin-bottom:2px}
.gcard .yrs{font-size:10.5px;color:#788294;display:block}
.gcard .amt{font-family:var(--f-num);font-size:14px;color:var(--ink);display:block;margin-top:8px;font-variant-numeric:tabular-nums}
.gcard.on .amt{color:var(--orange);font-weight:700}
.gcard .rec{
  position:absolute;top:-8px;right:10px;font-size:9px;font-weight:700;letter-spacing:.12em;
  background:var(--orange);color:#fff;border-radius:99px;padding:2px 8px;
}
.visuals{display:flex;flex-direction:column;gap:16px}
.vis{
  position:relative;border-radius:16px;overflow:hidden;background:#0D121B;
  border:1px solid #293140;
  background-image:linear-gradient(rgba(126,153,187,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(126,153,187,.06) 1px,transparent 1px);
  background-size:24px 24px;
}
.vis .tag{
  position:absolute;left:12px;top:11px;z-index:3;
  font-family:var(--f-num);font-size:9.5px;letter-spacing:.26em;color:var(--on-photo-70);
  background:rgba(6,8,11,.72);backdrop-filter:blur(6px);
  padding:5px 11px;border-radius:99px;text-transform:uppercase;
}
.vis svg,.vis canvas,.vis img{display:block;width:100%;height:auto}
.vis__tools{
  display:flex;gap:8px;align-items:center;padding:9px 12px;background:var(--paper-2);
  border-top:1px solid var(--fog);font-size:11.5px;color:var(--ink-50);flex-wrap:wrap;
}
.vis__tools button{
  border:1px solid var(--fog);background:transparent;color:var(--ink-70);font-size:11.5px;
  border-radius:8px;padding:5px 11px;cursor:pointer;
}
.vis__tools button.on{background:var(--orange);border-color:var(--orange);color:#fff}

/* ---- ナビボタン ---- */
.nav{display:flex;gap:12px;margin-top:30px;align-items:center}
.btn{
  display:inline-flex;align-items:center;gap:9px;justify-content:center;
  font-size:14.5px;font-weight:700;font-family:var(--f-jp);
  border-radius:12px;padding:13px 28px;cursor:pointer;text-decoration:none;
  transition:all .25s;border:none;
}
.btn--p{background:linear-gradient(180deg,#FF8048,#F65320);color:#fff;box-shadow:0 0 24px rgba(255,106,43,.13),0 8px 24px rgba(0,0,0,.4)}
.btn--p:hover{filter:brightness(1.08);transform:translateY(-1px)}
.btn--p:disabled{opacity:.35;cursor:not-allowed;box-shadow:none;transform:none}
.btn--g{background:transparent;color:var(--ink-70);border:1px solid var(--fog)}
.btn--g:hover{color:var(--ink);border-color:var(--glass-brd)}
.nav .st{margin-left:auto;font-size:12px;color:var(--ink-30)}

/* ---- 完了画面 ---- */
.doneCard{text-align:center;padding:30px 10px 10px;max-width:640px;margin:0 auto}
.doneCard .id{
  font-family:var(--f-num);font-size:clamp(22px,4vw,34px);letter-spacing:.12em;font-weight:700;
  color:var(--orange);margin:16px 0 4px;
}
.doneCard .ok{
  width:64px;height:64px;border-radius:50%;margin:0 auto;
  background:var(--orange-tint);border:1.5px solid var(--orange);
  display:flex;align-items:center;justify-content:center;
}
.doneCard .ok svg{width:30px;height:30px;stroke:var(--orange)}
.doneCard p{color:var(--ink-70);font-size:14px}
.doneCard .acts{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:26px}

/* ============================================================
   partner.html（加盟店コンソール）
   ============================================================ */
.pt{display:grid;grid-template-columns:330px 1fr;min-height:620px}
@media(max-width:860px){.pt{grid-template-columns:1fr}}
.pt__list{
  border-right:1px solid #293140;background:#11151D;
  display:flex;flex-direction:column;
}
.pt__head{padding:16px 18px 10px;border-bottom:1px solid var(--fog)}
.pt__head h3{margin:0;font-size:14px;font-weight:900}
.pt__head small{color:var(--ink-30);font-size:11px}
.pt__drop{
  margin:12px 18px;border:1.5px dashed var(--ink-12);border-radius:10px;
  padding:12px;text-align:center;font-size:11.5px;color:var(--ink-30);cursor:pointer;
  transition:all .2s;
}
.pt__drop:hover,.pt__drop.over{border-color:var(--orange);color:var(--orange)}
.pt__orders{overflow-y:auto;flex:1}
.po{
  display:block;width:100%;text-align:left;background:transparent;border:none;cursor:pointer;
  padding:14px 18px;border-bottom:1px solid var(--fog);color:var(--ink);font-family:var(--f-jp);
  transition:background .2s;
}
.po:hover{background:var(--glass)}
.po.on{background:var(--orange-tint);box-shadow:inset 3px 0 0 var(--orange)}
.po .id{font-family:var(--f-num);font-size:11px;letter-spacing:.1em;color:var(--ink-50)}
.po .nm{font-size:14px;font-weight:700;margin:2px 0}
.po .mt{font-size:11.5px;color:var(--ink-30);display:flex;gap:10px}
.po .badge{
  font-size:10px;font-weight:700;padding:2px 9px;border-radius:99px;
  background:var(--glass-2);color:var(--ink-50);
}
.po .badge.new{background:var(--orange);color:#fff}
.po .badge.quoted{background:rgba(255,128,72,.16);color:#FF8B55}
.po .badge.accepted{background:rgba(104,217,163,.15);color:#68D9A3}
.po .badge.working{background:rgba(124,148,171,.18);color:#9CB4CC}
.po .badge.done{background:rgba(255,255,255,.08);color:#8F9BAD}
.kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:#293140;border-bottom:1px solid #293140}
.kpis div{background:#0E1117;padding:12px 16px}
.kpis b{display:block;font-family:var(--f-num);font-size:20px;color:var(--ink);font-variant-numeric:tabular-nums}
.kpis.new b{color:var(--orange)}
.kpis span{font-size:10px;letter-spacing:.14em;color:#788294}
.pt__main{padding:24px clamp(16px,3vw,32px);overflow-y:auto}
.pt__empty{color:var(--ink-30);text-align:center;padding:120px 20px;font-size:13.5px}
.od__top{display:flex;align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:18px}
.od__top h2{margin:0;font-size:20px;font-weight:900}
.od__top .id{font-family:var(--f-num);font-size:12px;color:var(--ink-50);letter-spacing:.1em}
.od__top select{
  margin-left:auto;background:var(--paper-2);color:var(--ink);border:1px solid var(--fog);
  border-radius:9px;padding:8px 12px;font-size:13px;font-family:var(--f-jp);
}
.od__grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:20px}
@media(max-width:1020px){.od__grid{grid-template-columns:1fr}}
.card{
  background:#171C26;border:1px solid #293140;border-radius:14px;padding:24px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
.card h4{
  margin:0 0 12px;font-family:var(--f-num);font-size:10px;letter-spacing:.28em;
  color:var(--ink-30);text-transform:uppercase;font-weight:600;
}
.kv{display:flex;justify-content:space-between;gap:14px;padding:6px 0;font-size:13px;border-top:1px solid var(--fog)}
.kv:first-of-type{border-top:none}
.kv span{color:var(--ink-50)}
.kv b{color:var(--ink);font-weight:500;text-align:right}
.od__photos{display:flex;gap:9px;flex-wrap:wrap}
.od__photos img{width:112px;height:84px;object-fit:cover;border-radius:8px;border:1px solid var(--glass-brd)}
.adjust .f input{font-family:var(--f-num)}
.adjust .row{display:flex;gap:12px;align-items:flex-end}
.adjust .row .f{flex:1}
.offer{
  margin-top:12px;background:var(--orange-tint);border:1px solid var(--orange);
  border-radius:10px;padding:12px 16px;display:flex;justify-content:space-between;align-items:baseline;
}
.offer b{font-family:var(--f-num);font-size:22px;color:var(--orange)}
.offer span{font-size:12px;color:var(--ink-70)}

/* ---- メッセージ ---- */
.msgs{display:flex;flex-direction:column;gap:10px;max-height:340px;overflow-y:auto;padding:4px 2px;margin-bottom:12px}
.msg{max-width:78%;padding:10px 14px;border-radius:13px;font-size:13.5px;line-height:1.7;white-space:pre-wrap}
.msg small{display:block;font-size:10px;opacity:.55;margin-top:4px;font-family:var(--f-num)}
.msg.B{align-self:flex-end;background:var(--orange);color:#fff;border-bottom-right-radius:4px}
.msg.C{align-self:flex-start;background:var(--glass-2);color:var(--ink);border-bottom-left-radius:4px}
.msg.sys{align-self:center;background:transparent;color:var(--ink-30);font-size:11px;padding:2px}
.compose{display:flex;gap:10px;align-items:flex-end}
.compose textarea{
  flex:1;background:var(--paper);color:var(--ink);border:1px solid var(--fog);border-radius:11px;
  padding:11px 13px;font-size:13.5px;font-family:var(--f-jp);min-height:72px;resize:vertical;
}
.compose textarea:focus{outline:none;border-color:var(--orange)}
.mailnote{font-size:11px;color:var(--ink-30);margin-top:8px}

/* ---- 共通フッター注意 ---- */
.sysnote{
  max-width:1180px;margin:14px auto 0;padding:0 16px;
  font-size:11px;color:var(--ink-30);line-height:1.9;
}
.sysnote b{color:var(--ink-50)}

@media (max-width:480px){
  .btn{padding:12px 18px;font-size:13.5px;white-space:nowrap}
  .app__home{white-space:nowrap}
  .app{padding:10px 8px 40px}
  .step{padding:26px 16px 32px}
}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:.01ms!important;transition-duration:.01ms!important}
}


/* ============================================================
   WIZ — C側ウィザードは完全スマホファースト（アプリ型1カラム）
   顧客はスマホのみ前提。PCでも中央620pxのアプリとして見せる。
   ============================================================ */
body.wiz .app{max-width:620px;padding:12px 10px 130px}
body.wiz .gen,body.wiz .result{grid-template-columns:1fr;gap:18px}
body.wiz .form{grid-template-columns:1fr;gap:16px;max-width:none}
body.wiz .step{padding:26px 18px 30px}
body.wiz .step h2{font-size:19px;line-height:1.5}
body.wiz .step .lead{font-size:13.5px}

/* 下部固定アクションバー（親指圏） */
body.wiz .nav{
  position:fixed;left:0;right:0;bottom:0;z-index:70;margin:0;
  padding:12px max(14px,env(safe-area-inset-left,0px)) calc(12px + env(safe-area-inset-bottom,0px)) max(14px,env(safe-area-inset-right,0px));
  background:rgba(9,11,15,.86);backdrop-filter:blur(16px);
  border-top:1px solid #293140;
  display:flex;gap:10px;align-items:center;justify-content:center;
}
body.wiz .nav>*{max-width:620px}
body.wiz .nav .btn--p{flex:1;max-width:420px;padding:16px 18px;font-size:15.5px;border-radius:14px}
body.wiz .nav .btn--g{flex:0 0 auto;padding:16px 15px;font-size:13px;border-radius:14px}
body.wiz .nav .st{position:absolute;top:-28px;right:16px;background:rgba(9,11,15,.7);padding:3px 10px;border-radius:99px;font-size:11px;margin:0}

/* 写真スロット：正面を大きく、タップしやすく */
body.wiz .shots{grid-template-columns:1fr 1fr;gap:11px}
body.wiz .shot[data-slot="front"]{grid-column:1/-1;aspect-ratio:16/10}
body.wiz .shot b{font-size:14px}
body.wiz .shot small{font-size:11.5px}

/* 色チップ：系統ごとの横スクロール行（親指スワイプ） */
body.wiz .chips{max-height:none;overflow:visible;padding-right:0}
body.wiz .cgrp .row{flex-wrap:nowrap;overflow-x:auto;padding:2px 2px 8px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
body.wiz .cgrp .row::-webkit-scrollbar{height:0}
body.wiz .chip{width:42px;height:42px;flex:0 0 auto;scroll-snap-align:start;border-radius:11px}

/* 入力：iOSズーム防止16px・高さ52px・大きめセグメント */
body.wiz .f input,body.wiz .f select{font-size:16px;height:52px;border-radius:12px}
body.wiz .f textarea{font-size:16px}
body.wiz .seg{padding:12px 16px;font-size:13.5px;border-radius:11px;min-height:44px}
body.wiz .ck{padding:12px 15px;font-size:13.5px;min-height:44px}
body.wiz .layers .seg{padding:10px 13px;min-height:40px}

/* ステージ・ビジュアル：全幅カード */
body.wiz .gen__stage{aspect-ratio:4/3;min-height:0}
body.wiz .quote{padding:22px 18px 16px}
body.wiz .quote__sum b{font-size:34px}
body.wiz .vis__tools{gap:6px}
body.wiz .vis__tools button{min-height:36px;padding:7px 12px}

/* レール：スマホは番号主体でコンパクト */
@media(max-width:480px){
  body.wiz .rail{padding:0 8px}
  body.wiz .rail__s{padding:14px 9px 12px;gap:6px;font-size:11px}
  body.wiz .rail__s i{width:24px;height:24px;font-size:10px}
  body.wiz .app{padding:0 0 130px}
  body.wiz .app__frame{border-radius:0;border-left:none;border-right:none}
  body.wiz .doneCard{padding-top:18px}
}


/* ============================================================
   WIZ LIGHT — C側は40〜60代の施主向けライトテーマ（ChatGPT共作 v2）
   背景#F5F7FA/カード#FFF/本文#263238/補足#5F6B76/境界#DDE3E8
   アクセント#F65A1E。文字大きめ・CTA56px・下部固定。
   ============================================================ */
body.wiz{
  background:
    radial-gradient(900px 500px at 80% -6%, rgba(246,90,30,.06), transparent 60%),
    #F5F7FA;
  color:#0F172A;
}
body.wiz .app__frame{background:#FFFFFF;border:1px solid #DDE3E8;box-shadow:0 10px 40px rgba(29,41,57,.08)}
body.wiz .app__frame::after{display:none}
body.wiz .app__bar{background:#FFFFFF;border-bottom:1px solid #E7EBF0}
body.wiz .app__title{color:#8A93A1}
body.wiz .app__title b{color:#263238}
body.wiz .app__home{color:#5F6B76;border-color:#DDE3E8}
body.wiz .app__dots i{background:#E2E7ED}
body.wiz .app__dots i:first-child{background:#F65A1E}

body.wiz .rail{background:#FFFFFF;border-bottom:1px solid #E7EBF0}
body.wiz .rail__s{color:#9AA5B1}
body.wiz .rail__s i{border-color:#D7DCE4}
body.wiz .rail__s.on{color:#1B2430}
body.wiz .rail__s.on i{border-color:#F65A1E;color:#F65A1E;box-shadow:none}
body.wiz .rail__s.done{color:#5F6B76}
body.wiz .rail__s.done i{border-color:#1FA36B;color:#1FA36B}

body.wiz .step h2{color:#1B2430;font-size:22px;line-height:1.5}
body.wiz .step .k{color:#F65A1E;letter-spacing:.2em}
body.wiz .step .lead{color:#5F6B76;font-size:15px;line-height:1.85}
body.wiz .step .lead b{color:#263238}

/* 安心バッジ */
.assure{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 20px}
.assure span{
  font-size:12.5px;font-weight:700;color:#C2410C;background:#FFF2EB;
  border:1px solid #FFD9C4;border-radius:99px;padding:6px 13px;
  display:inline-flex;align-items:center;gap:5px;
}

/* 写真スロット */
body.wiz .shot{background:#FAFBFC;border:1.5px dashed #C9D2DC}
body.wiz .shot svg{stroke:#9AA5B1}
body.wiz .shot b{color:#43505C}
body.wiz .shot small{color:#9AA5B1}
body.wiz .shot:hover,body.wiz .shot.over{border-color:#F65A1E;background:#FFF7F2}
body.wiz .shot.has{border-color:#DDE3E8}
body.wiz .rule{background:#FFF7F2;border:1px solid #FFD9C4;color:#6B5444;font-size:13.5px}
body.wiz .rule b{color:#C2410C}
body.wiz .sampleTry .btn--g{background:#FFF;border-color:#D7DCE4;color:#43505C}
body.wiz .sampleTry small{color:#9AA5B1}

/* セグメント＝カード型選択（押すと分かる） */
body.wiz .seg{background:#FFFFFF;border:1.5px solid #D7DCE4;color:#43505C;font-weight:500}
body.wiz .seg:hover{border-color:#9AA5B1;color:#1B2430}
body.wiz .seg.on{background:#FFF2EB;border-color:#F65A1E;color:#C2410C;font-weight:700}
body.wiz .panel__g label{color:#8A93A1}

/* チップ */
body.wiz .cgrp label{color:#8A93A1}
body.wiz .chip{outline-color:#D7DCE4}
body.wiz .chip.on{border-color:#FFF;outline:2.5px solid #F65A1E}
body.wiz .chip__code{color:#5F6B76}
body.wiz .pick{background:#FAFBFC;border-color:#E2E7ED}
body.wiz .pick .pr{border-top-color:#EDF0F4}
body.wiz .pick .pr span{color:#9AA5B1}
body.wiz .pick .pr b{color:#263238}
body.wiz .pick .pr i{outline-color:rgba(0,0,0,.1)}

/* CADステージ（ライト製図） */
body.wiz .gen__stage{
  background:#EEF2F7;border:1px solid #DDE3E8;
  background-image:linear-gradient(rgba(70,95,130,.09) 1px,transparent 1px),linear-gradient(90deg,rgba(70,95,130,.09) 1px,transparent 1px);
  background-size:24px 24px;
}
body.wiz .gen__stage::before{opacity:.5;background:
  linear-gradient(#9AA9BC,#9AA9BC) left top/14px 1.5px no-repeat,
  linear-gradient(#9AA9BC,#9AA9BC) left top/1.5px 14px no-repeat,
  linear-gradient(#9AA9BC,#9AA9BC) right top/14px 1.5px no-repeat,
  linear-gradient(#9AA9BC,#9AA9BC) right top/1.5px 14px no-repeat,
  linear-gradient(#9AA9BC,#9AA9BC) left bottom/14px 1.5px no-repeat,
  linear-gradient(#9AA9BC,#9AA9BC) left bottom/1.5px 14px no-repeat,
  linear-gradient(#9AA9BC,#9AA9BC) right bottom/14px 1.5px no-repeat,
  linear-gradient(#9AA9BC,#9AA9BC) right bottom/1.5px 14px no-repeat}
body.wiz .gen__hint{color:#5F6B76}
body.wiz .gen__log{color:#8A93A1}
body.wiz .gen__log b{color:#F65A1E}

/* フォーム */
body.wiz .f label{color:#43505C;font-size:15px}
body.wiz .f label small{color:#9AA5B1}
body.wiz .f input,body.wiz .f select,body.wiz .f textarea{background:#FFFFFF;border:1.5px solid #D7DCE4;color:#263238}
body.wiz .f input:focus,body.wiz .f select:focus,body.wiz .f textarea:focus{border-color:#F65A1E;box-shadow:0 0 0 1px #F65A1E}
body.wiz .ck{background:#FFF;border:1.5px solid #D7DCE4;color:#43505C}
body.wiz .ck:has(input:checked){border-color:#F65A1E;background:#FFF2EB;color:#C2410C;font-weight:700}

/* グレードカード */
body.wiz .gcard{background:#FFF;border:1.5px solid #D7DCE4;color:#5F6B76}
body.wiz .gcard b{color:#1B2430}
body.wiz .gcard .yrs{color:#9AA5B1}
body.wiz .gcard .amt{color:#263238}
body.wiz .gcard:hover{border-color:#9AA5B1}
body.wiz .gcard.on{border-color:#F65A1E;background:#FFF2EB;box-shadow:none}
body.wiz .gcard.on .amt{color:#C2410C}

/* 概算カード（金額が主役） */
body.wiz .quote{background:#FFFFFF;border:1px solid #DDE3E8;box-shadow:0 6px 24px rgba(29,41,57,.06)}
body.wiz .quote__head{background:#FFF2EB;border:1px solid #FFD9C4;border-radius:13px;padding:16px 18px 14px;margin-bottom:16px}
body.wiz .quote__sum b{color:#1B2430}
body.wiz .quote__sum span{color:#8A6A55}
body.wiz .quote__note{color:#9AA5B1;font-size:12px}
body.wiz .quote td{border-top-color:#E7EBF0;color:#43505C;font-size:14px}
body.wiz .quote td:last-child{color:#1B2430}
body.wiz .quote td small{color:#9AA5B1}
body.wiz .quote .bar{background:#EDF0F4}
body.wiz .quote tr.oh td{color:#8A93A1}
body.wiz .quote tr.tt td{border-top-color:#C9D2DC;color:#1B2430}

/* ビジュアル */
body.wiz .vis{background:#EEF2F7;border-color:#DDE3E8;background-image:none}
body.wiz .vis__tools{background:#FAFBFC;border-top-color:#E7EBF0;color:#8A93A1}
body.wiz .vis__tools button{border-color:#D7DCE4;color:#43505C;background:#FFF}
body.wiz .vis__tools button.on{background:#F65A1E;border-color:#F65A1E;color:#fff}

/* 下部固定バー・CTA 56px */
body.wiz .nav{background:rgba(255,255,255,.94);border-top:1px solid #E2E7ED}
body.wiz .nav .btn--p{min-height:56px;font-size:17px;font-weight:700;box-shadow:0 6px 18px rgba(246,90,30,.25)}
body.wiz .nav .btn--g{background:#FFF;border:1.5px solid #D7DCE4;color:#43505C;min-height:56px}
body.wiz .nav .st{background:#FFF;border:1px solid #E2E7ED;color:#8A93A1}
body.wiz .navNote{
  position:fixed;left:0;right:0;bottom:calc(84px + env(safe-area-inset-bottom,0px));z-index:69;
  text-align:center;font-size:12.5px;color:#8A93A1;pointer-events:none;
}
body.wiz .navNote b{color:#C2410C}

/* 完了 */
body.wiz .doneCard .ok{background:#FFF2EB;border-color:#F65A1E}
body.wiz .doneCard .ok svg{stroke:#F65A1E}
body.wiz .doneCard .id{color:#F65A1E}
body.wiz .doneCard h2{color:#1B2430}
body.wiz .doneCard p{color:#5F6B76}
body.wiz .doneCard .btn--g{background:#FFF;border:1.5px solid #D7DCE4;color:#43505C}
body.wiz .mailnote{color:#9AA5B1}
body.wiz .sysnote{color:#9AA5B1}
body.wiz .sysnote b{color:#5F6B76}
body.wiz ::selection{background:#FFD9C4}


/* ============================================================
   CON — 加盟店コンソールを JIZAI 基準の SaaS（紺ナビ×明るい作業領域）へ
   ============================================================ */
body.con{background:#F4F6F9;color:#0F172A}
body.con .app__frame{background:#FFFFFF;border:1px solid #E4E8EE;box-shadow:0 1px 2px rgba(15,23,42,.04),0 10px 40px -10px rgba(15,23,42,.14)}
body.con .app__frame::after{display:none}
body.con .app__bar{background:#FFFFFF;border-bottom:1px solid #E4E8EE}
body.con .app__title{color:#94A3B8}
body.con .app__title b{color:#0F172A}
body.con .app__home{color:#475569;border-color:#E4E8EE;background:#FFF}
body.con .app__dots i{background:#E4E8EE}
body.con .app__dots i:first-child{background:#F65A1E}

/* 左＝紺ナビ（JIZAI/親方の骨格） */
body.con .pt__list{background:#16233A;border-right:1px solid #0F1A2D}
body.con .pt__head{border-bottom:1px solid rgba(255,255,255,.08)}
body.con .pt__head h3{color:#FFFFFF}
body.con .pt__head small{color:#8CA0BC}
body.con .kpis{background:rgba(255,255,255,.08);border-bottom:1px solid rgba(255,255,255,.08)}
body.con .kpis div{background:#16233A}
body.con .kpis b{color:#FFFFFF}
body.con .kpis span{color:#8CA0BC}
body.con .pt__drop{border-color:#2C3D5C;color:#8CA0BC}
body.con .pt__drop:hover,body.con .pt__drop.over{border-color:#F65A1E;color:#FFB08A}
body.con .po{color:#D7DEE9;border-bottom:1px solid rgba(255,255,255,.06)}
body.con .po:hover{background:#1F3050}
body.con .po.on{background:#1F3050;box-shadow:inset 3px 0 0 #F65A1E}
body.con .po .id{color:#8CA0BC}
body.con .po .nm{color:#FFFFFF}
body.con .po .mt{color:#8CA0BC}
body.con .po .badge{background:rgba(255,255,255,.1);color:#B9C4D6}
body.con .po .badge.new{background:#F65A1E;color:#fff}
body.con .po .badge.accepted{background:rgba(104,217,163,.2);color:#7FE3B4}

/* 右＝明るい作業領域 */
body.con .pt__main{background:#F4F6F9}
body.con .pt__empty{color:#94A3B8}
body.con .od__top h2{color:#0F172A}
body.con .od__top .id{color:#94A3B8}
body.con .od__top select{background:#FFF;color:#0F172A;border:1px solid #E4E8EE}
body.con .card{background:#FFFFFF;border:1px solid #E4E8EE;box-shadow:0 1px 2px rgba(15,23,42,.04),0 4px 16px -6px rgba(15,23,42,.10)}
body.con .card h4{color:#94A3B8}
body.con .kv{border-top:1px solid #EEF1F5}
body.con .kv span{color:#64748B}
body.con .kv b{color:#0F172A}
body.con .od__photos img{border-color:#E4E8EE}
body.con .vis{background:#F4F6F9;border-color:#E4E8EE;background-image:none}
body.con .adjust .f label{color:#475569}
body.con .adjust .f input{background:#FFF;border:1px solid #D9DFE8;color:#0F172A;height:46px}
body.con .adjust .f input:focus{border-color:#F65A1E;box-shadow:0 0 0 1px #F65A1E}
body.con .offer{background:#FFF3EC;border-color:#F7C8AC}
body.con .offer span{color:#7C5A43}
body.con .offer b{color:#E04E12}
body.con .mailnote{color:#94A3B8}
body.con .msgs .msg.C{background:#EEF1F5;color:#0F172A}
body.con .msgs .msg.B{background:#F65A1E}
body.con .msgs .msg.sys{color:#94A3B8}
body.con .compose textarea{background:#FFF;border:1px solid #D9DFE8;color:#0F172A}
body.con .compose textarea:focus{border-color:#F65A1E}
body.con .btn--p{background:#F65A1E;box-shadow:0 4px 14px rgba(246,90,30,.25)}
body.con .btn--g{background:#FFF;border:1px solid #D9DFE8;color:#334155}
body.con .sysnote{color:#94A3B8}
body.con .sysnote b{color:#64748B}
body.con #setWrap .card{background:#fff}
body.con #setWrap .f label{color:#475569}
body.con #setWrap .f input{background:#FFF;border:1px solid #D9DFE8;color:#0F172A}


/* ============================================================
   WIZ RICH — 「硬い・ちゃっちい」対策：生成素材で満たし、丸く柔らかく
   ============================================================ */
body.wiz{
  background:
    radial-gradient(760px 420px at 85% -4%, rgba(246,90,30,.09), transparent 62%),
    radial-gradient(640px 420px at -12% 30%, rgba(120,150,190,.10), transparent 60%),
    linear-gradient(180deg,#FAFAF7,#F3F5F8);
  background-attachment:fixed;
}
body.wiz .app__frame{border-radius:26px;border-color:#E9ECF1;box-shadow:0 2px 6px rgba(29,41,57,.05),0 24px 70px -18px rgba(29,41,57,.18)}
body.wiz .btn{border-radius:999px}
body.wiz .nav .btn--p,body.wiz .nav .btn--g{border-radius:999px}
body.wiz .gcard{border-radius:18px}
body.wiz .quote{border-radius:20px}
body.wiz .quote__head{background:linear-gradient(135deg,#FFF4ED,#FFE9DC);border-color:#FFD9C4;border-radius:16px}
body.wiz .gen__stage,body.wiz .vis{border-radius:18px}
body.wiz .seg{border-radius:999px;padding:12px 18px}
body.wiz .layers .seg{border-radius:999px}
body.wiz .ck{border-radius:999px}
body.wiz .rail__s i{border-radius:999px}
body.wiz .pick{border-radius:14px}

/* ビフォーアフター帯（STEP1冒頭・生成素材） */
.baStrip{display:flex;align-items:stretch;gap:12px;margin:2px 0 22px}
.baStrip figure{flex:1;margin:0;position:relative;border-radius:16px;overflow:hidden;box-shadow:0 8px 26px -10px rgba(29,41,57,.25)}
.baStrip img{display:block;width:100%;height:150px;object-fit:cover}
.baStrip figcaption{
  position:absolute;left:0;right:0;bottom:0;padding:16px 10px 8px;text-align:center;
  font-size:11.5px;font-weight:700;color:#fff;
  background:linear-gradient(transparent,rgba(10,14,20,.72));
}
.baArrow{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#F65A1E;flex:0 0 auto}
.baArrow svg{width:26px;height:26px}
.baArrow span{font-size:10px;font-weight:700;letter-spacing:.08em}
@media(min-width:520px){.baStrip img{height:190px}}

/* スロット＝お手本写真 */
body.wiz .shot{border-radius:18px;overflow:hidden}
.shot .eg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.66;transition:opacity .25s,transform .4s}
body.wiz .shot:hover .eg{opacity:.8;transform:scale(1.025)}
.shot .egLabel{
  position:absolute;right:10px;top:10px;z-index:2;font-size:10px;font-weight:700;letter-spacing:.14em;
  background:rgba(255,255,255,.92);color:#64748B;border-radius:99px;padding:3px 10px;
}
.shot .shotCap{
  position:absolute;left:0;right:0;bottom:0;z-index:2;padding:26px 12px 10px;
  background:linear-gradient(transparent,rgba(10,14,20,.66));
  display:flex;flex-direction:column;gap:1px;align-items:flex-start;
}
body.wiz .shot .shotCap b{color:#fff;font-size:14.5px;text-shadow:0 1px 6px rgba(0,0,0,.4)}
body.wiz .shot .shotCap small{color:rgba(255,255,255,.85);font-size:11.5px}
body.wiz .shot.req .shotCap b::after{content:" ★";color:#FFB08A;font-size:11px}
body.wiz .shot{border-style:solid;border-color:#E9ECF1;background:#0E131B}
body.wiz .shot:hover,body.wiz .shot.over{border-color:#F65A1E;background:#0E131B}
/* アップ済みはお手本を消して実写 */
.shot.has .eg,.shot.has .egLabel,.shot.has .shotCap{display:none}

/* 完了画面の仕上がりサマリー */
.doneVis{max-width:430px;margin:18px auto 6px}
.doneVis img{display:block;width:100%;border-radius:18px;box-shadow:0 14px 40px -12px rgba(29,41,57,.3)}
.doneCols{display:flex;justify-content:center;gap:8px;margin-top:12px;flex-wrap:wrap}
.doneCols span{
  display:inline-flex;align-items:center;gap:7px;font-size:11.5px;color:#475569;
  background:#fff;border:1px solid #E4E8EE;border-radius:99px;padding:5px 12px;
}
.doneCols i{width:13px;height:13px;border-radius:50%;outline:1px solid rgba(0,0,0,.08)}


/* ============================================================
   3D/4D ステージ — stickyで常に見える＋時間帯バー
   ============================================================ */
body.wiz .app__frame{overflow:visible}
body.wiz .app__bar{border-radius:26px 26px 0 0}
body.wiz .rail{position:sticky;top:0;z-index:45}
.stickyStage{position:sticky;top:52px;z-index:40;display:flex;flex-direction:column;gap:0;
  border-radius:18px;overflow:hidden;box-shadow:0 14px 44px -12px rgba(29,41,57,.32);
  background:#0D121B;}
.stickyStage .gen__stage{border-radius:0;border:none;box-shadow:none;position:relative;aspect-ratio:4/3.1;background-image:none;min-height:0}
@media(min-width:640px){ .stickyStage .gen__stage{aspect-ratio:16/9.6} }
.stickyStage .gen__stage::before{display:none}
.timeBar{
  display:flex;align-items:center;gap:7px;
  padding:10px 14px calc(10px);
  background:#101722;border-top:1px solid rgba(255,255,255,.07);
}
.timeBar button{
  flex:0 0 auto;font-size:12px;font-weight:700;color:#8CA0BC;background:transparent;
  border:1px solid rgba(255,255,255,.14);border-radius:99px;padding:6px 13px;cursor:pointer;
  font-family:var(--f-jp);transition:all .18s;
}
.timeBar button.on{background:#F65A1E;border-color:#F65A1E;color:#fff}
.timeBar input[type=range]{
  flex:1;min-width:60px;accent-color:#F65A1E;height:24px;
}
body.wiz .gen{display:flex;flex-direction:column;gap:18px}


/* ============================================================
   CONFIGURATOR v2 — タブスライド操作系（最新UI）
   ============================================================ */
/* 中央寄せ（PCでも1カラムのアプリとしてド真ん中） */
body.wiz .app{margin:0 auto}
body.wiz .gen{max-width:560px;margin:0 auto}
body.wiz .shots,body.wiz .baStrip,body.wiz .form,body.wiz .result,body.wiz .grade{max-width:560px;margin-left:auto;margin-right:auto}
body.wiz .result,body.wiz .grade{margin-bottom:0}
body.wiz .step{display:none}
body.wiz .step.on{display:block}

/* ズームボタン（ガラス円） */
.zoomBtns{position:absolute;right:12px;bottom:46px;z-index:5;display:flex;flex-direction:column;gap:8px}
.zoomBtns button{
  width:40px;height:40px;border-radius:50%;border:1px solid rgba(255,255,255,.25);
  background:rgba(12,17,26,.55);backdrop-filter:blur(8px);color:#fff;font-size:18px;line-height:1;
  cursor:pointer;transition:background .15s;
}
.zoomBtns button:active{background:rgba(246,90,30,.8)}

/* 時間帯：セグメントコントロール（白ピルがスライド） */
.timeBar{gap:12px}
.timeSeg{position:relative;display:flex;background:rgba(255,255,255,.08);border-radius:99px;padding:3px}
.timeSeg button{
  position:relative;z-index:2;border:none;background:transparent;color:#B6C2D4;
  font-size:12.5px;font-weight:700;font-family:var(--f-jp);padding:7px 14px;cursor:pointer;border-radius:99px;
  transition:color .2s;
}
.timeSeg button.on{color:#0F172A}
.timeSeg .ti{
  position:absolute;top:3px;bottom:3px;left:3px;width:calc(25% - 1.5px);
  background:#fff;border-radius:99px;box-shadow:0 2px 8px rgba(0,0,0,.35);
  transition:transform .28s cubic-bezier(.3,1.1,.3,1);z-index:1;
}

/* 操作カード */
.ctl{
  background:#fff;border:1px solid #E7EBF0;border-radius:20px;overflow:hidden;
  box-shadow:0 1px 2px rgba(15,23,42,.04),0 12px 36px -14px rgba(15,23,42,.14);
}
.ctlTabs{
  position:relative;display:flex;margin:14px 14px 4px;background:#EEF1F5;border-radius:99px;padding:3px;
}
.ctlTabs button{
  flex:1;position:relative;z-index:2;border:none;background:transparent;border-radius:99px;
  font-size:13.5px;font-weight:700;color:#64748B;font-family:var(--f-jp);padding:10px 0;cursor:pointer;
  transition:color .2s;
}
.ctlTabs button.on{color:#0F172A}
.ctlTabs .ind{
  position:absolute;top:3px;bottom:3px;left:3px;width:calc(33.333% - 2px);
  background:#fff;border-radius:99px;box-shadow:0 2px 10px rgba(15,23,42,.14);
  transition:transform .3s cubic-bezier(.3,1.1,.3,1);z-index:1;
}
.ctlPanels{
  display:flex;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.ctlPanels::-webkit-scrollbar{display:none}
.ctlPanel{
  flex:0 0 100%;scroll-snap-align:start;scroll-snap-stop:always;
  padding:18px 18px 8px;display:flex;flex-direction:column;gap:18px;min-width:0;
}
.ctlNav{
  display:flex;align-items:center;justify-content:space-between;
  padding:10px 14px 14px;
}
.ctlNav button{
  border:none;background:#F1F4F8;color:#334155;font-weight:700;font-size:13px;font-family:var(--f-jp);
  border-radius:99px;padding:11px 20px;cursor:pointer;transition:all .2s;
}
.ctlNav button:disabled{opacity:.35;cursor:default}
.ctlNav button:not(:disabled):active{transform:scale(.96)}
#ctlNext:not(:disabled){background:#0F172A;color:#fff}
.dots{display:flex;gap:6px}
.dots i{width:7px;height:7px;border-radius:50%;background:#D7DEE7;transition:all .25s}
.dots i.on{background:#F65A1E;width:20px;border-radius:99px}

/* セグメント＝モダン化（選択は黒、オレンジはCTAだけ） */
body.wiz .ctl .seg{
  display:inline-flex;align-items:center;gap:8px;
  background:#fff;border:1.5px solid #E2E7EE;color:#334155;border-radius:14px;
  padding:12px 16px;font-weight:600;min-height:48px;
  box-shadow:0 1px 2px rgba(15,23,42,.03);
  transition:all .18s cubic-bezier(.3,.9,.3,1);
}
body.wiz .ctl .seg svg{width:30px;height:17px;flex:none}
body.wiz .ctl .seg:active{transform:scale(.96)}
body.wiz .ctl .seg.on{
  background:#0F172A;border-color:#0F172A;color:#fff;font-weight:700;
  box-shadow:0 6px 16px -6px rgba(15,23,42,.45);
}
body.wiz .ctl .panel__g label{color:#8A93A1;letter-spacing:.18em;font-size:10.5px}
.ctlNote{font-size:12px;color:#94A3B8;margin:0}

/* スライダー（モダン） */
.sld label{
  display:flex;justify-content:space-between;align-items:baseline;
  font-size:13.5px;font-weight:700;color:#334155;margin-bottom:10px;
}
.sld output{font-family:var(--f-num);font-size:14px;color:#F65A1E;font-weight:700}
.sld input[type=range]{
  -webkit-appearance:none;appearance:none;width:100%;height:28px;background:transparent;margin:0;
}
.sld input[type=range]::-webkit-slider-runnable-track{height:6px;border-radius:3px;background:linear-gradient(90deg,#F65A1E var(--f,50%),#E8ECF1 var(--f,50%))}
.sld input[type=range]::-webkit-slider-thumb{
  -webkit-appearance:none;width:26px;height:26px;border-radius:50%;background:#fff;
  border:2.5px solid #F65A1E;box-shadow:0 2px 8px rgba(15,23,42,.25);margin-top:-10px;cursor:pointer;
}
.sld input[type=range]::-moz-range-track{height:6px;border-radius:3px;background:#E8ECF1}
.sld input[type=range]::-moz-range-thumb{width:24px;height:24px;border-radius:50%;background:#fff;border:2.5px solid #F65A1E;box-shadow:0 2px 8px rgba(15,23,42,.25)}

/* 色パネル内の階層タブも黒選択に統一 */
body.wiz .ctl .layers .seg{min-height:40px;padding:9px 14px;border-radius:99px;font-size:12.5px}

/* fix: flex子のmin-width:autoでctlが広がる問題／旧timeBarスタイル衝突 */
body.wiz .gen>*{min-width:0;width:100%;max-width:100%}
.ctl{min-width:0}
.ctlPanels{width:100%}
.timeBar .timeSeg button{border:none;background:transparent;padding:7px 14px}
.timeBar .timeSeg button.on{background:transparent;border:none;color:#0F172A}


/* ============================================================
   SLIDER UI — かたち・色もスライダー形式
   ============================================================ */
.osl .ticks{display:flex;justify-content:space-between;margin-top:6px;padding:0 4px}
.osl .ticks span{font-size:11px;color:#9AA5B1;transition:color .2s,font-weight .2s}
.osl .ticks span.on{color:#F65A1E;font-weight:700}
.swRow{display:flex;gap:12px;flex-wrap:wrap}
.sw{
  flex:1;display:flex;align-items:center;justify-content:space-between;gap:12px;
  background:#fff;border:1.5px solid #E2E7EE;border-radius:14px;padding:13px 16px;cursor:pointer;
  font-size:13.5px;font-weight:700;color:#334155;min-height:48px;
}
.sw input{display:none}
.sw i{
  width:46px;height:28px;border-radius:99px;background:#E2E7EE;position:relative;flex:none;
  transition:background .2s;
}
.sw i::after{
  content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;
  background:#fff;box-shadow:0 1px 4px rgba(15,23,42,.3);transition:transform .22s cubic-bezier(.3,1.2,.3,1);
}
.sw input:checked + i{background:#F65A1E}
.sw input:checked + i::after{transform:translateX(18px)}

/* 色スライダー */
.colorNow{display:flex;align-items:center;gap:13px;margin-bottom:4px}
.colorNow i{
  width:52px;height:52px;border-radius:14px;flex:none;
  outline:1px solid rgba(15,23,42,.14);box-shadow:inset 0 1px 2px rgba(255,255,255,.4),0 3px 10px rgba(15,23,42,.14);
}
.colorNow b{display:block;font-size:15px;color:#0F172A;font-family:var(--f-num);letter-spacing:.03em}
.colorNow small{display:block;font-size:11.5px;color:#94A3B8;margin-top:2px}
.colSld input[type=range]{
  -webkit-appearance:none;appearance:none;width:100%;height:34px;background:transparent;margin:0;
}
.colSld input[type=range]::-webkit-slider-runnable-track{
  height:14px;border-radius:8px;background:var(--trk,#E8ECF1);
  box-shadow:inset 0 1px 2px rgba(15,23,42,.18);
}
.colSld input[type=range]::-webkit-slider-thumb{
  -webkit-appearance:none;width:30px;height:30px;border-radius:50%;
  background:var(--thumbC,#fff);border:3px solid #fff;outline:1.5px solid rgba(15,23,42,.25);
  box-shadow:0 2px 10px rgba(15,23,42,.35);margin-top:-8px;cursor:pointer;
}
.colSld input[type=range]::-moz-range-track{height:14px;border-radius:8px;background:var(--trk,#E8ECF1)}
.colSld input[type=range]::-moz-range-thumb{width:26px;height:26px;border-radius:50%;background:var(--thumbC,#fff);border:3px solid #fff;box-shadow:0 2px 10px rgba(15,23,42,.35)}
.colGroups{display:flex;gap:6px;flex-wrap:wrap;margin-top:2px}
.colGroups button{
  border:none;background:#F1F4F8;color:#64748B;font-size:11px;font-weight:700;font-family:var(--f-jp);
  border-radius:99px;padding:6px 12px;cursor:pointer;
}
.colGroups button.on{background:#0F172A;color:#fff}


/* ============================================================
   Q-FLOW — 広さ・状態の1問ずつヒアリング
   ============================================================ */
.qs{max-width:560px;margin:0 auto}
.qProg{height:5px;border-radius:3px;background:#E8ECF1;overflow:hidden;margin-bottom:10px}
.qProg i{display:block;height:100%;width:0;border-radius:3px;
  background:linear-gradient(90deg,#FF8048,#F65320);transition:width .35s cubic-bezier(.3,.9,.3,1)}
.qNum{font-family:var(--f-num);font-size:11px;letter-spacing:.18em;color:#94A3B8;margin-bottom:14px}
.qCard{
  background:#fff;border:1px solid #E7EBF0;border-radius:20px;padding:24px 20px 22px;
  box-shadow:0 1px 2px rgba(15,23,42,.04),0 12px 36px -14px rgba(15,23,42,.12);
  min-height:280px;animation:qIn .24s ease-out backwards;
}
@keyframes qIn{from{opacity:0;transform:translateX(14px)}to{opacity:1;transform:none}}
.qCard.back{animation-name:qInB}
@keyframes qInB{from{opacity:0;transform:translateX(-14px)}to{opacity:1;transform:none}}
.qCard h3{margin:0 0 4px;font-size:18px;font-weight:900;color:#1B2430;line-height:1.55}
.qCard .qSub{font-size:13px;color:#8A93A1;margin:0 0 20px}
.qOpts{display:flex;flex-direction:column;gap:10px}
.qOpt{
  display:flex;align-items:center;gap:12px;text-align:left;
  background:#fff;border:1.5px solid #E2E7EE;border-radius:14px;padding:15px 16px;
  font-size:15px;font-weight:600;color:#334155;cursor:pointer;font-family:var(--f-jp);
  transition:all .16s;min-height:54px;
}
.qOpt small{display:block;font-weight:400;font-size:11.5px;color:#9AA5B1;margin-top:1px}
.qOpt:active{transform:scale(.98)}
.qOpt.on{border-color:#F65A1E;background:#FFF2EB;color:#C2410C}
.qOpt.on small{color:#C98B66}
.qOpt .ck{width:22px;height:22px;border-radius:50%;border:2px solid #D7DEE7;flex:none;position:relative;transition:all .15s}
.qOpt.on .ck{border-color:#F65A1E;background:#F65A1E}
.qOpt.on .ck::after{content:"✓";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#fff;font-size:13px}
.qOpt.multi .ck{border-radius:7px}
.qBig{display:flex;align-items:baseline;justify-content:center;gap:8px;margin:6px 0 2px}
.qBig b{font-family:var(--f-num);font-size:46px;font-weight:700;color:#F65A1E;font-variant-numeric:tabular-nums}
.qBig span{font-size:15px;color:#64748B;font-weight:700}
.qHint{text-align:center;font-size:11.5px;color:#9AA5B1;margin-top:14px}

/* ============================================================
   JUICE — 操作して楽しいマイクロインタラクション
   ============================================================ */
@keyframes popIn{0%{transform:scale(.96)}55%{transform:scale(1.03)}100%{transform:scale(1)}}
.qOpt.on,.body.wiz .ctl .seg.on{animation:popIn .28s cubic-bezier(.3,1.3,.4,1)}
body.wiz .ctl .seg.on{animation:popIn .28s cubic-bezier(.3,1.3,.4,1)}
.sw input:checked + i::after{animation:popIn .3s cubic-bezier(.3,1.4,.4,1)}
@keyframes thumbPulse{0%{box-shadow:0 2px 10px rgba(15,23,42,.35),0 0 0 0 rgba(246,90,30,.45)}100%{box-shadow:0 2px 10px rgba(15,23,42,.35),0 0 0 14px rgba(246,90,30,0)}}
.colSld input[type=range]:active::-webkit-slider-thumb{animation:thumbPulse .5s ease-out}
.gcard.on{animation:popIn .3s cubic-bezier(.3,1.3,.4,1)}
.rail__s.done i{animation:popIn .35s cubic-bezier(.3,1.4,.4,1)}
.qProg i{background-size:200% 100%;animation:barSheen 2.6s linear infinite;
  background-image:linear-gradient(90deg,#FF8048 0%,#F65320 40%,#FFB08A 50%,#F65320 60%,#FF8048 100%)}
@keyframes barSheen{to{background-position:-200% 0}}
body.wiz .nav .btn--p .ar{display:inline-block;transition:transform .2s}
body.wiz .nav .btn--p:hover .ar{transform:translateX(4px)}
@media (prefers-reduced-motion: reduce){
  .qOpt.on,.gcard.on,.qProg i{animation:none!important}
}

/* サンプル3軒ピッカー */
.sampleRow{display:flex;gap:10px;width:100%}
.sampleB{
  flex:1;border:1.5px solid #E2E7EE;background:#fff;border-radius:14px;overflow:hidden;
  cursor:pointer;padding:0;font-family:var(--f-jp);transition:all .18s;
}
.sampleB:active{transform:scale(.97)}
.sampleB:hover{border-color:#F65A1E}
.sampleB img{display:block;width:100%;height:74px;object-fit:cover}
.sampleB span{display:block;font-size:11.5px;font-weight:700;color:#475569;padding:7px 4px}

/* ============================================================
   STEP2 = 1画面完結（縦スクロール無し・横スライドのみ）
   ============================================================ */
body.wiz .step[data-step="2"].on{
  display:flex;flex-direction:column;
  height:calc(100dvh - 104px);          /* app__bar+rail ぶん */
  padding:10px 14px 96px;               /* 下部固定バーぶん */
  overflow:hidden;
}
body.wiz .step[data-step="2"] .k,
body.wiz .step[data-step="2"] h2,
body.wiz .step[data-step="2"] .lead{display:none} /* 説明はステージ内ヒントに集約 */
body.wiz .step[data-step="2"] .gen{flex:1;min-height:0;display:flex;flex-direction:column;gap:10px}
body.wiz .step[data-step="2"] .stickyStage{position:relative;top:0;flex:0 0 auto}
body.wiz .step[data-step="2"] .gen__stage{aspect-ratio:auto;height:34dvh;min-height:200px}
body.wiz .step[data-step="2"] .ctl{flex:1;min-height:0;display:flex;flex-direction:column}
body.wiz .step[data-step="2"] .ctlTabs{flex:0 0 auto;margin:10px 10px 2px}
body.wiz .step[data-step="2"] .ctlPanels{flex:1;min-height:0}
body.wiz .step[data-step="2"] .ctlPanel{
  overflow-y:auto;                       /* 保険。基本は収まる */
  padding:12px 14px 6px;gap:12px;
}
body.wiz .step[data-step="2"] .ctlNav{flex:0 0 auto;padding:8px 12px 10px}
body.wiz .step[data-step="2"] .sld label{margin-bottom:6px;font-size:12.5px}
body.wiz .step[data-step="2"] .osl .ticks span{font-size:10px}
body.wiz .step[data-step="2"] .swRow .sw{padding:9px 13px;min-height:42px;font-size:12.5px}
body.wiz .step[data-step="2"] .colorNow i{width:40px;height:40px}
body.wiz .step[data-step="2"] .colorNow b{font-size:13px}
body.wiz .step[data-step="2"] .pick{display:none}  /* サマリーは省略して1画面に */
body.wiz .step[data-step="2"] .layers .seg{min-height:34px;padding:7px 11px;font-size:11.5px}
body.wiz .step[data-step="2"] .timeBar{padding:8px 12px}
@media(min-width:700px){
  body.wiz .step[data-step="2"] .gen__stage{height:40dvh}
}

/* step2 中は外周の余白と注記を畳んで完全1画面に */
body.wiz.lock2 .app{padding:0 6px 0}
body.wiz.lock2 .sysnote{display:none}
body.wiz.lock2 .app__frame{border-radius:0 0 18px 18px;border-top:none}
body.wiz.lock2 .app__bar{display:none}
body.wiz .step[data-step="2"].on{height:calc(100dvh - 142px);padding:8px 12px 0}
body.wiz.lock2 .rail{top:0}
body.wiz .step[data-step="2"] .ctlPanels{min-width:0;width:100%}
body.wiz .step[data-step="2"] .stickyStage{min-width:0;width:100%}
body.wiz .step[data-step="2"] .gen{min-width:0;width:100%;max-width:100%}
.gen__stage canvas{max-width:100%!important}

/* マイページ進行ステップ */
.mpSteps{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.mpSteps i{flex:1;height:2px;background:#E4E8EE;min-width:12px}
.mpStep{font-size:12px;font-weight:700;color:#9AA5B1;background:#F1F4F8;border-radius:99px;padding:7px 13px}
.mpStep.done{color:#1FA36B;background:rgba(31,163,107,.1)}
.mpStep.on{color:#fff;background:#F65A1E}

/* ═══ 3D操作性アップデート（人気色チップ・施工前比較） ═══ */
.colQuick{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:2px 0 12px}
.colQuick .cqLb{font-size:10px;font-weight:800;letter-spacing:.12em;color:#94A3B8}
.cqB{width:36px;height:36px;border-radius:50%;border:2.5px solid #FFF;cursor:pointer;flex-shrink:0;
  box-shadow:0 0 0 1.5px #D7DEE8,0 3px 8px rgba(15,23,42,.18);transition:transform .15s}
.cqB:active{transform:scale(.9)}
.cmpB{position:absolute;left:12px;bottom:12px;z-index:6;cursor:pointer;
  background:rgba(15,23,42,.74);color:#FFF;border:1px solid rgba(255,255,255,.28);
  border-radius:99px;padding:8px 15px;font-size:11.5px;font-weight:800;font-family:inherit;backdrop-filter:blur(5px)}
.cmpB.on{background:#F65A1E;border-color:#F65A1E}
