A powerful typhoon is heading toward Okinawa Prefecture and may bring heavy rain to a wide area of Japan over the long weekend, the Meteorological Agency said Thursday.