/* ==========================================================
   デザイントークン — PresentAI（LP: presentai.jp ／ アプリ: app.presentai.jp）
   version 1.0.0 / updated 2026-11-20
   base unit 4px / type scale 1.25
   自動生成ファイル。手で編集せず tokens.json を直して再生成する。
   ========================================================== */

:root {
  /* 色 */
  --color-text:          #1a1a1a;
  --color-text-muted:    #555555;
  --color-text-inverse:  #ffffff;
  --color-bg:            #ffffff;
  --color-bg-subtle:     #f3f3f0;
  --color-bg-inverse:    #1a1a1a;
  --color-border:        #1a1a1a;
  --color-border-quiet:  #d6d6d0;
  --color-primary:       #0b5fa5;
  --color-primary-hover: #084a81;
  --color-on-primary:    #ffffff;
  --color-accent:        #ffd400;
  --color-on-accent:     #1a1a1a;
  --color-link:          #0b5fa5;
  --color-focus:         #0b5fa5;
  --color-error:         #c0392b;

  /* タイポグラフィ（スケール比 1.25） */
  --font-family-base:    "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-family-heading: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-sm:             0.8125rem;
  --font-base:           1rem;
  --font-lg:             1.25rem;
  --font-xl:             1.5625rem;
  --font-2xl:            2rem;
  --font-3xl:            2.5rem;
  --font-display:        clamp(2.125rem, 1.2rem + 3.6vw, 3.75rem);
  --line-height:         1.8;
  --line-height-heading: 1.35;
  --tracking-base:       0.02em;
  --tracking-heading:    0.01em;
  --font-weight-normal:  400;
  --font-weight-bold:    700;
  --font-weight-black:   900;

  /* 余白（4pxベース・8段階） */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;

  /* レイアウト */
  --content-max:      1200px;
  --content-gutter:   16px;
  --grid-columns:     12;
  --grid-gutter:      24px;
  --section-space:    64px;
  --section-space-lg: 120px;
  --header-height:    64px;

  /* 形（角丸・線・影・比率） */
  /* 図解の囲みは角を立てる（radius 0）。丸は番号の円だけ。影は使わない（奥行きは紙の重なりで出す） */
  --radius-sm:          0;
  --radius:             0;
  --radius-lg:          0;
  --radius-full:        9999px;
  --border-width:       2px;
  --border-width-thick: 4px;
  --shadow-1:           none;
  --shadow-2:           none;
  --shadow-3:           none;
  --ratio-hero:         16 / 9;
  --ratio-card:         16 / 9;

  /* ブレイクポイント（値の正典。@media内では直書きする） */
  /* メディアクエリ内では var() が使えない。実装時は下の数値を直書きする */
  --bp-sm: 480px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;

  /* z-index の段階 */
  --z-base:   10;
  --z-header: 100;
  --z-modal:  1000;

  /* モーション */
  --duration-fast: 120ms;
  --duration-base: 240ms;
  --duration-slow: 480ms;
  --ease-out:      cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in-out:   cubic-bezier(0.4, 0, 0.2, 1);
}

/* モバイルファースト。段階的に広げる値だけを上書きする */
@media (min-width: 768px) {
  :root {
    --content-gutter: 32px;
    --section-space:  96px;
  }
}

@media (min-width: 1024px) {
  :root {
    --section-space: var(--section-space-lg);
  }
}

/* 動きを減らす設定の利用者には動かさない（規約のa11y最低ライン） */
@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0ms;
    --duration-base: 0ms;
    --duration-slow: 0ms;
  }
}
