Life-threatening high temperatures were forecast across Japan on Thursday, and officials are urging steps to avoid heatstroke.