The application to keep staying in Japan. You can apply from 3 months before it expires.
Before your 在留カード expires.
Gather your 課税証明書, 納税証明書 and proof of employment. Unpaid tax, health insurance and pension count against you.
General explanation, for guidance. Rules and amounts change: confirm with the responsible office.