Japan had a small domestic oil production, a few million barrels, but not nearly enough to meet their peacetime needs let alone war. Before the war started, they imported 90% of their oil.
Prior to WWII, Japan got most of its oil from the US. The US produced the majority of the world's oil in 1941, a lot of it in California. Not having the infrastructure to ship it across the US, it was loaded onto tankers and sold around the Pacific Rim. Months before the war began this supply was cut off by a US embargo, later joined by the Dutch. By threatening the US and the Dutch they cut off their oil supply.
Japan also had a stockpile of oil and other strategic resources, billions of barrels. Roughly equal to two years of peacetime imports. They would need it.
Japan imported most of its oil from conquered territories, primarily the Dutch East Indies (aka Indonesia) but also smaller amounts came from Formosa (Taiwan), China, and Burma. The USSR also continued trading oil with Japan. But it never was enough. Without US oil, their imports were slashed in half.
All that oil had to be shipped to refineries and the products to where it was needed by an ill-defended merchant fleet. Japan would be further crippled by the loss of most of this fleet to American and Allied submarines, aircraft and mines.
The Navy was a huge consumer of oil, needing a billion barrels of heavy oil a year. Military and civilians needed half a billion barrels of diesel. Aviation took another half billion barrels. As oil imports plummeted and stockpiles were depleted, the heavy units of the Japanese navy was more and more often confined to port and their aircraft grounded. Training programs were cut, the fuel could not be afforded for the hours necessary to train pilots and crew, and the initially high quality of Japanese naval personal and pilots plummeted.
- The Pacific War Online Encyclopedia: Oil
- Empire of Japan database: Oil
- The Way To Pearl Harbor: US vs Japan by Yuichi Arima
- Japan's need for oil and the Embargo (1940-1941)
- Empire of Japan (economic and financial data): Natural Resources in occupied areas after 1937