/* 社内ツール共通のデザインガイド（社内ポータル/デザインガイド.md）に合わせる */
:root{
  --bg:#F5F5F7; --card:#FFFFFF; --text:#1D1D1F; --sub:#6E6E73; --faint:#AEAEB2;
  --line:#E5E5EA; --fill:#EBEBF0; --accent:#007AFF; --green:#34C759; --orange:#FF9500; --red:#FF3B30;
  --radius-card:18px; --radius:12px;
  --shadow:0 1px 2px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.04);
  --font:-apple-system, BlinkMacSystemFont, "SF Pro Text", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", sans-serif;
  color-scheme: light;
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);font-size:16px;line-height:1.6;-webkit-text-size-adjust:100%}
a{color:var(--accent);text-decoration:none}
button,input,select,textarea{font:inherit;color:inherit}
:focus-visible{outline:3px solid rgba(0,122,255,.45);outline-offset:2px;border-radius:8px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* 試作版の帯 */
.devbar{background:#FFF4E5;color:#8A4B00;font-size:13px;text-align:center;padding:6px 16px;font-weight:600}

/* 全体の枠（上に横メニュー2段。Appleのような半透明の帯） */
.topbar{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.82);backdrop-filter:saturate(180%) blur(20px);-webkit-backdrop-filter:saturate(180%) blur(20px);border-bottom:1px solid var(--line)}
.topbar-in{max-width:1280px;margin:0 auto;display:flex;align-items:center;gap:24px;padding:0 24px;min-height:52px}
.brand{font-weight:700;font-size:16px;color:var(--text);white-space:nowrap;display:flex;align-items:baseline;gap:6px}
.brand small{font-size:11px;color:var(--sub);font-weight:500}
.topnav{display:none;gap:4px;flex:1;min-width:0}
.topnav a{display:flex;align-items:center;min-height:52px;padding:0 12px;color:var(--sub);font-size:14px;font-weight:500;border-bottom:2px solid transparent;white-space:nowrap}
.topnav a:hover{color:var(--text)}
.topnav a[aria-current="page"]{color:var(--text);font-weight:600;border-bottom-color:var(--text)}
.topuser{margin-left:auto;display:flex;align-items:center;gap:12px;font-size:13px;color:var(--sub);white-space:nowrap}
.linkbtn{color:var(--accent);width:auto;min-height:44px;padding:0 4px;font-size:13px}
.subnav{background:rgba(250,250,252,.92);border-bottom:1px solid var(--line);position:sticky;top:53px;z-index:19;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
.subnav-in{max-width:1280px;margin:0 auto;display:flex;gap:6px;padding:8px 24px;overflow-x:auto;scrollbar-width:none}
.subnav-in::-webkit-scrollbar{display:none}
.subnav a{display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border-radius:999px;color:var(--sub);font-size:14px;font-weight:500;white-space:nowrap}
.subnav a:hover{background:var(--fill);color:var(--text)}
.subnav a[aria-current="page"]{background:var(--text);color:#fff}
.main{padding:24px 16px 110px;max-width:960px;margin:0 auto;width:100%}
.main.wide{max-width:1280px}
@media (max-width:899px){.topuser .who{display:none}.topbar-in{padding:0 16px}.subnav-in{padding:8px 16px}}
@media (min-width:900px){
  .topnav{display:flex}
  .main{padding:32px 24px 64px}
  .bottomnav{display:none!important}
}
.plain{border:0;background:none;cursor:pointer;color:var(--text);text-align:left}
.back.plain{width:auto;color:var(--accent);padding:0}
.who{font-size:13px;color:var(--sub)}

.bottomnav{position:fixed;left:0;right:0;bottom:0;display:flex;background:rgba(255,255,255,.92);backdrop-filter:saturate(180%) blur(20px);-webkit-backdrop-filter:saturate(180%) blur(20px);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom);z-index:10}
.bottomnav a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:56px;font-size:11px;color:var(--sub);gap:2px}
.bottomnav a[aria-current="page"]{color:var(--accent);font-weight:600}
.icon{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}

/* 文字 */
h1{font-size:30px;line-height:1.25;margin:0 0 8px;font-weight:700;letter-spacing:.01em}
h2{font-size:21px;margin:32px 0 12px;font-weight:700}
@media (min-width:900px){h1{font-size:34px} h2{font-size:22px;margin-top:40px}}
.lead{color:var(--sub);margin:0 0 24px;font-size:15px}
.sub{color:var(--sub);font-size:13px}
.back{display:inline-flex;align-items:center;min-height:44px;font-size:15px;margin:-8px 0 4px}

/* カードと一覧 */
.card{background:var(--card);border-radius:var(--radius-card);box-shadow:var(--shadow);padding:20px;margin-bottom:16px}
.list{background:var(--card);border-radius:var(--radius-card);box-shadow:var(--shadow);overflow:hidden;margin-bottom:16px}
.row{display:flex;align-items:center;gap:12px;min-height:56px;padding:12px 20px;color:var(--text);position:relative;width:100%;background:none;border:0;text-align:left}
.row + .row::before{content:"";position:absolute;top:0;left:20px;right:0;border-top:1px solid var(--line)}
a.row:hover,button.row:hover{background:#FAFAFC}
.row .grow{flex:1;min-width:0}
.row .title{font-size:16px;font-weight:600;overflow:hidden;text-overflow:ellipsis}
.row .meta{font-size:13px;color:var(--sub)}
.row .chev{color:var(--faint);font-size:20px}
.empty{padding:28px 20px;text-align:center;color:var(--sub);font-size:15px}

/* 項目の表示 */
dl.kv{margin:0;display:grid;grid-template-columns:1fr;gap:0}
dl.kv div{padding:12px 0;border-top:1px solid var(--line)}
dl.kv div:first-child{border-top:0;padding-top:0}
dl.kv dt{font-size:13px;color:var(--sub)}
dl.kv dd{margin:2px 0 0;font-size:16px;word-break:break-word}
@media (min-width:640px){dl.kv div{display:grid;grid-template-columns:180px 1fr;gap:12px}dl.kv dd{margin:0}}

/* 状態 */
.badge{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--sub);white-space:nowrap}
.badge::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--faint)}
.badge.green::before{background:var(--green)} .badge.orange::before{background:var(--orange)}
.badge.red::before{background:var(--red)} .badge.blue::before{background:var(--accent)}

/* 入力とボタン */
.field{margin-bottom:18px}
.field label{display:block;font-size:14px;font-weight:600;margin-bottom:6px}
.field .hint{font-size:13px;color:var(--sub);margin-top:4px}
.field .err{font-size:13px;color:var(--red);margin-top:4px;font-weight:600}
input[type=text],input[type=tel],input[type=date],input[type=search],select,textarea{width:100%;min-height:44px;padding:10px 14px;border-radius:var(--radius);border:1px solid transparent;background:var(--fill);font-size:16px}
textarea{min-height:96px;resize:vertical}
input:focus,select:focus,textarea:focus{background:#fff;border-color:var(--accent);outline:none;box-shadow:0 0 0 3px rgba(0,122,255,.15)}
input[aria-invalid=true]{border-color:var(--red);background:#FFF5F5}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 20px;border-radius:var(--radius);border:0;background:var(--fill);color:var(--text);font-weight:600;font-size:16px;cursor:pointer;transition:transform .2s ease, background .2s ease}
.btn:active{transform:scale(.98)}
.btn.primary{background:var(--accent);color:#fff}
.btn.danger{background:#FFECEB;color:var(--red)}
.btn.armed{background:var(--red);color:#fff}
.btn:disabled{opacity:.45;cursor:default}
.btn.block{width:100%}
.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:8px}
.actions .btn{flex:1 1 160px}

/* 切り替え */
.seg{display:inline-flex;background:var(--fill);border-radius:10px;padding:3px;gap:2px;margin-bottom:16px;max-width:100%;overflow-x:auto}
.seg button{min-height:38px;padding:0 14px;border:0;background:none;border-radius:8px;font-size:14px;font-weight:600;color:var(--sub);cursor:pointer;white-space:nowrap}
.seg button[aria-pressed=true]{background:#fff;color:var(--text);box-shadow:0 1px 3px rgba(0,0,0,.08)}

.toolbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}
.toolbar > *{flex:1 1 180px}

/* 比較（いま→申請） */
.diff{display:grid;grid-template-columns:1fr;gap:4px;padding:12px 0;border-top:1px solid var(--line)}
.diff:first-child{border-top:0;padding-top:0}
.diff .from{color:var(--sub);text-decoration:line-through;font-size:14px}
.diff .to{font-weight:600}

.note{background:var(--fill);border-radius:var(--radius);padding:12px 16px;font-size:14px;color:var(--sub);margin-bottom:16px}
.note.warn{background:#FFF4E5;color:#8A4B00}

/* 読み込み中（灰色の板） */
.skeleton{background:linear-gradient(90deg,#ECECF0 25%,#F4F4F7 50%,#ECECF0 75%);background-size:200% 100%;animation:sk 1.2s ease infinite;border-radius:var(--radius-card);height:120px;margin-bottom:16px}
@keyframes sk{0%{background-position:200% 0}100%{background-position:-200% 0}}

/* お知らせの帯 */
#toast{position:fixed;left:50%;bottom:calc(84px + env(safe-area-inset-bottom));transform:translateX(-50%) translateY(20px);background:rgba(29,29,31,.88);color:#fff;padding:10px 20px;border-radius:999px;font-size:14px;opacity:0;pointer-events:none;transition:opacity .25s ease, transform .25s ease;z-index:50;max-width:calc(100% - 32px);text-align:center}
#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
@media (min-width:900px){#toast{bottom:32px}}

/* ログイン */
.login{max-width:520px;margin:0 auto;padding:48px 16px}
.login h1{text-align:center}
.login .lead{text-align:center}

table.audit{width:100%;border-collapse:collapse;font-size:13px}
table.audit th,table.audit td{text-align:left;padding:8px 10px;border-top:1px solid var(--line);vertical-align:top}
table.audit th{color:var(--sub);font-weight:600;border-top:0}
.scroll{overflow-x:auto}

@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* 人事評価シート */
.item .itemhead{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.item .itemhead .title{font-size:17px;font-weight:700}
.req{font-size:12px;font-weight:600;color:var(--orange);background:#FFF4E5;border-radius:6px;padding:1px 6px}
.stages{display:grid;grid-template-columns:1fr;gap:12px;margin-top:12px}
@media (min-width:700px){.stages{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}}
.stage{background:var(--bg);border-radius:var(--radius);padding:12px 14px}
.stage label.sub{display:block;margin-top:8px}
.stagehead{font-size:13px;font-weight:700;color:var(--text);margin-bottom:4px}
.seg.score{display:flex;flex-wrap:wrap;margin:4px 0 0;background:var(--fill)}
.seg.score button{flex:1 1 auto;min-height:44px}
.scoreval{font-size:20px;font-weight:700}
.bodyval{white-space:pre-wrap;word-break:break-word}
.none{color:var(--faint);font-weight:400}
.stage textarea{margin-top:4px;background:#fff}
p.err{min-height:0;margin:0 0 8px;font-size:14px;color:var(--red);font-weight:600}

/* 360度サーベイ */
.qtext{font-size:17px;font-weight:600;margin:6px 0 10px}
.scalehint{display:flex;justify-content:space-between;font-size:12px;color:var(--sub);margin-top:6px;gap:12px}

/* 評価シートの編集 */
.rowbtns{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end;flex-shrink:0}
.btn.small{min-height:44px;min-width:44px;padding:0 12px;font-size:14px}
.field.check{display:flex;align-items:center;gap:10px;min-height:44px}
.field.check input{width:22px;height:22px;flex-shrink:0}
.field.check label{margin:0;font-weight:400}
[hidden]{display:none!important}

/* ===== 一覧の表・件数カード・段階表示（HRBrainと同じ情報の並べ方） ===== */
.pagehead{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:20px}
.pagehead h1{margin:0}
.pagehead .lead{margin:6px 0 0}
.pagehead .tools{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.pagehead .tools select{width:auto;min-width:220px}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin-bottom:20px}
.stat{background:var(--card);border-radius:14px;box-shadow:var(--shadow);padding:12px 14px;border:2px solid transparent;text-align:left;cursor:pointer;min-height:72px;font:inherit;color:inherit}
.stat .n{font-size:26px;font-weight:700;line-height:1.2;letter-spacing:-.01em}
.stat .n small{font-size:13px;font-weight:500;color:var(--sub);margin-left:2px}
.stat .l{font-size:12px;color:var(--sub)}
.stat[aria-pressed=true]{border-color:var(--accent)}
.stat.warn .n{color:var(--orange)}
.tablecard{background:var(--card);border-radius:var(--radius-card);box-shadow:var(--shadow);overflow:hidden;margin-bottom:20px}
.tablecard .tabletools{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid var(--line);font-size:13px;color:var(--sub);flex-wrap:wrap}
table.grid{width:100%;border-collapse:collapse;font-size:14px}
table.grid th{text-align:left;font-size:12px;font-weight:600;color:var(--sub);padding:10px 16px;background:#FAFAFC;border-bottom:1px solid var(--line);white-space:nowrap}
table.grid td{padding:10px 16px;border-bottom:1px solid var(--line);vertical-align:middle}
table.grid tr:last-child td{border-bottom:0}
table.grid tr.click{cursor:pointer}
table.grid tr.click:hover td{background:#FAFAFC}
table.grid .name{font-weight:600}
table.grid .muted{color:var(--sub);font-size:13px}
table.grid td.right,table.grid th.right{text-align:right}
@media (max-width:699px){
  table.grid.stack thead{display:none}
  table.grid.stack tr{display:grid;grid-template-columns:1fr auto;gap:2px 12px;padding:12px 16px;border-bottom:1px solid var(--line)}
  table.grid.stack td{border:0;padding:0}
  table.grid.stack td.hide-sm{display:none}
}
.steps{display:flex;align-items:center;gap:0}
.steps i{width:10px;height:10px;border-radius:50%;background:var(--line);display:block;flex-shrink:0}
.steps i.done{background:var(--green)}
.steps i.now{background:var(--accent);box-shadow:0 0 0 3px rgba(0,122,255,.18)}
.steps b{width:14px;height:2px;background:var(--line);display:block}
.steps b.done{background:var(--green)}
.chip{display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:600;padding:3px 10px;border-radius:999px;background:var(--fill);color:var(--sub);white-space:nowrap}
.chip.blue{background:#E8F1FF;color:#0060DF}.chip.green{background:#E7F8EC;color:#1E7F3A}
.chip.orange{background:#FFF1E0;color:#A35A00}.chip.red{background:#FFECEB;color:#C4271C}
.meta-line{display:flex;gap:16px;flex-wrap:wrap;font-size:13px;color:var(--sub)}
.meta-line span b{color:var(--text);font-weight:600;margin-left:4px}
.rowlist{background:var(--card);border-radius:var(--radius-card);box-shadow:var(--shadow);overflow:hidden;margin-bottom:20px}
.rowitem{display:grid;grid-template-columns:1fr auto;gap:4px 16px;padding:14px 20px;border-bottom:1px solid var(--line);align-items:center}
.rowitem:last-child{border-bottom:0}
.rowitem .t{display:flex;align-items:center;gap:10px;font-weight:600;min-width:0}
.rowitem .t a{color:var(--text)}
.rowitem .ops{display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end}
.rowitem .ops a,.rowitem .ops button{display:inline-flex;align-items:center;min-height:36px;padding:0 10px;border-radius:8px;border:0;background:none;color:var(--accent);font-size:13px;font-weight:600;cursor:pointer}
.rowitem .ops a:hover,.rowitem .ops button:hover{background:var(--fill)}
.rowitem .m{grid-column:1/-1;display:flex;gap:8px 16px;flex-wrap:wrap;font-size:12px;color:var(--sub);align-items:center}
.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin-bottom:20px;overflow-x:auto}
.tabs button{border:0;background:none;padding:0 14px;min-height:44px;font-size:14px;font-weight:600;color:var(--sub);border-bottom:2px solid transparent;cursor:pointer;white-space:nowrap}
.tabs button[aria-selected=true]{color:var(--text);border-bottom-color:var(--text)}
.infogrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1px;background:var(--line);border-radius:14px;overflow:hidden;margin-bottom:20px;box-shadow:var(--shadow)}
.infogrid div{background:var(--card);padding:10px 14px}
.infogrid dt{font-size:12px;color:var(--sub)}
.infogrid dd{margin:2px 0 0;font-size:14px;font-weight:600}

/* ===== 評価シート（1行＝1項目、列を横に並べる） ===== */
.progress{display:flex;gap:0;margin:4px 0 20px;overflow-x:auto}
.progress div{flex:1;min-width:96px;position:relative;padding-top:18px;font-size:12px;color:var(--sub);text-align:center}
.progress div::before{content:"";position:absolute;top:5px;left:0;right:0;height:2px;background:var(--line)}
.progress div::after{content:"";position:absolute;top:0;left:50%;width:12px;height:12px;margin-left:-6px;border-radius:50%;background:var(--line)}
.progress div.done{color:var(--text)}
.progress div.done::before,.progress div.done::after{background:var(--green)}
.progress div.now{color:var(--accent);font-weight:700}
.progress div.now::after{background:var(--accent);box-shadow:0 0 0 4px rgba(0,122,255,.18)}
.progress div:first-child::before{left:50%}.progress div:last-child::before{right:50%}
.sheet-sec{background:var(--card);border-radius:var(--radius-card);box-shadow:var(--shadow);margin-bottom:20px;overflow:hidden}
.sheet-sec>h2,.sheet-sec>summary{margin:0;padding:16px 20px;font-size:17px;font-weight:700;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:default;list-style:none}
.sheet-sec>summary{cursor:pointer}
.sheet-sec>summary::-webkit-details-marker{display:none}
.sheet-sec>summary::after{content:"開く";font-size:13px;font-weight:600;color:var(--accent)}
.sheet-sec[open]>summary::after{content:"閉じる"}
.sheet-text{padding:16px 20px;white-space:pre-wrap;font-size:14px;line-height:1.75;color:#3A3A3C}
.confirm{display:flex;align-items:center;gap:10px;padding:12px 20px;border-top:1px solid var(--line);min-height:52px;font-size:14px}
.confirm input{width:22px;height:22px}
table.sheet{width:100%;border-collapse:collapse;font-size:14px}
table.sheet th{text-align:left;font-size:12px;font-weight:600;color:var(--sub);background:#FAFAFC;padding:10px 14px;border-bottom:1px solid var(--line)}
table.sheet td{padding:12px 14px;border-bottom:1px solid var(--line);vertical-align:top}
table.sheet tr:last-child td{border-bottom:0}
table.sheet td.item{font-weight:700;width:110px}
table.sheet td.desc{color:#3A3A3C;white-space:pre-wrap;font-size:13px;line-height:1.7;background:#FBFBFD;width:34%}
table.sheet td.score{width:120px}
table.sheet td.score.mgr{background:#F5F9FF}
table.sheet th.mgr{background:#EEF4FF;color:#0060DF}
table.sheet tr.total td{background:#FAFAFC;font-weight:700}
table.sheet textarea{min-height:88px;background:var(--fill)}
table.sheet .prompt{white-space:pre-wrap;font-size:12px;color:var(--sub);margin-bottom:6px;line-height:1.6}
.scorebox{display:flex;align-items:center;gap:6px}
.scorebox input{width:76px;min-height:44px;text-align:right;font-weight:700;font-size:18px;padding:8px 10px}
.scorebox span{font-size:13px;color:var(--sub)}
.scoreval{font-size:20px;font-weight:700}
.scoreval small{font-size:12px;color:var(--sub);font-weight:500;margin-left:2px}
.bodyval{white-space:pre-wrap;word-break:break-word}
.none{color:var(--faint);font-weight:400}
.pending{color:var(--sub);font-size:13px}
.req{font-size:11px;font-weight:600;color:var(--red);margin-left:4px}
.opt{font-size:11px;font-weight:600;color:var(--sub);margin-left:4px}
@media (max-width:799px){
  table.sheet thead{display:none}
  table.sheet tr{display:block;border-bottom:1px solid var(--line);padding:12px 16px}
  table.sheet td{display:block;border:0;padding:4px 0;width:auto!important;background:none!important}
  table.sheet td[data-label]::before{content:attr(data-label);display:block;font-size:12px;font-weight:600;color:var(--sub);margin-bottom:2px}
  table.sheet td.item{font-size:16px}
  table.sheet td.desc{font-size:13px}
}
.actionbar{position:sticky;bottom:0;z-index:15;background:rgba(255,255,255,.9);backdrop-filter:saturate(180%) blur(20px);-webkit-backdrop-filter:saturate(180%) blur(20px);border-top:1px solid var(--line);margin:0 -16px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.actionbar .grow{flex:1;min-width:160px;font-size:13px;color:var(--sub)}
@media (max-width:899px){.actionbar{bottom:calc(56px + env(safe-area-inset-bottom))}}
.gradetable td.g{font-weight:700;width:70px}
.gradetable td.st{width:96px;color:var(--sub);font-size:13px}
.preview-bar{display:flex;gap:12px;flex-wrap:wrap;align-items:center;background:var(--card);border-radius:14px;box-shadow:var(--shadow);padding:10px 14px;margin-bottom:16px}
.preview-bar label{font-size:13px;font-weight:600;color:var(--sub)}
.preview-bar select{width:auto;margin:0}
.preview-bar .seg{margin:0}
.preview-bar label{margin:0;line-height:44px}
.ring{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;flex-shrink:0}
.ring span{width:50px;height:50px;border-radius:50%;background:var(--card);display:grid;place-items:center;font-size:13px;font-weight:700}
.surveycard{background:var(--card);border-radius:var(--radius-card);box-shadow:var(--shadow);padding:16px 20px;margin-bottom:12px;display:grid;grid-template-columns:auto 1fr auto;gap:16px;align-items:center}
.surveycard .t{font-weight:700;font-size:16px;color:var(--text)}
@media (max-width:699px){.surveycard{grid-template-columns:auto 1fr}.surveycard .ops{grid-column:1/-1}}
textarea.tall{min-height:200px}
.field.check{display:flex;align-items:center;gap:10px;min-height:44px}
.field.check input{width:22px;height:22px;flex-shrink:0}
.field.check label{margin:0;font-weight:400}
.btn.small{min-height:36px;padding:0 12px;font-size:13px}

/* ===== 点数の箱（フラット）・グレード係数・グレード要件 ===== */
input.flat,select.flat{border:0;background:var(--fill);border-radius:10px;box-shadow:none;min-height:44px;font-size:17px;font-weight:600;color:var(--text);padding:8px 12px;-webkit-appearance:none;appearance:none}
input.flat:focus,select.flat:focus{background:#fff;box-shadow:0 0 0 2px var(--accent);border:0}
input.flat[aria-invalid=true]{background:#FFECEB;box-shadow:0 0 0 2px var(--red)}
input.flat::-webkit-outer-spin-button,input.flat::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
input[type=number].flat{-moz-appearance:textfield}
.scorebox input.flat{width:72px;text-align:center;padding:8px 6px}
select.flat{padding-right:32px;background-image:linear-gradient(45deg,transparent 50%,var(--sub) 50%),linear-gradient(135deg,var(--sub) 50%,transparent 50%);background-position:calc(100% - 16px) 50%,calc(100% - 11px) 50%;background-size:5px 5px,5px 5px;background-repeat:no-repeat;font-size:15px}
.cell-warn{font-size:11px;color:var(--red);font-weight:600;min-height:14px;margin-top:2px}
.coef{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600}
.coef-label{color:var(--sub);font-weight:600}
.coef select.flat{min-height:36px;font-size:14px;width:auto}
.coef-val{min-width:44px;text-align:center;background:var(--fill);border-radius:8px;padding:6px 10px;font-size:14px}
.coef-grade{font-size:14px}
.tot-main{display:block;font-size:20px;font-weight:700}
.tot-sub{display:block;font-size:11px;color:var(--sub);font-weight:500}
.infogrid.flushed{box-shadow:none;border-radius:0;margin:0}
.grade-wrap{padding:16px 20px}
.grade-wrap .seg{margin-bottom:14px}
.grade-summary{background:#F5F9FF;border-radius:14px;padding:14px 16px;margin-bottom:14px;font-size:14px;line-height:1.75}
.grade-label{font-size:13px;font-weight:700;color:#0060DF;margin-bottom:6px}
.stage-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px}
.stage-card{border:1px solid var(--line);border-radius:14px;padding:14px 16px;background:#fff;font-size:13px;line-height:1.75}
.stage-card.mine{border:3px solid var(--accent);background:#E6F1FF;box-shadow:0 4px 14px rgba(0,113,227,.18);position:relative}
.stage-card.mine .stage-name{color:var(--accent);font-size:16px}
.stage-card.mine header .chip{background:var(--accent);color:#fff;font-weight:700}
.stage-card header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.stage-name{font-size:15px;font-weight:700}
.stage-text{font-weight:600;color:var(--text);padding-bottom:10px;margin-bottom:10px;border-bottom:1px solid var(--line)}
.stage-detail{color:#3A3A3C}
/* グレード・基本給（パソコンだけ） */
@media (max-width:899px){.pc-only{display:none!important}}
.inline{display:flex;gap:6px;align-items:center;justify-content:flex-start}
td.right .inline{justify-content:flex-end}
input.flat.salary{width:130px;text-align:right}
table.grid select.flat,table.grid input.flat{min-height:38px;font-size:14px}
.tools input.flat{min-width:220px;font-weight:400}

/* ===== 360度の管理（HRBrainと同じ：左に設定の項目） ===== */
.sv-layout{display:grid;grid-template-columns:240px 1fr;gap:20px;align-items:start}
@media (max-width:899px){.sv-layout{grid-template-columns:1fr}}
.sv-steps{background:var(--card);border-radius:var(--radius-card);box-shadow:var(--shadow);padding:8px;display:flex;flex-direction:column;gap:2px;position:sticky;top:120px}
@media (max-width:899px){.sv-steps{position:static;flex-direction:row;overflow-x:auto}}
.sv-steps button{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 12px;border:0;background:none;border-radius:10px;font-size:14px;font-weight:500;color:var(--text);cursor:pointer;text-align:left;white-space:nowrap}
.sv-steps button:hover{background:var(--fill)}
.sv-steps button[aria-current=page]{background:var(--fill);font-weight:700;box-shadow:inset 3px 0 0 var(--accent)}
.sv-steps .icon{width:20px;height:20px}
.switch-row{display:flex;align-items:center;gap:12px;min-height:44px;font-weight:600;font-size:15px}
input.switch{appearance:none;-webkit-appearance:none;width:48px;height:28px;border-radius:999px;background:var(--line);position:relative;cursor:pointer;transition:background .2s;flex-shrink:0}
input.switch::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:left .2s}
input.switch:checked{background:var(--green)}
input.switch:checked::after{left:23px}
input.switch:disabled{opacity:.5;cursor:default}
.radio-row{display:flex;gap:20px;margin:6px 0 14px;font-size:15px}
.radio-row input{width:18px;height:18px;vertical-align:-3px}
.scale-labels{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}
.scale-labels small{display:block;font-size:12px;color:var(--sub);margin-bottom:4px;text-align:center}
.scale-labels input.flat{font-size:13px;font-weight:500;text-align:center;padding:8px 6px}
@media (max-width:699px){.scale-labels{grid-template-columns:1fr}}
.sv-q{border:1px solid var(--line);border-radius:14px;padding:12px 14px;margin-bottom:10px}
.sv-qhead{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.sv-qhead .btn{margin-left:auto}
.sv-qrow{display:grid;grid-template-columns:200px 1fr;gap:8px}
@media (max-width:699px){.sv-qrow{grid-template-columns:1fr}}
.scale-dots{display:flex;gap:18px;margin-top:10px}
.scale-dots span{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11px;color:var(--sub)}
.scale-dots i{width:18px;height:18px;border-radius:50%;border:2px solid var(--line);display:block}
.member-list{display:flex;flex-direction:column;gap:1px;background:var(--line);border-radius:12px;overflow:hidden;margin-top:8px}
.member{display:flex;gap:10px;align-items:baseline;background:#fff;padding:10px 14px;font-size:14px;flex-wrap:wrap}
.member .muted{color:var(--sub);font-size:13px}
.viewer-chip{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:6px;font-size:13px}
.viewer-add{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:6px;font-size:13px}
.viewer-add select.flat{min-height:36px;font-size:13px;width:auto;max-width:220px}
/* 360度の回答・結果 */
.sv-answer .itemhead{display:flex;align-items:center;gap:8px}
.dots{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:8px;margin-top:6px}
.dots button{display:flex;flex-direction:column;align-items:center;gap:4px;border:0;background:var(--fill);border-radius:14px;padding:12px 6px;cursor:pointer;min-height:96px;font:inherit;color:var(--text)}
.dots button i{width:26px;height:26px;border-radius:50%;border:2px solid var(--faint);background:#fff;display:block}
.dots button b{font-size:14px}
.dots button small{font-size:11px;color:var(--sub);line-height:1.3;text-align:center}
.dots button.on{background:#E8F1FF;box-shadow:inset 0 0 0 2px var(--accent)}
.dots button.on i{border:8px solid var(--accent)}
@media (max-width:599px){.dots{grid-template-columns:1fr}.dots button{flex-direction:row;min-height:52px;padding:8px 14px;justify-content:flex-start;gap:12px}.dots button small{text-align:left}}
table.grid.result td.bars div{display:flex;align-items:center;gap:8px;margin:3px 0}
.bar{flex:1;height:10px;border-radius:999px;background:var(--fill);overflow:hidden;display:block;max-width:420px}
.bar span{display:block;height:100%;border-radius:999px}
.bar.others span{background:var(--accent)}
.bar.self span{background:var(--orange)}
.num{width:36px;font-size:13px;font-weight:700;text-align:right}
.legend{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:500;color:var(--sub)}
.legend i{width:12px;height:12px;border-radius:4px;display:inline-block;margin-left:8px}
.legend i.self{background:var(--orange)}.legend i.others{background:var(--accent)}
.comment{background:var(--fill);border-radius:12px;padding:12px 14px;margin-bottom:8px;font-size:14px}
.sv-qrow select.flat{width:100%;font-size:14px;font-weight:500}
/* 共通設定（設問の候補） */
.bank-list{display:flex;flex-direction:column}
.bank-cat{border-top:1px solid var(--line)}
.bank-head{display:flex;align-items:center;gap:10px;padding:8px 20px}
.bank-head input.flat{flex:1;font-size:15px;min-height:40px;max-width:360px}
.bank-head .muted{font-size:12px;color:var(--sub);white-space:nowrap}
.bank-head .btn{margin-left:auto}
.chevron{width:36px;min-height:40px;font-size:20px;color:var(--sub);text-align:center;transition:transform .2s}
.chevron.open{transform:rotate(90deg)}
.bank-body{padding:4px 20px 14px 66px;display:flex;flex-direction:column;gap:8px}
.bank-q{display:grid;grid-template-columns:52px 1fr auto;gap:8px;align-items:center}
.bank-q input.flat{font-size:14px;font-weight:500;min-height:40px}
.bank-q .muted{font-size:12px;color:var(--sub)}
@media (max-width:699px){.bank-body{padding-left:20px}.bank-q{grid-template-columns:1fr auto}.bank-q .muted{display:none}}

/* 労務管理 */
.ext-box{display:flex;align-items:center;gap:8px;min-height:44px;padding:10px 14px;border-radius:var(--radius);background:var(--fill);color:var(--sub);font-size:14px}
.ext-box .icon{width:18px;height:18px}
.proc-fields{padding:16px 20px 2px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px}
.proc-fields > .field{margin-bottom:14px;min-width:0}
.proc-fields > .field.wide{grid-column:1/-1}
@media (max-width:599px){.proc-fields{grid-template-columns:minmax(0,1fr)}}
.proc-fields .field label .chip{margin-left:8px}
.doc-body{white-space:pre-wrap;word-break:break-word;padding:16px 20px;font-size:15px;line-height:1.8}
.doc-actions{padding:0 20px 16px}
.doc-edit{font-size:15px;line-height:1.7}
.doc-layout{display:grid;grid-template-columns:1fr;gap:20px}
@media (min-width:900px){.doc-layout{grid-template-columns:minmax(0,1fr) 300px}.var-panel{position:sticky;top:120px;align-self:start}}
.var-panel{background:var(--card);border-radius:var(--radius-card);box-shadow:var(--shadow);padding:16px 18px;margin-bottom:20px}
.var-panel h3{margin:0 0 6px;font-size:15px}
.var-group{margin-top:12px}
.var-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.doc-order{margin:0;padding:12px 20px 16px 40px}
.doc-order li{padding:6px 0}
.doc-order li .grow{flex:1}
.card .doc-order li{display:flex;gap:6px;align-items:center}
.toolbar-right{display:flex;justify-content:flex-end;margin-bottom:12px}
.card-in{padding:16px 20px}
.flat-list{box-shadow:none;border-radius:0;margin:0}
.row[disabled]{opacity:.55;cursor:default}
.var-panel .hint{font-size:13px;color:var(--sub);margin:0}

/* 給与振込口座・身分証明書 */
.sens-item{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-top:1px solid var(--line)}
.sens-item:first-child{border-top:0}
.sens-item .name{font-weight:600}
.sens-h{font-size:15px;margin:16px 0 6px}
.reveal{display:flex;flex-direction:column;gap:6px;min-width:260px}
.reveal .inline input{min-width:200px}
.id-image{display:block;max-width:100%;max-height:420px;border-radius:10px;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.bank-form{background:var(--fill);border-radius:var(--radius);padding:14px 16px;margin-bottom:8px}
.two{display:grid;grid-template-columns:1fr;gap:0 14px}
@media (min-width:700px){.two{grid-template-columns:1fr 1fr}}

/* まとめて配る・催促 */
td.check{width:36px}
td.check input{width:20px;height:20px}
.batch-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px;margin-bottom:20px}
.batch-card{display:block;color:inherit;text-decoration:none}
.batch-card .name{font-weight:600;font-size:14px;margin-bottom:4px}
.picker{background:var(--fill);border-radius:var(--radius);padding:12px 14px}
.picker .toolbar{margin-bottom:8px}
.picker .inline{flex-wrap:wrap;margin-bottom:8px}
.picker-list{max-height:320px;overflow-y:auto;background:var(--card);border-radius:10px}
.picker-row,.field .picker-row{display:flex;align-items:center;gap:10px;min-height:44px;padding:6px 12px;border-top:1px solid var(--line);font-weight:400;margin:0;cursor:pointer}
.picker-row:first-child{border-top:0}
.picker-row input{width:20px;height:20px;flex-shrink:0}
.picker-row .grow{flex:1}
.tabletools .inline{flex-wrap:wrap}

/* 社員名簿（メンバー一覧・メンバー詳細） */
.avatar{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:#E8EEF7;color:#3A5A8C;font-weight:700;font-size:15px;flex-shrink:0}
.member{display:flex;align-items:center;gap:10px}
.member-head{display:flex;align-items:center;gap:16px;margin:8px 0 16px}
.member-head .avatar{width:64px;height:64px;font-size:26px}
.member-head h1{margin:0}
.member-head p{margin:4px 0 0}
.member-head .grow{flex:1 1 auto;min-width:0}
.member-head .head-action{margin-left:auto;white-space:nowrap}
@media (max-width:599px){.member-head{flex-wrap:wrap}.member-head .head-action{margin-left:0}}
.toolbar .asof{display:flex;align-items:center;gap:8px;margin:0;font-weight:400}
.hist-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;padding:10px 0;border-top:1px solid var(--line)}
.hist-row:first-child{border-top:0}
.hist-row > span:first-child{font-weight:600}

/* 最初の画面：4つの入口 */
.home-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0 28px}
@media (min-width:900px){.home-tiles{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}}
.home-tile{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:22px 12px 18px;background:var(--card);border-radius:var(--radius-card);box-shadow:var(--shadow);color:var(--text);text-decoration:none;transition:transform .15s ease,box-shadow .15s ease}
.home-tile:hover{transform:translateY(-2px);box-shadow:0 6px 18px rgba(0,0,0,.08)}
.home-tile:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.home-icon{display:inline-flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:16px;background:#EEF3FB;color:#2F5D9E}
.home-icon .icon{width:30px;height:30px}
.home-name{font-size:16px;font-weight:700}
.home-desc{font-size:12px;color:var(--sub);line-height:1.5}
.home-count{position:absolute;top:10px;right:10px;font-size:12px;font-weight:700;color:#fff;background:var(--orange);border-radius:999px;padding:2px 8px}
.sign-page{max-width:860px}
.bank-form > summary{cursor:pointer;font-weight:600;min-height:36px}
.home-tiles.two-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
.rec-row{display:grid;grid-template-columns:1fr;gap:6px;padding:8px 0;border-top:1px solid var(--line)}
@media (min-width:700px){.rec-row{grid-template-columns:2fr 1.5fr auto auto;align-items:center}}
.avatar{overflow:hidden}
.avatar img{width:100%;height:100%;object-fit:cover;display:block}
.photo-up{flex-wrap:wrap;margin:10px 0}
.colpick{position:relative}
.colpick > summary{cursor:pointer;font-size:13px;font-weight:600;color:var(--accent);list-style:none;padding:6px 8px}
.colpick-in{position:absolute;right:0;z-index:5;background:var(--card);box-shadow:var(--shadow);border-radius:12px;padding:10px 14px;display:grid;gap:6px;min-width:200px}
.colpick-in label{font-weight:400;margin:0}
.me-btn{margin-left:auto;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;padding:2px;border:2px solid transparent}
.me-btn .avatar{width:34px;height:34px;font-size:14px}
.me-btn:hover,.me-btn[aria-current=page]{border-color:var(--accent)}
.org-depth-1{padding-left:20px}.org-depth-2{padding-left:40px}.org-depth-3{padding-left:60px}

/* PDFの文書（PDF.jsでページを絵にして表示） */
.pdf-view{display:flex;flex-direction:column;gap:12px;align-items:center;margin:8px 0}
.pdf-page{position:relative;width:100%;max-width:820px;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.12);container-type:inline-size}
.pdf-canvas{display:block;width:100%;height:auto}
.pdf-page.placing{cursor:crosshair}
.pdf-mark{position:absolute;white-space:nowrap;line-height:1;color:#0b57d0;background:rgba(11,87,208,.08);outline:1px dashed rgba(11,87,208,.6);cursor:grab;touch-action:none;user-select:none}
.pdf-mark.on{background:rgba(11,87,208,.2);outline:2px solid #0b57d0}
.pdf-tools .inline{flex-wrap:wrap}
.doc-tools{margin:4px 0}

/* 書式つきの文書（HRBrainの文書作成と同じ） */
.radios{display:flex;gap:20px;flex-wrap:wrap}.radio{display:flex;align-items:center;gap:6px;font-weight:400}
.warn-text{color:#c62828}
.rich-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:16px;align-items:start;margin-top:8px}
@media (max-width:899px){.rich-layout{grid-template-columns:minmax(0,1fr)}}
.rich-main{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--fill)}
.rich-toolbar{display:flex;flex-wrap:wrap;gap:4px;align-items:center;padding:8px;border-bottom:1px solid var(--line);background:#fff}
.rich-toolbar .tb{min-width:34px;height:32px;border:0;background:none;border-radius:6px;font-weight:700;cursor:pointer;color:var(--text)}
.rich-toolbar .tb:hover{background:var(--fill)}
.rich-toolbar .tb-sel{height:32px;border:1px solid var(--line);border-radius:6px;background:#fff;font-size:13px;padding:0 4px}
.tb-sep{width:1px;height:22px;background:var(--line);margin:0 4px}
.rich-edit{min-height:420px;outline:none;margin:12px auto}
.rich-code{width:100%;min-height:420px;font-family:ui-monospace,Menlo,monospace;font-size:12px;border:0;padding:12px}
.var-panel.hr{border:1px solid var(--line);border-radius:10px;background:#fff;overflow:hidden;position:sticky;top:120px;max-height:70vh;overflow-y:auto}
.var-head{padding:12px 14px;font-weight:700;background:var(--fill);border-bottom:1px solid var(--line)}
.var-acc{border-bottom:1px solid var(--line)}.var-acc summary{padding:12px 14px;cursor:pointer}
.var-list{display:flex;flex-direction:column;padding:0 6px 8px}
.var-item{text-align:left;border:0;background:none;padding:8px 10px;border-radius:6px;cursor:pointer;font-size:14px}
.var-item:hover{background:var(--fill)}.var-item:disabled{color:var(--sub);cursor:not-allowed}
/* A4の紙の形（プレビュー・配った文書） */
.doc-paper-wrap{overflow-x:auto;padding:8px 0}
.doc-paper{box-sizing:border-box;width:210mm;max-width:100%;min-height:200mm;margin:0 auto;background:#fff;color:#111;padding:18mm 16mm;box-shadow:0 1px 6px rgba(0,0,0,.15);
  font-size:10.5pt;line-height:1.6;font-family:"Hiragino Kaku Gothic ProN","Hiragino Sans","Noto Sans JP","Yu Gothic",sans-serif;word-break:break-word}
.doc-paper p{margin:0 0 .3em}.doc-paper h1{font-size:18pt;margin:.2em 0 .5em}.doc-paper h2{font-size:14pt;margin:.6em 0 .4em}.doc-paper h3{font-size:12pt;margin:.6em 0 .3em}
.doc-paper table{border-collapse:collapse;width:100%;margin:.4em 0}.doc-paper td,.doc-paper th{border:1px solid #333;padding:4px 6px;vertical-align:top}
.doc-paper th{background:#f3f3f3}.doc-paper hr{border:0;border-top:1px solid #333}
.doc-paper .al-c{text-align:center}.doc-paper .al-r{text-align:right}.doc-paper .al-j{text-align:justify}
.ind1{padding-left:2em}.ind2{padding-left:4em}.ind3{padding-left:6em}.ind4{padding-left:8em}.ind5{padding-left:10em}.ind6{padding-left:12em}
.doc-v{background:#e8f0fe;color:#0b57d0;border-radius:3px;padding:0 2px}
.fs8{font-size:8pt}.fs9{font-size:9pt}.fs10{font-size:10pt}.fs105{font-size:10.5pt}.fs11{font-size:11pt}.fs12{font-size:12pt}.fs14{font-size:14pt}.fs16{font-size:16pt}.fs18{font-size:18pt}.fs20{font-size:20pt}.fs24{font-size:24pt}.fs28{font-size:28pt}
.doc-paper td.w5,.doc-paper th.w5{width:5%}.doc-paper td.w10,.doc-paper th.w10{width:10%}.doc-paper td.w15,.doc-paper th.w15{width:15%}.doc-paper td.w20,.doc-paper th.w20{width:20%}.doc-paper td.w25,.doc-paper th.w25{width:25%}.doc-paper td.w30,.doc-paper th.w30{width:30%}.doc-paper td.w35,.doc-paper th.w35{width:35%}.doc-paper td.w40,.doc-paper th.w40{width:40%}.doc-paper td.w45,.doc-paper th.w45{width:45%}.doc-paper td.w50,.doc-paper th.w50{width:50%}.doc-paper td.w55,.doc-paper th.w55{width:55%}.doc-paper td.w60,.doc-paper th.w60{width:60%}.doc-paper td.w65,.doc-paper th.w65{width:65%}.doc-paper td.w70,.doc-paper th.w70{width:70%}.doc-paper td.w75,.doc-paper th.w75{width:75%}.doc-paper td.w80,.doc-paper th.w80{width:80%}.doc-paper td.w85,.doc-paper th.w85{width:85%}.doc-paper td.w90,.doc-paper th.w90{width:90%}.doc-paper td.w95,.doc-paper th.w95{width:95%}.doc-paper td.w100,.doc-paper th.w100{width:100%}
.modal-ov{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:200;display:flex;align-items:flex-start;justify-content:center;padding:24px 12px;overflow-y:auto}
.modal{background:var(--bg,#f5f5f7);border-radius:14px;width:min(900px,100%);box-shadow:0 10px 40px rgba(0,0,0,.3)}
.modal-head{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border-bottom:1px solid var(--line)}
.modal-head h2{margin:0;font-size:17px}.modal-body{padding:12px 18px 20px}
@media print{
  body.printing *{visibility:hidden}
  body.printing .print-target, body.printing .print-target *{visibility:visible}
  body.printing .print-target{position:absolute;left:0;top:0;width:100%}
  body.printing .print-target .doc-paper{box-shadow:none;width:auto;min-height:0;padding:0}
  @page{size:A4;margin:16mm}
}
@media (max-width:640px){.doc-paper{padding:7mm 5mm;font-size:10pt}}
.rich-toolbar select.tb-sel{width:auto;flex:0 0 auto;min-height:0;margin:0}
.pre{white-space:pre-wrap}

.period-head{padding:16px 20px;border-bottom:1px solid var(--line)}.period-head .inline{flex-wrap:wrap;align-items:center}
.period-name{font-size:18px}.sheet-tools{margin-bottom:12px;align-items:center}
input.flat.step{width:64px;text-align:right}
/* グレード・基本給の表：画面が狭くても欄を縮めない（ステージの数字が隠れないように） */
table.grid .inline>select.flat,table.grid .inline>input.flat{flex:none}
.tablecard.scroll-x{overflow-x:auto}.salary-exempt{margin-top:28px}select.flat.stage{width:128px}select.flat.grade{width:96px}

table.wage td,table.wage th{white-space:nowrap;padding:4px 8px;font-size:13px}table.wage th.center{text-align:center}
table.wage td.bad{background:#fde7e7;color:#b3261e;font-weight:700}
.wage-form{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;margin-bottom:8px}.wage-form .field{margin:0}.wage-form input{width:140px}
table.wage td.editable{cursor:pointer}table.wage td.editable:hover{outline:1px solid var(--line)}input.flat.cell-edit{width:100px;text-align:right}
/* ひも付けグループ */
.lg-add{display:grid;gap:4px;margin:12px 0;padding:12px 16px;border-radius:12px;background:var(--fill)}
.lg-add .inline select{max-width:320px}
.rowitem .m select.small,.tablecard select.small{min-height:32px;padding:0 8px;font-size:13px;width:auto;max-width:220px}
/* 目標シートと評価シートの境目 */
.sheet-part{display:flex;align-items:center;gap:14px;margin:28px 0 12px;padding:14px 18px;border-radius:14px;background:var(--fill);border-left:6px solid var(--line)}
.sheet-part:first-child{margin-top:0}
.sheet-part.now{border-left-color:var(--accent)}
.sheet-part .part-no{flex:0 0 auto;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--text);color:var(--card);font-weight:700;font-size:16px}
.sheet-part.now .part-no{background:var(--accent);color:#fff}
.sheet-part .part-t{flex:1;min-width:0}
.sheet-part h2{margin:0;font-size:18px}
.sheet-part p{margin:2px 0 0;font-size:13px;color:var(--sub)}
/* グレード要件の見出し・箇条書き */
.req-text{line-height:1.7}
.req-text .req-h{display:flex;align-items:center;gap:8px;margin:14px 0 6px;font-size:13px;font-weight:700;color:var(--accent);letter-spacing:.02em}
.req-text .req-h::before{content:"";width:4px;height:14px;border-radius:2px;background:var(--accent);flex:0 0 auto}
.req-text > .req-h:first-child{margin-top:0}
.req-text .req-list{margin:0;padding-left:1.2em}
.req-text .req-list li{margin:2px 0}
.req-text .req-p{margin:0 0 4px}
.req-text .req-judge{margin:0;padding:8px 12px;border-radius:10px;background:var(--card,#fff);font-weight:600}
.req-text .req-note{margin:12px 0 0;font-size:12px;color:var(--sub)}
.req-body > .req-p:first-child{font-size:16px;font-weight:700;color:var(--text)}
.stage-text .req-h:first-child + .req-p{font-size:15px;font-weight:700}
.stage-text{font-weight:400}
.stage-detail .req-h{color:var(--sub)}
.stage-detail .req-h::before{background:var(--sub)}
.stage-card.mine .stage-detail .req-h{color:var(--accent)}
.req-text .req-list.req-must{list-style:none;padding:8px 12px;border-radius:10px;background:#EAF3FF;border:1px solid #B9D6FB;font-weight:600}
.stage-card.mine .req-text .req-list.req-must{background:#fff;border-color:#8DBDF7}
/* 360度サーベイの閲覧設定（HRBrainと同じ並び） */
.vw-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:8px}
.vw-head h2{margin:0;font-size:20px}
.vw-head .grow,.vw-tools .grow{flex:1}
.tagbox{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-height:48px;padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:var(--card,#fff);max-width:640px}
.tagbox .tag{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:8px;background:var(--fill);font-size:13px;font-weight:600}
.tagbox .tag-x{border:0;background:none;color:#D93025;font-size:15px;cursor:pointer;padding:0 2px;line-height:1}
.tagbox .tagbox-add{border:0;background:none;width:auto;min-height:32px;color:var(--accent);font-weight:600;flex:1;min-width:140px}
.vw-tools{display:flex;align-items:center;gap:6px 16px;flex-wrap:wrap;margin:8px 0 10px}
.vw-tools .linkbtn:disabled{color:var(--sub);opacity:.5;cursor:default}
.vw-table .exp-cell{width:28px}
.vw-table .exp{border:0;background:none;font-size:20px;color:var(--accent);cursor:pointer;transition:transform .15s;display:inline-block}
.vw-table .exp.open{transform:rotate(90deg)}
.vw-table .sub-row td{background:var(--fill)}
.vw-table .status-sel{width:auto;min-height:34px;font-weight:700;border-radius:8px}
.vw-table .status-sel.on{color:#1E8E3E;background:#E6F4EA}
.vw-table .status-sel.off{color:var(--sub);background:var(--fill)}
.vw-tools select{width:auto;min-width:0;flex:0 0 auto}
/* 360度サーベイ：個人詳細（HRBrainと同じ並び） */
.pd-head{display:flex;gap:20px;align-items:flex-start;padding:16px 20px;flex-wrap:wrap}
.pd-id{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:120px}
.pd-avatar{width:84px;height:84px;border-radius:12px;background:var(--fill);display:grid;place-items:center;font-size:32px;font-weight:700;color:var(--sub)}
.pd-id small{color:var(--sub);font-size:11px}
.pd-grid{flex:1;display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--line);border-radius:10px;overflow:hidden;margin:0;min-width:260px}
.pd-grid>div{display:grid;grid-template-columns:110px 1fr;border-bottom:1px solid var(--line)}
.pd-grid dt{background:var(--fill);padding:8px 10px;font-size:12px;color:var(--sub);margin:0}
.pd-grid dd{padding:8px 10px;font-size:13px;margin:0}
.pd-radar{display:flex;align-items:center;gap:16px;padding:12px 20px;flex-wrap:wrap}
.radar-legend{display:flex;flex-direction:column;gap:6px;font-size:13px}
.radar-legend label{display:flex;align-items:center;gap:6px}
.radar-legend .dot{width:10px;height:10px;border-radius:50%;display:inline-block}
.dot.others{background:#2F5FD0}.dot.colleague{background:#7B3FE4}.dot.self{background:#F2A65A}
.radar{flex:1;max-width:520px;min-width:280px}
.radar .grid-line{fill:none;stroke:#D8DEE9}.radar .axis{stroke:#D8DEE9}
.radar .lbl{font-size:12px;fill:#6E6E73}.radar .tick{font-size:10px;fill:#AEAEB2}
.radar .series polygon{stroke-width:2}
.radar .others polygon{fill:rgba(47,95,208,.12);stroke:#2F5FD0}.radar .others circle{fill:#2F5FD0}
.radar .colleague polygon{fill:rgba(123,63,228,.08);stroke:#7B3FE4}.radar .colleague circle{fill:#7B3FE4}
.radar .self polygon{fill:none;stroke:#F2A65A}.radar .self circle{fill:#FBE3CB;stroke:#F2A65A}
.pd-tools{display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap;margin:8px 0}
.pd-tools select{width:auto}.pd-tools .grow{flex:1}
.pd-cats td.cat{white-space:nowrap}.pd-cats td.cat .exp{border:0;background:none;cursor:pointer;margin-right:6px;transition:transform .15s;display:inline-block}
.pd-cats td.cat .exp.open{transform:rotate(90deg)}
.pd-cats td.bars>div{display:flex;align-items:center;gap:8px;margin:3px 0}
.pd-cats td.bars .num{width:32px;text-align:right;font-weight:700;font-size:13px}
.pd-cats td.bars .bar{flex:1}
.pd-cats .bar.others span{background:#2F5FD0}.pd-cats .bar.self span{background:#F7C9A0}
.pd-cats .strong{font-weight:700}
.pd-cats .sub-row td{background:var(--fill);font-size:12px}.pd-cats .qtext{padding-left:34px;color:var(--sub)}
.pd-comments{margin:0;padding:0;list-style:none}.pd-comments li{padding:12px 0;border-bottom:1px solid var(--line);font-size:14px;line-height:1.7}
/* スコア一覧（ヒートマップ） */
.sc-tools{margin:4px 0 12px;align-items:center}.sc-tools .grow{flex:1}
.hm-legend{display:inline-flex;border-radius:6px;overflow:hidden}
.hm-legend i{width:30px;height:24px;display:grid;place-items:center;font-style:normal;font-size:12px;font-weight:700;color:#fff}
.hm-legend i:nth-child(1){background:rgba(229,72,77,.6)}.hm-legend i:nth-child(2){background:rgba(229,72,77,.25)}.hm-legend i:nth-child(3){background:#fff;border:1px solid var(--line)}
.hm-legend i:nth-child(4){background:rgba(52,120,246,.25)}.hm-legend i:nth-child(5){background:rgba(52,120,246,.6)}
.seg.wide{display:flex;width:100%}.seg.wide button{flex:1}
.heatmap th,.heatmap td{text-align:center;min-width:92px}
.heatmap .mem{text-align:left;min-width:150px;position:sticky;left:0;background:var(--card,#fff);z-index:1}
.heatmap .sortbtn{border:0;background:none;font-weight:700;font-size:13px;cursor:pointer;display:flex;align-items:center;gap:6px;width:100%;justify-content:space-between}
.heatmap .sortbtn .lbl{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:90px}
.heatmap .avg-row td{font-weight:700;border-bottom:2px solid var(--line)}
.heatmap td.hm{font-weight:600}
/* AIによるフィードバック */
.ai-fb{margin-top:14px;padding:16px 18px;border-radius:14px;background:var(--fill)}
.ai-fb.is-hidden{opacity:.6}
.ai-meta{display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;margin-bottom:6px}
.ai-list{margin:0;padding-left:1.1em}.ai-list li{margin:4px 0;line-height:1.7}.ai-list li b{margin-right:8px}
.surveycard .ops{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
/* 新しい目標の形（業績目標・行動目標のカード） */
.goal-cards{display:grid;gap:12px}
.goal-card{border:1px solid var(--line);border-left:5px solid #2F5FD0;border-radius:12px;padding:12px 16px;background:var(--card,#fff)}
.goal-card.act{border-left-color:#1E8E3E}
.goal-card header{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.goal-card header .grow{flex:1}
.goal-card .field{margin:8px 0}
.goal-dl{margin:0;display:grid;gap:4px}
.goal-dl>div{display:grid;grid-template-columns:110px 1fr;gap:8px}
.goal-dl dt{color:var(--sub);font-size:12px;margin:0}.goal-dl dd{margin:0;font-size:14px}.goal-dl dd.none{color:var(--sub)}
.goal-sum{font-weight:600;margin:0 0 8px}
.goal-mgr{margin-top:10px;padding-top:10px;border-top:1px dashed var(--line)}
.goal-dl dd.goal-num{font-size:16px;font-weight:700}
/* 振り返りの欄の上の「自分の目標」・目標の前の「必ず満たすこと」 */
.goal-ref{display:block;margin:0 0 8px;padding:8px 10px;border-radius:8px;background:#EAF3FF;font-size:13px;line-height:1.6}
.goal-ref-h{display:inline-block;margin-right:8px;font-weight:700;color:var(--accent)}
.must-box .must-row{padding:10px 12px;border-radius:10px;background:var(--fill);margin-bottom:8px}
.must-box .must-row.next{background:#EAF3FF}
.must-box .must-h{font-size:12px;font-weight:700;color:var(--sub)}
.must-box .must-row.next .must-h{color:var(--accent)}
.must-box .must-row p{margin:4px 0 0;font-weight:600}
.sheet tr.picked td{background:#F5F9FF}
.sheet label.pick{display:flex;align-items:center;gap:8px;font-weight:700;cursor:pointer}
.sheet label.pick.ro{cursor:default}.sheet label.pick.ro input{opacity:.5}

/* グレード・基本給の画面のグレード要件 */
.salary-req{margin-top:28px}
.salary-req h2{margin-bottom:4px}
.salary-req .lead{margin-bottom:12px}
.grid tr.group-row td{background:var(--fill);font-weight:700;font-size:13px;color:var(--text);padding:8px 12px}
/* 権限設定（D60） */
.role-legend{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:0 0 16px}
.role-legend>div{background:var(--card);border-radius:12px;padding:10px 14px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:2px}
.role-legend b{font-size:14px}
.role-legend span{font-size:12px;color:var(--sub)}
.access-grid th.check,.access-grid td.check{text-align:center;width:140px}
.access-grid td.check input{width:18px;height:18px}
@media (max-width:899px){.role-legend{grid-template-columns:1fr}}
.access-grid .login-cell{min-width:260px}
.access-grid .login-cell .mail{margin-top:6px;width:100%;font-size:13px}
.hint.login-steps{display:block;line-height:1.7}
.hint.login-steps p{margin:6px 0 2px}
.hint.login-steps ol{margin:0 0 4px 1.4em;padding:0}
.hint.login-steps li{margin:2px 0}

/* 業績評価の基準（perfGuide） */
.perf-guide{padding:16px 20px 20px;font-size:14px;line-height:1.6;color:#3A3A3C}
.pg-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.pg-top .pg-sub{margin:0}
.pg-cards{display:grid;grid-template-columns:1fr;gap:14px}
@media (min-width:700px){.pg-cards{grid-template-columns:1fr 1fr}}
.pg-card{background:var(--bg);border-radius:var(--radius);padding:14px 16px}
.pg-card.wide{grid-column:1/-1}
.pg-card.wide .pg-bands,.pg-card.wide .pg-note{max-width:520px}
.pg-title{font-size:16px;font-weight:700;color:var(--text);margin-bottom:8px}
.pg-sub{font-size:12px;font-weight:700;color:var(--sub);margin:12px 0 6px;letter-spacing:.02em}
.pg-period{display:flex;gap:8px;flex-wrap:wrap}
.pg-chip{background:var(--card);border-radius:999px;padding:4px 12px;font-size:13px;box-shadow:var(--shadow)}
.pg-chip b{color:var(--accent);font-weight:700}
.pg-bands{background:var(--card);border-radius:10px;overflow:hidden;margin:4px 0 8px}
.pg-band{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 12px;border-top:1px solid var(--line)}
.pg-band:first-child{border-top:0}
.pg-cond{font-variant-numeric:tabular-nums}
.pg-pts{min-width:52px;text-align:center;border-radius:999px;padding:2px 10px;font-weight:700;font-size:13px;font-variant-numeric:tabular-nums}
.pg-pts.hi{background:#E3F7E8;color:#1E7B34}.pg-pts.mid{background:#E5F0FF;color:#0060DF}.pg-pts.low{background:#FFF1DC;color:#A35A00}.pg-pts.zero{background:var(--fill);color:var(--sub)}
.pg-note{background:#FFF7E6;border-radius:8px;padding:8px 10px;font-size:13px;margin:6px 0}
.pg-note::before{content:"※ ";font-weight:700;color:var(--orange)}
.pg-num{font-weight:600;color:var(--text);margin-top:6px}
.pg-ex{font-size:13px;color:var(--sub)}
.pg-p{margin:4px 0}

/* 業績評価（D65） */
.perf-links{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:10px}
.perf-links a.btn{display:inline-flex;align-items:center;text-decoration:none}
.perf-status{font-size:13px;color:var(--sub);margin-bottom:16px}
.perf-status p{margin:0 0 2px}
.perf-status .muted{white-space:pre-line}
.stat.perf-stat{cursor:default}
.stat.perf-stat.changed{border-color:var(--accent)}
.perf-sec{margin-top:28px}
.perf-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px 20px;border-bottom:1px solid var(--line)}
.perf-head h2{margin:0;font-size:17px;font-weight:700}
.perf-sec>p{margin:12px 20px}
.perf-sec>p:last-child{margin-bottom:16px}
.perf-sec>.tablecard{box-shadow:none;border-radius:0;margin:0}
.perf-bandbox{margin:12px 20px 16px;padding:12px 14px;background:var(--fill);border-radius:var(--radius)}
.perf-bandhead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.perf-bandlist{display:flex;flex-wrap:wrap;gap:16px}
.perf-bandlist>div{flex:1 1 240px;min-width:0}
.perf-bandbox p{margin:6px 0 0}
table.grid.perf-bands{background:var(--card);border-radius:8px;overflow:hidden}
table.grid.perf-bands tr.hit td{background:#E8F0FE;font-weight:700;color:#0B4FBF}
.perf-history ul{list-style:none;margin:4px 0 0;padding:0}
.perf-history li{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline;font-size:13px;padding:2px 0}
.perf-history li span:first-child{min-width:150px}
.perf-history li b,.perf-history li span:last-child{white-space:nowrap}
table.grid.perf-bands td:last-child,table.grid.perf-bands th:last-child{white-space:nowrap;width:1%}
.perf-review{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:8px;font-size:13px;color:var(--sub)}
.perf-review p{margin:0}
.perf-review.stale{color:#8A4B00}
.perf-score{display:flex;align-items:center;gap:10px}
.perf-score b{font-size:22px}
.perf-cell{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.perf-tag{display:inline-block;font-size:11px;line-height:1.6;padding:0 8px;border-radius:999px;background:var(--fill);color:var(--sub);white-space:nowrap}
.perf-tag.warn{background:#FFF4E5;color:#8A4B00}
table.grid tr.total td{background:#FAFAFC;font-weight:700}
p.small{font-size:12px}
