/* ==========================================================
   デザイントークン — プロジェクトサイエンス お問い合わせフォーム
   version 1.0.0 / updated 2026-10-21
   base unit 4px / type scale 1.25
   自動生成ファイル。手で編集せず tokens.json を直して再生成する。
   ========================================================== */

:root {
  /* 色 */
  --color-text:           #1f2933;
  --color-text-muted:     #52606d;
  --color-text-inverse:   #ffffff;
  --color-bg:             #ffffff;
  --color-bg-subtle:      #f3f6fa;
  --color-bg-inverse:     #1f2933;
  --color-border:         #cfd8e3;
  --color-border-strong:  #7b8794;
  --color-brand:          #0066ff;
  --color-primary:        #0052cc;
  --color-primary-hover:  #003d99;
  --color-primary-subtle: #e8f0fe;
  --color-on-primary:     #ffffff;
  --color-accent:         #d14900;
  --color-link:           #0052cc;
  --color-focus:          #1a73e8;
  --color-error:          #c62828;
  --color-error-subtle:   #fdecea;
  --color-success:        #1e7e34;
  --color-notice-bg:      #fff8e6;
  --color-notice-border:  #f0c36d;

  /* タイポグラフィ（スケール比 1.25） */
  --font-family-base:    "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --font-family-heading: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --font-sm:             0.8125rem;
  --font-base:           1rem;
  --font-lg:             1.25rem;
  --font-xl:             1.5625rem;
  --font-2xl:            2rem;
  --font-3xl:            2.5rem;
  --line-height:         1.75;
  --line-height-heading: 1.4;
  --tracking-base:       0.02em;
  --tracking-heading:    0.01em;
  --font-weight-normal:  400;
  --font-weight-bold:    700;

  /* 余白（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:      760px;
  --content-gutter:   20px;
  --grid-columns:     12;
  --grid-gutter:      24px;
  --section-space:    64px;
  --section-space-lg: 120px;
  --header-height:    72px;

  /* 形（角丸・線・影・比率） */
  --radius-sm:          4px;
  --radius:             8px;
  --radius-lg:          16px;
  --radius-full:        9999px;
  --border-width:       1px;
  --border-width-thick: 2px;
  --shadow-1:           0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-2:           0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-3:           0 12px 32px rgba(0, 0, 0, 0.12);
  --ratio-hero:         16 / 9;
  --ratio-card:         4 / 3;

  /* ブレイクポイント（値の正典。@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;
  }
}
