Resource-poor Japan imports virtually all its oil and has relied on access to the Strait of Hormuz in the Middle East for its oil shipments.