Japan is rapidly losing population—and half the world is about to join it