Weather officials are advising people to take precautions against heatstroke as temperatures remained high across Japan.