/* base.css — リセットとタイポグラフィの基礎 */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
               "Yu Gothic Medium", "Yu Gothic", Meiryo, sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-body);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 数値は必ず等幅数字で。監査資料としての信頼感の源。 */
.num, td.num, .stat-value, .kpi-value, time, .mono {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

h1, h2, h3, h4 { color: var(--c-ink); font-weight: 700; line-height: 1.4; }
h1 { font-size: 20px; }
h2 { font-size: 14px; }
h3 { font-size: 13px; }

a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

table { border-collapse: collapse; border-spacing: 0; width: 100%; }

hr { border: 0; border-top: 1px solid var(--c-line); margin: var(--sp-4) 0; }

/* キーボードフォーカスは必ず視認できること */
:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 1px;
  border-radius: var(--r-sm);
}
:focus:not(:focus-visible) { outline: none; }

/* 共通のテキストユーティリティ */
.t-label {
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  color: var(--c-muted);
}
.t-note  { font-size: 11px; color: var(--c-muted); }
.t-muted { color: var(--c-muted); }
.t-ink   { color: var(--c-ink); }
.t-bold  { font-weight: 700; }
.t-alert { color: var(--c-alert); }
.t-warn  { color: var(--c-warn); }
.t-ok    { color: var(--c-ok); }
.t-right { text-align: right; }
.t-center{ text-align: center; }
.t-nowrap{ white-space: nowrap; }
.t-ellipsis {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
