What nationality does a baby born at sea or in the air get?

The answer is simple if one of the parents hails from a country that upholds the principle of jus sanguinis, the Latin term for granting citizenship based on the nationality of one's parents.

Japan is one such country, meaning that if a baby has a Japanese parent, it receives that nationality regardless of birthplace.