/* ==================================================
 * tokens.css：デザイントークン（Design Tokens）
 * 色・タイポグラフィ・角丸・影・余白の CSS 変数だけを .md3-theme に定義する
 * 変数名は Gemini のデザイン出力と共通のため改名しない
 * 値の上書きは features/ で行い、同じ値の再定義は書かない
 * ================================================== */

.md3-theme {
  /* === 主要色（Primary・コバックレッド） === */
  --md-primary: #e63900;
  --md-primary-hover: #cc3300;
  --md-on-primary: #ffffff;
  --md-primary-container: #fce8e6;
  --md-primary-container-hover: #fbd6d4;
  --md-on-primary-container: #c5221f;

  /* === 補助色（Secondary・リンクの青） === */
  --md-secondary: #1a73e8;
  --md-secondary-container: #e8f0fe;
  --md-on-secondary-container: #174ea6;

  /* === エラー色（Error） === */
  --md-error: #b3261e;
  --md-on-error: #ffffff;
  --md-error-container: #f9dedc;
  --md-on-error-container: #410e0b;

  /* === 注意喚起色（Warning） === */
  /* MD3に無い独自ロールとして定義 */
  --md-warning: #d97706;
  --md-warning-container: #ffebd2;
  --md-on-warning-container: #92400e;

  /* === 面の色（Surface） === */
  --md-surface: #ffffff;
  --md-surface-container-lowest: #ffffff;
  --md-surface-container-low: #f8f9fa;
  --md-surface-container: #f1f3f4;
  --md-surface-container-high: #e8eaed;
  --md-surface-container-highest: #e3e3e3;

  /* === 文字色・境界線色（on-surface・Outline） === */
  --text-main: #202124;
  --text-muted: #5f6368;
  --border-light: rgba(0, 0, 0, 0.12);
  --border-dark: #bdc1c6;

  /* === 文字サイズ・行の高さ（Typescale） === */
  /* 親サイトに埋め込むため rem を使わず px で定義 */
  /* サマリー数値・特殊な大見出しに使用 */
  --typescale-display: 32px;
  --typescale-display-line-height: 40px;

  /* 画面タイトルに使用 */
  --typescale-headline: 24px;
  --typescale-headline-line-height: 32px;

  /* カード・セクション見出しに使用 */
  --typescale-title: 18px;
  --typescale-title-line-height: 24px;

  /* 本文・入力値に使用 */
  --typescale-body: 16px;
  --typescale-body-line-height: 24px;

  /* 項目名・表・ボタンに使用 */
  --typescale-label: 13px;
  --typescale-label-line-height: 20px;

  /* 補足・エラー・単位に使用 */
  --typescale-label-small: 11px;
  --typescale-label-small-line-height: 16px;

  /* === 角丸（Shape） === */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-full: 999px;

  /* === 影（Elevation） === */
  --md-elevation-1: 0 1px 2px 0 rgba(0,0,0,0.05);
  --md-elevation-2: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --md-elevation-3: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
