As said, I have now clue about things in Japan, but in Germany, a court can definitely order the company to rehire you if the reason for firing was unlawful. In smaller companies coming back to that job usually isn't fun (as your boss usually was directly involved in the case), thus in these cases you usually get compensation of about a year's worth of wages.
Bigger companies are usually pretty professional about these things. (Completely different domain, but just look at Apple and Samsung being in court while Samsung still being a supplier for Apple.)
Bigger companies are usually pretty professional about these things. (Completely different domain, but just look at Apple and Samsung being in court while Samsung still being a supplier for Apple.)