/* 卓注 共通スタイル — 白背景・紺1色・日本語ラベル。スマホ最優先 */
:root {
  --ink: #1a2b4c;      /* 紺 */
  --ink-weak: #5b6b86;
  --line: #d9dee8;
  --bg: #ffffff;
  --bg-soft: #f4f6fa;
  --accent: #1a2b4c;
  --danger: #b3261e;
  --ok: #1f7a4d;
  --warn: #8a5a00;
  --radius: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif; font-size: 16px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
a { color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 1px solid var(--ink); background: var(--ink); color: #fff; border-radius: var(--radius); padding: 10px 16px; min-height: 44px; }
button.ghost { background: #fff; color: var(--ink); }
button.danger { background: #fff; color: var(--danger); border-color: var(--danger); }
button.ok { background: var(--ok); border-color: var(--ok); }
button.small { min-height: 34px; padding: 4px 10px; font-size: 14px; border-radius: 8px; }
button:disabled { opacity: .45; cursor: not-allowed; }
input[type=text], input[type=number], input[type=password], input[type=date], select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; min-height: 44px; background: #fff; }
textarea { min-height: 80px; }
label { display: block; font-size: 14px; color: var(--ink-weak); margin: 10px 0 4px; }
.wrap { max-width: 720px; margin: 0 auto; padding: 16px; }
.wide { max-width: 1200px; }
header.bar { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
header.bar .in { max-width: 720px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
header.bar.wide .in { max-width: 1200px; }
h1 { font-size: 20px; margin: 0; }
h2 { font-size: 18px; margin: 24px 0 8px; border-left: 4px solid var(--ink); padding-left: 8px; }
h3 { font-size: 16px; margin: 16px 0 6px; }
.muted { color: var(--ink-weak); font-size: 14px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: #fff; margin: 10px 0; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.right { text-align: right; }
.pill { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: 13px; color: var(--ink-weak); }
.pill.on { border-color: var(--ok); color: var(--ok); }
.pill.off { border-color: var(--danger); color: var(--danger); }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 50; max-width: 90vw; }
.toast.show { opacity: 1; }
.toast.err { background: var(--danger); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px; }
th { color: var(--ink-weak); font-weight: normal; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.hidden { display: none !important; }
.tabs { display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.tabs button { white-space: nowrap; }
.tabs button:not(.active) { background: #fff; color: var(--ink); }
.err { color: var(--danger); }
.ok-text { color: var(--ok); }
pre.ticket { font-family: ui-monospace, "Menlo", "Osaka-Mono", monospace; font-size: 13px; background: var(--bg-soft); padding: 10px; border-radius: 8px; overflow-x: auto; }
@media print {
  header.bar, .noprint { display: none !important; }
  body { background: #fff; }
}
