// 3つのデザインテーマ定義
// 全テーマで親しみやすさを保ちつつ、色相と質感で差別化

const THEMES = {
  natsu: {
    id: 'natsu',
    name: 'A · 夏祭り暖色',
    tagline: '三重の自然 / 夏祭り感',
    bg: '#fbf4e8',
    surface: '#ffffff',
    surfaceAlt: '#fdf8ee',
    text: '#2a1f15',
    textMuted: '#7e6a55',
    textSub: '#a89880',
    primary: '#d76a4a',       // 朱・夕焼け
    primaryFg: '#ffffff',
    primarySoft: '#fbe5dc',
    accent: '#e9a937',         // 金色・提灯
    accentSoft: '#faecc9',
    border: '#ebe0cd',
    success: '#76a55c',
    chipBg: '#fbeede',
    chipFg: '#7a4628',
    headingFont: '"Hiragino Maru Gothic ProN", "Zen Maru Gothic", "Yu Gothic", system-ui, sans-serif',
    bodyFont: '"Hiragino Sans", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif',
    radius: 14,
    radiusLg: 20,
    pattern: 'natsu',
  },
  ise: {
    id: 'ise',
    name: 'B · 伊勢ブルー',
    tagline: '爽やか・海と空',
    bg: '#eef5f8',
    surface: '#ffffff',
    surfaceAlt: '#f6fafc',
    text: '#13283a',
    textMuted: '#5e7888',
    textSub: '#94a8b5',
    primary: '#2a7eb0',        // 海の青
    primaryFg: '#ffffff',
    primarySoft: '#dceaf2',
    accent: '#f09666',          // 朝焼けの橙
    accentSoft: '#fbe2d3',
    border: '#dbe6ec',
    success: '#5aa28c',
    chipBg: '#e6f0f5',
    chipFg: '#1f5a82',
    headingFont: '"Hiragino Sans", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif',
    bodyFont: '"Hiragino Sans", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif',
    radius: 12,
    radiusLg: 18,
    pattern: 'ise',
  },
  shinrai: {
    id: 'shinrai',
    name: 'C · 信頼ネイビー',
    tagline: '上品・落ち着き',
    bg: '#f5f2ea',
    surface: '#ffffff',
    surfaceAlt: '#faf7ef',
    text: '#1a2540',
    textMuted: '#5a647a',
    textSub: '#8e96a8',
    primary: '#243b66',         // 深ネイビー
    primaryFg: '#faf6ec',
    primarySoft: '#dde3ef',
    accent: '#b88a3a',           // 抑えた金
    accentSoft: '#f0e5cd',
    border: '#e3ddcd',
    success: '#3b7a5f',
    chipBg: '#ece6d4',
    chipFg: '#3b4a6e',
    headingFont: '"Yu Gothic", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif',
    bodyFont: '"Yu Gothic", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif',
    radius: 8,
    radiusLg: 12,
    pattern: 'shinrai',
  },
};

// 興味テーマカテゴリ（リベ大の5つの力 + 副業ジャンル）
const INTEREST_THEMES = {
  '5つの力': [
    { id: 'tameru', label: '貯める力', color: '#5aa28c' },
    { id: 'kasegu', label: '稼ぐ力', color: '#d76a4a' },
    { id: 'fuyasu', label: '増やす力', color: '#e9a937' },
    { id: 'mamoru', label: '守る力', color: '#2a7eb0' },
    { id: 'tsukau', label: '使う力', color: '#a560a3' },
  ],
  '副業ジャンル': [
    { id: 'blog', label: 'ブログ・SEO', color: '#7a8c4f' },
    { id: 'sedori', label: 'せどり・物販', color: '#c87a3e' },
    { id: 'douga', label: '動画編集', color: '#4f7aa8' },
    { id: 'sns', label: 'SNS運用', color: '#c5589f' },
    { id: 'design', label: 'デザイン', color: '#7b6dbd' },
    { id: 'writing', label: 'Webライター', color: '#8a6a3e' },
    { id: 'program', label: 'プログラミング', color: '#3e8a8a' },
    { id: 'handmade', label: 'ハンドメイド', color: '#c87a8a' },
  ],
  'ライフ': [
    { id: 'family', label: '子育て', color: '#e8a86b' },
    { id: 'health', label: '健康・運動', color: '#6aa86b' },
    { id: 'study', label: '学び・読書', color: '#5a78a8' },
    { id: 'travel', label: '旅行', color: '#3eaab5' },
  ],
};

const ALL_THEMES_FLAT = Object.values(INTEREST_THEMES).flat();
const THEME_BY_ID = Object.fromEntries(ALL_THEMES_FLAT.map(t => [t.id, t]));

Object.assign(window, { THEMES, INTEREST_THEMES, ALL_THEMES_FLAT, THEME_BY_ID });
