Typhoon rips through Japan, at least 40 injured