Kokumin nenkin is the national pension. Every resident of Japan from 20 to 59 is a member, foreign residents included.
If you are an employee you are in it through kōsei nenkin, the employees’ pension. If you are self-employed, a student or unemployed, you pay a flat monthly premium yourself, billed by the Japan Pension Service.