/* 役員報酬 給与計算 */
:root { --green:#2e7d32; --green2:#7cc58a; --blue:#1e6fb5; --orange:#e07b00; --gray:#5f6b76;
        --bg:#f1f1ee; --line:#d6d6d0; --text:#222; --muted:#6b6b6b; --red:#c62828; }
* { box-sizing: border-box; }
body { margin:0; font-family:"Yu Gothic UI","Yu Gothic","Meiryo",system-ui,sans-serif; color:var(--text); background:var(--bg); font-size:15px; }
a { color:#1a5fa8; }
.top { display:flex; align-items:center; gap:16px; background:#1f2a24; color:#fff; padding:10px 18px; flex-wrap:wrap; }
.top .brand { color:#fff; font-weight:bold; font-size:17px; text-decoration:none; }
.top .co { color:#cfe8d3; }
.top .user { margin-left:auto; display:flex; gap:12px; align-items:center; }
.top .user a, .top button.link { color:#cfe8d3; }
button.link { background:none; border:0; padding:0; cursor:pointer; text-decoration:underline; font:inherit; }
form.inline { display:inline; }
main.page { max-width:1180px; margin:0 auto; padding:16px 18px 60px; }
h1 { font-size:22px; margin:8px 0 14px; }
h2 { font-size:17px; }
.crumb { margin:4px 0; font-size:14px; }
.flash { padding:10px 14px; border-radius:6px; margin:10px 0; background:#e7f4e8; border:1px solid #b6dcb9; }
.flash.err { background:#fdecec; border-color:#f2b8b8; color:#8a1c1c; }
.flash.warn { background:#fff6e0; border-color:#f0d48a; color:#6a4b00; }
.muted, small { color:var(--muted); }
.note { color:var(--muted); font-size:13px; line-height:1.6; }
.box { background:#fff; border:1px solid var(--line); border-radius:8px; padding:14px 16px; margin:12px 0; }

/* ---- クイックナビ ---- */
main.home { padding:0; }
.navi { display:flex; min-height:calc(100vh - 46px); }
.side { width:190px; background:#2b2f2c; display:flex; flex-direction:column; flex-shrink:0; }
.side a { color:#fff; font-weight:bold; text-decoration:none; padding:14px 16px; border-bottom:1px solid #3d433f; font-size:16px; }
.side a:hover { background:#3b4a40; }
.cards { flex:1; padding:16px; display:grid; grid-template-columns:repeat(auto-fill,minmax(520px,1fr)); gap:16px; align-content:start; }
.card { background:#f7f7f4; border:1px solid var(--line); border-radius:8px; overflow:hidden; scroll-margin-top:12px; }
.card h2 { margin:0; color:#fff; padding:12px 18px; font-size:18px; }
.card h2 small { color:#fff; opacity:.85; font-weight:normal; font-size:13px; }
.c1 { background:#1f9a3e; } .c2 { background:#7cc58a; } .c3 { background:#3b86c9; } .c4 { background:#e8a23a; } .c5 { background:#7a858f; }
.flow { display:flex; align-items:center; flex-wrap:wrap; gap:4px; padding:22px 16px; }
.tile { position:relative; display:flex; flex-direction:column; align-items:center; gap:6px; width:86px; text-align:center;
        text-decoration:none; color:var(--text); padding:8px 4px; border-radius:8px; font-size:14px; line-height:1.3; }
a.tile:hover { background:#e6efe6; }
.tile.disabled { color:#999; cursor:default; }
.tile small { font-size:11px; }
.arrow { width:18px; height:3px; background:#7b6a58; position:relative; margin:0 2px 30px; }
.arrow::after { content:""; position:absolute; right:-2px; top:-5px; border-left:9px solid #7b6a58; border-top:6.5px solid transparent; border-bottom:6.5px solid transparent; }
.badge { position:absolute; top:-2px; right:-6px; background:#e8f5e9; color:#1b5e20; border:1px solid #a5d6a7; font-size:11px; padding:1px 6px; border-radius:10px; white-space:nowrap; }
.badge.warn { background:#fff3e0; color:#a14d00; border-color:#ffcc80; }
.badge.gray { background:#eee; color:#888; border-color:#ddd; }
.subs { display:flex; flex-wrap:wrap; gap:6px 18px; padding:10px 18px 14px; background:#ecece8; border-top:1px solid var(--line); align-items:center; }
.subs-h { color:var(--muted); font-size:13px; width:100%; }
.sub { display:flex; align-items:center; gap:8px; text-decoration:none; color:var(--text); padding:4px 6px; border-radius:5px; }
.sub:hover { background:#dfe6df; }
.todo { grid-column:1/-1; background:#fff8e6; border:1px solid #f0d48a; border-radius:8px; padding:4px 18px 8px; }
.todo h2 { margin:10px 0 4px; font-size:16px; color:#7a5200; }
.todo li { margin:4px 0; }

/* ---- 表・フォーム ---- */
table.t { border-collapse:collapse; width:100%; background:#fff; font-size:14px; }
table.t th, table.t td { border:1px solid var(--line); padding:6px 8px; vertical-align:top; }
table.t th { background:#eef2ee; font-weight:normal; text-align:left; white-space:nowrap; }
table.t td.n, table.t th.n { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
table.t tr.sum td { background:#eef3fb; font-weight:bold; }
table.t tr.warnrow td { background:#fffaf0; }
.scroll { overflow-x:auto; }
.warns { color:#a14d00; font-size:12px; margin:2px 0 0; padding-left:16px; }
form.f { background:#fff; border:1px solid var(--line); border-radius:8px; padding:14px 16px; margin:12px 0; }
.grid { display:grid; grid-template-columns:200px 1fr; gap:8px 14px; align-items:center; }
.grid label { text-align:right; color:#333; }
.grid .help { grid-column:2; color:var(--muted); font-size:12px; margin-top:-4px; }
.grid h3 { grid-column:1/-1; margin:14px 0 2px; font-size:15px; border-bottom:1px solid var(--line); padding-bottom:4px; }
input[type=text], input[type=password], input[type=number], input[type=month], input[type=date], select, textarea {
  font:inherit; padding:6px 8px; border:1px solid #bbb; border-radius:5px; background:#fff; max-width:100%; }
input.num { width:130px; text-align:right; }
input.w { width:320px; }
.btn, button.btn { display:inline-block; font:inherit; padding:8px 16px; border-radius:6px; border:1px solid #2e7d32; background:#2e7d32; color:#fff; cursor:pointer; text-decoration:none; }
.btn.sub2, button.sub2 { background:#fff; color:#2e7d32; }
.btn.danger, button.danger { background:#fff; color:var(--red); border-color:var(--red); }
.btn.small, button.small { padding:3px 10px; font-size:13px; }
.actions { display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin:12px 0; }
.tabs { display:flex; gap:6px; flex-wrap:wrap; margin:8px 0; }
.tabs a { padding:5px 12px; border:1px solid var(--line); border-radius:16px; background:#fff; text-decoration:none; color:var(--text); }
.tabs a.on { background:#2e7d32; color:#fff; border-color:#2e7d32; }
.status { display:inline-block; padding:3px 10px; border-radius:12px; font-size:13px; }
.status.ok { background:#e8f5e9; color:#1b5e20; } .status.warn { background:#fff3e0; color:#a14d00; }
.pass { color:#1b5e20; font-weight:bold; } .fail { color:var(--red); font-weight:bold; }
.kind { display:inline-block; padding:1px 8px; border-radius:10px; font-size:12px; background:#e3f2fd; color:#0d47a1; }
.kind.zero { background:#eee; color:#666; }

@media (max-width: 760px) {
  .navi { flex-direction:column; } .side { width:auto; flex-direction:row; overflow-x:auto; }
  .side a { padding:10px 12px; font-size:14px; border:0; white-space:nowrap; }
  .cards { grid-template-columns:1fr; padding:10px; }
  .grid { grid-template-columns:1fr; } .grid label { text-align:left; } .grid .help { grid-column:1; }
}
@media print { .top, .crumb, .actions, .no-print { display:none !important; } body { background:#fff; } }
