/* Design tokens — the ONLY place raw values live.
   Editorial corporate (newspaper-style): flat surfaces, 2px corners, stepped bold headings, system fonts.
   Reference: design-md/nikkei (navy + subscription orange + dusty-blue links). */
:root {
  /* color */
  --c-brand: #003e70;
  --c-brand-hover: #002c52;
  --c-brand-tint: #e3ecf5;
  --c-brand-tint-2: #f1f5f9;
  --c-link: #326691;
  --c-link-hover: #113366;
  --c-accent: #f58700;
  --c-accent-hover: #db7800;
  --c-accent-ink: #8f5200;
  --c-accent-tint: #fff4e5;
  --c-on-accent: #1a1a1a;
  --c-ink: #333333;
  --c-text: #333333;
  --c-muted: #5c5c5c;
  --c-caption: #757575;
  --c-line: #d9d9d9;
  --c-line-strong: #8c8c8c;
  --c-surface: #ffffff;
  --c-surface-2: #fafafa;
  --c-footer-copy: #143a65;
  --c-danger: #eb1400;
  --c-danger-tint: #fff1f0;
  --c-success: #16a34a;

  /* stacking (form submit overlay) */
  --z-form-sending: 9000;

  /* dark band (flat navy) and image placeholders */
  --c-dark: #003e70;
  --c-on-dark: #ffffff;
  --c-on-dark-muted: #d6e2ef;
  --c-on-dark-line: rgb(255 255 255 / 26%);
  --c-ph: #f0f0f0;
  --c-ph-line: #b8b8b8;
  --c-ph-ink: #5c5c5c;
  /* light-surface copies of the text colors, so cards can re-light themselves inside a dark band */
  --c-ink-lt: #333333;
  --c-text-lt: #333333;
  --c-muted-lt: #5c5c5c;
  --c-line-lt: #d9d9d9;

  /* type: OS system fonts only (no web fonts); solid setting, no tracking */
  --f-head: -apple-system, system-ui, "Segoe UI", Roboto, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --f-body: var(--f-head);
  --f-logo: var(--f-head);
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
  --fs-3xl: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  --fs-hero: clamp(1.625rem, 1.3rem + 1.5vw, 2.25rem);
  --fs-mega: clamp(2rem, 1.6rem + 2vw, 3rem);
  --fs-price: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --lh-tight: 1.4;
  --lh-body: 1.7;
  --ls: normal;

  /* space (8px grid, tighter than before) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 1rem;
  --s-4: 1.5rem;
  --s-5: 2.25rem;
  --s-6: 3.25rem;
  --s-7: 4.5rem;
  --gutter: 1rem;

  /* shape: square-ish, flat */
  --r-sm: 2px;
  --r-md: 2px;
  --r-lg: 2px;
  --r-xl: 2px;
  --r-pill: 16px;
  --sh-header: 0 1px 0 var(--c-line);

  /* layout */
  --w-max: 1180px;
  --w-read: 760px;
  --header-h: 60px;
  --rule: 3px;

  /* image ratios (c-ph--r*): card/MV 3:2, square, portrait 4:5, banner 21:9 (16:9 on phones) */
  --ratio-3x2: 3 / 2;
  --ratio-1x1: 1 / 1;
  --ratio-4x5: 4 / 5;
  --ratio-21x9: 21 / 9;
  --ratio-21x9-sp: 16 / 9;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* MV（ファーストビュー）SNS背景ウォール・可読性保護ベール・マウス連動パララックス用トークン
     - 背景のSNS画像ウォールがほどよく控えめに映るようベールとタイルの透明度を調整し、
       文字の読みやすさと落ち着きを両立させる。
     - --hero-mx / --hero-my は JS (hero-wall.js) から -1.0 〜 1.0 の正規化座標として更新される。 */
  --c-hero-bg: #f2f5f9;
  --c-hero-veil-strong: rgb(255 255 255 / 86%);
  --c-hero-veil-mid: rgb(255 255 255 / 58%);
  --c-hero-veil-soft: rgb(255 255 255 / 24%);
  --c-hero-veil-edge: rgb(255 255 255 / 92%);
  --c-hero-card-bg: rgb(255 255 255 / 94%);
  --c-hero-card-border: rgb(0 62 112 / 18%);
  --c-hero-card-active: rgb(245 135 0 / 75%);
  --c-hero-glow: rgb(245 135 0 / 22%);
  --c-hero-brand-glow: rgb(0 62 112 / 12%);
  --sh-hero-card: 0 10px 28px -8px rgb(0 44 82 / 18%), 0 2px 6px -1px rgb(0 44 82 / 10%);
  --sh-hero-tile: 0 8px 22px -4px rgb(0 44 82 / 16%);
  --sh-hero-tile-active: 0 16px 36px -6px rgb(0 44 82 / 32%);
  --hero-mx: 0;
  --hero-my: 0;
  --hero-spot-x: 50%;
  --hero-spot-y: 50%;
}

@media (min-width: 768px) {
  :root { --gutter: 1.5rem; --header-h: 68px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 2rem; }
}
