// i18n — full-page JA/EN strings. Japanese is the default.
// Manifesto: '|' marks where the voltage-green clause begins (stripped at render).
const STRINGS = {
  ja: {
    title: 'Veska｜事業をつくり、育てるベンチャーグループ',
    nav: { menu: 'メニュー', close: '閉じる' },
    menu: [
      { id: 'home', label: 'ホーム', href: 'index.html' },
      { id: 'ventures', label: 'ベンチャー', href: 'ventures.html' },
      { id: 'about', label: '私たちについて', href: 'about.html' },
      { id: 'team', label: 'チーム', href: 'team.html' },
      { id: 'contact', label: 'お問い合わせ', href: 'contact.html' },
    ],
    hero: {
      tag: 'ベンチャーグループ',
      lines: ['事業を', 'つくって、', '育てて、', '続ける。'],
      sub: '事業は、自分たちの手で立ち上げる。売るためではなく、長く続けるために。',
      scroll: 'スクロール',
    },
    stats: ['稼働中の事業', '準備中の事業', 'これから増える事業'],
    manifesto: '事業は、売り買いするものではない。|自分たちの手で立ち上げ、じっくり育てていくもの。',
    story: {
      chapters: ['いいアイデアほど、\n形にならずに消えていく。', 'でも、小さなチームでも\n遠くへ行ける時代になった。', 'だから僕らは、ひとつずつ\n手を動かして、形にする。'],
      btn: 'チームを見る →',
    },
    band: {
      row1: [{ t: 'つくる' }, { img: 1 }, { t: 'そだてる', px: 1 }, { t: 'つづける' }, { img: 1 }],
      row2: [{ t: 'かいしゃ', px: 1 }, { img: 1 }, { t: '次の十年' }, { t: 'Veska', px: 1 }],
    },
    approach: {
      heading: '私たちのつくり方',
      labels: ['デザイン', 'テクノロジー', '運営'],
      copy: 'デザイン、技術、そして地道な運営。その全部が重なるところに、事業は生まれる。',
      btn: '相談する →',
    },
    eco: {
      heading: 'ひとつのエコシステム',
      note: 'このマップは、これから少しずつ埋まっていく。',
      legendLive: '稼働中',
      legendBuild: '準備中',
      legendRes: '予約済',
      clickToOpen: 'タップで開く',
      cta: 'ベンチャー一覧を見る →',
      nodeTags: { live: '01 ／ 稼働中', build: '準備中', res: '予約済' },
      nodeNames: { bridge: 'Bridge Web Design', n02: 'ベンチャー02', n03: 'ベンチャー03', n04: 'ベンチャー04', n05: 'ベンチャー05' },
    },
    spot: {
      heading: 'ベンチャー01',
      note: '最初のひとつ',
      meta: '稼働中 ／ デザインスタジオ ／ 2024年〜',
      visit: 'サイトを見る →',
    },
    ticker: ['Veska', 'Bridge Web Design', 'ベンチャー02 ／ 準備中', 'これから、まだ増える'],
    cta: {
      heading: '次の一社を、一緒に。',
      copy: 'アイデアでも、協業でも、ただの雑談でも。まずは気軽にメールください。',
      btn: 'メールを送る →',
    },
    foot: { copyright: '© 2026 Veska' },
    drawer: {
      tag: 'ベンチャー01 ／ 稼働中',
      copy: '地域のお店や会社のために、ウェブサイトを一つひとつ手づくりするスタジオ。2024年から続く、Veska最初の事業です。',
      skills: 'デザイン・開発・ブランド',
      visit: 'サイトを見る →',
      back: 'マップに戻る',
    },
    ventures: {
      title: 'Veska — ベンチャー',
      heading: 'ベンチャー',
      note: '事業の一覧',
      head: ['No.', '事業', '分野', '状況', '開始'],
      bridge: { name: 'Bridge Web Design', sector: 'ウェブデザイン', status: '稼働中', since: '2024' },
      v02: { name: '（未公表）', sector: '·', status: '準備中', since: '·' },
      reserved: '予約済',
      openSlot: '空き',
      open: '詳細 →',
    },
    about: {
      title: 'Veska — 私たちについて',
      heading: '私たちについて',
      note: '小さく始めて、長く続ける',
      verbs: [
        ['立ち上げる。', 'ゼロから、自分たちの手で'],
        ['運営する。', '現場も、自分たちで回す'],
        ['迎える。', 'ご縁のある事業を、グループに'],
        ['育てる。', '売るためではなく、続けるために'],
      ],
      quote: '投資して終わり、ではない。自分たちの手で立ち上げ、長く育てていく。',
      quoteBy: '大西 風五 ／ Veska 創業者',
    },
    contact: {
      title: 'Veska — お問い合わせ',
      heading: 'お問い合わせ',
      sub: 'ご相談でも、協業でも、それ以外でも。まずはメールでどうぞ。',
      reply: 'だいたい2〜3営業日で返信します。',
    },
    team: {
      title: 'Veska — チーム',
      heading: 'チーム',
      intro: 'いまはまだ、ほぼひとり。その分、決めて動くのは速い。',
      founderName: '大西 風五（Hugo Onishi）',
      founderRole: '創業者 ／ デザイン・開発・運営',
      founderBio: '大阪を拠点に、日本語と英語の両方で動いています。事業をひとりで立ち上げて、デザインからコード、日々の運営まで全部自分の手で。テンプレートに流し込むより、一つひとつ手で組み立てるほうが性に合っています。たくさんより、長く残るものを。',
      nextTitle: '次の席',
      nextCopy: '一緒につくる仲間は、これから。ピンと来たら、気軽にメールください。',
      nextBtn: 'メールする →',
    },
  },
  en: {
    title: "Veska — The venture group behind what's next",
    nav: { menu: 'Menu', close: 'Close' },
    menu: [
      { id: 'home', label: 'Home', href: 'index.html' },
      { id: 'ventures', label: 'Ventures', href: 'ventures.html' },
      { id: 'about', label: 'About', href: 'about.html' },
      { id: 'team', label: 'Team', href: 'team.html' },
      { id: 'contact', label: 'Contact', href: 'contact.html' },
    ],
    hero: {
      tag: 'Venture group',
      lines: ['We build', 'companies,', 'one at', 'a time.'],
      sub: 'We build our own companies and run them ourselves. We grow them to keep, not to sell.',
      scroll: 'scroll',
    },
    stats: ['operating', 'in the works', 'room to grow'],
    manifesto: "A company isn't something you buy or sell. |It's something you build with your own hands.",
    story: {
      chapters: ['The best ideas\noften never get built.', 'But a small team\ncan reach far today.', 'So we build them,\none at a time.'],
      btn: 'Meet the team →',
    },
    band: {
      row1: [{ t: 'Build' }, { img: 1 }, { t: 'Operate', px: 1 }, { t: 'Grow' }, { img: 1 }],
      row2: [{ t: 'Companies', px: 1 }, { img: 1 }, { t: 'The next decade' }, { t: 'Veska', px: 1 }],
    },
    approach: {
      heading: 'Our approach',
      labels: ['Design', 'Technology', 'Operations'],
      copy: 'Design, technology, and the unglamorous work of running things. We build where the three meet.',
      btn: 'Get in touch →',
    },
    eco: {
      heading: 'One ecosystem',
      note: 'the map fills in over time',
      legendLive: 'operating',
      legendBuild: 'in build',
      legendRes: 'reserved',
      clickToOpen: 'click to open',
      cta: 'See all ventures →',
      nodeTags: { live: '01 / operating', build: 'in the works', res: 'reserved' },
      nodeNames: { bridge: 'Bridge Web Design', n02: 'Venture 02', n03: 'Venture 03', n04: 'Venture 04', n05: 'Venture 05' },
    },
    spot: {
      heading: 'Venture 01',
      note: 'the first of many',
      meta: 'operating / design studio / since 2024',
      visit: 'Visit site →',
    },
    ticker: ['Veska', 'Bridge Web Design', 'Venture 02 / in the works', 'Slots 03-12 reserved'],
    cta: {
      heading: "Let's build the next one.",
      copy: 'An idea, a partnership, or just a hello. Start with an email.',
      btn: 'Write to us →',
    },
    foot: { copyright: '© 2026 Veska' },
    drawer: {
      tag: 'venture 01 / operating',
      copy: 'A web design studio building sites for local businesses, running since 2024. The first venture under Veska.',
      skills: 'design · development · brand',
      visit: 'Visit site →',
      back: 'Back to map',
    },
    ventures: {
      title: 'Veska — Ventures',
      heading: 'Ventures',
      note: 'the public register',
      head: ['No.', 'Venture', 'Sector', 'Status', 'Since'],
      bridge: { name: 'Bridge Web Design', sector: 'web design', status: 'operating', since: '2024' },
      v02: { name: '(undisclosed)', sector: '·', status: 'in build', since: '·' },
      reserved: 'reserved',
      openSlot: 'open',
      open: 'Details →',
    },
    about: {
      title: 'Veska — About',
      heading: 'About',
      note: 'start small, last long',
      verbs: [
        ['Launch.', 'start businesses from zero'],
        ['Operate.', 'do the daily work ourselves'],
        ['Acquire.', 'welcome companies that fit'],
        ['Grow.', 'to last, not to flip'],
      ],
      quote: "We don't raise funds. We grow ventures.",
      quoteBy: 'Hugo Onishi / Founder, Veska',
    },
    contact: {
      title: 'Veska — Contact',
      heading: 'Contact',
      sub: 'Ideas, partnerships, anything else — email first.',
      reply: 'We usually reply within 2–3 working days.',
    },
    team: {
      title: 'Veska — Team',
      heading: 'The team',
      intro: 'Mostly just me for now. That is what keeps it fast.',
      founderName: 'Hugo Onishi',
      founderRole: 'Founder / design · build · operate',
      founderBio: 'Based in Osaka, working in both Japanese and English. I started this on my own and like running the whole thing by hand, from design and code to the day-to-day. I would rather build a few things carefully, by hand, than many things from a template, and grow them to keep.',
      nextTitle: 'The next seat',
      nextCopy: 'More people will join as the ventures grow. Interested? Start with an email.',
      nextBtn: 'Email us →',
    },
  },
};

const LangCtx = React.createContext({ lang: 'ja', setLang: () => {} });

function useI18n() {
  const { lang, setLang } = React.useContext(LangCtx);
  return { lang, setLang, t: STRINGS[lang] };
}

Object.assign(window, { STRINGS, LangCtx, useI18n });
