// KokuminNenkinSystem_Web — 画面固有設定（app-core.js が window.SYSTEM_CONFIG を読む）
window.SYSTEM_CONFIG = {
  domains: [
  { id: "insured", label: "被保険者", endpoint: "/api/insured",
    cols: [{ key: "insuredNumber", label: "基礎年金番号" }, { key: "fullName", label: "氏名" }, { key: "birthDate", label: "生年月日" }, { key: "status", label: "状態", badge: true }, { key: "createdAt", label: "登録日時" }],
    createFields: [{ name: "fullName", label: "氏名", required: true, placeholder: "山田 太郎" }, { name: "birthDate", label: "生年月日", required: true, type: "date" }, { name: "address", label: "住所", placeholder: "東京都..." }] },
  { id: "exemptions", label: "保険料免除申請", endpoint: "/api/exemptions",
    cols: [{ key: "insuredId", label: "被保険者ID" }, { key: "exemptionType", label: "免除種別", badge: true }, { key: "periodFrom", label: "開始年月" }, { key: "periodTo", label: "終了年月" }, { key: "status", label: "状態", badge: true }],
    createFields: [{ name: "insuredId", label: "被保険者ID", required: true, placeholder: "登録済み被保険者のIDを入力" }, { name: "exemptionType", label: "免除種別", required: true, type: "select", options: ["full", "three_quarters", "half", "one_quarter", "student"] }, { name: "periodFrom", label: "開始年月", required: true, placeholder: "2026-04" }, { name: "periodTo", label: "終了年月", required: true, placeholder: "2027-03" }] },
],
  calc: { title: "国民年金 保険料・免除の試算", endpoint: "/api/nenkin/premium", primary: { key: "payableMonthly", label: "月額納付額", format: "yen" }, fields: [ { key: "year", label: "年度", type: "select", options: [ { value: 2024, label: "令和6年度" }, { value: 2025, label: "令和7年度" } ] }, { key: "income", label: "前年所得（円）", type: "number", placeholder: "0" }, { key: "dependents", label: "扶養親族の数", type: "number", default: 0 }, { key: "withAdditional", label: "付加保険料", type: "select", options: [ { value: false, label: "なし" }, { value: true, label: "あり" } ] } ] },
};
