Typhoon pounds parts of Japan, islands