:root { --ink:#1f2933; --muted:#6b7280; --line:#d9dee5; --bg:#f5f7fa; --pri:#1d5fa8; --ok:#167a3e; --ng:#b42318; --warn:#9a6700; }
* { box-sizing: border-box; }
body { margin:0; font-family: "Hiragino Sans","Yu Gothic UI","Meiryo",sans-serif; color:var(--ink); background:var(--bg); font-size:14px; }
a { color: var(--pri); }
header.top { display:flex; justify-content:space-between; align-items:center; background:#16324f; color:#fff; padding:8px 16px; gap:12px; flex-wrap:wrap; }
header.top a { color:#cfe3ff; margin-left:8px; }
.brand { font-weight:bold; }
.brand .org { font-weight:normal; background:#2b5582; padding:2px 8px; border-radius:4px; margin-left:8px; }
.fyform { display:inline; margin-right:8px; } .fyform select { width:auto; display:inline-block; padding:3px 6px; }
nav.menu { background:#fff; border-bottom:1px solid var(--line); padding:0 12px; display:flex; flex-wrap:wrap; }
nav.menu a { padding:10px 10px; text-decoration:none; color:var(--ink); }
nav.menu a:hover { background:var(--bg); }
nav.menu a.super { color:#7c3aed; }
main { padding:16px 20px 60px; max-width:1300px; margin:0 auto; }
h1 { font-size:20px; margin:8px 0 14px; } h1 small { font-size:13px; color:var(--muted); font-weight:normal; }
h2 { font-size:16px; margin:24px 0 8px; } h3 { font-size:14px; margin:16px 0 6px; }
.card { background:#fff; border:1px solid var(--line); border-radius:8px; padding:14px 16px; margin:10px 0; }
.narrow { max-width:560px; }
label { display:block; margin:6px 0; font-size:13px; color:#374151; }
label input, label select { display:block; margin-top:3px; }
input, select, button { font:inherit; }
input, select { padding:6px 8px; border:1px solid #c4cbd4; border-radius:5px; background:#fff; width:100%; }
input.s { width:90px; } .search input.s { width:110px; display:inline-block; }
.search { display:flex; flex-wrap:wrap; gap:6px 14px; align-items:flex-end; }
.search label { margin:0; } .search label input[type=date] { display:inline-block; width:auto; }
label.chk { display:flex; gap:4px; align-items:center; } label.chk input { width:auto; display:inline; }
.grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap:4px 16px; }
.grid .wide, label.wide { grid-column: 1 / -1; }
label.req { color: var(--ng); }
.btn { display:inline-block; padding:7px 14px; border:1px solid #b9c2cd; border-radius:6px; background:#fff; color:var(--ink); text-decoration:none; cursor:pointer; }
.btn.primary { background:var(--pri); color:#fff; border-color:var(--pri); }
.btn.danger { background:var(--ng); color:#fff; border-color:var(--ng); }
.btn.small { padding:3px 10px; font-size:12px; }
.actions { display:flex; gap:8px; flex-wrap:wrap; margin:10px 0; align-items:center; }
form.inline { display:inline; }
.flash { padding:10px 14px; border-radius:6px; margin:8px 0; }
.flash.ok { background:#e7f6ec; color:var(--ok); } .flash.ng { background:#fdecea; color:var(--ng); } .flash.warn { background:#fff6db; color:var(--warn); }
table { border-collapse:collapse; }
table.list, .tbl { width:100%; background:#fff; border:1px solid var(--line); }
table.list th, table.list td { border-bottom:1px solid var(--line); padding:6px 8px; text-align:left; vertical-align:top; }
table.list th { background:#eef2f6; font-weight:600; font-size:13px; white-space:nowrap; }
.tbl { display:table; border-collapse:collapse; }
.tbl .tr { display:table-row; } .tbl .td, .tbl .th { display:table-cell; padding:5px 6px; border-bottom:1px solid var(--line); vertical-align:middle; }
.tbl .th { background:#eef2f6; font-weight:600; font-size:13px; } .tbl .tr.new { background:#f8fbff; }
.r, td.r, th.r { text-align:right !important; } input.r { text-align:right; }
tr.void td, tr.void { color:#9ca3af; text-decoration: line-through; }
tr.sum td { background:#f3f6f9; font-weight:600; } tr.sec td { background:#e4ebf3; font-weight:bold; }
table.kv { width:100%; } table.kv th { text-align:left; width:110px; color:var(--muted); font-weight:normal; padding:5px 8px; } table.kv td { padding:5px 8px; }
.big { font-size:20px; font-weight:bold; }
table.lines { width:100%; } table.lines th { text-align:left; font-size:12px; color:var(--muted); padding:4px; } table.lines td { padding:3px 4px; }
table.lines td:nth-child(1) { width:28%; } table.lines td:nth-child(3) { width:14%; } table.lines td:nth-child(4) { width:18%; }
.badge { display:inline-block; font-size:12px; padding:2px 8px; border-radius:10px; background:#e5e7eb; vertical-align:middle; font-weight:normal; }
.badge.approved { background:#dcfce7; color:var(--ok); } .badge.draft { background:#fef3c7; color:var(--warn); } .badge.fixed { background:#dbeafe; color:#1d4ed8; } .badge.cancelled { background:#fee2e2; color:var(--ng); }
.cards { display:flex; flex-wrap:wrap; gap:12px; }
.stat { background:#fff; border:1px solid var(--line); border-radius:8px; padding:12px 16px; min-width:200px; }
.stat .l { font-size:12px; color:var(--muted); } .stat .v { font-size:20px; font-weight:bold; margin-top:4px; }
.muted { color:var(--muted); } .small { font-size:12px; } .tiny { font-size:11px; } .ngtext { color:var(--ng); }
.tabs { display:flex; gap:4px; margin-bottom:10px; } .tabs a { padding:7px 14px; border:1px solid var(--line); border-radius:6px 6px 0 0; background:#fff; text-decoration:none; }
.tabs a.on { background:var(--pri); color:#fff; }
.scroll { overflow-x:auto; } table.summary td, table.summary th { white-space:nowrap; font-size:12px; }
details.danger { border-color:#f3c3be; } details summary { cursor:pointer; }
fieldset { border:1px solid var(--line); border-radius:6px; margin:10px 0; } legend { font-size:13px; color:var(--muted); }
.login { max-width:360px; margin:60px auto; background:#fff; padding:24px; border-radius:10px; border:1px solid var(--line); }
.login h1 { text-align:center; }
.codes { display:grid; grid-template-columns: repeat(2, max-content); gap:8px 24px; font-size:18px; margin:12px 0; }
.codes code, code.key { font-family: Consolas, "Courier New", monospace; letter-spacing:1px; background:#f3f4f6; padding:4px 8px; border-radius:4px; }
.qr { margin: 10px 0; } .qr svg { width: 200px; height: 200px; }
input.otp { font-size:22px; letter-spacing:6px; text-align:center; max-width:200px; }
.login.wide2 { max-width: 560px; } ol.steps { padding-left: 20px; line-height: 1.8; }
/* ドロップダウンメニュー */
.dd { position:relative; display:inline-block; } .dd .ddm { display:none; position:absolute; top:100%; left:0; background:#fff; border:1px solid var(--line); z-index:10; min-width:190px; box-shadow:0 4px 12px rgba(0,0,0,.08); }
.dd:hover .ddm, .dd:focus-within .ddm { display:block; } .dd .ddm a { display:block; padding:8px 12px; }
.oktext { color: var(--ok); }
table.lines.jv td:nth-child(1) { width:80px; } table.lines.jv td:nth-child(2) { width:28%; }
tr.grp td { border-top:2px solid #cfd6de; }
label.inline { display:inline-flex; gap:6px; align-items:center; margin-left:10px; } label.inline input { width:auto; display:inline; }
/* 決算書 */
.stmt { background:#fff; border:1px solid var(--line); padding:24px 28px; max-width:900px; margin:0 auto; font-family:"Yu Mincho","Hiragino Mincho ProN",serif; }
.stmt-org { font-size:13px; } .stmt-title { text-align:center; font-size:22px; letter-spacing:.3em; margin:6px 0; }
.stmt-period { text-align:center; font-size:13px; } .stmt-unit { text-align:right; font-size:12px; margin-bottom:6px; }
.stmt-table { width:100%; border-collapse:collapse; font-size:13px; margin-bottom:10px; }
.stmt-table td { padding:3px 8px; border-bottom:1px dotted #d5d9de; } .stmt-table td.r { width:130px; font-variant-numeric: tabular-nums; }
.stmt-table tr.head td { font-weight:bold; text-align:center; background:#f3f5f8; border:1px solid #c9cfd6; }
.stmt-table tr.sec td { font-weight:bold; padding-top:8px; } .stmt-table tr.sub td { padding-left:16px; }
.stmt-table tr.subtotal td.r { border-top:1px solid #888; } .stmt-table tr.total td { font-weight:bold; border-top:1px solid #555; }
.stmt-table tr.profit td { font-weight:bold; background:#f7f9fb; } .stmt-table tr.final td { border-top:2px double #333; border-bottom:2px double #333; }
.stmt-table.zaisan td:nth-child(2) { color:#555; font-size:12px; } .stmt-table.zaisan input { padding:2px 4px; }
.bs-cols .stmt-table td.r { width:92px; } .bs-cols .stmt-table td { padding:3px 5px; }
.bs-cols { display:grid; grid-template-columns:1fr 1fr; gap:16px; } @media (max-width:800px) { .bs-cols { grid-template-columns:1fr; } }
@media print {
  .stmt { border:none; padding:0; max-width:none; } .bs-cols { grid-template-columns:1fr 1fr; }
  header.top, nav.menu, .actions, form.search, .noprint { display:none !important; }
  body { background:#fff; } main { padding:0; max-width:none; }
  table.list { font-size:11px; }
}
