/* Hallmark · pre-emit critique: P5 H5 E4 S5 R5 V4 */
/* Hallmark · genre: modern-minimal · tone: steady, trustworthy, forward · anchor: custom (Next Vision navy / cobalt / amber) · UI v3 2026-09-28 */
/* 本人の決定（2026-09-28）: 画面の色はネクストビジョンの色（濃紺・コバルト基調、琥珀の差し色）。印刷（A3 帳票）の色は admin/style.css の @media print で従来値に固定する（legacy の印刷用スタイルは凍結原本のまま）。 */

:root {
  color-scheme: light;

  --color-paper: oklch(98.5% 0.004 250);
  --color-surface: oklch(100% 0.003 250);
  --color-surface-soft: oklch(96.5% 0.008 250);
  --color-surface-strong: oklch(93.5% 0.012 250);
  --color-ink: oklch(22% 0.03 262);
  --color-ink-soft: oklch(34% 0.025 262);
  --color-muted: oklch(44% 0.018 257);
  --color-rule: oklch(88% 0.014 252);
  --color-rule-strong: oklch(64% 0.03 254);
  --color-accent: oklch(49% 0.17 260);
  --color-accent-hover: oklch(44% 0.16 260);
  --color-accent-pressed: oklch(39% 0.15 260);
  --color-accent-soft: oklch(95% 0.03 258);
  --color-accent-ink: oklch(99% 0.004 250);
  --color-focus: oklch(30% 0.12 262);
  --color-navy: oklch(27% 0.075 262);
  --color-navy-soft: oklch(93% 0.022 262);
  --color-navy-ink: oklch(97% 0.01 262);
  --color-amber: oklch(80% 0.145 78);
  --color-amber-soft: oklch(96.5% 0.04 85);
  --color-amber-ink: oklch(43% 0.1 68);
  --color-graphite: oklch(22% 0.016 260);
  --color-graphite-ink: oklch(96% 0.008 250);
  --color-success: oklch(40% 0.105 155);
  --color-success-soft: oklch(96% 0.026 155);
  --color-warning: oklch(40% 0.105 76);
  --color-warning-soft: oklch(96% 0.038 82);
  --color-error: oklch(43% 0.18 28);
  --color-error-soft: oklch(96% 0.03 28);
  --color-overlay: oklch(20% 0.018 258 / 0.58);
  --color-shadow: oklch(20% 0.018 258 / 0.1);
  --color-transparent: transparent;
  --color-print-paper: oklch(100% 0 0);
  --color-print-ink: var(--color-graphite);
  --color-print-rule: oklch(52% 0.012 258);

  --font-display: "Avenir Next", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-body: "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;

  --space-3xs: 0.125rem;
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 2.5rem;
  --space-3xl: 3rem;
  --space-4xl: 4rem;
  --space-5xl: 5rem;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: clamp(2rem, 4vw, 2.75rem);

  --line-tight: 1.2;
  --line-heading: 1.3;
  --line-body: 1.65;
  --measure-copy: 65ch;
  --measure-wide: 82ch;

  --rule-thin: 0.0625rem;
  --rule-medium: 0.125rem;
  --radius-xs: 0.125rem;
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.875rem;

  --control-size: 2.75rem;
  --control-size-large: 3rem;
  --candidate-pane: 17.5rem;
  --page-max: 80rem;
  --dialog-max: 38rem;
  --print-width: 420mm;
  --print-height: 297mm;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 100ms;
  --dur-short: 180ms;
  --dur-long: 280ms;

  --shadow-raised: 0 0.0625rem 0.125rem var(--color-shadow);
  --shadow-dialog: 0 1.5rem 4rem var(--color-overlay);

  --z-base: 1;
  --z-raised: 10;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 400;
  --z-toast: 500;
}
