Japan’s population is shrinking at an accelerating rate, but the nationalist prime minister is making it harder for foreigners to live there