/* tokens.css — デザイントークン(色・書体・余白)。値の変更はここだけで行う */
:root {
  color-scheme: light dark;
  /* 面 */
  --c-bg: #f4f6f8;
  --c-surface: #ffffff;
  --c-surface-2: #eceff3;
  --c-border: #d5dbe3;
  --c-text: #1c2430;
  --c-text-sub: #4d5a6b;
  /* 主色: 藍 */
  --c-primary: #2a4d8f;
  --c-primary-hover: #213f77;
  --c-on-primary: #ffffff;
  --c-primary-soft: #e3eaf7;
  /* 状態色 */
  --c-ok: #1f7a4d;      --c-ok-soft: #dff2e8;
  --c-warn: #8a5a00;    --c-warn-soft: #fbefd2;
  --c-danger: #b3261e;  --c-danger-soft: #fbe3e1;
  --c-info: #1d6a8a;    --c-info-soft: #dcf0f7;
  --c-focus: #ad6700;
  /* 書体 */
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "BIZ UDPGothic", Meiryo, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "BIZ UDGothic", monospace;
  --fs-xs: .75rem; --fs-sm: .875rem; --fs-md: 1rem; --fs-lg: 1.125rem; --fs-xl: 1.375rem;
  --lh-body: 1.75;
  /* 余白(4px基準) */
  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem; --sp-5: 1.5rem; --sp-6: 2rem;
  /* 形 */
  --radius-s: 4px; --radius-m: 8px; --radius-l: 14px;
  --shadow-1: 0 1px 2px rgba(20,30,50,.08);
  --tap: 44px; /* 最小タップ領域 */
  --nav-w: 232px;
}
:root[data-theme="light"] { color-scheme:light; }
:root[data-theme="dark"] {
  color-scheme:dark;
  --c-bg: #12161c; --c-surface: #1a2029; --c-surface-2: #232b37; --c-border: #34404f;
  --c-text: #e6ebf2; --c-text-sub: #a9b5c4;
  --c-primary: #8fb0ee; --c-primary-hover: #a9c3f4; --c-on-primary: #0f1a2e; --c-primary-soft: #22304a;
  --c-ok: #6fd3a0; --c-ok-soft: #1c3329;
  --c-warn: #f0c36a; --c-warn-soft: #3a2f16;
  --c-danger: #ff9a91; --c-danger-soft: #42201e;
  --c-info: #7cc8e3; --c-info-soft: #17313b;
  --c-focus: #ffb43d;
  --shadow-1: none;
}
:root[data-site="kai"][data-theme="dark"] {
  --c-bg:#0b1423;
  --c-surface:#101c2d;
  --c-surface-2:#182940;
  --c-border:#263a55;
  --c-text:#edf4ff;
  --c-text-sub:#aabed7;
  --c-primary:#81d8ff;
  --c-primary-hover:#b8ebff;
  --c-primary-soft:#183b65;
  --c-focus:#99e2ff;
  --kai-side-width:clamp(18rem,21vw,24rem);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-bg: #12161c; --c-surface: #1a2029; --c-surface-2: #232b37; --c-border: #34404f;
    --c-text: #e6ebf2; --c-text-sub: #a9b5c4;
    --c-primary: #8fb0ee; --c-primary-hover: #a9c3f4; --c-on-primary: #0f1a2e; --c-primary-soft: #22304a;
    --c-ok: #6fd3a0; --c-ok-soft: #1c3329;
    --c-warn: #f0c36a; --c-warn-soft: #3a2f16;
    --c-danger: #ff9a91; --c-danger-soft: #42201e;
    --c-info: #7cc8e3; --c-info-soft: #17313b;
    --c-focus: #ffb43d; --shadow-1: none;
  }
}
