/***************************************
*                                      *
*             基礎率の設定             *
*                                      *
*                                      *
***************************************/

// 被保険者関係
extern double Dattairyoku_Gokei[SAISHUNENDO - SHONENDO + 1][MAX_HIHO_NENREI - MIN_HIHO_NENREI + 1];
extern double Dattairyoku_Shibou[SAISHUNENDO - SHONENDO + 1][MAX_HIHO_NENREI - MIN_HIHO_NENREI + 1];
extern double Saikanyuritu[SAISHUNENDO - SHONENDO + 1][MAX_HIHO_NENREI - MIN_HIHO_NENREI + 1];
extern double q[SHIKKENRITU_MAX - SHIKKENRITU_MIN + 1][MAX_ROREI_JUKYU - 1 - 0 + 1][2];

// 納付率関係
extern double Noufuritu_Kyufu[SAISHUNENDO - SHONENDO + 1][MAX_HIHO_NENREI - MIN_HIHO_NENREI + 1];
extern double Noufuritu_Santei[SAISHUNENDO - SHONENDO + 1][MAX_HIHO_NENREI - MIN_HIHO_NENREI + 1];
extern double Noufuritu_Kyufu2[SAISHUNENDO - SHONENDO + 1][MAX_HIHO_NENREI - MIN_HIHO_NENREI + 1];
extern double Noufuritu_Santei2[SAISHUNENDO - SHONENDO + 1][MAX_HIHO_NENREI - MIN_HIHO_NENREI + 1];
extern double Noufuritu_Fuka[SAISHUNENDO - SHONENDO + 1][MAX_HIHO_NENREI - MIN_HIHO_NENREI + 1];
extern double Menjoritu_Kyufu[SAISHUNENDO - SHONENDO + 1][MAX_HIHO_NENREI - MIN_HIHO_NENREI + 1][MAX_MENJO];
extern double Menjoritu_Santei[SAISHUNENDO - SHONENDO + 1][MAX_HIHO_NENREI - MIN_HIHO_NENREI + 1][MAX_MENJO];
extern double Menjoritu_Kyufu2[SAISHUNENDO - SHONENDO + 1][MAX_HIHO_NENREI - MIN_HIHO_NENREI + 1][MAX_MENJO];
extern double Menjoritu_Santei2[SAISHUNENDO - SHONENDO + 1][MAX_HIHO_NENREI - MIN_HIHO_NENREI + 1][MAX_MENJO];
extern double Tokureiritu_Gakusei[SAISHUNENDO - SHONENDO + 1][MAX_HIHO_NENREI - MIN_HIHO_NENREI + 1];
extern double Tokureiritu_Wakamono[SAISHUNENDO - SHONENDO + 1][MAX_HIHO_NENREI - MIN_HIHO_NENREI + 1];

// 老齢年金関係
extern double Hassei_Wariai_Rorei[SAISHUNENDO - SHONENDO + 1][KURI_AGE_SAGE_SHIKYU_KUBUN];
extern double Shikkenritu_Rorei[SAISHUNENDO - SHONENDO + 1][MAX_ROREI_JUKYU - MIN_HIHO_NENREI + 1];

// 障害年金関係
extern double Hasseiryoku_Shogai[SAISHUNENDO - SHONENDO + 1][MAX_HIHO_NENREI - MIN_HIHO_NENREI + 1];
extern double Hassei_Wariai_20mae[SAISHUNENDO - SHONENDO + 1][MAX_HIHO_NENREI - MIN_HIHO_NENREI + 1];
extern double Shikkenritu_Ippan[SAISHUNENDO - SHONENDO + 1][MAX_SHOGAI_JUKYU - MIN_SHOGAI_JUKYU + 1];
extern double Shikkenritu_20mae[SAISHUNENDO - SHONENDO + 1][MAX_SHOGAI_JUKYU - MIN_SHOGAI_JUKYU + 1];
extern double Tokyu_Wariai_20mae[SAISHUNENDO - SHONENDO + 1][SHOGAI_TOKYU];
extern double Tokyu_Wariai_Ippan[SAISHUNENDO - SHONENDO + 1][SHOGAI_TOKYU];
extern double Kakyu_Wariai_Ippan_12shi[SAISHUNENDO - SHONENDO + 1][MAX_SHOGAI_JUKYU - MIN_SHOGAI_JUKYU + 1];
extern double Kakyu_Wariai_Ippan_3shiiko[SAISHUNENDO - SHONENDO + 1][MAX_SHOGAI_JUKYU - MIN_SHOGAI_JUKYU + 1];
extern double Kakyu_Wariai_20mae_12shi[SAISHUNENDO - SHONENDO + 1][MAX_SHOGAI_JUKYU - MIN_SHOGAI_JUKYU + 1];
extern double Kakyu_Wariai_20mae_3shiiko[SAISHUNENDO - SHONENDO + 1][MAX_SHOGAI_JUKYU - MIN_SHOGAI_JUKYU + 1];

// 遺族年金・死亡一時金関係
extern double Hassei_Wariai_Tuma[SAISHUNENDO - SHONENDO + 1][MAX_HIHO_NENREI - MIN_HIHO_NENREI + 1];
extern double Hassei_Wariai_Otto[SAISHUNENDO - SHONENDO + 1][MAX_HIHO_NENREI - MIN_HIHO_NENREI + 1];
extern double Hassei_Wariai_Ko[SAISHUNENDO - SHONENDO + 1][MAX_HIHO_NENREI - MIN_HIHO_NENREI + 1];
extern double Hassei_Wariai_Kafu[SAISHUNENDO - SHONENDO + 1][MAX_HIHO_NENREI - MIN_HIHO_NENREI + 1];
extern double Hassei_Wariai_Shibou[SAISHUNENDO - SHONENDO + 1][MAX_HIHO_NENREI - MIN_HIHO_NENREI + 1];
extern double Shikkenritu_Tuma[SAISHUNENDO - SHONENDO + 1][MAX_IZOKU_TUMA_JUKYU - MIN_IZOKU_TUMA_JUKYU + 1];
extern double Shikkenritu_Otto[SAISHUNENDO - SHONENDO + 1][MAX_IZOKU_OTTO_JUKYU - MIN_IZOKU_OTTO_JUKYU + 1];
extern double Shikkenritu_Ko[SAISHUNENDO - SHONENDO + 1][MAX_IZOKU_KO_JUKYU - MIN_IZOKU_KO_JUKYU + 1];
extern double Shikkenritu_Kafu[SAISHUNENDO - SHONENDO + 1][MAX_KAFU_JUKYU - MIN_KAFU_JUKYU + 1];
extern double Sokan_Tuma[SAISHUNENDO - SHONENDO + 1][MAX_HIHO_NENREI - MIN_HIHO_NENREI + 1];
extern double Sokan_Otto[SAISHUNENDO - SHONENDO + 1][MAX_HIHO_NENREI - MIN_HIHO_NENREI + 1];
extern double Sokan_Ko[SAISHUNENDO - SHONENDO + 1][MAX_HIHO_NENREI - MIN_HIHO_NENREI + 1];
extern double Sokan_Kafu[SAISHUNENDO - SHONENDO + 1][MAX_HIHO_NENREI - MIN_HIHO_NENREI + 1];
extern double Kakyu_Wariai_Tuma_12shi[SAISHUNENDO - SHONENDO + 1][MAX_IZOKU_TUMA_JUKYU - MIN_IZOKU_TUMA_JUKYU + 1];
extern double Kakyu_Wariai_Tuma_3shiiko[SAISHUNENDO - SHONENDO + 1][MAX_IZOKU_TUMA_JUKYU - MIN_IZOKU_TUMA_JUKYU + 1];
extern double Kakyu_Wariai_Otto_12shi[SAISHUNENDO - SHONENDO + 1][MAX_IZOKU_OTTO_JUKYU - MIN_IZOKU_OTTO_JUKYU + 1];
extern double Kakyu_Wariai_Otto_3shiiko[SAISHUNENDO - SHONENDO + 1][MAX_IZOKU_OTTO_JUKYU - MIN_IZOKU_OTTO_JUKYU + 1];
extern double Kakyu_Wariai_Ko_12shi[SAISHUNENDO - SHONENDO + 1][MAX_IZOKU_KO_JUKYU - MIN_IZOKU_KO_JUKYU + 1];
extern double Kakyu_Wariai_Ko_3shiiko[SAISHUNENDO - SHONENDO + 1][MAX_IZOKU_KO_JUKYU - MIN_IZOKU_KO_JUKYU + 1];

// 支給率
extern double Shikyuritu_Gonen[SAISHUNENDO - SHONENDO + 1][MAX_ROREI_JUKYU - MIN_ROREI_JUKYU + 1];
extern double Shikyuritu_Shogai_Ippan[SAISHUNENDO - SHONENDO + 1][MAX_SHOGAI_JUKYU - MIN_SHOGAI_JUKYU + 1][SHOGAI_TOKYU];
extern double Shikyuritu_Shogai_Ippan_keinen[SAISHUNENDO - SHONENDO + 1][MAX_SHOGAI_JUKYU - MIN_SHOGAI_JUKYU + 1][SHOGAI_TOKYU];
extern double Shikyuritu_Shogai_20mae[SAISHUNENDO - SHONENDO + 1][MAX_SHOGAI_JUKYU - MIN_SHOGAI_JUKYU + 1][SHOGAI_TOKYU];
extern double Shikyuritu_Shogai_20mae_keinen[SAISHUNENDO - SHONENDO + 1][MAX_SHOGAI_JUKYU - MIN_SHOGAI_JUKYU + 1][SHOGAI_TOKYU];
extern double Shikyuritu_Shogai_Kyu[SAISHUNENDO - SHONENDO + 1][MAX_SHOGAI_JUKYU - MIN_SHOGAI_JUKYU + 1][SHOGAI_TOKYU];
extern double Shikyuritu_Shogai_Kyu_keinen[SAISHUNENDO - SHONENDO + 1][MAX_SHOGAI_JUKYU - MIN_SHOGAI_JUKYU + 1][SHOGAI_TOKYU];
extern double Shikyuritu_Tuma[SAISHUNENDO - SHONENDO + 1];
extern double Shikyuritu_Otto[SAISHUNENDO - SHONENDO + 1];
extern double Shikyuritu_Ko[SAISHUNENDO - SHONENDO + 1];
extern double Shikyuritu_Kafu[SAISHUNENDO - SHONENDO + 1][MAX_KAFU_JUKYU - 60 + 1];

// 経年変化用
extern double Rorei_Keinen[SAISHUNENDO - R_KEINEN_SHONENDO + 1][2];
extern double Izoku_Keinen[SAISHUNENDO - SHONENDO + 1][MAX_HIHO_NENREI - MIN_HIHO_NENREI + 1];
