:root{
  --bg:#f5f6f7;--surface:#fff;--sub:#f9fafa;--line:#e3e6e8;--line2:#eef0f1;--line3:#cfd4d8;--chip:#eff1f2;
  --ink:#111518;--ink2:#353c42;--mute:#5f686f;--faint:#757e85;
  --acc:#0e7490;--acc-bg:#e6f3f6;--acc-t:#0b6680;
  --own:#0e7490;--shp:#5b8a1f;--rkt:#bf2a2a;
  --pos:#15803d;--pos-bg:#eaf6ee;--neg:#b42318;--neg-bg:#fdeceb;--warn:#a15c07;--warn-bg:#fdf4e4;
  --mark:#0e7490;--pri:#111518;--r:8px;
  --sh:0 1px 2px rgba(17,21,24,.05);--sh2:0 2px 4px rgba(17,21,24,.06),0 8px 22px -6px rgba(17,21,24,.16);--tip:#111518;
}
.shell{display:grid;grid-template-columns:228px minmax(0,1fr);min-height:100vh;background:linear-gradient(90deg,#15191d 228px,transparent 228px)}
.side{background:#15191d;color:#c9d0d6;padding:16px 12px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}
.brand{display:flex;gap:10px;align-items:center;padding:2px 6px 16px}
.brand .title{color:#fff;font-size:14.5px;line-height:1.3}
.bsub{font-size:11.5px;color:#98a2ab}
.nav{display:grid;gap:2px}
.nav button{display:flex;align-items:center;gap:10px;height:36px;padding:0 10px;border:0;background:none;border-radius:6px;font-size:13.5px;font-weight:600;color:#c9d0d6;text-align:left}
.nav button svg{color:#8d979f}
.nav button:hover{background:#1f252a}
.nav button[aria-selected="true"]{background:#262d33;color:#fff;box-shadow:inset 2px 0 0 #3fb5d3}
.nav button[aria-selected="true"] svg{color:#7fd0e4}
.cnt{margin-left:auto;font-size:11px;font-weight:700;color:#15191d;background:#7fd0e4;border-radius:4px;padding:0 6px}
.side-h{font-size:11px;font-weight:700;letter-spacing:.06em;color:#8d979f;margin:22px 8px 8px}
.chs{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.chs li{display:flex;align-items:center;gap:10px;padding:7px 8px;border-radius:6px}
.chs li div{flex:1;display:grid;line-height:1.35}
.chs b{font-size:12.5px;color:#e8ecef;font-weight:600}.chs span{font-size:11px;color:#98a2ab}
.chm{width:24px;height:24px;border-radius:5px;display:grid;place-items:center;font-size:11px;font-weight:700;color:#fff!important;flex:none}
.chm.own{background:var(--own)}.chm.shp{background:var(--shp)}.chm.rkt{background:var(--rkt)}
.chs i.ok{width:7px;height:7px;border-radius:50%;background:#4ade80}
.side-f{margin-top:auto;display:flex;gap:8px;font-size:11.5px;color:#98a2ab;padding:12px 8px 0;border-top:1px solid #262d33;line-height:1.55}
.side-f svg{margin-top:2px}
.body{min-width:0}
.bar{height:56px;display:flex;align-items:center;gap:14px;padding:0 24px;border-bottom:1px solid var(--line);background:#fff;position:sticky;top:0;z-index:10}
.search{display:flex;align-items:center;gap:8px;height:34px;width:min(420px,100%);border:1px solid var(--line);border-radius:7px;padding:0 10px;color:var(--faint);font-size:13px;background:var(--sub)}
.search span:nth-child(2){flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kbd{font:600 11px "Inter",system-ui;border:1px solid var(--line);border-radius:4px;padding:0 5px;background:#fff}
.today{font-size:12.5px;color:var(--mute)}
.body main{max-width:1240px;margin:0;padding:18px 24px 28px}
.pipe{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:12px;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:var(--sh);overflow:hidden}
.pipe button{border:0;background:none;text-align:left;padding:11px 16px;display:grid;gap:2px;position:relative}
.pipe button+button{border-left:1px solid var(--line2)}
.pipe button:hover{background:var(--sub)}
.pipe button[aria-pressed="true"]{background:var(--acc-bg)}
.pipe button[aria-pressed="true"]::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--acc)}
.pipe .l{font-size:12px;color:var(--mute);font-weight:600;display:flex;align-items:center;gap:6px}
.pipe .l i{width:7px;height:7px;border-radius:50%}
.pipe .v{font:700 22px/1.25 "Inter",system-ui}
.pipe .s{font-size:11.5px;color:var(--mute)}
.g-or{grid-template-columns:minmax(0,1fr) 320px;align-items:start}
.bulk{display:flex;align-items:center;gap:8px;margin:10px 16px 0;padding:6px 6px 6px 12px;border-radius:7px;background:var(--sub);border:1px solid var(--line2);font-size:12.5px;font-weight:600;color:var(--ink2);min-height:42px}
.bulk.on{background:#eef7f9;border-color:#bfe0e8}
.bulk:not(.on) .btn{opacity:.45;pointer-events:none}
.ot td{padding:9px 12px}
.cb{width:36px}
.ck{width:16px;height:16px;border-radius:4px;border:1.5px solid var(--line3);display:grid;place-items:center;background:#fff;color:transparent}
.ck svg{width:11px;height:11px;stroke-width:3}
tr.sel .ck{background:var(--acc);border-color:var(--acc);color:#fff}
tr.row{cursor:pointer}
tr.row:hover td{background:var(--sub)}
tr.sel td{background:#f2f9fb}
tr.cur td{box-shadow:inset 0 1px 0 #bfe0e8,inset 0 -1px 0 #bfe0e8}
tr.cur td:first-child{box-shadow:inset 2px 0 0 var(--acc),inset 0 1px 0 #bfe0e8,inset 0 -1px 0 #bfe0e8}
.on-id{display:grid;line-height:1.35}
.on-id b{font:600 13px "Inter",system-ui}
.on-id span{font-size:11.5px;color:var(--mute)}
.chb{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--ink2)}
.chb i{width:8px;height:8px;border-radius:2px}
.chb.own i{background:var(--own)}.chb.shp i{background:var(--shp)}.chb.rkt i{background:var(--rkt)}
.it{display:flex;align-items:center;gap:9px}
.it img{width:34px;height:34px;border-radius:6px;object-fit:cover;border:1px solid var(--line2);flex:none}
.it div{display:grid;line-height:1.35;min-width:0}
.it b{font-size:12.5px;font-weight:600;max-width:190px;overflow:hidden;text-overflow:ellipsis}
.it span{font-size:11.5px;color:var(--mute)}
.od{position:sticky;top:72px}
.od-h{padding:14px 16px 12px;border-bottom:1px solid var(--line2);display:grid;gap:3px}
.od-h .t{display:flex;align-items:center;gap:8px}
.od-h b{font:700 15px "Inter",system-ui}
.od-sec{padding:12px 16px;border-bottom:1px solid var(--line2)}
.od-sec:last-child{border-bottom:0}
.od-sec h3{font-size:12px;color:var(--mute);font-weight:600;margin-bottom:8px}
.od-it{display:flex;align-items:center;gap:10px;padding:4px 0}
.od-it img{width:40px;height:40px;border-radius:6px;object-fit:cover;border:1px solid var(--line2)}
.od-it div{flex:1;display:grid;line-height:1.35;font-size:12.5px}
.od-it span{color:var(--mute);font-size:11.5px}
.od-sum{display:grid;gap:3px;font-size:12.5px;margin-top:8px;padding-top:8px;border-top:1px dashed var(--line)}
.od-sum div{display:flex;justify-content:space-between}
.od-sum div:last-child{font-weight:700;font-size:13.5px}
.addr{font-size:12.5px;line-height:1.6;color:var(--ink2);display:flex;gap:8px}
.addr svg{color:var(--faint);margin-top:3px}
.tl{list-style:none;margin:0;padding:0;display:grid;gap:0}
.tl li{display:grid;grid-template-columns:16px 1fr auto;gap:10px;font-size:12.5px;position:relative;padding-bottom:10px}
.tl li::before{content:"";position:absolute;left:7px;top:14px;bottom:0;width:1px;background:var(--line)}
.tl li:last-child::before{display:none}
.tl li:last-child{padding-bottom:0}
.tl i{width:15px;height:15px;border-radius:50%;border:1.5px solid var(--line3);background:#fff;margin-top:3px;position:relative;z-index:1}
.tl li.done i{background:var(--acc);border-color:var(--acc)}
.tl li.now i{border-color:var(--acc);box-shadow:inset 0 0 0 3px #fff;background:var(--acc)}
.tl time{font:12px "Inter",system-ui;color:var(--mute)}
/* product */
.g-pr{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);align-items:start}
.pcol{display:grid;gap:12px}
.form{padding:12px 16px 16px;display:grid;gap:14px}
.fl{display:grid;gap:6px;min-width:0}
.lb{font-size:12px;font-weight:600;color:var(--ink2)}
.inp{min-height:36px;border:1px solid var(--line);border-radius:7px;padding:7px 11px;font-size:13px;background:#fff;line-height:1.6}
.inp.ta{line-height:1.75;padding:9px 11px}
.fr3{display:grid;grid-template-columns:1.2fr 1fr .7fr;gap:12px}
.imgs{display:grid;grid-template-columns:repeat(4,88px);gap:10px}
.imgs img,.imgs .add{width:88px;height:88px;border-radius:8px;object-fit:cover;border:1px solid var(--line)}
.imgs img:first-child{box-shadow:0 0 0 2px var(--acc);border-color:#fff}
.imgs .add{display:grid;place-items:center;border-style:dashed;color:var(--faint);border-color:var(--line3)}
.dest{padding:10px 16px 14px;display:grid;gap:8px}
.ds{display:grid;grid-template-columns:28px 1fr auto 40px;gap:12px;align-items:center;border:1px solid var(--line);border-radius:8px;padding:10px 12px}
.ds div{display:grid;line-height:1.4}
.ds b{font-size:13px}.ds span{font-size:11.5px;color:var(--mute)}
.ds .pr{font:600 13px "Inter",system-ui;text-align:right}
.sw{width:36px;height:20px;border-radius:10px;background:var(--line3);position:relative;border:0;padding:0}
.sw::after{content:"";position:absolute;left:2px;top:2px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2);transition:left .15s}
.sw[aria-checked="true"]{background:var(--acc)}
.sw[aria-checked="true"]::after{left:18px}
.chk{list-style:none;margin:8px 0 0;padding:0 16px 12px}
.chk li{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--line2);font-size:13px}
.chk li:last-child{border-bottom:0}
.chk li .c{width:18px;height:18px;border-radius:50%;display:grid;place-items:center;background:var(--pos-bg);color:var(--pos)}
.chk li .c svg{width:12px;height:12px;stroke-width:2.6}
.chk li.ng .c{background:var(--warn-bg);color:var(--warn)}
.chk li .sp{flex:1}
.chk li .sub{font-size:11.5px}
.chk li.ng .sub{color:var(--warn);font-weight:600}
/* sales */
.lg-own{--k:var(--own)}.lg-shp{--k:var(--shp)}.lg-rkt{--k:var(--rkt)}
.h240{height:240px}
.g-sa{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr)}
.g-sa2{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}
.share{display:grid;gap:16px;justify-items:center}
.dn{position:relative;width:148px;height:148px;margin-top:4px}
.dn-c{position:absolute;inset:0;display:grid;place-content:center;text-align:center;line-height:1.3}
.dn-c b{font-size:17px}.dn-c span{font-size:11px;color:var(--mute)}
.shl{width:100%;display:grid;gap:0;border-top:1px solid var(--line2)}
.shl>div{display:grid;grid-template-columns:1fr auto 60px;gap:10px;align-items:center;font-size:12.5px;padding:7px 0;border-bottom:1px solid var(--line2)}
.shl .num{text-align:right}
.pref{padding:8px 16px 14px;display:grid}
.pf{display:grid;grid-template-columns:72px 1fr 52px;gap:10px;align-items:center;font-size:12.5px;padding:6px 0}
.pf .mbar b{background:var(--acc)}
.pf .num{text-align:right}
@media (max-width:1240px){.g-or{grid-template-columns:minmax(0,1fr)}.od{position:static}.hide-md{display:none}}
@media (max-width:1000px){.g-pr,.g-sa,.g-sa2{grid-template-columns:minmax(0,1fr)}}
@media (max-width:900px){
  .shell{grid-template-columns:1fr}
  .side{position:static;height:auto;padding:10px 12px;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:8px}
  .brand{padding:0}
  .side-h,.chs,.side-f{display:none}
  .nav{grid-column:1/-1;grid-auto-flow:column;grid-auto-columns:1fr}
  .nav button{justify-content:center;padding:0 6px;font-size:13px;gap:6px}
  .bar{position:static}
}
@media (max-width:760px){
  .bar{padding:0 12px;height:50px}.today{display:none}
  .body main{padding:12px 12px 22px}
  .pipe{grid-template-columns:repeat(3,minmax(0,1fr))}
  .pipe button{padding:9px 10px}.pipe button:nth-child(4){border-left:0}
  .pipe button:nth-child(n+4){border-top:1px solid var(--line2)}
  .pipe .v{font-size:18px}.pipe .s{display:none}
  .ch .seg{overflow-x:auto;max-width:100%}
  .bulk{flex-wrap:wrap;margin:10px 12px 0}
  .ot th:nth-child(3),.ot td:nth-child(3),.ot th:nth-child(4),.ot td:nth-child(4){display:none}
  .ot td,.ot th{padding:9px 8px}
  .fr3{grid-template-columns:1fr 1fr}
  .imgs{grid-template-columns:repeat(4,minmax(0,1fr))}
  .imgs img,.imgs .add{width:100%;height:auto;aspect-ratio:1}
  .ds{grid-template-columns:24px 1fr auto 38px;gap:8px;padding:9px 10px}
  .head .btn{flex:1;justify-content:center}
}
@media (max-width:900px){.shell{background:none}}

/* /services/ に iframe で埋め込んだとき（is-embedded）は vh を使わない */
.is-embedded .shell{min-height:0}.is-embedded .side{height:auto}
