/* ============================================================
   ウルスタ Design Tokens — REBRAND (Emerald × Cream Editorial)
   ------------------------------------------------------------
   これは既存 assets/css/u-tokens.css の DROP-IN 置き換え版です。
   変数名は既存と完全に同一。値だけを新ブランドに差し替えているため、
   u-components.css や u-* クラスを使う全ページに自動反映されます。

   ★ 追加作業（cowork向け）:
   1. 各レイアウトの <head> で下記 Google Fonts を読み込む:
      <link rel="preconnect" href="https://fonts.googleapis.com">
      <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
      <link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Zen+Kaku+Gothic+New:wght@400;500;700;900&family=Shippori+Mincho:wght@500;600;700;800&family=Newsreader:wght@400;500;600;700&display=swap" rel="stylesheet">
   2. body の font-family を var(--u-font-sans) に設定（下記参照）。
   3. 見出し(h1-h3)・物件名・セクションタイトルに var(--u-font-serif)、
      価格・統計・番号など数値の大表示に var(--u-font-display) を適用。
   ============================================================ */

:root {
  /* === Color: Primary（エメラルド） === */
  --u-primary: #10b981;
  --u-primary-dark: #0d9668;
  --u-primary-light: #d1fae5;
  --u-primary-50: #ecfdf5;

  /* ブランド濃色（ヘッダー/ダーク面）— 新規 */
  --u-brand-deep: #0f2a20;
  --u-brand-mint: #6ee7b7;
  --u-accent: #c15f3c;        /* テラコッタ（サブアクセント/番号） */

  /* === Color: Semantic（据え置き。successはブランドと調和） === */
  --u-success: #0d9668;
  --u-success-light: #d1fae5;
  --u-warning: #d97706;
  --u-warning-light: #fef3c7;
  --u-error: #dc2626;
  --u-error-light: #fee2e2;
  --u-info: #0ea5e9;
  --u-info-light: #e0f2fe;

  /* === Color: Gray Scale → ウォームグレー === */
  --u-gray-50: #faf8f2;
  --u-gray-100: #f3efe6;
  --u-gray-200: #eae2d2;
  --u-gray-300: #d6cdb9;
  --u-gray-400: #a89f8d;
  --u-gray-500: #867e6f;
  --u-gray-600: #57513f;
  --u-gray-700: #423d31;
  --u-gray-800: #2e2a22;
  --u-gray-900: #211f1a;

  /* === Color: Surface（クリーム基調） === */
  --u-bg: #f3efe6;
  --u-card: #fbfaf5;
  --u-border: #eae2d2;
  --u-text: #262420;
  --u-text-secondary: #57513f;
  --u-text-muted: #867e6f;

  /* === Spacing: 4px grid（据え置き） === */
  --u-space-1: 4px;
  --u-space-2: 8px;
  --u-space-3: 12px;
  --u-space-4: 16px;
  --u-space-5: 20px;
  --u-space-6: 24px;
  --u-space-8: 32px;
  --u-space-10: 40px;
  --u-space-12: 48px;

  /* === Typography（フォントファミリー追加） === */
  --u-font-sans: 'Zen Kaku Gothic New', -apple-system, BlinkMacSystemFont, 'Noto Sans JP', 'Hiragino Sans', sans-serif;
  --u-font-serif: 'Shippori Mincho', 'Hiragino Mincho ProN', serif;      /* 和文見出し（明朝） */
  --u-font-display: 'Newsreader', 'Shippori Mincho', serif;              /* 数値の大表示 */
  --u-font-label: 'Space Grotesk', var(--u-font-sans);                   /* 英字ラベル/ロゴ */

  --u-text-xs: 11px;
  --u-text-sm: 12px;
  --u-text-base: 14px;
  --u-text-lg: 16px;
  --u-text-xl: 18px;
  --u-text-2xl: 22px;
  --u-text-3xl: 28px;

  --u-font-normal: 400;
  --u-font-medium: 500;
  --u-font-semibold: 600;
  --u-font-bold: 700;

  --u-leading-tight: 1.3;
  --u-leading-normal: 1.5;
  --u-leading-relaxed: 1.7;

  /* === Border Radius（やや大きめに） === */
  --u-radius: 14px;
  --u-radius-sm: 10px;
  --u-radius-lg: 18px;
  --u-radius-full: 999px;

  /* === Shadow（ウォームトーンの影） === */
  --u-shadow-xs: 0 1px 2px rgba(60, 48, 36, 0.05);
  --u-shadow: 0 1px 3px rgba(60, 48, 36, 0.08), 0 1px 2px rgba(60, 48, 36, 0.06);
  --u-shadow-md: 0 4px 6px rgba(60, 48, 36, 0.08), 0 2px 4px rgba(60, 48, 36, 0.06);
  --u-shadow-lg: 0 20px 44px -34px rgba(60, 48, 36, 0.4);
  --u-shadow-xl: 0 30px 60px -34px rgba(60, 48, 36, 0.5);

  /* === Transition（据え置き） === */
  --u-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --u-transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);

  /* === Focus Ring === */
  --u-ring-primary: 0 0 0 2px var(--u-primary-light), 0 0 0 4px var(--u-primary);
  --u-ring-error: 0 0 0 2px var(--u-error-light), 0 0 0 4px var(--u-error);

  /* === BB Status Colors（successをブランド緑に寄せる以外は据え置き） === */
  --u-status-listing: #2563eb;
  --u-status-viewing: #f59e0b;
  --u-status-application: #8b5cf6;
  --u-status-screening: #6366f1;
  --u-status-contract-prep: #0ea5e9;
  --u-status-contracted: #0d9668;
  --u-status-returned: #dc2626;
  --u-status-hold: #867e6f;

  /* === Owner Status Colors === */
  --u-status-occupied: #0d9668;
  --u-status-vacant: #dc2626;
  --u-status-listed: #f59e0b;
  --u-status-moveout: #f97316;
  --u-status-pending: #f59e0b;
  --u-status-approved: #0d9668;
  --u-status-rejected: #dc2626;
  --u-status-negotiating: #d97706;
}

/* ------------------------------------------------------------
   推奨: グローバルフォント適用（既存 body ルールに統合可）
   ------------------------------------------------------------ */
body {
  font-family: var(--u-font-sans);
  background: var(--u-bg);
  color: var(--u-text);
}
