/* ==========================================================
   デザイントークン — SocoSocoLP 紹介LP
   version 1.0.0 / updated 2026-11-19
   base unit 4px / type scale 1.25
   自動生成ファイル。手で編集せず tokens.json を直して再生成する。
   ========================================================== */

:root {
  /* 色 */
  --color-text:            #1E2A3A;
  --color-text-muted:      #5E6773;
  --color-text-inverse:    #F3F0E6;
  --color-bg:              #F3F0E6;
  --color-bg-subtle:       #EAE5D7;
  --color-bg-inverse:      #2E5A4C;
  --color-border:          #1E2A3A;
  --color-primary:         #B83D25;
  --color-primary-hover:   #9A3019;
  --color-on-primary:      #FFFFFF;
  --color-accent:          #F2C9B3;
  --color-link:            #B83D25;
  --color-focus:           #B83D25;
  --color-error:           #B83D25;
  --color-mat-line:        rgba(243, 240, 230, 0.13);
  --color-mat-line-strong: rgba(243, 240, 230, 0.24);
  --color-mat-deep:        #24493D;
  --color-focus-inverse:   #F2C9B3;

  /* タイポグラフィ（スケール比 1.25） */
  --font-family-base:    "IBM Plex Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-family-heading: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "IBM Plex Sans JP", 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.85;
  --line-height-heading: 1.35;
  --tracking-base:       0.02em;
  --tracking-heading:    0.01em;
  --font-weight-normal:  400;
  --font-weight-bold:    700;
  --font-family-hand:    "Klee One", "Zen Maru Gothic", serif;
  --font-xs:             0.75rem;
  --font-display:        clamp(2.125rem, 1.2rem + 3.4vw, 3.75rem);
  --measure:             34em;

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

  /* 形（角丸・線・影・比率） */
  --radius-sm:          4px;
  --radius:             10px;
  --radius-lg:          18px;
  --radius-full:        9999px;
  --border-width:       1px;
  --border-width-thick: 2px;
  --shadow-1:           0 1px 2px rgba(30, 42, 58, 0.10);
  --shadow-2:           0 6px 18px rgba(30, 42, 58, 0.12);
  --shadow-3:           0 12px 32px rgba(0, 0, 0, 0.12);
  --ratio-hero:         1280 / 716;
  --ratio-card:         4 / 3;
  --shadow-part:        0 6px 10px rgba(14, 34, 28, 0.35);
  --line-art:           2px;

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

/* モバイルファースト。段階的に広げる値だけを上書きする */
@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;
  }
}
