almost same situation as you ..read thishttps://www.japan-guide.com/forum/quereadisplay.html?0+169240
You'll need to inform immigration once your divorce is finalised.
Before 2012, you can stay on your spouse status until your period ends, but that has since change in 2012.
Now, immigration will give you 6 months to sort out your resident status, and after that they will start taking necessary steps to cancel/revoke your spouse status.
You won't be deport unless you willingly leave Japan once the immigration start processing of cancelling your visa.
As mention by previous comment, you have few option to follow through
1. Permanent Resident (PR) status
If your wife willing to help you out with the documentation.
2. 'Working' status
Depending on your work, get your company to be your guarantor/sponsor for change of status to
suitable 'working' status. You'll need to satisfy other relevant requirement as wells.
3. Long Term Resident status
Your best option, if you can get this, it is almost like PR, you will have no job restriction.
You will have to make your case with immigration, convince them that you have reason/commitment
to stay here. Normally having a child here will help a lot. Since you also have a job, get your
company to help.