Money paid when you leave, based on how long you worked there. The law does not require it: it exists only if it is in the company rules. It is taxed less than regular pay.
In the company rules and when you leave.
Give your company the 退職所得の受給に関する申告書 form to get the reduced tax.
General explanation, for guidance. Rules and amounts change: confirm with the responsible office.