:root { --teal:#14a3a3; --teal-d:#0e7f80; --teal-l:#e8f6f6; --ink:#1f2d2d; --gray:#6b7777; --line:#dfe8e8; --red:#c0392b; --amber:#b9770e; --green:#1e8449; }
* { box-sizing: border-box; }
body { margin:0; font-family: "Noto Sans JP","Yu Gothic UI","Meiryo",sans-serif; color:var(--ink); background:#f7fafa; font-size:14px; }
.hidden { display:none !important; }
button { font:inherit; cursor:pointer; border:1px solid var(--line); background:#fff; border-radius:6px; padding:6px 12px; }
button:hover { border-color:var(--teal); }
button.primary { background:var(--teal); color:#fff; border-color:var(--teal); }
button.primary:hover { background:var(--teal-d); }
button.danger { color:var(--red); border-color:#e8c4c0; }
button.link { border:none; background:none; color:var(--teal-d); padding:2px 4px; text-decoration:underline; }
button:disabled { opacity:.45; cursor:not-allowed; }
input, select, textarea { font:inherit; padding:6px 8px; border:1px solid #cdd9d9; border-radius:6px; background:#fff; width:100%; }
textarea { min-height:120px; }
label { display:block; margin:8px 0; color:var(--gray); font-size:13px; }
label input, label select, label textarea { margin-top:3px; color:var(--ink); }

.login { min-height:100vh; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,var(--teal-l),#fff); }
.login-box { width:360px; background:#fff; padding:32px; border-radius:12px; box-shadow:0 6px 24px rgba(20,163,163,.15); }
.login-box h1 { margin:0; color:var(--teal-d); }
.login-box .sub { margin:4px 0 16px; color:var(--gray); }
.login-box button.primary { width:100%; margin-top:10px; padding:9px; }

.shell { display:grid; grid-template-columns:210px 1fr; grid-template-rows:52px 1fr; min-height:100vh; }
header { grid-column:1/3; display:flex; justify-content:space-between; align-items:center; padding:0 20px; background:#fff; border-bottom:3px solid var(--teal); }
.brand { font-weight:700; color:var(--teal-d); font-size:18px; }
.ver { font-size:11px; color:var(--gray); font-weight:400; }
nav { background:#fff; border-right:1px solid var(--line); padding:10px 0; }
nav button { display:block; width:100%; text-align:left; border:none; border-radius:0; padding:9px 18px; background:none; }
nav button.active { background:var(--teal-l); color:var(--teal-d); font-weight:700; border-left:4px solid var(--teal); padding-left:14px; }
nav .group { font-size:11px; color:var(--gray); padding:12px 18px 4px; }
main { padding:20px 26px 60px; overflow:auto; }
h2 { margin:0 0 14px; font-size:20px; }
h3 { margin:18px 0 8px; font-size:15px; color:var(--teal-d); }
.card { background:#fff; border:1px solid var(--line); border-radius:10px; padding:16px 18px; margin-bottom:16px; }
.grid2 { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 16px; }
.grid3 { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0 16px; }
.grid4 { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0 16px; }
.row { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
table { width:100%; border-collapse:collapse; background:#fff; }
th, td { border-bottom:1px solid var(--line); padding:7px 8px; text-align:left; vertical-align:top; }
th { background:var(--teal-l); font-weight:600; font-size:13px; }
td.num, th.num { text-align:right; font-variant-numeric:tabular-nums; }
tr.sel td { background:#f0fbfb; }
.badge { display:inline-block; padding:1px 8px; border-radius:10px; font-size:12px; background:#eef2f2; }
.b-draft { background:#eef2f2; color:#455; }
.b-active, .b-finalized, .b-signed, .b-sent { background:#dff3e6; color:var(--green); }
.b-sending { background:#fdf0d5; color:var(--amber); }
.b-unknown { background:#fbe1dd; color:var(--red); }
.b-not_sent { background:#eef2f2; color:#455; }
.b-prov { background:#fdf0d5; color:var(--amber); }
.stats { display:grid; grid-template-columns:repeat(auto-fill,minmax(170px,1fr)); gap:12px; }
.stat { background:#fff; border:1px solid var(--line); border-radius:10px; padding:14px; }
.stat .n { font-size:26px; font-weight:700; color:var(--teal-d); }
.stat .l { color:var(--gray); font-size:12px; }
.note { background:#fffbea; border:1px solid #f1e3a6; padding:8px 12px; border-radius:8px; font-size:13px; }
.warn { background:#fdecea; border:1px solid #f3c2bc; padding:8px 12px; border-radius:8px; font-size:13px; color:#922; }
.error { color:var(--red); min-height:1em; }
.muted { color:var(--gray); font-size:12px; }
.totals td { padding:4px 8px; }
.totals tr.big td { font-size:17px; font-weight:700; color:var(--teal-d); }
.toast { position:fixed; bottom:22px; left:50%; transform:translateX(-50%); background:#1f2d2d; color:#fff; padding:10px 18px; border-radius:8px; z-index:99; max-width:80vw; }
.toast.err { background:var(--red); }
.mono { font-family:Consolas,monospace; font-size:12px; word-break:break-all; }

.stat.hero { background:var(--teal-l); border-color:#bfe6e6; }
.stat .l { margin:2px 0; }
.dash { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.1fr); gap:20px; margin-top:6px; }
@media (max-width: 1100px) { .dash { grid-template-columns:1fr; } }
.todo { background:#fff; border:1px solid var(--line); border-left:4px solid var(--teal); border-radius:8px; padding:10px 12px; margin-bottom:10px; }
.todo.lv-warn { border-left-color:#d68910; }
.todo.lv-info { border-left-color:#aab8b8; }
.todo-h { display:flex; align-items:center; gap:10px; }
.todo-h .cnt { font-size:20px; font-weight:700; color:var(--teal-d); min-width:28px; text-align:center; }
.todo.lv-warn .cnt { color:#b9770e; }
.todo-h .lbl { flex:1; font-weight:600; }
.todo-h .acts { display:flex; gap:6px; }
.todo-items { display:flex; flex-wrap:wrap; gap:4px 10px; margin:6px 0 0 38px; font-size:12px; color:var(--gray); }
.act { padding:5px 0; border-bottom:1px solid #f0f4f4; font-size:13px; }
.act:last-child { border-bottom:none; }
.chart { position:relative; }
.chart svg { width:100%; height:auto; display:block; }
.chart .ax { font-size:10px; fill:#7a8888; }
.chart .bar path { fill:var(--teal); }
.chart .bar.on path { fill:var(--teal-d); }
.chart .tip { position:absolute; background:#1f2d2d; color:#fff; font-size:12px; padding:4px 8px; border-radius:6px; pointer-events:none; white-space:nowrap; }

/* ===== 見た目の切り替え（2026-11-24）：元の（ターコイズ）／白・木目（TUMiKi と同じ色づかい） ===== */
.who { display:flex; align-items:center; gap:12px; }
#lookbox { display:flex; align-items:center; gap:6px; }
.look { display:flex; gap:2px; margin:0; min-width:170px; background:rgba(0,0,0,.06); border-radius:10px; padding:3px; }
.look button { flex:1; border:0; background:none; border-radius:8px; padding:4px 0; font-size:11.5px; font-weight:700; color:var(--gray); }
.look button[aria-pressed="true"] { background:#fff; color:var(--ink); box-shadow:0 1px 2px rgba(0,0,0,.15); }
.look-cap { font-size:11px; color:var(--gray); }
nav .cube { display:none; }
.mark4 { display:none; }

/* --- 白（TUMiKi 白基調）：白い紙・細い線・青のアクセント・色の積み木のメニュー --- */
html.look-white { --teal:#0a84e8; --teal-d:#0864b3; --teal-l:#e7f2fd; --ink:#111827; --gray:#5b6574; --line:#e3e8ef; }
html.look-white body { background:#fff; }
html.look-white header { border-bottom:1px solid var(--line); box-shadow:0 1px 8px rgba(17,24,39,.05); }
html.look-white .brand { color:var(--ink); display:flex; align-items:center; gap:10px; }
html.look-white .mark4, html.look-wood .mark4 { display:block; width:46px; height:26px; }
html.look-white nav { background:#f7f9fc; border-right:0; box-shadow:2px 0 14px rgba(17,24,39,.07); padding:10px 10px; }
html.look-white nav button[data-page] { display:flex; align-items:center; gap:8px; color:#fff; font-weight:700; background:var(--c); border-radius:10px;
  padding:8px 12px; margin:6px 0; box-shadow:0 3px 0 rgba(0,0,0,.18),0 4px 8px rgba(17,24,39,.08); text-shadow:0 1px 1px rgba(0,0,0,.18); }
html.look-white nav button[data-page]:hover { transform:translateY(-1px); filter:brightness(1.05); }
html.look-white nav button.active { border-left:0; padding-left:12px; transform:translateX(4px);
  box-shadow:0 0 0 2px #fff,0 0 0 4px var(--c),0 6px 12px rgba(17,24,39,.12); }
html.look-white nav .cube { display:block; width:9px; height:9px; border-radius:3px; background:#fff; opacity:.9; flex:none; }
html.look-white nav .group { padding:12px 4px 2px; }
html.look-white .card, html.look-white .stat, html.look-white .todo { border-radius:14px; }
html.look-white h2 { display:inline-block; padding-bottom:8px; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 10' preserveAspectRatio='none'%3E%3Cpath d='M2 7 Q150 1 298 6' fill='none' stroke='%230a84e8' stroke-width='3' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") left bottom/100% 8px no-repeat; }
html.look-white th { background:#f1f6fc; }
html.look-white .look { background:#e9eef5; }
html.look-white .look button[aria-pressed="true"] { color:var(--teal); }
html.look-white .login { background:#fff; }

/* --- 木目（TUMiKi の茶色）：ベージュの木の下地・木の板のサイドバー・オレンジのアクセント --- */
html.look-wood { --teal:#e07a2e; --teal-d:#b65a17; --teal-l:#fde9d6; --ink:#2a2017; --gray:#7a6650; --line:#e6d5b8; }
html.look-wood body { background:repeating-linear-gradient(100deg,rgba(150,105,55,.035) 0 3px,transparent 3px 16px),#f6eedf; }
html.look-wood header { background:#fffaf2; border-bottom:0; box-shadow:0 3px 0 #e2cca6; }
html.look-wood .brand { color:#3a2a1a; display:flex; align-items:center; gap:10px; }
html.look-wood nav { border-right:0; padding:10px; color:#3a2a1a;
  background:repeating-linear-gradient(97deg,rgba(120,75,30,.07) 0 2px,transparent 2px 13px),linear-gradient(180deg,#f2e2c5,#e9d4ae);
  box-shadow:4px 0 16px rgba(90,60,25,.13); }
html.look-wood nav .group { color:#3a2a1a; opacity:.7; font-weight:700; padding:12px 4px 2px; }
html.look-wood nav button[data-page] { display:flex; align-items:center; gap:10px; color:#3a2a1a; font-weight:700; background:rgba(255,250,242,.55);
  border-radius:12px; padding:8px 10px; margin:6px 0; box-shadow:0 3px 0 rgba(120,80,35,.22); }
html.look-wood nav button[data-page]:hover { background:rgba(255,250,242,.85); transform:translateY(-1px); }
html.look-wood nav button.active { background:var(--c); color:#fff; border-left:0; padding-left:10px;
  box-shadow:0 4px 0 rgba(0,0,0,.22),inset 0 2px 0 rgba(255,255,255,.35); }
html.look-wood nav .cube { display:block; flex:none; width:20px; height:20px; border-radius:6px; background:var(--c);
  box-shadow:0 2px 0 rgba(0,0,0,.2),inset 0 2px 0 rgba(255,255,255,.4); }
html.look-wood nav button.active .cube { background:#fff; opacity:.9; }
html.look-wood .card, html.look-wood .stat, html.look-wood .todo, html.look-wood table { background:#fffaf2; }
html.look-wood .card, html.look-wood .stat { border:0; border-radius:16px; box-shadow:0 4px 0 #e2cca6,0 8px 18px rgba(90,60,25,.08); }
html.look-wood .stat.hero { background:#fde9d6; }
html.look-wood .todo { border-radius:12px; box-shadow:0 3px 0 #e2cca6; }
html.look-wood th { background:#f3e4c9; }
html.look-wood button { background:#fffaf2; border-color:#dcc6a0; border-radius:10px; }
html.look-wood button.primary { background:var(--teal); border-color:var(--teal); color:#fff; font-weight:700; box-shadow:0 3px 0 #b65a17; }
html.look-wood button.primary:active { transform:translateY(2px); box-shadow:0 1px 0 #b65a17; }
html.look-wood button.link { background:none; }
html.look-wood input, html.look-wood select, html.look-wood textarea { background:#fffaf2; border-color:#dcc6a0; }
html.look-wood .look { background:rgba(58,42,26,.1); }
html.look-wood .look button { color:#3a2a1a; }
html.look-wood .look button[aria-pressed="true"] { background:#fffaf2; }
html.look-wood .login { background:repeating-linear-gradient(100deg,rgba(150,105,55,.035) 0 3px,transparent 3px 16px),#f6eedf; }
html.look-wood .login-box { background:#fffaf2; box-shadow:0 4px 0 #e2cca6,0 8px 18px rgba(90,60,25,.1); }

.trial-bar { background:#f2b416; color:#2a2017; text-align:center; font-weight:700; font-size:13px; padding:5px 8px; }

.trial-lead { font-weight:700; }
#trial-btns { display:grid; gap:8px; }
#trial-btns button { padding:12px; font-size:15px; font-weight:700; color:#fff; border:0; border-radius:10px; box-shadow:0 3px 0 rgba(0,0,0,.18); }

/* よく使うもの（ほかのシステムへのアイコン） */
.shortcuts { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:6px; }
.sc { display:flex; flex-direction:column; align-items:center; gap:6px; width:116px; padding:12px 6px 10px; background:#fff; border:1px solid var(--line);
  border-radius:14px; text-decoration:none; color:var(--ink); font-size:12px; font-weight:700; text-align:center; transition:transform .1s; }
.sc:hover { transform:translateY(-2px); box-shadow:0 6px 14px rgba(0,0,0,.08); }
.sc-ic { width:48px; height:48px; border-radius:12px; display:flex; align-items:center; justify-content:center; box-shadow:0 3px 0 rgba(0,0,0,.18); }
.sc-ic svg { width:28px; height:28px; }
.sc-nm { line-height:1.35; }
html.look-wood .sc { background:#fffaf2; border:0; box-shadow:0 3px 0 #e2cca6; }

/* ダッシュボード：経営／業務のタブと売上の分析（2026-11-26） */
.dash-head { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.dash-head h2 { margin-bottom:10px; }
.dtabs { display:flex; gap:4px; background:rgba(0,0,0,.06); border-radius:10px; padding:3px; margin-bottom:10px; }
.dtabs button { border:0; background:none; border-radius:8px; padding:6px 16px; font-weight:700; color:var(--gray); }
.dtabs button[aria-selected="true"] { background:#fff; color:var(--teal-d); box-shadow:0 1px 2px rgba(0,0,0,.15); }
.kpis { grid-template-columns:repeat(4,minmax(0,1fr)); margin-bottom:16px; }
@media (max-width:1000px) { .kpis { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.kpis .n { font-size:22px; }
.up { color:#1e8449; font-weight:700; }
.down { color:#c0392b; font-weight:700; }
.anal-head { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-bottom:12px; }
.seg { display:flex; gap:2px; background:rgba(0,0,0,.06); border-radius:10px; padding:3px; flex-wrap:wrap; }
.seg button { border:0; background:none; border-radius:8px; padding:5px 12px; font-size:13px; color:var(--gray); font-weight:700; }
.seg button[aria-pressed="true"] { background:#fff; color:var(--ink); box-shadow:0 1px 2px rgba(0,0,0,.15); }
label.inl { display:flex; align-items:center; gap:6px; margin:0; font-size:13px; }
label.inl input[type=month] { width:auto; margin:0; }
label.inl input[type=checkbox] { width:auto; margin:0; }
.anal-body { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:20px; }
@media (max-width:1100px) { .anal-body { grid-template-columns:1fr; } }
.anal h4 { margin:0 0 8px; font-size:14px; }
.legend { display:flex; flex-wrap:wrap; gap:6px 14px; font-size:12px; color:var(--ink); margin-top:6px; }
.legend i, .chart .tip i { display:inline-block; width:10px; height:10px; border-radius:2px; margin-right:5px; vertical-align:-1px; }
.chart .col.on rect:not([fill="transparent"]) { opacity:.85; }
.chart .tip div { font-weight:400; margin-top:2px; }
.atable td, .atable th { font-size:13px; }
.atable tr.tot td { font-weight:700; border-top:2px solid var(--line); }
.sharebar { display:inline-block; width:60px; height:8px; background:#eef2f2; border-radius:4px; vertical-align:middle; overflow:hidden; }
.sharebar i { display:block; height:100%; background:var(--teal); }
.sc { position:relative; }
.sc .pin { position:absolute; top:6px; right:8px; font-size:8px; color:var(--gray); }
html.look-wood .dtabs button[aria-selected="true"], html.look-wood .seg button[aria-pressed="true"] { background:#fffaf2; }
.atable td.num, .atable th.num { white-space:nowrap; }
.atable tr.grp td { font-weight:700; background:rgba(0,0,0,.025); }
.atable tr.lv1 td:first-child { padding-left:20px; color:var(--gray); }
.atable tr.lv1 td { font-size:12.5px; }
.pay-transfer { background:#eef2f7; color:#2a4a78; }
.pay-card { background:#efe8fb; color:#5a3aa8; }
.ml-form { display:flex; gap:6px; align-items:center; flex-wrap:wrap; margin-top:10px; padding:10px; background:rgba(0,0,0,.03); border-radius:10px; }
.ml-form input, .ml-form select { margin:0; }
.sd-lines { margin-top:10px; }
.sd-lines td { padding:4px; }
.sd-lines input, .sd-lines select { margin:0; padding:5px 6px; }
.sd-lines input.num { text-align:right; }
/* 本日のお休み（勤怠ノート） */
.topband { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.3fr); gap:16px; align-items:stretch; margin-bottom:10px; }
@media (max-width:900px) { .topband { grid-template-columns:1fr; } }
.toff { margin-top:8px; padding:12px 14px; }
.toff-list { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.toff-i { display:inline-flex; gap:6px; align-items:center; padding:3px 10px; border-radius:999px; font-size:13px; }
.toff-i.leave { background:#e4f3dc; color:#2f6b1f; }
.toff-i.absent { background:#fbe1dd; color:#922; }
.toff-i.late { background:#fdf0d5; color:#8a5a00; }
html.look-wood .toff { background:#fffaf2; }
.topband .toff { height:calc(100% - 8px); box-sizing:border-box; }
.mada-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-top:8px; }
.mada-grid .l { font-size:12px; color:var(--gray); }
.mada-grid .n { font-size:22px; font-weight:700; color:var(--teal-d); }
.mada-grid .n small { font-size:12px; font-weight:400; margin-left:2px; }
.mada-grid .muted { font-size:11.5px; }
@media (max-width:700px) { .mada-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
