Mass evacuations as Japan prepares for typhoon