:root{--bg:#f4f6f9;--card:#fff;--ink:#1a2233;--muted:#56617a;--line:#dde2ea;--line-2:#eef1f5;--brand:#0f2d52;--brand-2:#1d4f8c;--focus:#2f6fd0;--req:#c0392b;--ok:#1d7a4f;--warn:#a86400;--soft:#f7f9fc}
*{box-sizing:border-box}
/* メニューの位置を固定・その2 (Hyde 2026-11-06): Windows などスクロールバーが場所を取るブラウザでは、縦に長い画面だけスクロールバーが出て、その分（約15〜17px）画面の幅が狭くなり、メニューが左右に動いていた。スクロールバーの場所をどの画面でも先に取っておく。対応していない古いブラウザはスクロールバーを常に出す */
html{scrollbar-gutter:stable}
@supports not (scrollbar-gutter:stable){html{overflow-y:scroll}}
/* 業務画面の見やすさ (2026-11-01): お客様フォームと同じ文字・見出し・入力欄にそろえる */
body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.75 "Noto Sans JP",system-ui,sans-serif;-webkit-text-size-adjust:100%}
header{background:var(--brand);color:#fff;padding:12px 16px}
header .inner,main{max-width:1040px;margin:0 auto}
/* メニューの位置を固定 (Hyde 2026-11-04): サポーターポータルの上の帯（ロゴ・メニュー・名前）と管理のタブは、どの画面でも同じ幅。本文の幅（一覧は広い・申込詳細は中くらい）が変わってもメニューは動かない。お客様の画面の帯は今までどおり */
header.portal .inner{max-width:1280px}
/* 上のメニューは PC では画面の上に貼り付く (Hyde 2026-11-06)：下までスクロールしてもメニューから移れるので、ダッシュボードの業務メニューはなくした。
   スマホではメニューが3段になって画面を取りすぎるので貼り付けない。--hdr＝貼り付いた帯の高さ（申込詳細のタブ、ページ内リンクの位置をその下に） */
/* ポイントの帯 (Hyde 2026-11-07) はメニューのすぐ下に貼り付く（スマホでは帯だけが画面の上に残る）。--hdr-menu＝貼り付いたメニューの高さ、
   --hdr-pts＝ポイントの帯の高さ（帯のない方は0）、--hdr＝その合計 */
:root{--hdr-menu:0px;--hdr-pts:0px;--hdr:calc(var(--hdr-menu) + var(--hdr-pts))}
html:has(.ptstrip){--hdr-pts:46px}
@media (min-width:900px){html:has(.ptstrip){--hdr-pts:40px}}
@media (min-width:1000px){
  :root{--hdr-menu:56px}
  header.portal{position:sticky;top:0;z-index:50}
}
html:has(header.portal){scroll-padding-top:var(--hdr)}
header .inner{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
header a{color:#fff;text-decoration:none}
.brand{font-weight:700;letter-spacing:.04em}
nav{display:flex;gap:18px;align-items:center}
nav form{margin:0}
main{padding:24px 16px 64px}
h1{font-size:21px;line-height:1.45;margin:0 0 14px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
h2{font-size:17px;line-height:1.5;margin:0 0 14px}
.card>h2:first-child,.card>h1:first-child{padding-left:10px;border-left:4px solid var(--brand-2)}
h3{font-size:15.5px;margin:20px 0 8px}
a{color:var(--brand-2)}
.card{background:var(--card);border:1px solid var(--line);border-radius:10px;padding:22px 24px;margin-bottom:18px;overflow-x:auto;box-shadow:0 1px 2px rgba(15,45,82,.04)}
.card>p.muted:not(.small){font-size:14px}
.card.ok{border-color:#9fd4b7;background:#f1faf5}
.narrow{max-width:380px;margin:60px auto}
.narrow label{display:block;margin-bottom:12px}
.narrow button{width:100%}
label{font-size:13px;color:var(--muted);font-weight:500}
input{display:block;width:100%;font:inherit;font-size:15px;font-weight:400;padding:9px 12px;border:1px solid #cfd6e0;border-radius:6px;margin-top:4px;color:var(--ink);background:#fff}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--focus);box-shadow:0 0 0 3px rgba(47,111,208,.18)}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid rgba(47,111,208,.45);outline-offset:2px}
.row{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}
.row .grow{flex:1;min-width:220px}
.row form{margin:0}
button{font:500 14.5px "Noto Sans JP",system-ui,sans-serif;border-radius:6px;padding:9px 18px;min-height:40px;cursor:pointer;border:1px solid var(--brand-2)}
button.main{background:var(--brand-2);color:#fff}button.main:hover{background:var(--brand)}
button.sub{background:#fff;color:var(--brand-2)}button.sub:hover{background:#f0f5fc}
button.danger{background:#fff;color:var(--req);border-color:var(--req)}
button.small{padding:3px 12px;font-size:13px;min-height:30px}
button.link{background:none;border:0;color:#fff;padding:0;min-height:0;text-decoration:underline}
.card button.link{color:var(--brand-2)}
form.inline{display:inline;margin-left:8px}
form.inline.reveal{margin-left:0}form.inline.reveal select{display:inline-block;width:auto;max-width:100%;margin:4px 8px 4px 0}
table{width:100%;border-collapse:collapse}
th,td{text-align:left;padding:9px 10px;border-bottom:1px solid var(--line);vertical-align:top}
table.list{font-size:14px}
table.list th{font-size:12.5px;color:var(--muted);font-weight:500;white-space:nowrap;background:var(--soft);border-bottom-color:#d3dae4}
table.list tr:hover>td{background:#f8fafd}
table.list a{text-decoration:none;font-weight:500}table.list a:hover{text-decoration:underline}
table.kv th{width:240px;font-weight:500;color:var(--muted);background:#fafbfc;font-size:14px}
.badge{display:inline-block;font-size:12px;line-height:1.6;font-weight:700;border-radius:4px;padding:1px 8px;background:#e7ebf1;color:var(--muted);white-space:nowrap;vertical-align:1px}
.badge.ok{background:#ddf3e7;color:var(--ok)}.badge.warn{background:#fff1d6;color:var(--warn)}
.meta{display:grid;grid-template-columns:150px 1fr;gap:6px 16px;margin:0 0 14px}
.meta dt{color:var(--muted);font-size:14px}.meta dd{margin:0;min-width:0}
code{background:#eef1f6;padding:2px 6px;border-radius:4px;font-size:13px;word-break:break-all}
.secret{color:var(--req);letter-spacing:.08em}
.sig{max-width:100%;border:1px dashed var(--line);border-radius:6px}
.err{color:var(--req)}.muted{color:var(--muted)}
@media (max-width:600px){table.kv th{width:auto}.meta{grid-template-columns:1fr}}
select{display:block;width:100%;font:inherit;font-size:15px;font-weight:400;padding:9px 10px;border:1px solid #cfd6e0;border-radius:6px;margin-top:4px;color:var(--ink);background:#fff}
.row select{width:auto;min-width:200px}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px 16px;margin-bottom:12px}
.grid label.wide{grid-column:1/-1}@media (min-width:700px){.grid label.op{grid-column:span 2}}.grid [hidden]{display:none}
label small{display:block;margin-top:4px;font-size:12.5px;font-weight:400}
label.check{display:flex;gap:8px;align-items:center;margin-bottom:12px;font-size:14px;color:var(--ink);font-weight:400}
label.check input{width:auto;margin:0}
.who{opacity:.8;font-size:13px}
.okmsg{color:var(--ok)}
.narrow p{margin-top:0}
.docs{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}
.doclabel{font-weight:500;margin-bottom:6px}.doclabel .muted{font-weight:400;font-size:12.5px;margin-left:4px}
img.doc{max-width:100%;max-height:260px;border:1px solid var(--line);border-radius:6px;display:block}
.is-staff .agent-only{display:none}
table.perms td.c,table.perms th{text-align:center}table.perms td:first-child,table.perms th:first-child{text-align:left}
table.perms input{display:inline;width:auto;margin:0}
/* 組織図: nested lists drawn top-down with connector lines */
.org{overflow-x:auto;padding:8px 0 4px;--ind:22px;--tick:28px}
.org ul{display:flex;justify-content:center;padding:20px 0 0;margin:0;position:relative}
.org>ul{padding-top:0}
.org li{list-style:none;position:relative;padding:20px 6px 0;display:flex;flex-direction:column;align-items:center}
.org>ul>li{padding-top:0}
.org li::before,.org li::after{content:"";position:absolute;top:0;width:50%;height:20px;border-top:1px solid #9aa6b8}
.org li::before{right:50%}.org li::after{left:50%;border-left:1px solid #9aa6b8}
.org li:first-child::before,.org li:last-child::after{border:0}
.org li:last-child::before{border-right:1px solid #9aa6b8;border-radius:0 6px 0 0}
.org li:first-child::after{border-radius:6px 0 0 0}
.org li:only-child::before,.org li:only-child::after{display:none}
.org li:only-child{padding-top:20px}
.org>ul>li::before,.org>ul>li::after{display:none}
.org ul ul::before{content:"";position:absolute;top:0;left:50%;height:20px;border-left:1px solid #9aa6b8}
.o-card{border:1px solid var(--line);border-top:3px solid var(--brand-2);border-radius:6px;background:#fff;padding:8px 12px;min-width:130px;max-width:190px;text-align:center;line-height:1.45}
.o-card.root{border-top-color:var(--brand);background:var(--brand);color:#fff}
.o-card.me{box-shadow:0 0 0 2px #b9d0ee}
.o-card.off{opacity:.55}
.o-name{font-weight:700;font-size:14px}.o-corp{font-size:12px;color:var(--muted)}
.o-stat{font-size:12px;color:var(--muted);margin-top:2px}.o-note{font-size:12px;color:var(--warn)}
/* ダッシュボード */
/* 件数のタイル（契約・保全の一覧の上、窓口の割り出し）：縦幅を詰め、見出しも太字に (Hyde 2026-11-08 「タイルがでかすぎる」
   「縦幅の問題」「確認事項ありとかのタイトルも太字に」)。スマホでは2列にして、見出しの右に件数を置く */
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px 12px;margin-bottom:14px}
.tiles:has(> .tile:nth-child(6)){grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
.tiles:has(> .tile:nth-child(7)){grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.tile{display:flex;flex-direction:column;gap:1px;background:#fff;border:1px solid var(--line);border-left:4px solid var(--brand-2);border-radius:8px;padding:7px 12px;line-height:1.4;text-decoration:none;color:var(--ink)}
.tile:hover{border-color:var(--brand-2)}
.tile.alert{border-left-color:var(--warn);background:#fffaf0}
.tile .tk{font-size:13px;font-weight:700}
.tile .tn{font-size:20px;font-weight:700;line-height:1.2}
@media (max-width:600px){
  .tiles,.tiles:has(> .tile:nth-child(6)),.tiles:has(> .tile:nth-child(7)){grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .tile{flex-direction:row;align-items:center;justify-content:space-between;gap:8px;padding:6px 10px}
  .tile .tk{font-size:12.5px;line-height:1.35}
  .tile .tn{font-size:18px;white-space:nowrap}
}
.t-label{font-size:12px;color:var(--muted)}.t-num{font-size:26px;font-weight:700;line-height:1.3}.t-num small{font-size:12px;font-weight:500;margin-left:2px}
.t-note{font-size:12px;color:var(--muted)}
.menu{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.menu-item{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;gap:0 10px;align-items:center;border:1px solid var(--line);border-radius:8px;padding:12px 14px;text-decoration:none;color:var(--ink);position:relative}
a.menu-item:hover{border-color:var(--brand-2);background:#f7faff}
.menu-item .m-no{grid-row:span 2;font-size:20px;font-weight:700;color:var(--brand-2)}
.menu-item .m-title{font-weight:700}.menu-item .m-note{font-size:13px;color:var(--muted);line-height:1.55}
.menu-item.off{background:#fafbfc}.menu-item.off .m-no,.menu-item.off .m-title{color:var(--muted)}
.menu-item .badge{position:absolute;top:10px;right:10px}
.filters{margin-bottom:4px}.filters a{align-self:center}
/* 契約・保全の一覧の絞り込み (Hyde 2026-11-06「二段構えじゃなくて一段にしてほしい」)。PC（1180px以上）は1行に並べる：
   選択欄は中身の長さに合わせて縮み（最大240px、最低は項目名の幅か110px）、余った幅は検索欄へ。項目名は折り返さない。
   それより狭い画面は折り返して各行を幅いっぱいにそろえ、スマホは選択欄を2列、検索とボタンはそれぞれ1行。
   1行に並ぶので、選択欄・検索欄・ボタンの高さをそろえ、「解除」もボタンの高さの真ん中に置く */
.filters.oneline{gap:10px 12px}
.filters.oneline>label{flex:1 1 170px;white-space:nowrap}
.filters.oneline>label.grow{flex:2 1 260px}
.filters.oneline select{width:100%;min-width:110px}
.filters.oneline select,.filters.oneline input,.filters.oneline>button{height:44px}
.filters.oneline input{padding-top:0;padding-bottom:0}
.filters.oneline>button,.filters.oneline>a{flex:none}
.filters.oneline>a{align-self:flex-end;line-height:44px;margin-left:2px}
@media (min-width:1180px){
  .filters.oneline{flex-wrap:nowrap}
  .filters.oneline>label{flex:0 1 auto}
  .filters.oneline>label.grow{flex:1 1 0}
  .filters.oneline select{max-width:240px}
}
@media (max-width:600px){
  .filters.oneline>label{flex:1 1 calc(50% - 6px)}
  .filters.oneline>label.grow{flex:1 1 100%}
  .filters.oneline>button{flex:1 1 auto}
}
/* 責任者の組織 (Hyde 2026-11-07): the line under the 契約 filters — what the organization shown holds, and the user's
   choice of the organization the list opens on. The buttons stay beside the text and wrap as a whole on a phone. */
.filters.oneline select[name=org]{min-width:170px}
.orgline{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:4px 0 8px;line-height:1.6}
.orgline form.inline{margin:0}
.orgline .o-def strong{white-space:nowrap}.orgline .o-def form.inline{margin-left:8px}
.orgline button{white-space:normal;text-align:left}
.small{font-size:12.5px;font-weight:400}
td.soon{color:var(--warn);font-weight:500}
.badge.info{background:#e1ecfa;color:var(--brand-2)}.badge.danger{background:#fbe3e0;color:var(--req)}
a.sort{color:inherit;text-decoration:none;white-space:nowrap}a.sort:hover,a.sort.on{color:var(--brand-2)}
table.statuses input,table.statuses select{margin:0}table.statuses input.num{width:80px}
table.statuses input[type=checkbox]{display:inline;width:auto}
.card.warnbox{border-color:#f0c987;background:#fffaf0}.warnbox ul{margin:6px 0 0;padding-left:20px}
a.button{display:inline-block;font:500 14px "Noto Sans JP",sans-serif;border-radius:6px;padding:10px 18px;background:var(--brand-2);color:#fff;text-decoration:none}
.narrow a.button{display:block;text-align:center}
.steps{padding-left:1.4em}.steps li{margin-bottom:10px}
p.ok{color:var(--ok);font-weight:500}p.warn{color:var(--warn);font-weight:500}
textarea{width:100%;box-sizing:border-box;font:13px/1.5 ui-monospace,monospace;padding:8px;border:1px solid var(--line,#ccd);border-radius:6px}
td.warn{color:var(--warn);font-weight:600}
div.warnbox{border:1px solid #f0c987;background:#fffaf0;border-radius:6px;padding:10px 14px;margin:12px 0}div.warnbox p{margin:4px 0}
table.rep{margin:8px 0}table.rep th{white-space:nowrap;width:7em}
.narrow button.small{width:auto;padding:3px 10px;margin-left:6px}
/* 転記画面の項目 (Hyde 2026-11-07「縦の幅が太すぎる」「下に長すぎる」): 申込詳細の「お申込み内容」と同じ並び。欄ごとに見出しの帯、
   PC では2項目ずつ横に並べ、項目名の右に入力欄。「お客様の入力」以外の出どころ（要入力・AI 読み取り・固定値など）は項目名の横の札。
   入力欄のない項目（チェック・マイナンバー・書類）は1行分の高さ。複数選択と長い値は1行を使う。スマホは1項目ずつ */
.tf-legend{margin:0 0 10px}
.tf-secs .fsec h3{margin-bottom:2px}
.tf-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px}
.tf-it{display:grid;grid-template-columns:minmax(7em,40%) minmax(0,1fr);gap:10px;padding:5px 4px;border-bottom:1px solid var(--line-2);align-items:start;min-width:0}
.tf-it.wide{grid-column:1/-1;grid-template-columns:minmax(7em,calc(20% - 5.6px)) minmax(0,1fr)}
.tf-lb{display:flex;flex-wrap:wrap;align-items:center;gap:2px 6px;min-height:34px;color:var(--muted);font-size:13.5px;line-height:1.45;overflow-wrap:anywhere}
.tf-lb .badge{margin-left:auto;font-size:11.5px;padding:0 6px}
.tf-it.txt .tf-lb{min-height:0}
.tf-v{min-width:0;font-size:14px;line-height:1.6}
.tf-v input:not([type=checkbox]),.tf-v select,.tf-v textarea{display:block;width:100%;font:inherit;font-size:14px;line-height:20px;padding:6px 10px;margin:0;border:1px solid var(--line);border-radius:6px}
.tf-v input:not([type=checkbox]),.tf-v select{height:34px}
.tf-v textarea{line-height:1.5}
.tf-v label.opt{display:block;font-size:13.5px;color:var(--ink);line-height:1.6}
.tf-it.wide .tf-v label.opt{display:inline-block;margin-right:18px}
.tf-v label.opt input{display:inline;width:auto;margin:0 6px 0 0;vertical-align:-2px}
.tf-v>.muted.small{line-height:1.5;margin-top:3px}
/* A date whose 「記載なし」 box is ticked (Hyde 2026-10-30): greyed out, as on Avenue's form */
.tf-it.off{background:#eef1f5}
.tf-it.off .tf-lb{color:#9aa3b2}
.tf-v input:disabled{background:#e3e7ee;color:#8a94a3;border-style:dashed;cursor:not-allowed}
@media (max-width:760px){
  .tf-grid{grid-template-columns:1fr}
  .tf-it,.tf-it.wide{grid-template-columns:minmax(6.5em,38%) minmax(0,1fr);gap:8px;padding:5px 0}
  .tf-lb{font-size:12.5px}
}
.soon{color:var(--warn);font-weight:600}
/* 進み具合 in the request list (sprint 3) */
.prog{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.prog .bar{display:inline-block;width:48px;height:6px;border-radius:3px;background:linear-gradient(90deg,var(--brand-2) var(--p),#e1e6ee var(--p))}
.prog + .small{display:block}
/* The consent wording as agreed (同意文面の版) */
.consent-text{border:1px solid var(--line);border-radius:6px;padding:12px 16px;background:#fafbfc;font-size:13.5px}
.consent-text .card{border:0;padding:0;margin:0 0 14px;box-shadow:none;background:none}
.consent-text input,.consent-text button{display:none}
.consent-text table.terms-table{width:100%;border-collapse:collapse;margin:4px 0 10px;font-size:12.5px;background:#fff}
.consent-text .terms-table th,.consent-text .terms-table td{border:1px solid var(--line);padding:5px 7px;vertical-align:top;text-align:left}
.consent-text .terms-table th{background:#f0f3f7;font-weight:600}
/* 2段階認証 */
.twofa{max-width:560px;margin:24px auto}
.twofa form.row{margin:10px 0}.twofa form.row input{width:150px}
.steps{padding-left:20px}.steps li{margin-bottom:12px}
.qr{margin:10px 0;line-height:0}.qr svg{border:1px solid #ddd}
code.key{display:block;font-size:13px;white-space:nowrap;overflow-x:auto;margin-top:6px}
ul.recovery{display:grid;grid-template-columns:1fr 1fr;gap:6px;list-style:none;padding:0;font-size:16px}
.ok-note{color:var(--ok);font-weight:600}
/* 写真AIの比較 */
.compare td{vertical-align:top;min-width:150px}.compare td.diff{background:#fff6e0}
.compare img.thumb{width:90px;height:auto;border:1px solid var(--line);border-radius:4px}
ul.issues{margin:0;padding-left:16px;font-size:12px}
a.button.danger{background:#fff;color:var(--req);border:1px solid var(--req)}
table.list a.del{color:var(--req);font-size:13px}
/* 一覧: 氏名・日時は折り返さない。列が足りない狭い画面ではカードごと横スクロールする */
table.list td.nw,table.list span.nw{white-space:nowrap}
table.list td.corp{min-width:9em}
/* 一覧のある画面は PC で横幅を広げ、法人名などを1行に収める */
body:has(table.list):not(:has(.case)) main:not(.next){max-width:1280px}
table.list th,table.list td{padding:8px}
/* スマホは法人名・メールアドレスを通常どおり折り返す */
@media (max-width:600px){table.list td.corp.nw,table.list td.corp span.nw,table.list td.mail span.nw{white-space:normal}}
/* メニュー: 狭い画面では項目ごと次の行へ送り、文字単位で縦に折り返さない */
nav{flex-wrap:wrap;row-gap:8px}nav a,nav button{white-space:nowrap}
@media (max-width:600px){nav{gap:8px 14px}}
/* お客様の「今後のお手続き」画面: PC は流れと貼り付け欄を左右に、スマホは縦1列 */
main.next{max-width:1040px}
.next-head{margin:8px 0 20px}
.next-head h1{font-size:22px;margin-bottom:6px}
.next-head p{margin:4px 0}
/* 貼り付けが終わるまでは次の手順を促し（黄）、すべて受け取ったら「閉じてよい」（緑）(Hyde 2026-11-01) */
.next-note{border-radius:8px;padding:12px 16px;margin:12px 0 0;max-width:720px}
.next-note p{margin:2px 0}
.next-note.go{background:#fff8e6;border:1px solid #f0d9a0}
.next-note.done{background:#f1faf5;border:1px solid #9fd4b7}
.next-grid{display:grid;gap:20px;align-items:start}
.next .card{padding:22px 24px;margin:0;overflow:visible}
.next .steps{list-style:none;counter-reset:st;padding:0;margin:0 0 12px}
.next .steps>li{counter-increment:st;position:relative;padding:0 0 16px 44px;margin:0}
.next .steps>li::before{content:counter(st);position:absolute;left:0;top:1px;width:30px;height:30px;border-radius:50%;background:var(--brand-2);color:#fff;font-weight:700;display:flex;align-items:center;justify-content:center}
.next .steps>li:not(:last-child)::after{content:"";position:absolute;left:14px;top:36px;bottom:4px;border-left:2px solid #d5deea}
.next .steps p{margin:0}
.next .steps strong{font-size:15px}
.next .steps form{margin-top:8px}
.next label.opt{display:flex;gap:8px;align-items:flex-start;font-size:14px;color:var(--ink);margin:6px 0;padding:10px 12px;border:1px solid var(--line);border-radius:6px;cursor:pointer}
.next label.opt input{margin-top:5px;width:auto;flex:none}
.next .steps form button{margin-top:6px}
.next .paste label{display:block;margin-bottom:14px;font-size:13px}
.next .paste textarea,.next .paste input{margin-top:4px}
.next .paste input{width:100%;padding:9px 10px;border:1px solid var(--line);border-radius:6px;font:inherit}
.next .paste button{width:100%;padding:12px;font-size:15px}
.next .small{font-size:12.5px}
@media (min-width:900px){
  .next-grid{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}
  .next .paste{position:sticky;top:16px}
}
@media (max-width:600px){
  main.next{padding:14px 12px 40px}
  .next .card{padding:16px 14px}
  .next .steps>li{padding-bottom:12px}
  .next-head h1{font-size:19px}
  .next .paste textarea,.next .paste input{font-size:16px}
  .next .steps form button{width:100%;padding:12px}
}
/* One paste box per plan on the customer's next-steps page (2026-10-30) */
.slots{list-style:none;padding:0;margin:0 0 8px}
.slots .slot{margin:0 0 12px}
.slots .slot.done{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 12px;border:1px solid var(--line,#dfe3ea);border-radius:6px;background:#f6faf7;font-size:14px}
.slots .paste-status{margin:4px 0 0}
/* メニュー (Hyde 2026-10-30): 主な画面だけを並べ、通知設定・アカウント・ログアウトは名前のメニューへ、システム管理者の画面は「管理」のタブへ */
nav a{opacity:.85;padding:2px 0;border-bottom:2px solid transparent}
nav a:hover,nav a.on{opacity:1}
nav a.on{border-bottom-color:#fff;font-weight:700}
/* 選んだ項目が太字になっても幅が変わらないよう、同じ文字を太字・透明・高さ0で下に置き、太字の幅を最初から取っておく (Hyde 2026-11-04) */
header nav a[data-label],.subnav a[data-label],.ctabs a[data-label]{display:inline-flex;flex-direction:column;align-items:center}
header nav a[data-label]::after,.subnav a[data-label]::after,.ctabs a[data-label]::after{content:attr(data-label);height:0;overflow:hidden;visibility:hidden;font-weight:700;pointer-events:none;user-select:none}
details.me{position:relative}
details.me summary{cursor:pointer;list-style:none;padding:3px 10px;border:1px solid rgba(255,255,255,.4);border-radius:14px;white-space:nowrap;font-size:13px}
details.me summary::-webkit-details-marker{display:none}
details.me summary::after{content:"";display:inline-block;margin-left:6px;border:4px solid transparent;border-top-color:#fff;vertical-align:-2px}
details.me[open] summary{background:rgba(255,255,255,.12)}
details.me .pop{position:absolute;right:0;top:calc(100% + 6px);z-index:10;min-width:160px;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 6px 20px rgba(15,45,82,.18);padding:6px 0;display:flex;flex-direction:column}
details.me .pop a,details.me .pop button.link{display:block;width:100%;text-align:left;color:var(--ink);opacity:1;border:0;padding:8px 16px;text-decoration:none;font-size:14px;font-weight:400}
details.me .pop a:hover,details.me .pop button.link:hover{background:var(--bg)}
details.me .pop form{border-top:1px solid var(--line);margin-top:4px;padding-top:4px}
.subnav{background:#fff;border-bottom:1px solid var(--line);padding:0 16px}
.subnav .inner{max-width:1280px;margin:0 auto;display:flex;gap:4px;overflow-x:auto}
.subnav a{padding:10px 12px;color:var(--muted);text-decoration:none;white-space:nowrap;border-bottom:2px solid transparent}
.subnav a:hover{color:var(--ink)}
.subnav a.on{color:var(--brand);border-bottom-color:var(--brand);font-weight:700}
/* スマホ: 名前のメニューはロゴの行の右端に置き、管理のタブは2行に折り返す */
header .inner{position:relative}
@media (max-width:600px){details.me{position:absolute;top:-2px;right:0}.subnav{padding:0 8px}.subnav .inner{flex-wrap:wrap;gap:0}.subnav a{padding:8px 9px}}
/* 転記前のチェック (2026-10-30) */
ul.checks{list-style:none;padding:0;margin:8px 0 0}
ul.checks li{margin:6px 0;line-height:1.6}
ul.ainotes{margin:4px 0 0;padding-left:1.2em}ul.ainotes li{margin:2px 0;line-height:1.6}
/* 送信済みの公式フォーム (2026-11-01): 緑の印だけを残し、ほかはグレーにする（対応することはない） */
.card.checks-done{background:var(--soft);border-color:var(--line);box-shadow:none;color:var(--muted)}
.card.checks-done>h2:first-child{display:flex;align-items:center;flex-wrap:wrap;gap:8px;color:var(--muted);border-left-color:var(--ok)}
.done-mark{display:inline-flex;align-items:center;justify-content:center;flex:none;width:24px;height:24px;border-radius:50%;background:var(--ok);color:#fff;font-size:14px;line-height:1;font-weight:700}
.card.checks-done .done-lead{margin:0 0 12px;color:var(--ok);font-weight:600}
.card.checks-done .meta{margin:0}.card.checks-done .meta dd{color:var(--muted)}
/* 送信済みになる前の実行の記録 (2026-11-01): 送信済みの緑のカードの下にたたみ、開くまで目立たせない */
/* 「Avenue の画面で送信した場合」(Hyde 2026-11-13「もう少しだけ目立たせたい」): 薄い青の枠と背景、見出しは太字 */
.sent-elsewhere{margin-top:14px;border:1px solid #c9d6ea;border-radius:8px;background:#f3f7fd}
.sent-elsewhere>summary{cursor:pointer;padding:9px 14px;font-weight:700;font-size:14.5px;color:var(--brand-2)}
.sent-elsewhere>summary:hover{background:#e9f0fa;border-radius:8px}
.sent-elsewhere[open]>summary{border-bottom:1px solid #dbe4f1;border-radius:8px 8px 0 0}
.sent-elsewhere .mark-sent{padding:4px 14px 12px}
.past-run{margin-top:14px;border-top:1px solid var(--line);padding-top:10px;color:var(--muted)}
.past-run>summary{cursor:pointer;font-size:14px}
.past-body{margin-top:8px;font-size:14px;color:var(--ink)}.past-body>p:first-child{margin-top:0}
.past-body .card{background:#fff;border-color:var(--line);box-shadow:none;margin:8px 0 0;padding:14px 16px}
.past-body .card>h2:first-child{font-size:15px;border-left-color:var(--line)}
/* Avenue B2B 最終送信 (2026-10-30) */
.menu-item:has(> .badge){padding-bottom:34px}.menu-item>.badge{top:auto;bottom:10px}
.b2b-pick{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.b2b-pick select{width:100%}
.narrow .b2b-pick{grid-template-columns:1fr}
table.b2b-common input{width:100%;min-width:0}
#b2bform h3,#usual h3{font-size:15px;margin:16px 0 6px}
#b2bform textarea{width:100%}
@media (max-width:700px){.b2b-pick{grid-template-columns:1fr}table.b2b-common th,table.b2b-common td{display:block}table.b2b-common tr:first-child{display:none}}
/* 手順1 公式フォーム転記 → 手順2 パートナー最終送信 (2026-10-30) */
.av-steps{display:flex;align-items:center;gap:4px;margin:2px 0;font-size:12.5px}
.av-plan{color:var(--muted);min-width:1.5em}
.av-arrow{color:var(--muted)}
.av-no{font-size:12px;font-weight:700;color:var(--brand-2);background:#e1ecfa;border-radius:3px;padding:1px 6px;white-space:nowrap}
.av-flow{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:stretch;margin:10px 0 18px}
.av-flow>.av-arrow{align-self:center;font-size:18px}
.av-step{border:1px solid var(--line);border-top:3px solid var(--brand-2);border-radius:6px;padding:10px 12px;background:#fff}
.av-step.later{border-top-color:var(--line);background:#fafbfc}
.av-step .av-head{font-weight:700;display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.av-step p{margin:6px 0}
.av-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 14px}
.av-s{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:6px;padding:7px 10px;background:#fff;color:var(--ink);text-decoration:none;font-size:13px}
.av-s:hover{border-color:var(--brand-2)}
.av-s.on{border-color:var(--brand-2);box-shadow:inset 0 -3px 0 var(--brand-2);font-weight:700}
@media (max-width:700px){.av-flow{grid-template-columns:1fr}.av-flow>.av-arrow{transform:rotate(90deg);justify-self:center}.av-s{flex:1 1 100%}.av-bar>.av-arrow{display:none}}
/* 公式フォームのタブ (2026-11-01): 転記・パートナー最終送信の画面で、公式フォームを切り替える。PC はタブ、スマホは並んだボタン */
.ftabs{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0 2px;border-bottom:2px solid var(--brand-2)}
.ftab{position:relative;top:2px;display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:140px;padding:8px 14px 10px;border:1px solid var(--line);border-bottom:2px solid var(--brand-2);border-radius:8px 8px 0 0;background:#fff;color:var(--ink);text-decoration:none;line-height:1.35}
.ftab:hover{background:#f0f5fc;border-color:var(--brand-2)}
.ftab-name{font-weight:700;font-size:14.5px}
.ftab-plan{font-size:12.5px;color:var(--muted)}
.ftab.on{background:var(--brand-2);border-color:var(--brand-2);color:#fff}
.ftab.on .ftab-plan{color:#dfe9f7}
.ftabs-note{margin:8px 0 0;color:var(--muted)}
.ftabs+.av-bar,.ftabs-note+.av-bar{margin-top:12px}
.review-box{border:1px solid #f0c987;background:#fffaf0;border-radius:8px;padding:12px 14px;margin:0 0 14px}
.review-box.ok{border-color:#9fd4b7;background:#f1faf5}
.review-box p{margin:4px 0}
.review-state{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.review-box button{margin:6px 0}
@media (max-width:700px){
  .ftabs{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));border-bottom:0;padding:0}
  .ftab{top:0;min-width:0;padding:8px 9px;border:1px solid var(--line);border-radius:8px}
  .ftab.on{box-shadow:0 0 0 2px rgba(29,79,140,.25)}
  .ftab-name{font-size:13.5px}
  .review-box button{width:100%}
}
/* 申込詳細の公式フォームのタブ (2026-11-01): ボタンで切り替え、各タブに転記・最終送信の状態 */
.ftabs button.ftab{font:inherit;min-height:0;text-align:left;cursor:pointer;white-space:normal}
.ftab-steps{display:flex;flex-wrap:wrap;gap:4px;margin-top:2px}
.ftab-steps .badge{white-space:nowrap}
.ftab.on .ftab-steps .badge.muted{background:#dfe9f7}
#avenue .ftabs{margin-top:16px}
#avenue.ftabs-on .fpanel{padding-top:4px}
#avenue.ftabs-on .fpanel>h3:first-child{display:none}
#avenue.ftabs-on .fpanel>.meta:first-of-type{margin-top:14px}
@media (max-width:700px){
  /* スマホでは1行に1フォーム：名前・プランの右に状態 */
  #avenue .ftabs{grid-template-columns:1fr}
  #avenue .ftab{flex-direction:row;flex-wrap:wrap;align-items:center;column-gap:10px;row-gap:4px;padding:9px 12px}
  #avenue .ftab-steps{margin:0 0 0 auto}
}
/* まとめて送信 (2026-11-01) */
.bulk-list{list-style:none;padding:0;margin:10px 0 14px}
.bulk-list li{margin:8px 0}
.bulk-list .badge{margin-right:4px}
@media (max-width:700px){.bulk button{width:100%}}
/* 押せないボタンは押せないと分かる見た目に（転記の確認待ちなど） */
button:disabled{opacity:.45;cursor:not-allowed}
button.main:disabled:hover{background:var(--brand-2)}button.sub:disabled:hover{background:#fff}
/* 契約・保全 (Avenue B2B lists) */
.ctabs{display:flex;gap:4px;margin:0 0 12px;border-bottom:1px solid var(--line);overflow-x:auto}
.ctabs a{padding:8px 12px;color:var(--muted);text-decoration:none;white-space:nowrap;border-bottom:2px solid transparent}
.ctabs a.on{color:var(--brand);border-bottom-color:var(--brand);font-weight:700}
.scroll{overflow-x:auto}
/* 備考欄：定型文と最終確認 (2026-10-30) */
.note-sets{border:1px solid var(--line);border-radius:6px;padding:10px 12px;margin:8px 0 14px;background:#fafbfc}
.note-sets h4{margin:0 0 6px;font-size:13px}
.note-set{border-top:1px dashed var(--line);padding:8px 0;display:grid;gap:4px}
.note-set:first-of-type{border-top:0}
.note-set.due{background:#fffaf0;margin:0 -12px;padding:8px 12px}
.note-set .check{display:flex;gap:6px;align-items:flex-start;color:var(--ink)}
.note-set .check input{width:auto;margin-top:3px}
.note-set button{justify-self:start}
.note-view{white-space:pre-wrap;word-break:break-word;background:#fafbfc;border:1px solid var(--line);border-radius:6px;padding:8px 10px;line-height:1.7}
#b2bconfirm .check{display:flex;gap:8px;align-items:center;font-size:14px;color:var(--ink);margin-bottom:10px}
#b2bconfirm .check input{width:auto}
/* パートナーサイト設定：PCは左右2列、スマホは1列 (2026-10-30) */
.b2b-settings{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:16px;align-items:start}
.b2b-settings .card{margin-bottom:0}
.b2b-settings label:not(.check){display:block;margin-bottom:12px}
.b2b-settings .b2b-pick{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}
/* パートナーIDの同意・ほかの人が押すこと (Hyde 2026-11-08): 長い文のチェックは先頭にそろえる */
.b2b-col{display:grid;gap:16px;min-width:0}
.b2b-settings .consent-box{border:1px solid var(--line);border-radius:8px;padding:8px 14px;margin:4px 0 12px;background:var(--soft)}
.b2b-settings .consent-box p{margin:0 0 4px}
.b2b-settings .consent-box ul{margin:0 0 8px;padding-left:1.2em}
.b2b-settings label.check{align-items:flex-start}
.b2b-settings label.check input{margin-top:6px;flex:none}
.b2b-settings input[readonly]{background:var(--line-2);color:var(--muted)}
.allow-form{border-top:1px solid var(--line);margin-top:16px;padding-top:8px}
.b2b-ask{margin:8px 0 0}
/* 押せないボタンとポップアップ (Hyde 2026-11-08 03:06Z): Avenue向け担当者のパスワードが未登録などで押せないときは、ボタンを薄くし、押すと理由と登録の案内が出る */
button.is-off,button.is-off:hover{opacity:.45;cursor:not-allowed;filter:grayscale(.4)}
dialog.b2b-need{max-width:min(560px,calc(100vw - 32px));border:1px solid var(--line);border-radius:12px;padding:20px 22px;box-shadow:0 12px 40px rgba(15,45,82,.25);color:var(--ink)}
dialog.b2b-need::backdrop{background:rgba(15,45,82,.35)}
dialog.b2b-need h2{margin:0 0 10px;font-size:18px;color:var(--warn)}
dialog.b2b-need p{margin:0 0 10px}
dialog.b2b-need .row{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:14px}
dialog.b2b-need form.inline{margin:0}
@media (max-width:820px){.b2b-settings{grid-template-columns:1fr}}
/* ダッシュボード：案件の流れ (2026-10-31)。左2段＝お客様・サポーターが進める、右2段＝Avenue の審査が始まってから */
.flowcard{--ours:#1d4f8c;--ours-bg:#e1ecfa;--av:#0f766e;--av-bg:#dcf2ee;overflow:visible}
.flowcard h2{position:relative;display:flex;align-items:center;gap:2px}
.flowcard h2 .small{font-weight:400;margin-left:12px}
.flowcard h2 .f-all{margin-left:auto;font-size:13.5px;font-weight:500}
/* 「Avenue の審査」は対応待ちの件数が3つ（確認事項・申込内容確認・クレカ設定、2026-11-07）なので、1行に収まるよう少し広く */
.flow{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.4fr) minmax(0,1fr);gap:8px 6px}
.band{position:relative;display:flex;align-items:center;gap:2px;border-radius:6px;padding:6px 12px;font-size:13.5px;line-height:1.5}
.band.ours{grid-row:1;grid-column:1 / span 2;background:var(--ours-bg);color:var(--ours);border-left:4px solid var(--ours)}
.band.avenue{grid-row:1;grid-column:3 / span 2;background:var(--av-bg);color:var(--av);border-left:4px solid var(--av)}
.seg{grid-row:2;display:flex;flex-direction:column;min-width:0}
.seg.s1{grid-column:1}.seg.s2{grid-column:2}.seg.s3{grid-column:3}.seg.s4{grid-column:4}
.seg.avenue.s3{border-left:2px dashed var(--av);padding-left:6px;margin-left:-2px}
/* 矢羽根 (2026-11-06 畳む形)：1行目＝段階の名前・開閉の印・その段階の件数、2行目＝対応が要る件数（オレンジ、押すと一覧）。
   矢羽根の形は ::before に描くので、ⓘ の説明は矢羽根の外にはみ出して出せる。矢羽根全体が開閉のボタン（オレンジの件数と ⓘ はその上で別に押せる） */
.flowcard .seg-head{position:relative;z-index:3;display:flex;flex-direction:column;justify-content:center;gap:3px;min-height:62px;padding:7px 22px 8px 26px;color:#fff}
.flowcard .seg-head::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--ours);clip-path:polygon(0 0,calc(100% - 14px) 0,100% 50%,calc(100% - 14px) 100%,0 100%,14px 50%)}
.flowcard .seg.avenue .seg-head::before{background:var(--av)}
.flowcard .seg.s1 .seg-head{padding-left:14px}
.flowcard .seg.s1 .seg-head::before{clip-path:polygon(0 0,calc(100% - 14px) 0,100% 50%,calc(100% - 14px) 100%,0 100%)}
.flowcard .seg-head:hover::before{filter:brightness(1.12)}
/* ⓘ は1行目（段階の名前・件数）の右端。2行目の件数の札は矢羽根の幅いっぱいまで使える（2026-11-07） */
.flowcard .c-row{display:flex;align-items:center;gap:6px}
.flowcard .c-row .chev{flex:1;min-width:0}
.flowcard .seg-head .tip{margin:0}
.chev{margin:0;font-size:14px;line-height:1.4}
.c-open{display:flex;align-items:baseline;gap:8px;width:100%;min-height:0;padding:0;border:0;border-radius:0;background:none;color:inherit;font:inherit;font-weight:700;text-align:left}
.c-open::after{content:"";position:absolute;inset:0;z-index:1}
.c-open:focus-visible{outline:0}
.flowcard .seg-head:has(.c-open:focus-visible){outline:3px solid rgba(47,111,208,.45);outline-offset:2px}
.c-title{min-width:0;word-break:keep-all;overflow-wrap:anywhere}
.c-title::after{content:"";display:inline-block;width:7px;height:7px;margin:0 2px 3px 8px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg);opacity:.85;transition:transform .15s}
.seg.open .c-title::after{transform:rotate(-135deg);margin-bottom:-1px}
.c-total{margin-left:auto;font-size:19px;font-weight:500;line-height:1.1;white-space:nowrap;font-variant-numeric:tabular-nums}
.c-total small{font-size:11.5px;font-weight:400;margin-left:1px;opacity:.85}
.c-acts{display:flex;flex-wrap:wrap;gap:4px}
/* 件数の札は同じ幅（Hyde 2026-11-07「横幅をそろえて」）：いちばん長い「申込内容確認 12」「最終送信待ち 12」が入る幅 */
.c-badge{position:relative;z-index:2;box-sizing:border-box;min-width:8.4em;text-align:center;font-size:12px;font-weight:700;line-height:1.5;border-radius:10px;padding:1px 5px;background:#fde7bd;color:#6b4300;text-decoration:none;white-space:nowrap}
.c-badge b{font-size:13px}
.c-badge:hover{background:#fff3dc;text-decoration:underline}
.c-none{font-size:12px;line-height:1.5;opacity:.75}
.ftiles{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.ftile{position:relative;display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-left:4px solid var(--line);border-radius:8px;padding:8px 10px;text-decoration:none;color:var(--ink)}
.seg.ours .ftile{border-left-color:var(--ours)}.seg.avenue .ftile{border-left-color:var(--av)}
.ftile:hover{border-color:var(--brand-2)}
.seg .ftile.alert{border-left-color:var(--warn);background:#fffaf0}
.ftile .f-top{display:flex;align-items:flex-start;gap:2px}
.ftile .f-num{display:flex;align-items:center;justify-content:space-between;gap:8px}
.ftile .t-label{font-size:14px;color:var(--ink);font-weight:700;line-height:1.45;text-decoration:none}
/* 枠全体がリンク（ⓘ だけはその上で別に押せる） */
.ftile .t-label::after{content:"";position:absolute;inset:0;border-radius:8px}
.ftile:has(.t-label:focus-visible){outline:3px solid rgba(47,111,208,.45);outline-offset:2px}.ftile .t-label:focus-visible{outline:0}
.ftile .tip{margin-top:3px;border-color:#c3cad6;color:#8a94a6}
.ftile .t-num{font-size:26px;line-height:1.25;font-weight:500;font-variant-numeric:tabular-nums}
.ftile.zero .t-num{color:#9aa3b2;font-weight:400}
.ftile .t-sub{font-size:12.5px;color:var(--warn);font-weight:500;line-height:1.5}
.ftile .t-sub strong{font-size:14px}
.who{flex:none;font-size:11px;font-weight:700;border-radius:10px;padding:1px 7px;white-space:nowrap;line-height:1.6}
.who.ours{background:var(--ours-bg);color:var(--ours)}.who.avenue{background:var(--av-bg);color:var(--av)}
.f-foot{margin:8px 2px 0;font-size:13px;display:flex;flex-wrap:wrap;gap:2px 12px}
.f-foot a{color:var(--muted);text-decoration:none}.f-foot a:hover{color:var(--brand-2);text-decoration:underline}
.f-foot strong{color:var(--ink)}
@media (max-width:380px){.flowcard .c-acts{display:flex}.flowcard .c-badge{min-width:8.4em}}
@media (max-width:820px){
  .flow{grid-template-columns:1fr;gap:6px}
  .band.ours,.band.avenue,.seg,.seg.s1,.seg.s2,.seg.s3,.seg.s4{grid-row:auto;grid-column:1}
  .band.avenue{margin-top:10px}
  .seg.avenue.s3{border-left:0;padding-left:0;margin-left:0}
  .flowcard .seg-head,.flowcard .seg.s1 .seg-head{min-height:0;padding:14px 14px 16px 14px}
  /* スマホ：札は3列の同じ幅（幅390px で「申込内容確認 12」まで1行に入る）。それより狭い画面は同じ幅のまま折り返す */
  .c-acts{display:grid;grid-template-columns:repeat(3,minmax(0,96px))}
  .c-badge{min-width:0;font-size:11px;padding:1px 3px}.c-badge b{font-size:12px}
  .flowcard .seg-head::before,.flowcard .seg.s1 .seg-head::before{clip-path:polygon(0 0,50% 8px,100% 0,100% calc(100% - 8px),50% 100%,0 calc(100% - 8px))}
  .flowcard .seg.s1 .seg-head,.flowcard .seg.s3 .seg-head{padding-top:8px}
  .flowcard .seg.s1 .seg-head::before,.flowcard .seg.s3 .seg-head::before{clip-path:polygon(0 0,100% 0,100% calc(100% - 8px),50% 100%,0 calc(100% - 8px))}
  .seg{margin-bottom:6px}
  .flowcard{padding:14px 12px}
  .flowcard h2 .small{display:block;margin:2px 0 0}
  .ftiles{gap:6px}
  .ftile{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;align-items:center;padding:8px 12px}
  .ftile .f-top{grid-column:1;justify-content:flex-start;align-items:center}
  .ftile .f-num{display:contents}
  .ftile .who{grid-column:1;justify-self:start;margin-top:2px}
  .ftile .t-num{grid-column:2;grid-row:1 / span 3;font-size:24px;text-align:right}
  .ftile .t-sub{grid-column:1}
}

/* 申込詳細 (Hyde 2026-11-01「業務画面の視認性」): 上に「いまの段階・次にやること・担当」、編集は「変更」を押したときだけ、
   元に戻せない操作は一番下。お申込み内容はフォームと同じ区切りで、PC は2列 */
main:has(.case){max-width:1120px}
.crumbs{font-size:13.5px;color:var(--muted);margin:0 0 12px;display:flex;gap:8px;align-items:center}
.crumbs a{text-decoration:none}.crumbs a:hover{text-decoration:underline}
.ch-title{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 16px;margin:0 0 16px}
.ch-title h1{font-size:24px;margin:0;padding-left:10px;border-left:4px solid var(--brand-2)}
.stages{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0 0 14px;padding:0}
.stages li{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:8px;background:#f1f4f8;color:#7d889a;font-size:14px;font-weight:500;line-height:1.35;min-width:0}
.stages .s-no{flex:none;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#fff;border:1px solid #cfd6e0;font-size:13px;font-weight:700}
.stages .s-name{min-width:0}.stages small{display:block;font-size:12.5px;font-weight:400}
.stages li.done{background:#e8f3ed;color:var(--ok)}.stages li.done .s-no{background:var(--ok);border-color:var(--ok);color:#fff}
.stages li.now{background:#1d4f8c;color:#fff;font-weight:700}.stages li.now .s-no{background:#fff;color:#1d4f8c;border-color:#fff}
.stages li.now:nth-child(n+3){background:#0f766e}.stages li.now:nth-child(n+3) .s-no{color:#0f766e}
.stages li.now.stop{background:#6b7586}.stages li.now.stop .s-no{color:#6b7586}
/* 申込詳細・ダッシュボードの「次にやること」（div.next）。お客様の「今後のお手続き」画面の main.next には効かせない */
div.next{border:1px solid var(--line);border-left:4px solid var(--ok);border-radius:8px;padding:12px 16px;margin:0 0 14px;background:#f6fbf8}
div.next.todo{border-color:#efd9a9;border-left-color:var(--warn);background:#fffaf0}
div.next.urgent{border-color:#f0c4bf;border-left-color:var(--req);background:#fff6f5}
div.next h2{font-size:13.5px;margin:0 0 4px;color:var(--muted);padding:0;border:0}
div.next p{margin:0}
.next-list{list-style:none;margin:0;padding:0}.next-list li{display:flex;gap:10px;align-items:baseline;padding:3px 0}
.next-list a{font-weight:700;text-decoration:none}.next-list a:hover{text-decoration:underline}
.msgs{border:1px solid var(--line);border-radius:8px;padding:12px 16px;margin:0 0 14px;background:var(--soft)}
.msgs h2{font-size:13.5px;margin:0 0 4px;color:var(--muted);padding:0;border:0}
.msgs>p{margin:0 0 8px}
.msgs details.msg{border-top:1px solid var(--line-2);padding:8px 0}
.msgs details.msg summary{cursor:pointer;font-weight:700}
.msgs details.msg textarea{width:100%;margin:8px 0 4px;line-height:1.6;font-family:inherit;font-size:15px;field-sizing:content;min-height:8em}
.msgs details.msg p{margin:0}
.facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:32px;margin:0}
.facts>div{display:grid;grid-template-columns:9.5em minmax(0,1fr);gap:12px;padding:8px 0;border-top:1px solid var(--line-2)}
.facts>div.wide{grid-column:1/-1}
.facts dt{color:var(--muted);font-size:14px}.facts dd{margin:0;min-width:0;overflow-wrap:anywhere}
.ch-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-start;margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}
.ch-actions form{margin:0}
details.edit>summary{display:inline-flex;align-items:center;gap:8px;list-style:none;cursor:pointer;font-weight:500;font-size:14.5px;color:var(--brand-2);border:1px solid var(--brand-2);border-radius:6px;padding:8px 16px;min-height:40px;background:#fff}
details.edit>summary:hover{background:#f0f5fc}
details.edit>summary::-webkit-details-marker{display:none}
details.edit>summary::after{content:"";border:5px solid transparent;border-top-color:currentColor;margin-top:5px}
details.edit[open]>summary::after{border-top-color:transparent;border-bottom-color:currentColor;margin:-5px 0 0}
.ch-actions details.edit[open]{flex-basis:100%}
details.edit>form{margin-top:12px;border:1px solid var(--line);border-radius:8px;padding:16px;background:var(--soft)}
details.edit>p{margin:10px 0 0}
details.help{margin:2px 0 12px;font-size:13.5px;color:var(--muted)}
details.help>summary{cursor:pointer;display:inline-block;color:var(--brand-2);font-size:13px}
details.help>div{margin-top:6px;padding:10px 14px;background:var(--soft);border-radius:6px;line-height:1.75}
.fsec{margin:0 0 18px}.fsec:last-child{margin-bottom:0}
.fsec h3{font-size:14.5px;color:var(--brand);margin:0 0 4px;padding:5px 10px;background:#eef3fa;border-radius:6px}
dl.kv2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px;margin:0}
dl.kv2>div{display:grid;grid-template-columns:minmax(7em,42%) minmax(0,1fr);gap:12px;padding:7px 4px;border-bottom:1px solid var(--line-2)}
dl.kv2>div.wide{grid-column:1/-1;grid-template-columns:minmax(7em,calc(21% - 7px)) minmax(0,1fr)}
dl.kv2 dt{color:var(--muted);font-size:13.5px}dl.kv2 dd{margin:0;min-width:0;overflow-wrap:anywhere}
.danger-zone{border-color:#f0c4bf;background:#fffafa}.card.danger-zone>h2:first-child{border-left-color:var(--req)}
a.button.sub{background:#fff;color:var(--brand-2);border:1px solid var(--brand-2)}a.button.small{padding:5px 12px;font-size:13px}
@media (max-width:760px){
  .ch-title h1{font-size:21px}
  .stages{grid-template-columns:1fr 1fr}
  .facts,dl.kv2{grid-template-columns:1fr}
  .facts>div,dl.kv2>div,dl.kv2>div.wide{grid-template-columns:1fr;gap:0;padding:7px 0}
  .facts dt,dl.kv2 dt{font-size:12.5px}
  .card{padding:18px 16px}
  main{padding:16px 12px 48px}
}
/* 申込詳細の組み直し (Hyde 2026-11-06): 上は「いまの段階・次にやること」だけ。その下は仕事の順に「お申込み内容」「Avenue への申込」
   「管理情報」の3つに分け、タブで1つずつ見せる（スクリプトがないときは縦に並ぶ）。タブは画面の上に残る */
.ch-title{margin-bottom:6px}
.ch-who{margin:0 0 14px;font-size:13.5px;color:var(--muted)}.ch-who strong{color:var(--ink);font-weight:500}
.next-alt{margin:8px 0 0;padding-top:8px;border-top:1px dashed #e3d3ad;font-size:13.5px;color:var(--muted)}
div.next.urgent .next-alt{border-top-color:#efcbc6}div.next:not(.todo):not(.urgent) .next-alt{border-top-color:#cfe5d8}
.case-head .msgs{margin-bottom:0}.case-head>div.next:last-child{margin-bottom:0}
.case-head .msgs details.msg{padding:6px 0}
.segtabs{position:sticky;top:var(--hdr);z-index:6;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0 0 16px;padding:8px 0 0;background:var(--bg)}
.segtab{display:flex;flex-direction:column;justify-content:center;gap:1px;min-width:0;padding:9px 16px 8px;background:#fff;border:1px solid var(--line);border-bottom:3px solid var(--line);text-decoration:none;color:var(--muted);line-height:1.45}
.segtab+.segtab{border-left:0}
.segtab:first-child{border-radius:10px 0 0 10px}.segtab:last-child{border-radius:0 10px 10px 0}
.segtab .st-name{font-size:15.5px;font-weight:700;color:var(--ink);word-break:keep-all}
.segtab .st-sub{font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.segtab:hover{background:#f6f9fd}.segtab:hover .st-name{color:var(--brand-2)}
.segtab.on{background:#eef3fa;border-bottom-color:var(--brand-2)}.segtab.on .st-name{color:var(--brand-2)}
.seg-title{font-size:18px;margin:26px 0 12px;padding:6px 12px;background:var(--brand);color:#fff;border-radius:8px}
html.js .case .seg:not(.on),html.js .case .seg-title{display:none}
.case [id]{scroll-margin-top:96px}
.case .seg-head{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:10px 16px;margin:0 0 14px}
.case .seg-head .sh-title{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 14px}
.case .seg-head h2{margin:0;padding-left:10px;border-left:4px solid var(--brand-2)}
.case .seg-head>.muted{padding-top:6px}
.case .seg-head details.edit[open]{flex-basis:100%}
.return-form>form label{display:block}.return-form textarea{width:100%;margin:4px 0 10px;font:inherit;font-size:15px;padding:9px 12px;border:1px solid #cfd6e0;border-radius:6px}
.return-form>form p{margin:8px 0 0}
.return-now{border:1px solid #f0c4bf;border-left:4px solid var(--req);background:#fff6f5;border-radius:8px;padding:10px 14px;margin:0 0 14px}.return-now p{margin:0}
/* お申込み内容の確認 (Hyde 2026-11-06): 送信後の最初の一歩。回答と書類を見て、いちばん下で「確認しました」か、上で差し戻し */
.check-lead{margin:-4px 0 14px;padding:9px 14px;border-left:4px solid var(--warn);background:#fffaf0;border-radius:6px;font-size:14px}
.card.content-check.todo{border-color:#f1dfb8;background:#fffdf6}.card.content-check.todo>h2:first-child{border-left-color:var(--warn)}
.card.content-check.done>h2:first-child{border-left-color:var(--ok)}.card.content-check .row{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:12px}
.card.content-check form.inline{display:inline;margin:0}
.content-wait{margin:0 0 14px;padding:9px 14px;background:#fffaf0;border:1px solid #f1dfb8;border-radius:6px;font-size:14px}
.content-done{margin:0 0 14px}
.case .card>.facts{margin-top:-6px}
.case .card .ch-actions{margin-top:12px;padding-top:12px;border-top:1px solid var(--line-2);align-items:center}
.records-page .sig{max-width:360px;margin-top:6px}
.records-page h1 .small{font-weight:400}.records-page>p button{margin-left:12px}
@media print{header,.ptstrip,.no-print,.pausebar,.stopbar{display:none!important}main{padding:0}.card{border:0;box-shadow:none;padding:0}body{background:#fff}}
@media (max-width:760px){
  .segtabs{padding-top:6px}
  .segtab{padding:7px 8px 6px;align-items:center;text-align:center}
  .segtab .st-name{font-size:13.5px;line-height:1.35}
  .segtab .st-sub{font-size:11.5px;max-width:100%}
  .segtab .st-sub .badge{font-size:11px;padding:0 6px}
  .case .seg-head details.edit{flex-basis:100%}
  .case .seg-head details.edit>summary{width:100%;justify-content:center}
}
/* 一覧 (2026-11-01): 2行目の補足（お客様氏名・責任者）、スマホでは1件ずつのカードにする */
.sub-line{display:block;font-size:12.5px;color:var(--muted);font-weight:400;line-height:1.5}
/* お客様の対応待ち（回答・返送・カード設定）と、その期限（Hyde 2026-11-07: アクションを要する重要情報） */
.sub-line.act{color:var(--warn);font-weight:700;font-size:13px}
table.list td.c-main a{font-weight:700}
table.list .prog + .small{font-size:12px}
.reqlist td{white-space:normal}
button,a.button{white-space:nowrap}
#todo tr:has(.badge.danger) td:first-child{box-shadow:inset 3px 0 0 var(--req)}
@media (max-width:760px){
  table.list.cards,table.list.cards tbody,table.list.cards tr,table.list.cards td{display:block;width:auto}
  table.list.cards tr:first-child{display:none}
  table.list.cards tr{border:1px solid var(--line);border-radius:8px;padding:10px 12px;margin:0 0 10px;background:#fff}
  table.list.cards tr:hover>td{background:none}
  table.list.cards td{border:0;padding:3px 0;white-space:normal}
  table.list.cards td[data-label]{position:relative;padding-left:7.8em;font-size:14px;min-height:1.9em}
  table.list.cards td[data-label]::before{content:attr(data-label);position:absolute;left:0;top:4px;width:7.4em;color:var(--muted);font-size:12.5px;text-align:left}
  table.list.cards.reqlist tr{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px}
  table.list.cards.reqlist td{grid-column:1 / -1}
  table.list.cards.reqlist td.c-main{grid-column:1;grid-row:1}
  table.list.cards.reqlist td.c-st{grid-column:2;grid-row:1;padding-left:0;border-bottom:1px solid var(--line-2);margin-bottom:4px}
  table.list.cards.reqlist td.c-st::before,table.list.cards td.c-upd{display:none}
  /* 見出しの行は、スマホでは並べ替えのボタンにする */
  table.list.cards.reqlist tr:first-child{display:flex;flex-wrap:wrap;align-items:center;gap:6px;border:0;padding:0;margin:0 0 12px;background:none}
  table.list.cards.reqlist tr:first-child::before{content:"並べ替え";font-size:12.5px;color:var(--muted);margin-right:2px}
  table.list.cards.reqlist th{display:inline-block;border:1px solid var(--line);border-radius:999px;padding:2px 10px;background:#fff;font-size:12.5px}
  table.list.cards.reqlist th:empty{display:none}
  table.list.cards td.c-main{font-size:15.5px;padding-bottom:6px;margin-bottom:4px;border-bottom:1px solid var(--line-2)}
  table.list.cards td.c-del:empty{display:none}
  table.list.cards td.c-del{padding-top:6px;text-align:right}
  table.list.cards td .sub-line{display:inline;margin-left:8px}
  table.list.cards td .sub-line.act{display:block;margin-left:0}
  table.list.cards td.nw span.nw,table.list.cards .av-steps{white-space:normal;flex-wrap:wrap}
  #todo table.list.cards td[data-label]{display:inline-block;padding:0;margin-right:14px;font-size:13px;min-height:0}
  #todo table.list.cards td[data-label]::before{position:static;display:inline;margin-right:4px;font-size:12px}
  #todo table.list.cards td.c-main{border:0;margin:0;padding-bottom:4px}
  #todo tr:has(.badge.danger){border-left:4px solid var(--req)}
  #todo tr:has(.badge.danger) td:first-child{box-shadow:none}
}
.stopbar{background:#fdecea;border-bottom:1px solid #f5c2c0;color:#7a1c16;padding:10px 16px;font-size:14px;line-height:1.6}.stopbar .inner{max-width:1040px;margin:0 auto}.stopbar a{color:#7a1c16;text-decoration:underline}
/* AI 読み取り中の「お待ちください」(2026-11-01): 画面全体をおおい、終わるまで更新・戻るを押さないよう案内する */
html.busy-open{overflow:hidden}
.busy{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(15,25,45,.6)}
.busy[hidden]{display:none}
.busy-box{background:#fff;border-radius:12px;width:100%;max-width:460px;max-height:calc(100vh - 32px);overflow-y:auto;padding:26px 24px 18px;text-align:center;box-shadow:0 12px 40px rgba(0,0,0,.28);outline:none}
.busy-box h2{margin:14px 0 10px;font-size:18px;padding:0;border:0}
.busy-box p{margin:10px 0;font-size:14.5px;text-align:left}
.busy-box p.busy-time{text-align:center;color:var(--muted);font-size:13.5px;margin-bottom:0}
.busy-box p.busy-warn{background:#fff6e5;border:1px solid #f0c987;border-radius:8px;padding:10px 12px;color:#6b4100}
.busy-box p.busy-warn strong{display:block;color:#8a3b00;margin-bottom:2px}
.busy-box p.busy-again{text-align:center;color:var(--req);font-weight:700}
.busy-box p button{width:100%}
.busy [data-show]{display:none}
.busy[data-mode=run] [data-show~=run],.busy[data-mode=wait] [data-show~=wait],.busy[data-mode=lost] [data-show~=lost]{display:block}
.busy .spin{width:46px;height:46px;margin:0 auto;border-radius:50%;border:4px solid #dbe5f3;border-top-color:var(--brand-2);animation:busy-spin 1s linear infinite}
@keyframes busy-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.busy .spin{animation-duration:2.5s}}
.busy.nudge .busy-warn{animation:busy-nudge .45s}
@keyframes busy-nudge{0%,100%{transform:none}25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}
@media (max-width:600px){.busy-box{padding:22px 18px 16px}.busy-box p{font-size:14px}}
/* 送信済みの公式フォーム・最終送信済みの連絡先 (2026-11-01): 表示のみ。値は読みやすいまま、変更はできない */
fieldset.locked{border:0;margin:0;padding:0;min-width:0}
fieldset.locked input:disabled,fieldset.locked select:disabled,fieldset.locked textarea:disabled{background:var(--soft);color:var(--ink);-webkit-text-fill-color:var(--ink);opacity:1;border-style:solid;cursor:default}
fieldset.locked .tf-it.off input:disabled{color:#8a94a3;-webkit-text-fill-color:#8a94a3}
.locked-note{border:1px solid #9fd4b7;background:#f1faf5;border-radius:8px;padding:10px 14px;margin:0 0 12px}
/* 転記画面：共通の内容は1つ、プランごとの内容はタブ (2026-11-01) */
.tf-part{margin:0 0 26px}
.tf-part>.part-h{font-size:20px;margin:28px 0 6px;padding:6px 0 6px 12px;border-left:5px solid var(--brand-2)}
.tf-part>.part-h .badge{vertical-align:3px;margin-left:6px}
.part-lead{margin:0 0 12px}
#commonGo .row{margin-top:4px}
.tf-jump{display:flex;flex-wrap:wrap;gap:4px 14px;margin:-6px 0 4px;color:var(--muted)}
.tf-jump a{white-space:nowrap}
/* ⓘ の説明 (Hyde 2026-11-02「補足説明はアイコンで、マウスオーバーしたら詳細」): PC はマウスを重ねる、スマホは押すと出る。
   吹き出しは一番近い position:relative の枠の下に出る */
.tip{position:relative;z-index:2;display:inline-grid;place-items:center;flex:none;width:18px;height:18px;min-height:0;padding:0;margin:0 0 0 4px;border-radius:50%;border:1px solid #a9b3c3;background:#fff;color:#6b7586;font:italic 700 11.5px/1 Georgia,"Times New Roman",serif;cursor:help;vertical-align:1px}
.tip:hover,.tip[aria-expanded="true"]{border-color:var(--brand-2);color:#fff;background:var(--brand-2)}
.tip.on-dark{background:transparent;border-color:rgba(255,255,255,.75);color:#fff}
.tip.on-dark:hover,.tip.on-dark[aria-expanded="true"]{background:#fff;color:var(--brand)}
.tip-b{display:none;position:absolute;z-index:30;top:calc(100% + 6px);left:0;right:0;max-width:440px;background:#1f2a3d;color:#fff;font-size:13px;font-weight:400;font-style:normal;line-height:1.7;letter-spacing:0;padding:9px 13px;border-radius:7px;box-shadow:0 6px 18px rgba(15,45,82,.28);text-align:left;white-space:normal;cursor:auto}
.tip[aria-expanded="true"]+.tip-b,.tip:focus-visible+.tip-b{display:block}
@media (hover:hover){.tip:hover+.tip-b{display:block}}
.tip-i{display:inline-grid;place-items:center;width:15px;height:15px;border-radius:50%;border:1px solid currentColor;font:italic 700 10px/1 Georgia,serif;vertical-align:1px}
.ftile .tip:hover,.ftile .tip[aria-expanded="true"]{border-color:var(--brand-2);color:#fff}
.flowcard,.card.pt,.orgcard{overflow:visible}
.card>h1:has(.tip),.card>h2:has(.tip){position:relative;display:flex;align-items:center;flex-wrap:wrap;gap:2px}
.card .h-link{margin-left:auto;font-size:13.5px;font-weight:500}

/* ポイント（PP・OP）(2026-11-02): 数字つきタブ（期間・状態・PP・OP）、「‹ 年 ›」、リクエストベース／成立ベースの切り替え。
   ダッシュボード（「案件の流れ」「要対応」の下）、/admin/points（並べて比べる表・成立の割合・メンバー別・内訳）、組織図の各カード */
.pt>h2 .muted{margin-left:8px;font-weight:400}
.pt .nw{white-space:nowrap}
.pt-who{font-size:14.5px;font-weight:700;color:var(--brand-2);background:#eef4fc;border-radius:14px;padding:1px 12px;margin-left:8px;white-space:nowrap}
.pt-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:0 0 12px}
.pt-yrs{display:inline-flex;align-items:stretch;border:1px solid #cfd6e0;border-radius:8px;background:#fff;overflow:hidden}
.pt-yrs b{padding:4px 12px;font-size:15px;min-width:5.6em;text-align:center;font-variant-numeric:tabular-nums}
.pt-yrs .yr{display:grid;place-items:center;width:34px;font-size:19px;line-height:1;text-decoration:none;color:var(--brand-2);background:var(--soft)}
.pt-yrs a.yr:hover{background:#e3ecf8}
.pt-yrs .yr.off{color:#c8ced8;cursor:default}
.pt-base{position:relative;display:inline-flex;align-items:center}
.pt-base a{font-size:13.5px;line-height:1.6;text-decoration:none;padding:5px 14px;border:1px solid #cfd6e0;background:#fff;color:var(--ink);white-space:nowrap}
.pt-base a:first-child{border-radius:8px 0 0 8px}.pt-base a:nth-child(2){border-radius:0 8px 8px 0;border-left:0}
.pt-base a:hover{background:var(--soft)}
.pt-base a.on{background:var(--brand-2);border-color:var(--brand-2);color:#fff;font-weight:700}
.pt-base .tip{margin-left:6px}
.pt-base .tip-b{left:0;right:auto;width:min(440px,calc(100vw - 48px))}
/* タブ：期間・状態・PP・OP。選んだ期は白地に青の枠、未開始は点線で押せない */
.pt-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) minmax(0,1.15fr);gap:8px;margin:0}
.pt-tab{position:relative;display:flex;flex-direction:column;gap:6px;min-width:0;padding:9px 12px 10px;border:1px solid var(--line);border-top:3px solid #cfd6e0;border-radius:8px;background:var(--soft);text-decoration:none;color:var(--ink)}
a.pt-tab:hover{border-color:#b4c2d6;border-top-color:#9fb3cf;background:#fff}
.pt-tab.now{border-top-color:#8fb3e3}
.pt-tab.year{background:#eef2f7}
.pt-tab.on,a.pt-tab.on:hover{background:#fff;border-color:var(--brand-2);border-top-color:var(--brand-2);box-shadow:0 2px 8px rgba(29,79,140,.16)}
.pt-tab.future{background:#fbfcfd;border-style:dashed;border-top:3px solid #e6e9ef;color:#a3abb9}
.pt .pt-tab.on::after{content:"";position:absolute;left:50%;bottom:-8px;width:12px;height:12px;background:#fff;border-right:1px solid var(--brand-2);border-bottom:1px solid var(--brand-2);transform:translateX(-50%) rotate(45deg)}
.t-h{display:flex;align-items:center;justify-content:space-between;gap:4px 6px;flex-wrap:wrap}
.t-p{font-weight:700;font-size:14.5px;line-height:1.4;white-space:nowrap}
.pt-st{display:inline-block;font-size:11px;font-weight:700;line-height:1.6;padding:0 7px;border-radius:9px;white-space:nowrap}
.pt-st.done{background:#e7ebf1;color:#4b5563}
.pt-st.now{background:#e1ecfa;color:var(--brand-2)}
.pt-st.now::before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--ok);margin-right:4px;vertical-align:1px}
.pt-st.future{color:#a3abb9;border:1px dashed #cfd6e0;padding:0 6px}
.t-v{display:flex;flex-direction:column}
.t-v>span{display:flex;align-items:baseline;justify-content:space-between;gap:4px}
.t-v i{font-style:normal;font-size:11.5px;font-weight:600;color:var(--muted)}
.t-v b{font-size:20px;line-height:1.35;font-variant-numeric:tabular-nums}
.t-v .zero b{color:#a3abb9;font-weight:500}
.t-v.none{display:block;font-size:22px;line-height:1.35;color:#c8ced8;text-align:center;padding:7px 0}
.pt-tabs.slim .pt-tab{padding:6px 10px}
.pt-bar{position:relative;margin:4px 0 0;padding:10px 12px;background:var(--soft);border:1px solid var(--line);border-radius:8px}
.pt-bar .pt-row{margin-bottom:8px}
.pt-bar .pt-tab:not(.on):not(.future){background:#fff}
.orgcard .pt-bar{margin:0 0 16px}
.pt-title{position:relative;display:flex;align-items:center;gap:6px;font-size:13.5px;color:var(--muted)}
.pt-title b{color:var(--ink);font-size:15px}
/* 選んだ期：リクエストベースと成立ベースを並べて、成立の割合 */
.pt-panel{margin-top:14px;padding:14px 16px 16px;border:1px solid var(--brand-2);border-radius:10px;background:#fff}
.pt-panel>h2.pt-ph{display:flex;align-items:center;gap:8px;font-size:16px;margin:0 0 6px;padding:0;border:0}
table.pt-cmp{width:100%;max-width:720px;border-collapse:collapse}
.pt-cmp th,.pt-cmp td{position:relative;padding:8px 10px;border-bottom:1px solid var(--line-2);text-align:left;vertical-align:middle}
.pt-cmp tr:first-child th{font-size:12.5px;line-height:1.35;color:var(--muted);font-weight:600;border-bottom:1px solid var(--line);vertical-align:bottom}
.pt-cmp th.num,.pt-cmp td.num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.pt-cmp tr:first-child th.num .tip{vertical-align:-3px}
.pt-cmp .tip-b{left:auto;right:0;width:min(360px,calc(100vw - 48px));text-align:left}
.pt-cmp tr+tr th{font-size:15px;font-weight:700;white-space:nowrap;border-left:4px solid transparent}
.pt-cmp tr.pp th{border-left-color:var(--brand-2)}.pt-cmp tr.op th{border-left-color:var(--ok)}
.pt-cmp .pt-th{display:block;font-size:11px;font-weight:500;color:var(--muted);line-height:1.3}
.pt-cmp td b{font-size:24px;line-height:1.25}
.pt-cmp td small{font-size:12px;margin-left:2px;color:var(--muted)}
.pt-cmp td .sub-line{display:block;font-size:12px;color:var(--muted);line-height:1.3}
.pt-cmp td.pt-rate b{color:var(--ok)}
.pt-cmp tr.avg th{font-size:13.5px}.pt-cmp tr.avg td{font-size:15px;font-weight:600}
.pt-cmpw{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.pt-out{max-width:720px}
.pt-oh{font-size:12.5px;font-weight:600;color:var(--muted);margin-bottom:6px}
.pt-bar3{display:flex;height:10px;border-radius:5px;overflow:hidden;background:var(--line-2)}
.pt-bar3 i{display:block;height:100%}
.pt-bar3 .won,.pt-leg .won::before{background:var(--ok)}
.pt-bar3 .pending,.pt-leg .pending::before{background:#8fb3e3}
.pt-bar3 .lost,.pt-leg .lost::before{background:#c9cfd9}
.pt-leg{display:flex;flex-wrap:wrap;gap:2px 16px;margin-top:6px;font-size:13px;color:var(--muted)}
.pt-leg>span::before{content:"";display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:5px;vertical-align:-1px}
.pt-leg b{color:var(--ink);font-variant-numeric:tabular-nums;margin-left:5px}
@media (min-width:900px){
  .pt-cmpw{grid-template-columns:minmax(0,640px) minmax(240px,1fr);gap:28px;align-items:start}
  .pt-out{margin-top:6px;padding:12px 14px 14px;background:var(--soft);border:1px solid var(--line-2);border-radius:8px}
  .pt-leg{flex-direction:column;gap:4px;margin-top:10px;font-size:13.5px}
  .pt-leg>span{display:flex;align-items:center}
  .pt-leg b{margin-left:auto;font-size:15px}
}
table.list th.num,table.list td.num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
table.list .pt-th{display:block;font-size:11px;line-height:1.3}
table.pt-members{max-width:820px}
table.list tr.sel>td{background:#f1f6fd}
table.list tr.off>td{color:var(--muted)}
table.list td.pt-pts small,table.list td.pt-won small{font-size:11px;font-weight:500;margin-left:1px}
table.list td.pt-won .sub-line .badge{margin-right:4px}
table.list tr.lost td.pt-won strong{color:#9aa3b2}
.pt-ind{color:var(--muted)}
/* 横にはみ出す組織図も左端までスクロールできるように（中央寄せのままだと左側が切れて戻れない） */
.org>ul{width:max-content;min-width:100%}
.o-pt{display:flex;justify-content:center;gap:10px;margin:5px -4px 3px;padding:2px 6px;border-radius:5px;background:#eef4fc;text-decoration:none;color:var(--muted);font-size:12px;line-height:1.6;white-space:nowrap}
.o-pt b{font-size:14.5px;color:var(--ink);font-variant-numeric:tabular-nums}
.o-pt .zero b{color:#9aa3b2;font-weight:400}
.o-pt:hover{background:#dde9f8}
.o-total{font-size:12.5px;opacity:.9}.o-total b{font-size:16px;margin:0 2px}
@media (max-width:760px){
  .card .h-link{flex-basis:100%;margin:2px 0 0}
  .card.pt{padding:18px 14px}
  .pt-bar{padding:8px 10px}
  .pt-row{gap:8px}
  .pt-base{flex:1 1 100%}
  .pt-base a{flex:1;text-align:center;padding:5px 8px}
  /* タブは4つの四半期を1行、通年はその下に横長で */
  .pt-tabs{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
  .pt-tab{padding:7px 7px 8px;gap:3px}
  .pt .pt-tab.on::after{display:none}
  .pt-tab.year{grid-column:1 / -1;flex-direction:row;align-items:center;justify-content:space-between;padding:7px 12px}
  .pt-tab.year .t-h{flex-direction:row;align-items:center}
  .pt-tab.year .t-v{flex-direction:row;gap:16px}
  .pt-tab.year .t-v>span{gap:6px}
  .t-h{flex-direction:column;align-items:flex-start;gap:2px}
  .t-p{font-size:13px}
  .pt-st{font-size:10px;padding:0 5px}
  .t-v i{font-size:10px}
  .t-v b{font-size:15.5px}
  .t-v.none{font-size:18px;padding:4px 0}
  .pt-panel{padding:12px 10px 14px}
  .pt-cmp th,.pt-cmp td{padding:7px 5px}
  .pt-cmp tr+tr th{font-size:14px}
  .pt-cmp td b{font-size:19px}
  table.pt-members th,table.pt-members td{padding:7px 5px;font-size:13.5px}
  table.list .pt-wide{display:none}
  table.pt-members td.pt-name{white-space:normal}
  /* 内訳はカード：1行目にお客様とリクエストのポイント */
  table.list.cards.pt-items tr{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px}
  table.list.cards.pt-items tr:first-child{display:none}
  table.list.cards.pt-items td{grid-column:1 / -1}
  table.list.cards.pt-items td.c-main{grid-column:1;grid-row:1}
  table.list.cards.pt-items td.pt-pts{grid-column:2;grid-row:1;padding-left:0;text-align:right;border-bottom:1px solid var(--line-2);margin-bottom:4px;font-size:16px}
  table.list.cards.pt-items td.pt-pts::before{display:none}
  table.list.cards.pt-items td .sub-line{display:block;margin-left:0}
  table.list.cards.pt-items td.num{text-align:left}
  table.list.cards.pt-items td[data-label]{padding-left:6.4em;min-height:1.7em;font-size:13.5px}
  table.list.cards.pt-items td[data-label]::before{width:6em}
}
/* お客様向けの画面（今後のお手続き・お知らせ）: /phrase.js の文節での折り返し（スマホ・タブレットだけ。Hyde 2026-11-02 案B） */
@media (max-width:899px){.pw{word-break:keep-all;overflow-wrap:break-word}.pwt{white-space:nowrap}}
/* ログイン画面 (Hyde 2026-11-03 「PCログイン画面もリスポンシブ対応」): 広い画面はログイン欄と案内を横に並べて1画面に収め、狭い画面は縦に積む */
.login-wrap{display:grid;gap:16px;max-width:440px;margin:40px auto 0;align-items:start}
.login-wrap .card{margin:0}
.login-wrap .narrow{max-width:none;margin:0}
@media (min-width:820px){.login-wrap{max-width:900px;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:20px;margin-top:56px}}
@media (max-width:600px){.login-wrap{margin-top:8px}}
.appguide{font-size:14px;line-height:1.7}
.appguide h2{font-size:16px}
.appguide p{margin:0 0 8px}
ul.apps{list-style:none;padding:0;margin:6px 0 10px}
ul.apps li{margin-bottom:4px}
.appguide ul.small{padding-left:1.2em;margin:0}
.appguide ul.small li{margin-bottom:4px}
.steps ul.apps{margin:6px 0 0}
/* 申請→承認（Hyde 2026-11-02、lib/approvalpages.js） */
.ap-reason textarea{font:inherit;font-size:15px;line-height:1.6;min-height:4.6em}
.ap-reject{margin-top:14px;display:grid;gap:8px;max-width:640px}.ap-reject button{justify-self:start}
.ap-todo{margin:0 0 10px;padding:10px 12px;border:1px solid #f0d9a8;background:#fffaf0;border-radius:8px}.ap-todo a{font-weight:700}
.ap-effects{margin:6px 0 0;padding-left:1.3em;line-height:1.8}
table.list.ap-change td strong{color:var(--brand)}
.pre{white-space:pre-wrap}
a.btnlink{display:inline-block;padding:9px 14px;border:1px solid var(--line);border-radius:8px;text-decoration:none;font-weight:500}a.btnlink:hover{background:var(--soft)}
@media (max-width:640px){table.list.ap-change{font-size:13.5px}table.list.ap-change th,table.list.ap-change td{padding:6px}}
h2.ap-h{margin-top:18px}
.ap-ask{display:grid;gap:8px;max-width:560px}.ap-ask button{justify-self:start}
.ap-route{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:8px 0 12px;font-size:14px}
.ap-route .ap-step{border:1px solid var(--line);border-radius:999px;padding:3px 10px;background:#f7faff}
.ap-route .ap-arrow{color:var(--muted)}
.ap-route .ap-none{flex-basis:100%}
.o-name .o-chief{font-size:11px;vertical-align:middle}
.ap-now{margin-top:14px}
.ap-org{margin:6px 0 2px}
.o-org{font-size:12px;color:var(--ok);font-weight:600}
/* 募集人一覧の並び（Hyde 2026-11-03）: 組織図の順では同じ上位の人どうしを ↑↓ で入れ替える。入れ替えた行に戻って色をつける */
.orderbar{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin:4px 0 10px;font-size:14px}
.orderbar .tip{margin-left:-6px}
table.list th.c-mv,table.list td.c-mv{width:1%;padding-left:4px;padding-right:4px;text-align:center}
form.mv{display:inline-flex;gap:4px;margin:0}
button.mv{min-height:28px;width:28px;padding:0;font-size:14px;line-height:1;background:#fff;color:var(--brand-2);border-color:#c5d3e6}
button.mv:hover{background:#f0f5fc;border-color:var(--brand-2)}
.mv-off{display:inline-block;width:28px}
table.list tr:target>td,table.list tr.back>td{background:#fff6d6;transition:background 1.5s}
@media (max-width:600px){button.mv,.mv-off{width:34px;min-height:34px}}
/* サポーター一覧・事務局の見切れ（Hyde 2026-11-09「画面見切れる問題あり。」）: 長い見出しは「|」のところで2行にでき、終了日などは途中で切らない。
   それでも表がカードの幅に入りきらないとき（スマホ・狭いウィンドウ）は、LIST_FOLD_SCRIPT が fold をつけて1人ずつのカードにする（右端の状態が隠れない） */
table.list .th2{white-space:normal}table.list .th2>span{white-space:nowrap}
table.list.agents div.nw{white-space:nowrap}
/* 「組織：〇〇」は組織名の途中では切らない（入りきらないほど長いときだけ折り返す） */
table.list.agents .c-org{word-break:keep-all;overflow-wrap:break-word}
table.list.agents.fold,table.list.agents.fold tbody{display:block}
table.list.agents.fold tr{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 16px;border:1px solid var(--line);border-radius:8px;padding:10px 12px;margin:0 0 10px;background:#fff}
table.list.agents.fold tr:hover>td{background:none}
table.list.agents.fold td{display:block;border:0;padding:0;min-width:0;font-size:14px;line-height:1.6;background:none}
table.list.agents.fold td.c-main{order:1;flex:1 1 0;font-size:15.5px;align-self:flex-start}
table.list.agents.fold td.c-st{order:2;flex:0 1 auto;max-width:50%;text-align:right;align-self:flex-start}
table.list.agents.fold tr::before{content:"";order:3;flex:1 0 100%;height:0;border-top:1px solid var(--line-2);margin:4px 0 2px}
table.list.agents.fold td[data-label]{order:4}
table.list.agents.fold td[data-label]::before{content:attr(data-label);margin-right:6px;font-size:12px;color:var(--muted)}
table.list.agents.fold td.corp{flex:1 0 100%}
/* 法人名・メールアドレスは区切り（「株式会社」など・「・」・「@」）ごとにまとめて送り、1行に入りきらない区切りだけをその中で折り返す */
table.list.agents.fold td.corp span.nw,table.list.agents.fold td.mail span.nw{display:inline-block;max-width:100%;white-space:normal;overflow-wrap:anywhere}
table.list.agents.fold td.empty{display:none}
table.list.agents.fold td.c-mv{order:5;margin-left:auto;width:auto;padding:0;align-self:center}
table.list.agents.fold td.c-mv:empty{display:none}
/* 見出しの行は、並べ替えのボタンにする（事務局は並べ替えがないので出さない） */
table.list.agents.fold tr:first-child{align-items:center;gap:6px;border:0;padding:0;margin:0 0 12px;background:none}
table.list.agents.fold tr:first-child::before{content:"並べ替え";order:0;flex:0 0 auto;height:auto;border:0;margin:0 2px 0 0;font-size:12.5px;color:var(--muted)}
table.list.agents.fold th{display:inline-block;border:1px solid var(--line);border-radius:999px;padding:2px 10px;background:#fff;font-size:12.5px;white-space:nowrap}
table.list.agents.fold th .th2{white-space:nowrap}
table.list.agents.fold th.c-mv,table.list.agents.staff.fold tr:first-child{display:none}
/* 組織図のドラッグ並べ替え（システム管理者）: マウスはカードごと、スマホは左上の ⠿ をつまむ */
.org.arrange .o-card[data-id]{position:relative;padding-left:22px;padding-right:22px;cursor:grab;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.org.arrange .o-card[data-id] a{-webkit-user-drag:none}
.o-grip{position:absolute;top:1px;left:2px;width:22px;height:22px;display:grid;place-items:center;color:#a3adbd;font-size:15px;line-height:1;touch-action:none;cursor:grab}
.org.arrange .o-card[data-id]:hover .o-grip{color:var(--brand-2)}
.org li.dragging{z-index:5}
.org li.dragging::before,.org li.dragging::after{visibility:hidden}
.org li.dragging>.o-card{cursor:grabbing;box-shadow:0 10px 24px rgba(20,40,80,.22);border-color:var(--brand-2)}
.org.is-dragging,.org.is-dragging *{cursor:grabbing}
.org-hint{margin:6px 0 2px}
.org-saved{min-height:1.4em;margin:0 0 4px;font-size:13px;font-weight:500}.org-saved.ok{color:var(--ok)}.org-saved.err{color:var(--req)}
@media (max-width:600px){.o-grip{width:28px;height:28px;font-size:17px}}
/* 組織図を画面に収める (Hyde 2026-11-07 「組織図が全然見切れてしまっている。両サイドの余白スペースも多いし、何とかして」):
   画面の幅いっぱいを使う。下に誰もいない人どうしは上位の下に縦に並べて（ul.stack）横幅を抑え、それでも広いときは画面の幅に合わせて縮める
   （−・＋・全体を表示、空いているところをドラッグして動かす。lib/admin.js ORG_VIEW_SCRIPT）。「縦に並べる」は全員を段ごとに字下げして縦に並べる（スマホの最初の表示） */
main:has(.orgcard){max-width:none}
.orgcard .pt-bar{max-width:1232px}
.org-view{overflow-x:auto;overflow-y:hidden;margin:0 -4px;padding:0 4px}
.org-view .org{overflow:visible;width:max-content;transform-origin:0 0;padding:4px 0 8px}
.org-size{margin:0 auto}
.org-view.pan{cursor:grab}.org-view.panning,.org-view.panning *{cursor:grabbing;user-select:none}
.org-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:6px 0 12px}
.org-tools[hidden]{display:none}
.org-seg,.org-zoom{display:inline-flex;align-items:stretch}
.org-tools button{min-height:34px;padding:4px 14px;font-size:13.5px;font-weight:500;background:#fff;color:var(--ink);border:1px solid #cfd6e0;border-radius:0;margin:0}
.org-tools button+button,.org-zoom output+button{border-left:0}
.org-tools span>button:first-child{border-radius:8px 0 0 8px}.org-tools span>button:last-child{border-radius:0 8px 8px 0}
.org-tools button:hover{background:var(--soft)}
.org-seg button[aria-pressed="true"]{background:var(--brand-2);border-color:var(--brand-2);color:#fff;font-weight:700}
.org-zoom button[data-zoom="in"],.org-zoom button[data-zoom="out"]{width:38px;padding:0;font-size:17px;line-height:1}
.org-zoom output{display:grid;place-items:center;min-width:58px;padding:0 6px;border:1px solid #cfd6e0;border-left:0;background:var(--soft);font-size:13.5px;font-variant-numeric:tabular-nums}
.org-zoom .org-fit{margin-left:8px;border-left:1px solid #cfd6e0;border-radius:8px}
.org-tools.vert .org-zoom,.org-tools:not(.pan) .org-pan{display:none}
@media (hover:none){.org-pan{display:none!important}}
/* 離脱・停止中の人を除く／表示する (Hyde 2026-11-09): links, in the same row as the ways to show the chart */
.org-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:6px 0 12px}
.org-bar>.org-tools{margin:0}
.org-who{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin:6px 0 12px}
.org-bar>.org-who{margin:0}
.org-who-l{font-size:13px;color:var(--muted)}
.org-who .org-seg a{display:grid;place-items:center;min-height:34px;padding:4px 14px;font-size:13.5px;font-weight:500;background:#fff;color:var(--ink);border:1px solid #cfd6e0;text-decoration:none}
.org-who .org-seg a+a{border-left:0}
.org-who .org-seg a:first-child{border-radius:8px 0 0 8px}.org-who .org-seg a:last-child{border-radius:0 8px 8px 0}
.org-who .org-seg a:hover{background:var(--soft)}
.org-who .org-seg a[aria-current="true"]{background:var(--brand-2);border-color:var(--brand-2);color:#fff;font-weight:700}
.o-note .nw{white-space:nowrap}
/* 縦に並べる枝（ul.stack とその下、縦に並べる表示の全員）：上位のカードの左寄りから下りる線に、横の線でつなぐ */
.org ul.stack,.org ul.stack ul,.org.vert ul{flex-direction:column;align-items:stretch;justify-content:flex-start;padding:0 0 0 var(--ind)}
.org ul.stack::before,.org ul.stack ul::before,.org.vert ul::before{display:none}
.org ul.stack li,.org.vert ul>li{padding:8px 0 0;align-items:stretch}
.org ul.stack li::before,.org.vert ul>li::before{display:block;left:calc(var(--ind) / -2);right:auto;top:var(--tick);width:calc(var(--ind) / 2);height:0;border:0;border-top:1px solid #9aa6b8;border-radius:0}
.org ul.stack li::after,.org.vert ul>li::after{display:block;left:calc(var(--ind) / -2);top:0;bottom:0;width:0;height:auto;border:0;border-left:1px solid #9aa6b8;border-radius:0}
.org ul.stack li:last-child::after,.org.vert ul>li:last-child::after{bottom:auto;height:calc(var(--tick) + 1px);width:calc(var(--ind) / 2);border-bottom:1px solid #9aa6b8;border-radius:0 0 0 6px}
.org ul.stack li:last-child::before,.org.vert ul>li:last-child::before{display:none}
.org li.has-stack,.org.vert li{align-items:stretch}
.org li.has-stack>.o-card,.org ul.stack li>.o-card{min-width:100%}
.org ul.stack li.dragging::before,.org ul.stack li.dragging::after,.org.vert ul>li.dragging::before,.org.vert ul>li.dragging::after{visibility:hidden}
/* 縦に並べる：いちばん上は線なし。カードは幅いっぱい・左寄せ */
.org-view .org.vert{width:auto;max-width:620px;margin:0 auto}
.org.vert>ul{width:auto;min-width:0;padding-left:0}
.org.vert>ul>li{padding-top:0}
.org.vert>ul>li::before,.org.vert>ul>li::after{display:none}
.org.vert .o-card{min-width:0;max-width:none;text-align:left}
.org.vert .o-card{display:flex;flex-wrap:wrap;align-items:center;column-gap:12px}
.org.vert .o-card>*{flex:1 0 100%}
.org.vert .o-card>.o-pt{flex:0 0 auto;justify-content:flex-start;margin:4px 0 2px}
.org.vert .o-card>.o-stat{flex:1 1 auto;margin:2px 0 0}
/* 並べ替えできる画面では、左上の ⠿ の分だけ名前を右に寄せる（⠿ のない人もそろえる） */
.org.vert.arrange .o-card:not(.root){padding-left:28px;padding-right:12px}
@media (max-width:600px){.org{--ind:16px}.org.vert.arrange .o-card:not(.root){padding-left:34px}}
/* 確認事項のお知らせ（Hyde 2026-11-03、lib/issuenotices.js） */
.untold{color:var(--warn);font-weight:600}
.issue-notify{display:grid;gap:8px;max-width:680px;margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}.issue-notify h2,.issue-notify h3{margin:0}.issue-notify p{margin:0}.issue-notify label.check{margin:0}.issue-notify button{justify-self:start}
.issue-log{margin:4px 0 8px;padding-left:1.3em;line-height:1.7}.issue-log li{margin-bottom:4px}
/* プランの画面（契約・保全）を短く (Hyde 2026-11-08「縦長すぎる。一覧性が落ちる」「状況を把握しながらも、確認事項が見れること、
   積立が停止されている様をアラートでみれることが重要」): 名前の下に要対応（div.next と同じ箱）、手続きの進みは6つの段を横に
   （スマホは3つずつ2段）、項目は名前の下に値を置いて何列にも、PC では確認事項・お客様の対応待ち・積立金未払を右に並べる。履歴は畳む */
.plan{display:grid;gap:0 18px}
@media (min-width:1100px){.plan.two{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);align-items:start}}
.pl-side>.card{margin:0 0 18px;padding:20px 22px}
.pl-head{container-type:inline-size}
.pl-title{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 16px;margin:0 0 12px}
.pl-title h1{margin:0;font-size:22px;padding-left:10px;border-left:4px solid var(--brand-2)}
.pl-sub{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 14px;font-size:14px;color:var(--muted)}
.pl-alerts{margin-bottom:12px}
.pl-alerts .next-list li{gap:8px}.pl-alerts .next-list li>.badge{flex:none}
.pl-alerts .next-list a{font-weight:500;color:var(--ink)}.pl-alerts .next-list a strong{color:var(--brand-2)}
.pl-ex{display:block;font-size:13px;color:var(--muted);line-height:1.5}
.pl-alerts .untold{white-space:nowrap}
.pl-steps{margin:0 0 12px}
.pl-steps h3,h3.pl-h{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 12px;font-size:13.5px;color:var(--muted);margin:0 0 6px}
h3.pl-h{margin-top:14px;padding-top:10px;border-top:1px solid var(--line-2)}
.pl-steps h3 .small{font-weight:400}
.pl-steps ol{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:0;padding:0}
@container (min-width:640px){.pl-steps ol{grid-template-columns:repeat(6,minmax(0,1fr))}}
.pl-steps li{padding:6px 8px;border-radius:6px;background:#f1f4f8;color:#7d889a;line-height:1.35;min-width:0}
.pl-steps li b{display:block;font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pl-steps li small{display:block;font-size:12.5px}
.pl-steps li.done{background:#e8f3ed;color:var(--ok)}
.pl-steps li.now{background:var(--brand-2);color:#fff}
.pl-steps li.now.cust{background:#fff1d6;color:var(--warn);box-shadow:inset 0 0 0 1.5px #e7b65c}
.pl-steps li.now .pl-wait{font-weight:700}
.pl-steps li small.pl-src{font-size:11.5px;opacity:.8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pl-steps li.todo b{font-weight:500}
dl.ptiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:2px 18px;margin:0}
dl.ptiles>div{padding:5px 0;border-bottom:1px solid var(--line-2);min-width:0}
dl.ptiles>div.wide{grid-column:span 2}dl.ptiles>div.full{grid-column:1/-1}
dl.ptiles dt{color:var(--muted);font-size:12.5px;line-height:1.5}
dl.ptiles dd{margin:0;min-width:0;overflow-wrap:anywhere;line-height:1.6}
.warnbox dl.ptiles>div{border-bottom-color:#f3e4c4}
.pl-issue{white-space:pre-wrap;margin:10px 0 0}
.pl-side .card h3,.pl-head h3{margin-top:14px}
details.pl-edit,details.pl-send{display:inline}
details.pl-edit>summary,details.pl-send>summary{display:inline-block;cursor:pointer;color:var(--brand-2);font-size:13px;margin-left:8px;text-decoration:underline}
details.pl-send{display:block;margin-top:10px}
details.pl-send>summary{margin:0;font-size:14px;font-weight:500;text-decoration:none;border:1px solid var(--brand-2);border-radius:6px;padding:5px 14px;background:#fff}
details.pl-edit[open]{display:block}
details.pl-edit>form{margin-top:6px}
details.pl-send .issue-notify{margin-top:8px;padding-top:0;border-top:0}
details.pl-fold>summary{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px;cursor:pointer;list-style:none}
details.pl-fold>summary::-webkit-details-marker{display:none}
details.pl-fold>summary h2{margin:0;padding-left:10px;border-left:4px solid var(--brand-2)}
details.pl-fold>summary::after{content:"開く";font-size:13px;color:var(--brand-2);text-decoration:underline}
details.pl-fold[open]>summary::after{content:"閉じる"}
details.pl-fold[open]>summary{margin-bottom:10px}
@media (max-width:760px){
  .pl-title h1{font-size:20px}
  .pl-side>.card{padding:18px 16px}
  .pl-alerts .next-list li{display:block}.pl-alerts .next-list li>.badge{margin-right:8px}
  dl.ptiles{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));column-gap:14px}
}
/* サポーターポータル利用規約 (lib/terms.js): the text in a scroll box, the consent under it. */
.terms-page{max-width:860px;margin:0 auto}
.terms-page p.warn{color:var(--req);font-weight:500}
.terms-text{max-height:62vh;overflow:auto;line-height:1.8;background:#fff}
.terms-text h2{font-size:17px;margin:4px 0 12px}
.terms-text h3{font-size:14.5px;margin:18px 0 6px}
.terms-text p{margin:4px 0}
.terms-text ol{padding-left:1.7em;margin:4px 0}
.terms-text ol ol{list-style:lower-alpha}
.terms-party{border:1px solid var(--line);border-left:4px solid var(--brand-2);border-radius:6px;background:var(--soft);padding:10px 14px;margin:0 0 14px}
.terms-party p{margin:2px 0}
.terms-agree{margin-top:16px}
.terms-agree button{min-width:200px}
/* 入力フォームのまとまり (Hyde 2026-11-06 「情報が適切にグルーピングされていない」): ユーザ管理・ID払出申請・法人マスタを、見出し付きの
   まとまりに分ける。選んだときだけ意味のある欄（サポーターコード・組織名・新しい法人の名前）は、そのチェックや選択の下に字下げして
   出し、それまでは出さない（lib/formdeps.js） */
fieldset.fs{border:0;border-top:1px solid var(--line);margin:0;padding:14px 0 6px;min-width:0}
fieldset.fs:first-of-type{border-top:0;padding-top:4px}
fieldset.fs>legend{float:left;width:100%;padding:0;margin:0 0 10px;font-size:15px;font-weight:700;color:var(--brand)}
fieldset.fs>legend+*{clear:both}
fieldset.fs[hidden],fieldset.dep[hidden],[data-unless][hidden],.zipnote[hidden]{display:none}
fieldset.fs .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
fieldset.fs .grid.addr{grid-template-columns:minmax(150px,200px) minmax(0,1fr)}
fieldset.fs .grid>label.wide{grid-column:1/-1}
@media (max-width:640px){fieldset.fs .grid,fieldset.fs .grid.addr{grid-template-columns:minmax(0,1fr)}fieldset.fs .grid.pair{grid-template-columns:repeat(2,minmax(0,1fr))}}
fieldset.dep{border:0;border-left:3px solid #c9d6ea;margin:-2px 0 12px 7px;padding:2px 0 0 18px;min-width:0}
fieldset.dep .grid{margin-bottom:4px}
label.check:has(small){align-items:flex-start}
label.check:has(small) input{margin-top:5px}
label.check small{color:var(--muted);font-size:12.5px;margin-top:1px}
.dep-note{margin:-4px 0 12px 7px;padding:6px 12px;border-left:3px solid #f0c987;background:#fffaf0;font-size:13px;color:var(--warn)}
fieldset.fs input:disabled{background:#eef1f5;color:#8a94a3;border-style:dashed;cursor:not-allowed}
.zipnote{margin:-4px 0 12px;font-size:13px;line-height:1.6}
.zipnote.ok{color:var(--ok)}.zipnote.warn{color:var(--warn)}
.zipnote select{max-width:420px;margin-top:6px}
.zipnote button{margin-left:6px}
/* LINE WORKS ID のまとめて登録: the column choice */
.lw-cols{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;margin:8px 0 12px}
.lw-cols label{display:grid;gap:2px}.lw-cols select,.lw-cols input{width:100%}
/* 身分証明書と名刺の AI 読み取り (2026-11-07): 転記の前に必ず押す手順に見せる（未実施＝黄色の帯と目立つボタン、済み＝緑の印）。
   結果は1行の要約（要確認の件数と、身分証明書・名刺・英文社名の結果）の下に畳む */
.card.ai-step{border-color:#f0c987;border-left:5px solid var(--warn);background:#fffaf0}
.card.ai-step.done{border-color:var(--line);border-left-color:var(--ok);background:var(--card)}
.ai-head{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px}
.ai-head .badge{font-size:13px;padding:2px 10px}
.ai-title{font-size:16.5px}
.ai-must{color:var(--warn);font-weight:700;font-size:13.5px}
.ai-lead{margin:8px 0 0}
button.big{font-size:16px;font-weight:700;padding:12px 28px;min-height:50px;box-shadow:0 2px 6px rgba(29,79,140,.28)}
button.big:disabled{box-shadow:none}
.ai-act{margin-top:14px;display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px}
.card.ai-step.done .ai-act{margin-top:12px}
details.ai-about>summary{cursor:pointer;font-size:13px;color:var(--muted)}
details.ai-about p{margin:6px 0 0;max-width:62em}
details.ai-result{margin-top:12px;border:1px solid var(--line);border-radius:8px;background:#fff}
details.ai-result.warn{border-color:#f0c987}
details.ai-result>summary{cursor:pointer;list-style:none;display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;padding:9px 12px}
details.ai-result>summary::-webkit-details-marker{display:none}
details.ai-result>summary::before{content:"";flex:none;width:0;height:0;border:5px solid transparent;border-left:7px solid var(--muted);margin-right:-2px;transition:transform .15s}
details.ai-result[open]>summary::before{transform:rotate(90deg) translate(2px,-2px)}
details.ai-result>summary:hover{background:var(--soft)}
.ai-chips{display:flex;flex-wrap:wrap;gap:6px}
.ai-chip{display:inline-flex;align-items:center;gap:5px;font-size:13px;line-height:1.5;border:1px solid var(--line);border-radius:14px;padding:1px 10px;color:var(--muted);background:#fff}
.ai-chip b{font-weight:600;color:var(--ink)}
.ai-chip.ok{border-color:#9fd4b7}.ai-chip.ok b{color:var(--ok)}
.ai-chip.warn{border-color:#f0c987;background:#fffaf0}.ai-chip.warn b{color:var(--warn)}
.ai-more{margin-left:auto;font-size:13px;color:var(--brand-2);white-space:nowrap}
details.ai-result .ai-more .o,details.ai-result[open] .ai-more .c{display:none}details.ai-result[open] .ai-more .o{display:inline}
details.ai-result ul.ainotes,details.ai-result .ai-none{margin:0;padding:8px 14px 10px 2.2em;border-top:1px solid var(--line-2)}
details.ai-result .ai-none{padding-left:14px}
.ai-remind{margin:6px 0 2px}
@media (max-width:600px){
  button.big{width:100%}
  details.ai-result .ai-more{order:1}
  details.ai-result .ai-chips{order:2;width:100%}
}
/* ポイントの帯 (Hyde 2026-11-07: ポイントは業務メニューの中心ではないので、メニューの下に縦幅を狭く、スクロールしても見えるように)。
   幅の広い PC（1100px〜）は全部の期を1行に（案B。1220px より狭いと左の見出しを省く）、それより狭い画面とスマホは選んだ期と通年だけ（案A）で、
   ▼で年・数え方・期を選ぶ。どちらも同じ高さ（PC 40px・スマホ 46px）で、帯の高さは --hdr-pts と合わせる */
.ptstrip{position:sticky;top:var(--hdr-menu);z-index:49;height:var(--hdr-pts);background:#fff;border-bottom:1px solid var(--line);box-shadow:0 2px 6px rgba(15,45,82,.06);padding:0 16px;font-size:13.5px;line-height:1.4}
.ptstrip>.inner{max-width:1280px;height:100%;margin:0 auto;display:flex;align-items:center}
.ptstrip a{text-decoration:none}
.ptstrip i{font-style:normal}
.ptstrip b{font-variant-numeric:tabular-nums}
.ptstrip .zero{color:#a3abb9;font-weight:500}
.ps-a,.ps-b{flex:1;min-width:0;height:100%;display:flex;align-items:center;white-space:nowrap}
.ps-title{font-weight:700;color:var(--brand);font-size:13px}
.ps-base{display:inline-flex;margin-left:auto}
.ps-base a{font-size:12.5px;line-height:22px;padding:0 10px;border:1px solid #cfd6e0;background:#fff;color:var(--ink)}
.ps-base a:first-child{border-radius:6px 0 0 6px}.ps-base a:last-child{border-radius:0 6px 6px 0;border-left:0}
.ps-base a:hover{background:var(--soft)}
.ps-base a.on{background:var(--brand-2);border-color:var(--brand-2);color:#fff;font-weight:700}
.ps-link{font-size:13px;color:var(--brand-2);text-decoration:underline!important;text-underline-offset:3px}
/* 案B：‹ 年 ›・1〜3月 … 通年（PP / OP）・数え方・内訳 */
.ps-b{gap:10px}
@media (min-width:1100px){.ptstrip{background:var(--soft)}}
.ps-b .ps-title{display:inline-flex;align-items:baseline;gap:6px}
.ps-b .ps-title small{font-size:11px;color:var(--muted);font-weight:600}
.ps-yr{display:inline-flex;align-items:stretch;height:26px;border:1px solid #cfd6e0;border-radius:6px;background:#fff;overflow:hidden}
.ps-yr a,.ps-yr .off{display:grid;place-items:center;width:22px;color:var(--brand-2);background:var(--soft);font-size:15px}
.ps-yr a:hover{background:#e3ecf8}
.ps-yr .off{color:#c8ced8;cursor:default}
.ps-yr b{padding:0 8px;line-height:24px;font-size:13px}
.ps-cells{display:flex;gap:6px;flex-wrap:nowrap}
.ps-c{display:inline-flex;align-items:baseline;gap:6px;height:28px;padding:0 10px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--ink);line-height:26px}
a.ps-c:hover{border-color:#9fb3cf}
.ps-c .c-p{font-size:12px;color:var(--muted);font-weight:700}
.ps-c b{font-size:15px}
.ps-c .sl{color:#b4bccb;font-size:12px}
.ps-c .none{color:#c8ced8;font-weight:400}
.ps-c.now .c-p::after{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--ok);margin-left:4px;vertical-align:1px}
.ps-c.on{border-color:var(--brand-2);box-shadow:0 0 0 1px var(--brand-2) inset}
.ps-c.on .c-p{color:var(--brand-2)}
.ps-c.year{background:#eef2f7}
.ps-c.future{background:#fbfcfd;border-style:dashed}
/* 案A：ポイント｜選んだ期 ▼｜PP・OP｜通年｜数え方・内訳 */
.ps-a{gap:12px;position:relative}
.ps-a .ps-title{padding-right:12px;border-right:1px solid var(--line);line-height:20px}
.ps-per{position:static}
.ps-per>summary{list-style:none;display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 8px 0 10px;border:1px solid #cfd6e0;border-radius:7px;background:#fff;font-weight:700;cursor:pointer;user-select:none}
.ps-per>summary::-webkit-details-marker{display:none}
.ps-per>summary:hover,.ps-per[open]>summary{background:var(--soft);border-color:#9fb3cf}
.ps-per .p-base{display:none;font-size:10.5px;font-weight:500;color:var(--muted)}
.ps-per .car{font-size:10px;color:var(--muted)}
.ps-per[open] .car{transform:rotate(180deg)}
.ps-v{display:inline-flex;align-items:baseline;gap:5px}
.ps-v i{font-size:11.5px;font-weight:700;color:var(--muted)}
.ps-v b{font-size:17px;line-height:1}
.ps-sep{width:1px;height:18px;background:var(--line)}
.ps-year{display:inline-flex;align-items:baseline;gap:8px;color:var(--muted);font-size:12.5px}
.ps-year>span{display:inline-flex;align-items:baseline;gap:4px}
.ps-year i{font-size:11px;font-weight:700}
.ps-year b{color:var(--ink);font-size:14px}
.ps-pop{position:absolute;top:calc(100% - 2px);left:0;z-index:5;width:min(940px,100%);background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 10px 28px rgba(15,45,82,.2);padding:14px 16px 16px;white-space:normal;font-size:15px;line-height:1.75}
.ps-pop .pt-row{margin:0 0 10px}
.ps-foot{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px 16px;margin:12px 0 0;font-size:12.5px;color:var(--muted)}
.ps-foot a{font-size:13.5px;color:var(--brand-2);text-decoration:underline;text-underline-offset:3px}
/* 画面の幅で切り替える：1220px〜 案B／1100〜1219px 案B（見出しなし）／〜1099px 案A／〜899px 案A をスマホ向けに詰める */
.ps-a{display:none}
@media (max-width:1399px){.ps-b .ps-title{display:none}}
@media (max-width:1219px){.ps-b .ps-title{display:none}.ps-b{gap:8px}.ps-c{padding:0 8px}}
@media (max-width:1099px){.ps-b{display:none}.ps-a{display:flex}}
@media (max-width:999px){.ps-a .ps-title{display:none}}
@media (max-width:899px){
  .ptstrip{padding:0 12px}
  .ps-a{gap:10px}
  .ps-a>.ps-base,.ps-a>.ps-link,.ps-a .ps-sep{display:none}
  .ps-per>summary{position:relative;height:36px;flex-direction:column;align-items:flex-start;justify-content:center;gap:0;padding:0 24px 0 9px;line-height:1.25}
  .ps-per>summary .p-y,.ps-per>summary .pt-st{display:none}
  .ps-per .p-base{display:block}
  .ps-per .car{position:absolute;right:8px;top:50%;margin-top:-7px}
  .ps-v b{font-size:16px}
  .ps-year{margin-left:auto;flex-direction:column;align-items:flex-end;gap:0;line-height:1.25}
  .ps-year .y-pp{display:none}
  .ps-year b{font-size:13.5px}
  .ps-pop{left:-12px;width:calc(100% + 24px);top:calc(100% - 4px);border-radius:0 0 12px 12px;padding:12px 12px 14px;max-height:calc(100vh - 60px);overflow:auto}
  .ps-foot{flex-direction:column;align-items:stretch}
  .ps-foot a{display:block;text-align:center;padding:8px;border:1px solid var(--brand-2);border-radius:8px;text-decoration:none;font-weight:700}
}
@media (max-width:359px){.ps-year{display:none}}

/* 勉強会などのご案内 (lib/invitepages.js): the mail as it goes out, and the words the 担当者 reads to the customer */
pre.mailtext{white-space:pre-wrap;word-break:break-word;font:inherit;font-size:14px;line-height:1.7;background:var(--soft);border:1px solid var(--line);border-radius:6px;padding:12px 14px}
#invite blockquote{margin:6px 0 12px;padding:8px 12px;border-left:3px solid var(--brand-2);background:var(--soft)}
fieldset.plain{border:0;padding:0;margin:10px 0}
fieldset.plain legend{font-size:13px;color:var(--muted);font-weight:500;padding:0;margin-bottom:4px}
textarea.mailbody{font:inherit;font-size:15px;line-height:1.6;padding:9px 12px}
.ivbtns{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.ivbtns form{margin:0}

/* 業務委託料 (lib/feepages.js, Hyde 2026-11-13): 見込み・月次の計算・明細書 */
.fe h1{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px}
.fe-whoname{font-size:15px;font-weight:500;color:var(--muted)}
.fe-who{margin:0 0 10px}.fe-who label{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}.fe-who select{width:auto;min-width:12em;max-width:100%}
.fe-open{display:flex;align-items:center;justify-content:space-between;gap:8px 14px;flex-wrap:wrap;border:1px solid var(--line);border-radius:8px;background:var(--soft);padding:8px 14px;margin:0 0 12px;font-size:13.5px}
.fe-lead{margin:0 0 12px;color:var(--muted);font-size:14px}
.pt-row .fe-lead{margin:0}
.fe-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:0 0 16px}
.fe-tile{border:1px solid var(--line);border-left:4px solid var(--brand-2);border-radius:8px;padding:8px 12px;background:#fff;line-height:1.4}
.fe-tile.hero{background:var(--soft)}
.fe-tile.alert{border-left-color:var(--warn);background:#fffaf0}
.fe-tl{font-size:12.5px;color:var(--muted);font-weight:700}
.fe-tv{font-size:19px;font-weight:700;font-variant-numeric:tabular-nums}
.fe-tile.hero .fe-tv{font-size:26px}
.fe-tn{font-size:12px;color:var(--muted)}
.fe-ytab td.num,.fe-mt td.num,.fe-tab td.num{font-variant-numeric:tabular-nums;white-space:nowrap}
table.list tr.fe-sum>td{background:var(--soft);font-weight:700;border-top:2px solid var(--line)}
.fe-years{max-width:760px;margin:0 0 16px}
.fe-h2{font-size:16px;margin:8px 0 6px;display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline}
/* One series of columns: the 業務委託料 of each month on a yen axis, the month average dashed, a box with the numbers on hover
   or tap (Hyde 2026-11-14 「このグラフがわかりづらい、基準値もわからない」); the table under it holds the numbers. */
.fe-chart{position:relative;padding:10px 0 0 54px;margin:0 0 8px}
.fe-plot{position:relative;height:160px}
.fe-gl{position:absolute;left:0;right:0;height:0;border-top:1px solid #e8ecf2;pointer-events:none}
.fe-gl.base{border-top-color:#b8c0cc}
.fe-gl span{position:absolute;right:calc(100% + 6px);top:-.7em;font-size:11px;line-height:1.4;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.fe-avg{position:absolute;left:0;right:0;height:0;border-top:1.5px dashed #475569;z-index:2;pointer-events:none}
.fe-avg span{position:absolute;right:0;bottom:2px;font-size:11.5px;font-weight:600;color:var(--ink);background:rgba(255,255,255,.88);padding:0 4px;border-radius:3px;white-space:nowrap;font-variant-numeric:tabular-nums}
.fe-avg.low span{bottom:auto;top:3px}
.fe-cols{position:relative;display:grid;gap:2px;height:100%;align-items:end;z-index:1}
.fe-cols:hover,.fe-cols:focus-within{z-index:3}
.fe-col{position:relative;height:100%;display:flex;align-items:flex-end;justify-content:center;cursor:pointer;outline:none}
.fe-col:hover,.fe-col:focus{background:rgba(29,79,140,.06)}
.fe-bar{display:block;width:72%;max-width:22px;background:var(--brand-2);border-radius:4px 4px 0 0}
.fe-bar.zero{height:0!important}
.fe-col:hover .fe-bar,.fe-col:focus .fe-bar{background:var(--brand)}
.fe-tip{display:none;position:absolute;left:0;z-index:5;background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:6px;box-shadow:0 4px 12px rgba(15,23,42,.14);padding:6px 9px;font-size:12px;line-height:1.55;white-space:nowrap;text-align:left;pointer-events:none;font-variant-numeric:tabular-nums}
.fe-col.r .fe-tip{left:auto;right:0}
.fe-col:hover .fe-tip,.fe-col:focus .fe-tip{display:block}
.fe-x{position:absolute;top:calc(100% + 3px);left:50%;transform:translateX(-50%);font-size:11px;line-height:1.25;color:var(--muted);white-space:nowrap;text-align:center}
.fe-chart{margin-bottom:34px}
.fe-mtab summary{cursor:pointer;color:var(--brand-2);font-size:14px;margin:4px 0 8px}
.fe-mt{max-width:760px}
.fe-pips{display:inline-flex;gap:3px;vertical-align:middle}
.fe-pips i{display:inline-block;width:10px;height:10px;border-radius:50%;border:1.5px solid var(--brand-2);background:#fff}
.fe-pips i.on{background:var(--brand-2)}
.fe-pips i.due{background:repeating-linear-gradient(45deg,var(--brand-2) 0 2px,#fff 2px 4px)}
.fe-pips i.x{border-color:#c8ced8;background:#eef1f5;position:relative}
.fe-pips i.x::after{content:'';position:absolute;left:-2px;right:-2px;top:3px;height:1.5px;background:#98a2b3;transform:rotate(-45deg)}
.fe-pips i.now{background:var(--brand);border-color:var(--brand);outline:1.5px solid var(--brand);outline-offset:1.5px;margin:0 2px}
.fe-kai .fe-pips{display:flex;gap:2px;margin:3px 0 4px}
/* Smaller circles in the 明細書's 回 column so the ten columns still fit an A4 page (8 circles ≈ 80px, under the text below them). */
.fe-kai .fe-pips i{width:8px;height:8px;border-width:1.2px}
.fe-kai .fe-pips i.now{outline-width:1.2px;outline-offset:1px;margin:0 1.5px}
.fe-kai .fe-pips i.x::after{top:2.5px}
/* 4. 今後の見込み in groups (Hyde 2026-11-14): next month, the month after, stopped, the rest folded. */
.fe-gh{font-size:14.5px;margin:14px 0 6px;display:flex;flex-wrap:wrap;gap:2px 10px;align-items:baseline;color:var(--brand)}
.fe-gh.alert{color:var(--warn)}
.fe-fold{margin:14px 0 0}.fe-fold>summary.fe-gh{cursor:pointer;display:list-item;margin:0 0 6px}.fe-fold>summary.fe-gh>*{margin-left:10px}
.fe-hint{color:var(--brand-2)}details[open]>summary .fe-hint{display:none}
.fe-stoplist{list-style:none;margin:0 0 8px;padding:0;border-top:1px solid var(--line)}
.fe-stoplist li{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;padding:8px 4px;border-bottom:1px solid var(--line)}
.fe-stopname{font-weight:700}
.fe-hozen{margin-left:auto;font-size:13px;white-space:nowrap}
td .fe-hozen{margin-left:0}
.fe-pipkey{margin:6px 0 0}.fe-pipkey .fe-pips{margin:0 3px 0 8px}.fe-pipkey .fe-pips:first-child{margin-left:2px}
.fe-tab td{vertical-align:top}
table.list tr.lost>td{background:#fafbfc}
b.lost,span.lost,strong.lost{color:var(--req)}
.warn-t{color:var(--warn)!important;font-weight:600}
table.list tr.muted-row>td{color:var(--muted)}
.fe-org .fe-pay{background:#f1f6fd}
.fe-stop{color:var(--warn);font-weight:700}
.muted-card{background:var(--soft);box-shadow:none}
/* 明細書 */
.fe-doc{max-width:1080px}
.fe-dochead{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px 24px;border-bottom:2px solid var(--brand);padding-bottom:12px;margin-bottom:14px}
.fe-doctitle{font-size:22px;font-weight:700;letter-spacing:.08em;color:var(--brand)}
.fe-docmonth{font-size:16px;font-weight:700;margin-top:2px}.fe-docmonth .muted{font-size:13px;font-weight:500;margin-left:6px}
.fe-docto{text-align:right;display:flex;flex-direction:column;gap:2px}.fe-docto b{font-size:18px}.fe-docto span{font-size:12.5px;color:var(--muted)}
.fe-docnav{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:0 0 14px}
.fe-docnav button{margin-left:auto}
.fe-calc{margin:-6px 0 18px;font-size:14px;background:var(--soft);border-radius:6px;padding:8px 12px;font-variant-numeric:tabular-nums}
.fe-sec{margin:0 0 20px}
.fe-sec>h2{font-size:16px;margin:0 0 8px;padding-left:10px;border-left:4px solid var(--brand-2);display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline}
.fe-foot{border-top:1px solid var(--line);padding-top:10px;margin-top:6px;line-height:1.7}
@media (max-width:700px){
  .fe-tile.hero{grid-column:1/-1}
  .fe-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .fe-tv{font-size:17px}.fe-tile.hero .fe-tv{font-size:22px}
  .fe-plot{height:130px}.fe-cols{gap:1px}
  .fe-chart{padding-left:44px}.fe-gl span{font-size:10px}.fe-avg span{font-size:10.5px}
  .fe-x{font-size:10px}
  table.list.fe-ytab th,table.list.fe-ytab td,table.list.fe-mt th,table.list.fe-mt td{padding:7px 3px;font-size:12px}
  .fe-ytab td .small{display:block}
  .fe-docto{text-align:left}
  .fe-docnav button{margin-left:0}
}
@media print{.fe-doc{max-width:none}.fe-tile{break-inside:avoid}.fe-sec{break-inside:auto}.fe-col:hover{background:none}.ctabs{display:none}
  .fe-tip{display:none!important}.fe-chart,.fe-pips{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
/* 明細書の PDF（Hyde 2026-11-14 「明細書は月次でPDF出力できる形にしたい」）：A4、1人ずつ改ページ、今後の見込みは2枚目から。 */
.fe-pdfnote{margin:-6px 0 14px}
.fe-allpdf{margin-left:auto}
.fe-printbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}.fe-printbar p{flex-basis:100%;margin:0}.fe-printbar button{margin-left:auto}
.fe-docs>.fe-doc{margin-bottom:24px}
@media print{@page{size:A4;margin:10mm}.fe-docs>.fe-doc{break-after:page;margin:0}.fe-docs>.fe-doc:last-child{break-after:auto}.fe-pdfnote{display:none}.fe-future{break-before:page}.fe-chart{break-inside:avoid}}
@media print{.fe-foot{font-size:9.5px;line-height:1.5}}
/* 1. 今月の業務委託料: 10 columns (Hyde 2026-11-14), narrower cells so the A4 page holds them. */
@media (min-width:701px){table.list.fe-paytab th,table.list.fe-paytab td{padding-left:6px;padding-right:6px;font-size:13.5px}table.list.fe-paytab th{white-space:nowrap}}
/* 明細書の印刷（Hyde 2026-11-14 「印刷での表示がA4幅にあわせて最適化してほしい。不格好。」）: Chrome lays a printed A4 page out
   at the paper's width less the margins (190mm = 718px), which is under the 760px where every table turns into one card per row
   for phones: each case took a third of a page with its numbers pushed to the right edge. On paper every table of the 明細書
   stays a table whatever the width, its header repeated on each page and a row never split between two. */
@media (max-width:760px){.fe-doc table.list.cards thead{display:none}.fe-doc table.list.cards tbody tr:first-child{display:block}}
@media print{
  .fe-doc table.list.cards{display:table;width:100%;border-collapse:collapse}
  .fe-doc table.list.cards thead{display:table-header-group}
  .fe-doc table.list.cards tbody{display:table-row-group}
  .fe-doc table.list.cards tr,.fe-doc table.list.cards thead tr:first-child,.fe-doc table.list.cards tbody tr:first-child{display:table-row;border:0;border-radius:0;padding:0;margin:0;background:none;break-inside:avoid}
  .fe-doc table.list.cards th,.fe-doc table.list.cards td,.fe-doc table.list.cards td[data-label],.fe-doc table.list.cards td.c-main{display:table-cell;position:static;width:auto;min-height:0;margin:0;padding:4px 6px;border-bottom:1px solid var(--line);font-size:var(--fe-td,11px);line-height:1.45}
  .fe-doc table.list.cards th{padding-top:3px;padding-bottom:3px;font-size:10px;line-height:1.35;vertical-align:bottom;border-bottom-color:#c5cedb}
  .fe-doc table.list.cards td[data-label]::before{content:none}
  .fe-doc table.list.cards td.nw,.fe-doc table.list.cards td.nw span.nw{white-space:nowrap}
  .fe-doc table.list.cards .badge{font-size:9.5px;padding:0 5px}
  /* The customer's name on one line, 区分 on the first line with the share under it (rows are two lines anyway), words kept
     whole (not 「ランクボーナ／ス」). Only the small second lines may wrap, should a page ever run short of width. */
  .fe-doc table.list.cards td.c-main{white-space:nowrap}
  .fe-doc table.list.cards td[data-label^="区分"]{word-break:keep-all}.fe-doc table.list.cards td[data-label^="区分"]>b{display:block}
  .fe-doc table.list.cards td .sub-line,.fe-doc table.list.cards td .sub-line.act{display:block;margin-left:0;font-size:9.5px;line-height:1.4;white-space:normal;word-break:normal}
  .fe-doc table.list.cards td.nw .sub-line{white-space:nowrap}
  .fe-doc .fe-tl,.fe-doc .fe-tn{word-break:keep-all;overflow-wrap:anywhere}.fe-doc .fe-tl{font-size:11.5px}.fe-doc .fe-tn{font-size:11px}
  .fe-doc .fe-sec p.small{font-size:10.5px;margin:6px 0 0}
  /* 1. 今月の業務委託料: 10 columns in the 718px between 10mm margins, with room for longer names and amounts. */
  .fe-doc table.list.fe-paytab th,.fe-doc table.list.fe-paytab td{padding-left:4px;padding-right:4px}.fe-doc table.list.fe-paytab{--fe-td:10.5px}
  .fe-doc table.list.fe-paytab th{white-space:nowrap}.fe-doc table.list.fe-paytab th.br span.nw{display:block}
  .fe-doc table.list.fe-paytab td[data-label="商品名"]{white-space:nowrap}
}
/* 保有シェアの昇格 (lib/risepages.js). */
.rs-sub{display:flex;flex-wrap:wrap;gap:6px 14px;margin:-4px 0 12px;font-size:13.5px}.rs-sub a{color:var(--muted);text-decoration:none;padding:2px 0;border-bottom:2px solid transparent}.rs-sub a.on{color:var(--brand);font-weight:700;border-bottom-color:var(--brand-2)}
.rs-hero{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;border:1px solid #c9d8ee;border-left:4px solid var(--brand-2);background:#f2f7fd;border-radius:8px;padding:10px 14px;margin:0 0 8px}
.rs-hero b{font-size:22px;color:var(--brand)}.rs-hero.ok{border-color:#bfe3cf;border-left-color:var(--ok);background:#f0faf4}.rs-hero.ok b{color:var(--ok)}
.rs-hl{font-size:12.5px;font-weight:700;color:var(--muted);flex-basis:100%}
.rs-atr{margin:6px 0 10px}
.rs-cond,.rs-ranks,.rs-qtab,.rs-prev{max-width:640px;margin:0 0 10px}.rs-cond td.num,.rs-cond th.num{text-align:center}
.rs-ranks tr.off td{color:var(--muted)}.rs-qtab tr.on td{background:#f2f7fd;font-weight:700}
.rs-yes{color:var(--ok)}
.rs-h3{font-size:14.5px;margin:14px 0 6px}
.rs-memo{max-width:760px;margin:0 0 8px}.rs-memo input[type=date]{width:auto;min-width:9.5em;margin:0;padding:4px 6px}
@media (max-width:640px){.rs-memo{display:block;overflow-x:auto}}
.rs-bar{height:10px;border-radius:5px;background:var(--line-2);overflow:hidden;max-width:640px;margin:0 0 12px}.rs-bar i{display:block;height:100%;background:var(--brand-2);border-radius:5px}
.rs-qnav{display:flex;align-items:center;gap:16px;margin:0 0 12px}.rs-qnav b{font-size:16px}
.rs-person{border:1px solid var(--line);border-radius:8px;padding:10px 14px;margin:0 0 10px;background:#fff}
.rs-ph{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}.rs-ph b{font-size:16px}
.rs-pv{margin:6px 0;font-size:14px}
.rs-act{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:6px 0}.rs-act form.inline{margin:0}
.rs-award-link{white-space:nowrap}
.rs-atrlist{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:4px 12px;margin:8px 0}.rs-atrlist label{display:flex;align-items:center;gap:6px;font-weight:400}.rs-atrlist input{width:auto;margin:0}
div.okbox{border:1px solid #bfe3cf;background:#f0faf4;border-radius:6px;padding:10px 14px;margin:12px 0}div.okbox p{margin:4px 0}
/* 表彰状: A4 landscape, one page; scaled to the screen until printed. */
.rs-award{position:relative;box-sizing:border-box;width:100%;max-width:1000px;aspect-ratio:297/210;margin:0 auto 24px;background:#fffdf7;color:#1c1c1c;
  font-family:"Noto Serif JP","Hiragino Mincho ProN","Yu Mincho","YuMincho","BIZ UDPMincho",serif;container-type:inline-size;box-shadow:0 1px 4px rgba(0,0,0,.12)}
.rs-frame{position:absolute;inset:2.6cqw;border:.5cqw double #a8812f;pointer-events:none}.rs-frame::after{content:"";position:absolute;inset:.9cqw;border:.12cqw solid #c9a554}
.rs-in{position:absolute;inset:5.6cqw 8cqw 5cqw;display:flex;flex-direction:column}
.rs-award h1{display:block;margin:0 0 2cqw;text-align:center;font-size:5.8cqw;font-weight:700;letter-spacing:1.6em;text-indent:1.6em;line-height:1.2}
.rs-to{margin:0 0 1.6cqw;font-size:3.1cqw;font-weight:700}
.rs-body{margin:0;font-size:1.95cqw;line-height:1.9;text-align:justify}
.rs-low{margin-top:auto;display:flex;align-items:flex-end;justify-content:space-between;gap:3cqw}
.rs-list{flex:1 1 auto;min-width:0}
.rs-cases{width:auto;min-width:72%;border-collapse:collapse;font-size:1.25cqw;line-height:1.5;margin:0 0 .8cqw}
.rs-cases th,.rs-cases td{border:0;border-bottom:.08cqw solid #cbb68a;padding:.3cqw .7cqw;text-align:left;white-space:nowrap;background:transparent}
.rs-cases th{font-weight:700;border-bottom:.14cqw solid #a8812f;color:#5b4a22}.rs-cases .num{text-align:right;font-variant-numeric:tabular-nums}
.rs-total{margin:0;font-size:1.6cqw}.rs-total b{font-size:1.9cqw;margin:0 .3cqw}.rs-total span{display:block;font-size:1.05cqw;color:#5b5b5b;margin-top:.2cqw}
.rs-note{margin:.6cqw 0 0;font-size:1.1cqw;line-height:1.5;color:#7a3b12}
.rs-annexref{margin:0 0 .6cqw;font-size:1.5cqw}.rs-caption{margin:0 0 .3cqw;font-size:1.3cqw;font-weight:700;color:#5b4a22;letter-spacing:.1em}
.rs-foot{flex:0 0 auto;display:flex;flex-direction:column;align-items:flex-end;gap:1cqw}
.rs-date{margin:0;font-size:1.7cqw}.rs-sign{margin:0;display:flex;flex-direction:column;align-items:flex-end;font-size:1.75cqw;line-height:1.65;white-space:nowrap}.rs-sign b{font-size:2.5cqw;letter-spacing:.1em}
.rs-annex h2{margin:0 0 1cqw;font-size:2.6cqw;text-align:center;letter-spacing:.3em}.rs-annexto{margin:0 0 1.4cqw;font-size:1.7cqw;text-align:center}
.rs-annex{aspect-ratio:auto;min-height:70.7cqw}.rs-annex .rs-in{position:relative;inset:auto;padding:5.6cqw 8cqw 5cqw}
@media print{main:has(.rs-award){max-width:none;padding:0;margin:0}.rs-award{width:297mm;height:210mm;max-width:none;aspect-ratio:auto;margin:0;box-shadow:none;break-inside:avoid;-webkit-print-color-adjust:exact;print-color-adjust:exact}.rs-award+.rs-award{break-before:page}.rs-annex{height:auto;min-height:210mm;break-inside:auto}}
@media (max-width:640px){.rs-hero b{font-size:19px}.rs-person{padding:8px 10px}}
/* 保有シェアの履歴を直す (lib/shareedit.js): one fieldset per row, the fields side by side on a PC and stacked on a phone */
.se-form fieldset.se-row{border:1px solid var(--line);border-radius:8px;margin:0 0 12px;padding:10px 14px 4px;min-width:0}
.se-form fieldset.se-row legend{font-size:13px;font-weight:700;color:var(--muted);padding:0 6px}
.se-form fieldset.se-new{border-style:dashed}
.se-form fieldset.se-drop{background:#fbf3f2;border-color:#f0c4be}
.se-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px 14px;margin-bottom:8px}
.se-grid label.se-why{grid-column:span 2}
.se-grid>label{min-width:0}.se-grid input,.se-grid select{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
@media (max-width:520px){.se-grid{grid-template-columns:1fr 1fr}.se-grid label.se-why{grid-column:1/-1}}
table.list tr.se-changed>td{background:#fffaf0}
.se-mode{margin:6px 0 10px}.se-mode label.check{margin-bottom:8px}
.se-export{margin:10px 0 4px}.se-export a.btnlink{margin:0 6px 6px 0}
.se-log p{margin:0 0 10px}
/* 戻るボタン (Hyde 2026-11-14 「← 組織の一覧」が目立たないので、よりわかりやすいUIに): 前の画面へ戻るリンクは、どの業務画面でも
   内容の上の左に置く同じボタン（矢印つき・枠つき）。文字だけの小さなリンクだと見落とされていた。印刷には出さない（lib/backlink.js） */
.backline{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:0 0 16px}
a.backbtn{display:inline-flex;align-items:center;gap:8px;max-width:100%;min-height:42px;padding:7px 18px 7px 13px;border:1px solid var(--brand-2);border-radius:8px;background:#fff;color:var(--brand-2);font-size:14.5px;font-weight:700;line-height:1.4;text-decoration:none;box-shadow:0 1px 2px rgba(15,45,82,.08)}
a.backbtn:hover{background:#eaf1fb}
a.backbtn:active{background:#dde8f7}
a.backbtn .backbtn-i{flex:none;width:18px;height:18px;transition:transform .12s}
a.backbtn:hover .backbtn-i{transform:translateX(-2px)}
@media print{.backline{display:none!important}}
/* ログイン中の端末・本人の再確認 (2026-11-21) */
ul.sesslist{list-style:none;padding:0;margin:8px 0 12px}
ul.sesslist li{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:10px 0;border-top:1px solid var(--line-2)}
ul.sesslist li:first-child{border-top:0}
ul.sesslist li>div{min-width:0;overflow-wrap:anywhere}
ul.sesslist form{flex:none;margin:0}
form.stepup-inline{border:1px solid #f0c987;background:#fffaf0;border-radius:8px;padding:8px 12px;margin:4px 0;max-width:420px}
form.stepup-inline p{margin:0 0 6px}
form.stepup-inline label{margin:0 0 8px}
form.stepup-inline input[name=stepcode]{max-width:160px}
.stepbox{margin:10px 0 4px}
.stepfield{border:1px solid #f0c987;background:#fffaf0;border-radius:8px;padding:8px 12px;margin:8px 0}
.stepfield input[name=stepcode]{max-width:160px}
/* ユーザ管理 › 所属法人 (Hyde 2026-11-22): the chosen 法人's own fields inside the user form, under smaller headings */
fieldset.fs.sub{padding:10px 0 2px}
fieldset.fs.sub>legend{font-size:13.5px;color:var(--ink);margin-bottom:8px}
fieldset.bare{border:0;margin:0;padding:0;min-width:0;clear:both}
fieldset.bare[hidden],.js-corpbox [hidden]{display:none}
.corp-head{margin:2px 0 6px}
/* 成立率の分析 (Hyde 2026-11-24, lib/ratepages.js) */
.ra h3{font-size:14.5px;margin:16px 0 6px}
.ra-form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 16px;margin:0 0 10px}
.ra-form label{display:flex;flex-direction:column;gap:3px;font-size:13px;color:var(--muted);margin:0}
.ra-months{display:flex;align-items:center;gap:6px;color:var(--ink)}
.ra-form input[type=month]{width:auto;min-width:9.5em}
.ra-form select{width:auto}
.ra-note{margin:0 0 10px}
.ra-tiles{margin-bottom:0}
.ra-t th:first-child{white-space:nowrap}
.ra-t tr>th:first-child{text-align:left;font-weight:600;color:var(--ink);background:none;font-size:14px}
.ra-t tr:first-child>th:first-child{color:var(--muted);font-size:12.5px;font-weight:500;background:var(--soft)}
.ra-t th.num .sub-line{font-size:11.5px}
.ra-t td.num{white-space:nowrap;font-variant-numeric:tabular-nums}
.ra-t td.ra-key{background:#f3f7fd}
.ra-t td.ra-key b{font-size:15px}
.ra-t tr.ra-total>*{border-top:2px solid var(--line);font-weight:700}
.ra-t tr.off>*{color:#9aa3b2}
.ra-t tr.off td.ra-key{background:#f7f8fa}
.ra-cuts{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px}
.ra-cuts a{font-size:13.5px;text-decoration:none;padding:4px 12px;border:1px solid #cfd6e0;border-radius:16px;background:#fff;color:var(--ink);white-space:nowrap}
.ra-cuts a:hover{background:var(--soft)}
.ra-cuts a.on{background:var(--brand-2);border-color:var(--brand-2);color:#fff;font-weight:700}
.ra-gaps{margin:0;padding-left:1.2em}
.ra-gaps li{margin:3px 0}
@media (max-width:600px){
  .ra-form button{width:100%}.ra-t td.ra-key b{font-size:14px}
  .ra-form>label{width:100%}.ra-months{flex-wrap:wrap}.ra-form input[type=month]{flex:1 1 9em;min-width:0}
  .ra-tiles,.ra-tiles:has(> .tile:nth-child(6)){grid-template-columns:minmax(0,1fr)}
  .ra-tiles .tile{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:10px;padding:7px 12px}
  .ra-tiles .tile .tk{grid-column:1;grid-row:1}.ra-tiles .tile .tn{grid-column:2;grid-row:1 / span 2}.ra-tiles .tile .small{grid-column:1;grid-row:2}
}
/* 成立までの手続きごとの日数: on a phone each step is a card, its numbers left-aligned under their labels */
@media (max-width:760px){
  table.list.cards.ra-steps td.num{text-align:left}
}
/* 成立率の分析への入口 (Hyde 2026-11-25 「メニューがささやかすぎてわかりづらいから目立たせてほしい」): a filled button on the
   points strip of every page and in the ポイント's heading */
.ps-rate,.ra-entry{display:inline-flex;align-items:center;gap:6px;flex:none;padding:5px 12px;border-radius:999px;background:var(--brand-2);color:#fff!important;font-size:13px;font-weight:700;line-height:1.3;text-decoration:none!important;white-space:nowrap}
.ps-rate:hover,.ra-entry:hover{background:var(--brand)}
.ps-rate svg,.ra-entry svg{width:15px;height:15px;flex:none}
.ps-rate[aria-current]{background:var(--brand);box-shadow:inset 0 0 0 2px #fff,0 0 0 1px var(--brand)}
.card h1 .ra-entry{margin-left:auto;padding:7px 16px;font-size:14px}
@media (max-width:899px){.ps-a>.ps-rate{display:none}.card h1 .ra-entry{margin:6px 0 0}}
/* 担当者 by 責任者: the organization's 小計 row, its people below it */
.ra-t tr.ra-org>*{background:var(--soft);border-top:2px solid var(--line)}
.ra-t tr.ra-org>th:first-child{font-weight:700}
.ra-t tr.ra-org>td.ra-key{background:#e9f0fa}
.ra-t tr.ra-mem>th:first-child{padding-left:26px;font-weight:500}
/* With the button, the strip's 「内訳 →」 makes way (each period still opens its 内訳, and the menu has ポイント). Where the
   cells show PP / OP (a システム管理者 who is also a partner), the button says 「成立率」 only and, below 1220px, the cells
   close up, so that they keep their room. */
.ps-b.has-rate .ps-link{display:none}
.ps-b.has-rate.pp .ps-rate .rl2{display:none}.ps-b.has-rate.pp .ps-rate{padding:5px 11px}
@media (max-width:1219px){.ps-b.has-rate.pp{gap:6px}.ps-b.has-rate.pp .ps-c{padding:0 6px}}
@media (max-width:1159px){.ps-b.has-rate.pp .ps-rate svg{display:none}.ps-b.has-rate.pp .ps-rate{padding:5px 10px}}
/* ユーザ管理を責任者ごとに（Hyde 2026-11-25「まずこれも責任者単位でソートしてほしい」）: 組織ごとの見出しの行と、組織へ移動するリンク */
table.list.agents tr.u-org>td{padding:9px 10px 7px;background:var(--soft);border-top:2px solid var(--line);border-bottom:1px solid var(--line);font-size:14px;line-height:1.5}
table.list.agents tr.u-org:hover>td{background:var(--soft)}
table.list.agents tr.u-org:target>td{background:#fff6d6}
.u-org-l{margin-right:12px}.u-org-l b{font-size:15px;color:var(--ink)}
.u-org-path{color:var(--muted);font-size:13px}
.u-org-n{color:var(--muted);font-size:13px;white-space:nowrap}
.u-orgnav{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 12px;font-size:13px}
.u-orgnav-l{color:var(--muted)}
.u-orgnav a{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border:1px solid var(--line);border-radius:999px;background:#fff;text-decoration:none;color:var(--brand-2)}
.u-orgnav a:hover{background:var(--soft);border-color:var(--brand-2)}
.u-orgnav-n{font-size:11.5px;color:var(--muted)}
.orderbar .org-who{margin:0 0 0 auto}
table.list.agents.fold tr.u-org{display:block;border:0;border-radius:0;padding:0;margin:18px 0 8px;background:none}
table.list.agents.fold tr.u-org::before{display:none}
table.list.agents.fold tr.u-org>td{display:block;padding:6px 2px 4px;border:0;border-bottom:2px solid var(--line);background:none}
@media (max-width:600px){.orderbar .org-who{margin:4px 0 0}}
/* ユーザまわりの手続き (Hyde 2026-11-25, form-review/user-flows/): ログイン時のお知らせ・引継ぎ・変更届・ATR 参加の報告 */
dialog.flow-pop h2{color:var(--brand)}
dialog.flow-pop.warn h2{color:var(--warn)}
dialog.flow-pop ul{margin:0 0 10px;padding-left:1.3em;line-height:1.75}
dialog.flow-pop li .badge{margin-left:4px}
dialog.flow-pop .muted.small{margin-top:4px}
.ho-pick{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:end;margin:6px 0 10px}.ho-pick label{margin:0}
td select{min-width:10em;max-width:100%}
.ho-held{list-style:none;margin:6px 0 10px;padding:0}.ho-held li{padding:6px 0;border-bottom:1px solid var(--line)}
.pf-form .changed input{border-color:#2f6fbf;background:#f2f7ff}
.pf-form .chg{display:inline-block;font-size:11px;font-weight:700;color:#fff;background:#2f6fbf;border-radius:4px;padding:0 5px;margin-left:6px;vertical-align:1px}
.rs-atrrep{list-style:none;margin:6px 0 10px;padding:0}.rs-atrrep li{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:center;padding:7px 0;border-bottom:1px solid var(--line)}.rs-atrrep li .muted{font-size:13px}.rs-atrrep input{width:auto;margin:0}
.og-form [hidden]{display:none}
/* 登録内容 on the account page (form-review/user-flows/4a): wider than the password card so the 法人 lines read on one line. */
.narrow.pf-card{max-width:560px}.pf-card .meta{grid-template-columns:170px 1fr}
@media (max-width:600px){.pf-card .meta{grid-template-columns:1fr}}
