Japan’s ruling coalition loses majority for first time in 31 years