Typhoon Nanmadol prompts record rain, gale warnings for Japan