Divorcing Japanese National and visa of Japan
Assumed that you are a spouse of Japanese national (You have a status of residence of spouse of Japanese national).
However you have decided to divorce your spouse.
In that case you will think of changing your status of residence in Japan.
Once you have divorced Japanese national, you can not sustain your current status of residence legally.
However you may hope to live in Japan from now on.
In the case you divorce Japanese national, you need to change your status of residence to other type.
Even if valid period of your Resident card is more than 6 months, you can not live in Japan more than 6 months.
So you need to change your status of residence within 6 months from your divorce.
When you divorce Japanese national, you need to notify immigration office within 2 weeks about the divorce.
If you neglect this duty, it will cause problem in your visa process.
So when you divorce Japanese national, you need to take necessary process without delay.
If you marry with another Japanese national, you need to renew your status of residence of spouse of Japanese national.
If you marry with foreign national (ex. engineer visa holder), you may acquire status of residence of Dependent.
If you are working in a company as programmer etc, you may acquire status of residence of engineer.
You can not obtain such kind of status of residence as a blue-color worker.
If you start your own business, you may acquire status of residence of business manager.
Other than above, you may be able to acquire status of residence of Long Term Resident (Teiju Sha = 定住者).
Because you have lived in Japan for many years and hope to live in Japan from now on, too.
How to obtain status of residence of long term resident
You need to have been spouse of Japanese national for 3 years or more. If you have a child with Japanese national and you care for him/her, this 3 years requirement is not necessary.
Moreover you need to state that there is a necessity to live in Japan. And you need to have sufficient amount of income in Japan. You need to prove it with evidence.
So you may try to sustain your marriage life for 3 years and have stable source of income.