/* Company app only. Worker pages and the public service sites keep their own shell. */
body.co-app{--ink:#142a3f;--ink2:#42586b;--ink3:#65788a;--line:#dfe7ee;--paper:#f4f7fb;--bg:#fff;--acc:#f15a2b;--accsoft:#fff0e9;--ok:#19734f;--oksoft:#e8f5ee;--bx-blue:#1764d8;--bx-sky:#eaf3fd;font-family:Manrope,"Noto Sans JP",-apple-system,BlinkMacSystemFont,"Hiragino Sans",sans-serif;line-height:1.55;background:var(--paper);padding-bottom:0!important}
body.co-app button,body.co-app input,body.co-app select,body.co-app textarea{font-family:inherit}
body.co-app button,body.co-app a,body.co-app summary{touch-action:manipulation}
body.co-app :focus-visible{outline:3px solid #7eafea;outline-offset:3px}
body.co-app [hidden]{display:none!important}
body.co-app .wrap{max-width:1000px;margin:0 auto!important;padding:24px 20px calc(var(--sab) + 112px)}
body.co-app .top{background:rgba(244,247,251,.96);backdrop-filter:blur(14px);max-width:none;min-height:68px;padding:calc(var(--sat) + 12px) 20px 12px;border-bottom:1px solid rgba(223,231,238,.7);gap:12px}
body.co-app .top .co{font-size:15px;font-weight:700}
body.co-app .back{border-color:var(--line);width:44px;height:44px;flex-basis:44px}
body.co-app .brand i{width:72px;height:36px}
body.co-app h1{font-size:30px;line-height:1.3;letter-spacing:-.04em;margin:0 0 24px;font-weight:800}
body.co-app h2{font-size:15px;color:var(--ink);font-weight:700;letter-spacing:0;margin:28px 0 12px}
body.co-app .card,body.co-app .box2{border:1px solid var(--line);border-radius:20px;box-shadow:0 3px 12px rgba(20,42,63,.025);background:#fff}
body.co-app .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:10px 16px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);font-size:14px;font-weight:700;cursor:pointer;line-height:1.4;text-decoration:none}
body.co-app .btn.pri,body.co-app .big:not(.ghost):not(.ok){background:var(--acc);border-color:var(--acc);color:#fff}
body.co-app .btn.ok,body.co-app .big.ok{background:var(--ok);border-color:var(--ok);color:#fff}
body.co-app .btn.ghost,body.co-app .big.ghost{background:#fff;border:1px solid var(--line);color:var(--ink)}
body.co-app .big{font-size:16px;min-height:54px;border-radius:14px;font-weight:700;cursor:pointer}
body.co-app .field{margin-bottom:18px}
body.co-app .field label{font-size:14px;font-weight:700;color:var(--ink2);margin-bottom:8px}
body.co-app .field input,body.co-app .field select,body.co-app .field textarea{font-size:16px;border:1px solid var(--line);border-radius:12px;min-height:52px;color:var(--ink);background:#fff}
body.co-app .field input:focus,body.co-app .field select:focus,body.co-app .field textarea:focus{border-color:var(--bx-blue);box-shadow:0 0 0 3px #1764d814;outline:none}
body.co-app .field textarea{padding:14px;width:100%;resize:vertical;line-height:1.6}
body.co-app .s{color:var(--ink3);line-height:1.5}
body.co-app .avatar{background:var(--bx-sky);color:var(--bx-blue);font-weight:800;flex-shrink:0}
body.co-app .pill{font-size:12px;font-weight:700;padding:4px 10px;background:#edf1f5;color:var(--ink2)}
body.co-app .pill.open{background:var(--accsoft);color:#ae3c1a}
body.co-app .pill.ok{background:var(--oksoft);color:var(--ok)}
body.co-app .pill.ink{background:var(--ink);color:#fff}
body.co-app .sec2{font-size:17px;margin:24px 0 12px;gap:10px}
body.co-app .sec2 .n{background:#e8edf3;color:var(--ink);min-width:24px;height:24px;font-size:12px}
body.co-app .sec2 .n.acc{background:var(--accsoft);color:#ae3c1a}
body.co-app .next{border-color:var(--line);font-size:15px;border-radius:16px;background:#fff}
body.co-app .ib{width:44px;height:44px;border-radius:12px;border:1px solid var(--line)}
body.co-app .cta{background:rgba(244,247,251,.96);backdrop-filter:blur(12px);z-index:30;border-top:1px solid var(--line);padding:12px 20px calc(var(--sab) + 12px)}
body.co-app .toast{max-width:calc(100vw - 32px);white-space:normal;border-radius:14px;box-shadow:0 8px 28px #142a3f20;text-align:center}
body.co-app .kv{grid-template-columns:100px minmax(0,1fr);padding:14px 0;font-size:14px}
body.co-app .kv .k{font-size:13px;color:var(--ink3)}
body.co-app .money .pay{font-family:Manrope,sans-serif}
body.co-app .money .s{font-size:11px}
.bx-pagehead{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}
.bx-pagehead h1{margin:0!important}
.bx-kicker{font-size:12px;font-weight:700;color:var(--ink3);margin-bottom:7px}
.bx-section{margin:24px 0}
.bx-section>h2{margin-top:0}
.bx-group{border:1px solid var(--line);border-radius:20px;background:#fff;overflow:hidden;margin-bottom:20px}
.bx-row{display:flex;align-items:center;gap:14px;min-height:64px;padding:16px 18px;border-top:1px solid var(--line);color:var(--ink);text-decoration:none}
.bx-row:first-child{border-top:0}
.bx-row>span:first-child,.bx-row>div:first-child{flex:1;min-width:0}
.bx-row small{display:block;font-size:12px;color:var(--ink3);margin-top:3px}
.bx-row .bx-value{margin-left:auto;font-size:14px;color:var(--ink3);text-align:right;overflow-wrap:anywhere}
.bx-row .bx-chevron{width:16px;height:16px;flex:0 0 16px;color:var(--ink3)}
.bx-iconbtn{display:inline-grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--ink);cursor:pointer}
.bx-iconbtn svg{width:20px;height:20px}
.bx-empty{text-align:center;padding:48px 24px;border-radius:20px;background:#fff;border:1px solid var(--line)}
.bx-empty>svg{width:44px;height:44px;color:var(--bx-blue);margin-bottom:16px}
.bx-empty h2,.bx-empty b{display:block;font-size:18px;color:var(--ink);margin:0 0 8px}
.bx-empty p{font-size:14px;color:var(--ink3);margin:0 0 24px}
.bx-empty .btn{margin-top:10px}
.bx-segment{display:flex;gap:4px;background:#e8edf3;padding:5px;border-radius:14px;margin:0 0 24px}
.bx-segment>a,.bx-segment>button{border:0;background:transparent;border-radius:10px;flex:1;min-width:0;min-height:44px;padding:8px 10px;color:var(--ink3);font-size:14px;font-weight:700;text-align:center;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:6px}
.bx-segment>.on,.bx-segment>[aria-selected=true]{background:#fff;box-shadow:0 2px 5px #142a3f0a;color:var(--ink)}
.bx-segment b{min-width:20px;padding:1px 6px;border-radius:20px;background:#dbe3ec;font-size:11px;color:var(--ink2)}
.bx-segment [aria-selected=true] b{background:var(--accsoft);color:#ae3c1a}
.bx-action{display:flex;align-items:center;gap:8px;justify-content:flex-end;flex-wrap:wrap}
.bx-summary{padding:20px;background:#fff;border:1px solid var(--line);border-radius:20px;margin-bottom:20px}
.bx-amount{font-family:Manrope,sans-serif;font-size:32px;line-height:1.2;font-weight:800;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.bx-amount small{font-size:13px;letter-spacing:0;font-weight:600;color:var(--ink3)}
/* Company navigation is styled in genba/_cotab.html for both company shells. */
body.co-app .cotop .sup{border-color:var(--line);min-height:40px;background:#fff;font-size:12px;padding:0 12px}
body.co-app .cotop .cn{font-size:11px;max-width:150px}
/* The conversation scrolls independently; the composer remains in the visible viewport. */
html:has(body.co-app.co-chat){overflow:hidden}
body.co-app.co-chat{height:var(--bx-vh,100dvh);overflow:hidden}
body.co-app.co-chat .bx-chat{position:fixed;top:var(--bx-vtop,0px);left:0;right:0;height:var(--bx-vh,100dvh);display:grid;grid-template-rows:auto minmax(0,1fr) auto;padding-bottom:var(--sab);background:var(--paper);z-index:20}
body.co-app.co-chat .bx-chat-head{min-width:0;background:rgba(255,255,255,.97);border-bottom:1px solid var(--line)}
body.co-app.co-chat .bx-chat-history{overflow:auto;overscroll-behavior:contain;padding:24px 20px;min-height:0;scrollbar-width:thin}
body.co-app.co-chat .bx-composer{background:#fff;border-top:1px solid var(--line);padding:12px 20px;min-width:0}
body.co-app.co-chat .bx-chat .top{position:static;background:transparent;border:0}
body.co-app.co-chat .bx-chat .wrap{padding:0 20px;max-width:900px}
@media(min-width:900px){
 body.co-app .wrap{padding:36px 36px 80px}
 body.co-app .top{padding:20px 36px}
 body.co-app h1{font-size:32px}
 body.co-app.co-chat .bx-chat{left:232px;padding-bottom:0}
 body.co-app.co-chat .bx-chat-history{padding:28px max(32px,calc((100% - 840px)/2))}
 body.co-app.co-chat .bx-composer{padding:16px max(32px,calc((100% - 840px)/2))}
}
@media(max-width:420px){
 body.co-app .wrap{padding-left:16px;padding-right:16px}
 body.co-app .top{padding-left:16px;padding-right:16px}
 body.co-app h1{font-size:27px}
 .bx-pagehead{gap:10px}
 .bx-pagehead>.btn{font-size:12px;padding:10px 12px}
 .bx-segment>a,.bx-segment>button{font-size:13px;padding:8px 5px}
 body.co-app .cotop .cn{max-width:110px}
}
@media(prefers-reduced-motion:reduce){body.co-app *,body.co-app *::before,body.co-app *::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}


.co-app .bx-chat-title{display:flex;align-items:center;gap:12px;min-width:0;width:100%}.co-app .bx-chat-title .back{flex:0 0 auto}.co-app .bx-chat-title h1{font-size:18px;margin:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.co-app .bx-chat-title .avatar{width:36px;height:36px;border-radius:12px;font-size:14px;flex:0 0 auto}.co-app .bx-chat-context{display:block;margin-top:12px;border:1px solid var(--line);background:#f4f8fc;padding:12px 14px;border-radius:14px;overflow-wrap:anywhere}.co-app .bx-chat-context strong{display:block;font-size:13px}.co-app .bx-chat-context small{display:block;font-size:11px;color:var(--ink3);margin-top:4px;line-height:1.5}.co-app .bx-chat-context .pill{margin-left:6px}.co-app .bx-chat-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:10px}.co-app .bx-chat-tools>details{min-width:0}.co-app .bx-chat-tools summary{list-style:none;display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);background:#fff;border-radius:10px;padding:7px 11px;min-height:36px;cursor:pointer;font-size:12px;font-weight:700;color:var(--ink2)}.co-app .bx-chat-tools details[open]{width:100%}.co-app .bx-chat-tools details[open] summary{margin-bottom:8px;background:#edf5fc;border-color:#c9dfee;color:#3171ae}.co-app .bx-chat-tools .tpl{display:flex;gap:8px;overflow-x:auto;padding-bottom:3px}.co-app .bx-chat-tools .tpl button{white-space:nowrap;border:1px solid var(--line);border-radius:10px;background:#f4f8fc;color:var(--ink2);padding:9px 12px;min-height:38px;font-size:12px;font-family:inherit}.co-app .bx-chat-tools .tpl button.on{background:#e9f3fc;border-color:#a9cbe8;color:#245d89}.co-app .bx-chat-tools .prow{display:flex;align-items:center;gap:8px;font-size:12px;margin:0;padding:6px 0}.co-app .bx-chat-tools .prow input{min-width:0;width:140px;border:1px solid var(--line);border-radius:10px;padding:10px;font-size:16px;font-family:inherit}.co-app .bx-compose-line{display:grid;grid-template-columns:minmax(0,1fr) 48px;gap:10px;align-items:end}.co-app .bx-compose-line .ta{min-height:48px;max-height:128px;width:100%;margin:0;border:1px solid var(--line);border-radius:15px;background:#f4f8fc;font:inherit;font-size:16px;padding:12px 14px;line-height:1.4;resize:none;box-sizing:border-box}.co-app .bx-send{width:48px;height:48px;border:0;border-radius:15px;background:var(--acc);color:#fff;display:grid;place-items:center;cursor:pointer}.co-app .bx-send svg{width:21px;height:21px}.co-app .bx-send:disabled{opacity:.45}.co-app .bx-chat-locked{font-size:13px;line-height:1.6;color:var(--ink3);text-align:center}.co-app .bx-chat-locked .big{margin:10px 0 0}.co-app .bx-chat-history .bub{max-width:85%;border-radius:18px;padding:11px 14px;margin-bottom:12px;font-size:14px;line-height:1.6;overflow-wrap:anywhere;white-space:pre-wrap}.co-app .bx-chat-history .bub.me{background:var(--ink);color:#fff;margin-left:auto}.co-app .bx-chat-history .bub.you,.co-app .bx-chat-history .bub.ai{background:#fff;border:1px solid var(--line)}.co-app .bx-chat-history .at{font-family:Manrope,sans-serif;font-size:10px;opacity:.55;margin-top:5px}.co-app .bx-chat-history .sys{align-self:center;font-size:11px;color:var(--ink3);margin:4px 0 14px;text-align:center}.co-app .bx-chat-history .sys small{margin-left:6px}.co-app .bx-chat-history .who{display:flex;align-items:center;gap:5px;font-size:10px;font-weight:800;color:var(--ink3);margin-bottom:5px}.co-app .bx-chat-history .who i{font-style:normal;font-size:9px;background:#edf5fc;padding:2px 4px;border-radius:4px}.co-app .bx-chat-history .prop{display:block;font-size:14px;font-weight:800;margin-top:8px}.co-app .bx-chat-history .acc{display:block;font-size:11px;margin-top:4px;opacity:.7}.co-app .bx-human{display:block;width:100%;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink2);font:inherit;font-size:12px;min-height:36px;margin-top:10px}

body.co-app.co-chat .bx-chat-head{display:block;position:static;max-width:none;margin:0;padding:calc(var(--sat) + 12px) 20px 12px}.co-app .bx-chat-history{display:flex;flex-direction:column}.co-app .bx-chat-history .bub{align-self:flex-start}.co-app .bx-chat-history .bub.me{align-self:flex-end}.co-app .bx-chat-history .bx-empty{margin:auto 0;width:100%}.co-app .bx-chat-history .handoff{border-color:#f7c7b3}.co-app .bx-chat-head .bx-chat-title .back{display:grid;place-items:center}

/* Plans: one purpose per panel, one decision entry per applicant. */
body.co-app.co-plans .hd2{align-items:center;margin:0 0 24px}
body.co-app.co-plans .sec2{margin-top:20px}
body.co-app.co-plans .pr{grid-template-columns:48px minmax(0,1fr);gap:12px;padding:20px;cursor:default;align-items:start}
body.co-app.co-plans .pr .avatar{width:48px;height:48px}
body.co-app.co-plans .pr .nm2{font-size:17px;gap:8px}
body.co-app.co-plans .pr .ln{white-space:normal;font-size:13px;line-height:1.6;margin-top:5px;overflow-wrap:anywhere}
body.co-app.co-plans .pr .bits{font-size:11px;line-height:1.6;color:var(--ink3);margin-top:6px}
body.co-app.co-plans .pr .act{grid-column:2;justify-content:flex-end;margin-top:6px}
body.co-app.co-plans .pr .act .btn{min-height:44px;font-size:13px;padding:10px 14px}
body.co-app.co-plans .pr .act .bx-message{position:relative;width:44px;padding:0;background:#f5f8fc}
body.co-app.co-plans .bx-message b{position:absolute;top:-6px;right:-5px;min-width:18px;border-radius:30px;padding:1px 5px;background:var(--acc);color:white;font-size:10px;border:2px solid #fff}
body.co-app.co-plans .jb .jh{padding:20px;align-items:center}
body.co-app.co-plans .jb .jh .t{font-size:18px}
body.co-app.co-plans .jb .wr{padding:16px 20px;grid-template-columns:44px minmax(0,1fr) auto}
body.co-app.co-plans .jb .wr .n{font-size:15px}
body.co-app.co-plans .jb .wr .pill{font-size:11px;padding:3px 8px;margin-top:5px}
body.co-app.co-plans .jb .jf{padding:16px 20px}
body.co-app.co-plans .ar{padding:20px;grid-template-columns:minmax(0,1fr) auto 14px;gap:14px}
body.co-app.co-plans .ar .t{font-size:16px;white-space:normal}
body.co-app.co-plans .ar .s{margin-top:5px}
body.co-app.co-plans .ar .rt{flex-direction:column;gap:7px;align-items:flex-end}
body.co-app.co-plans .ar .cv{grid-column:3;grid-row:auto}
body.co-app.co-plans .bx-usage{margin-top:28px;border-top:1px solid var(--line)}
body.co-app.co-plans .bx-usage>summary{display:flex;align-items:center;justify-content:space-between;list-style:none;min-height:60px;color:var(--ink3);font-size:13px;margin:0;cursor:pointer}
body.co-app.co-plans .bx-usage[open]>summary{color:var(--ink)}
body.co-app.co-plans .bx-usage-body{padding:8px 0}
body.co-app.co-plans .side2{margin-top:14px}
body.co-app.co-plans .side2 .box2{padding:20px}
body.co-app.co-plans .band.money{font-size:14px;background:#fff;border:1px solid var(--line);color:var(--ink);border-radius:16px;min-height:56px}
body.co-app.co-plans .sh .box{position:relative;padding:20px 24px calc(var(--sab) + 24px);border-radius:24px 24px 0 0;box-shadow:0 -10px 60px #142a3f16}
body.co-app.co-plans .sh .grip{margin-top:-10px;margin-bottom:24px}
body.co-app.co-plans .sh .nm{font-size:22px}
body.co-app.co-plans .sh .pay{font-size:26px}
body.co-app.co-plans .sh .tags{margin:12px 0 20px;line-height:2}
body.co-app.co-plans .sh .btns{margin-top:24px;grid-template-columns:1fr 1fr;gap:12px}
body.co-app.co-plans .sh .btns #shYes{grid-column:2;grid-row:1}
body.co-app.co-plans .sh .btns #shNo{grid-column:1;grid-row:1}
body.co-app.co-plans .sh .kv{grid-template-columns:74px minmax(0,1fr)}
body.co-app.co-plans .bx-sheet-close{position:absolute;top:16px;right:16px;width:40px;height:40px;background:#f4f7fb;border:0}
@media(min-width:720px){body.co-app.co-plans .sh .box{border-radius:24px}}
@media(max-width:480px){body.co-app.co-plans .pr{padding:18px 16px}body.co-app.co-plans .ar{grid-template-columns:minmax(0,1fr) 14px;padding:18px 16px}body.co-app.co-plans .ar .rt{grid-column:1;grid-row:2;flex-direction:row;align-items:center;justify-content:space-between}body.co-app.co-plans .ar .cv{grid-column:2;grid-row:1/3}body.co-app.co-plans .jb .wr{gap:10px;padding:16px}body.co-app.co-plans .jb .wr .ibs{gap:5px}body.co-app.co-plans .jb .wr .ib{width:38px;height:40px}}

body.co-app.co-plans .pr .bx-pending-site{margin-top:8px;font-weight:700;color:var(--ink2)}
body.co-app.co-plans .pr .bx-pending-date{margin-top:2px;font-size:12px}
body.co-app.co-plans .bx-pending-pay{font-family:Manrope,"Noto Sans JP",sans-serif;font-weight:800;font-size:21px;letter-spacing:-.02em;margin-top:10px}
body.co-app.co-plans .bx-pending-pay>span{font-size:11px;color:var(--ink3);font-weight:600;letter-spacing:0;margin-right:6px}
body.co-app.co-plans .pr .bx-preview-note{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;color:var(--ink3);font-size:12px}

/* Keep account and confirmation forms within a readable column. */
body.co-app.co-auth .wrap{max-width:540px}
body.co-app.co-detail .wrap{max-width:680px}
body.co-app.co-terms .wrap{max-width:820px}

/* Support has a separate phone row; keep all four rows on the same content column. */
body.co-app.co-chat .bx-chat:has(.bx-support-contact){--bx-support-gutter:20px;grid-template-rows:auto minmax(0,1fr) auto auto}
body.co-app.co-chat .bx-chat:has(.bx-support-contact)>:is(.bx-chat-head,.bx-chat-history,.bx-support-contact,.bx-composer){padding-inline:var(--bx-support-gutter);min-width:0}
body.co-app.co-chat .bx-chat:has(.bx-support-contact) .bub{box-sizing:border-box;flex-shrink:0;min-width:0}
body.co-app.co-chat .bx-chat:has(.bx-support-contact) .bx-support-contact a{flex-shrink:0}
@media(min-width:900px){body.co-app.co-chat .bx-chat:has(.bx-support-contact){--bx-support-gutter:max(32px,calc((100% - 840px)/2))}}
@media(max-width:380px){body.co-app.co-chat .bx-chat:has(.bx-support-contact) .bx-support-contact{flex-wrap:wrap;gap:8px}body.co-app.co-chat .bx-chat:has(.bx-support-contact) .bx-support-contact a{margin-left:auto}}

/* 2026-11-03 CEO（biz. 改修・段4「強い枠線を減らし、背景のトーン差で階層を出す」）。入れ物（カード・まとまり・空の表示・要約）だけ枠を外す。
   入力欄・ボタン・小さなアイコンの枠は残す（押せる物・打てる物の目印）。地図・サイドバー・書体は触らない */
body.co-app .card,body.co-app .box2,.bx-group,.bx-empty,.bx-summary{border-color:transparent;box-shadow:0 1px 2px rgba(20,42,63,.04),0 6px 20px rgba(20,42,63,.045)}

/* 🔒 2026-11-04 CEO「各ページが独立して出来上がっちゃってる。全ページで統一感を」: 企業画面の主の画面（メニューから開く画面）の型はここ1か所。
   幅 = body.co-app .wrap（1000px・真ん中）／題 = .bx-pagehead の h1（メニューの名前と同じ・上に小見出しを置かない）／
   主のボタン = 題の右の .bx-act（オレンジ）／その下に切り替え（.bx-segment）／中身。画面ごとに幅・題の大きさを書かない。
   PC は左のレールが行き先を持つので、主の画面の「‹」の帯は出さない（body.co-root）。スマホは従来どおり */
body.co-app .bx-pagehead h1{font-size:28px;font-weight:900;letter-spacing:-.02em;line-height:1.25}
body.co-app .bx-pagehead .bx-act{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 20px;border-radius:12px;background:var(--acc);color:#fff;font-weight:800;font-size:14px;text-decoration:none;flex:0 0 auto;border:0}
body.co-app .bx-pagehead .bx-act svg{width:16px;height:16px}
body.co-app .bx-pagehead .bx-titlebox{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:0}
@media (min-width:900px){body.co-app.co-root .top:not(.cotop){display:none}}
@media (max-width:899px){body.co-app .bx-pagehead h1{font-size:24px}body.co-app .bx-pagehead .bx-act{min-height:40px;padding:0 14px;font-size:13px}}
