TOKYO - Eight people died and thousands were taken to hospitals on Wednesday as a heat wave continued to scorch wide areas of Japan, sending the temperature to top 40 C in the central prefecture of Gifu, the highest recorded in the country in nearly five years.