James Dunnigan wrote that big wars are usually just a number of small wars that have run together. World War II is one of the premier examples of this.
As Doc Moss mentioned, Japan had been at war with China since 1937. Japan had suffered acutely from the Great Depression. Its hold on democracy had never been secure, and the economic chaos discredited the Diet (the Japanese legislature) and the political moderates who ran the country. Militarist assassins murdered any Japanese politician who clung to a democratic position, and power informally passed to the hands of the Army.
The Army decided that the only way to prevent a disaster like the Depression from recurring was to make Japan economically self-sufficient. A Greater East Asian Co-Prosperity Sphere would be created out of China, Indochina, and the East Indies, which would supply all of Japan’s needs; within this expanded territory, Japan would never again need to trade with the outside world and could return to the isolationist policy of the Tokugawa Shogunate.
China, being weak, divided and friendless, would fall first. Japan invaded China from its puppet state of Manchuria, defeating Chinese forces everywhere they could bring them to battle, seizing control of China’s entire coastline and much of its interior. But Britain and America both had economic interests in China they did not wish to lose, and supplied the Chinese resistance through via the Burma Road, Burma then being a British colony, while Japanese forces bogged down at the end of their long supply lines. America also embargoed steel exports to Japan.
Germany’s victories in Europe offered Japan its great opportunity. Two of the chief defenders of Indochina and the Indies, France and Britain, were going to be tied up in Europe for the foreseeable future. If Japan wanted its Co-Prosperity Sphere, now was the time to grab it. In 1940, Japan signed the Tripartite Pact with Germany and Italy, pledging all three countries to declare war on any power that should attack them. With Great Britain already at war with Germany, and Soviet Russia having non-aggression pacts with both Germany and Japan, the obvious intention of the Pact was to deter the United States from intervening in the war.
In 1941 Japan seized Indochina, a possession of the mauled and defeated French. America instantly retaliated with a total oil embargo. The oil embargo was a first-magnitude emergency for Japan, which has no petroleum reserves of its own. Japan had only an 18-month supply of oil left, after which its ships would be confined to port and its air power idled for lack of fuel. The undefended Dutch East Indies and British Burmese territories had the oil Japan needed. But Japan’s top military brass was convinced that a play for Burma and the Indies would provoke the United States to war. An American fleet based at Manila Bay, whose defenses at Corregidor were called the Gibraltar of Asia, could raid the shipping lanes between the Indies, Burma and Japan at will. Germany, eager that Japan should distract the United States from the European theater, secretly promised that any Japanese attack on the U.S. would be supported by a prompt German declaration of war. So Admiral Yamamoto prevailed on Imperial General Headquarters to approve his plan for a massive surprise attack on the American fleet at Pearl Harbor at the outset of the war; with the American fleet removed from the equation, Japan could invade the U.S. Philippines unmolested and thus secure its Greater East Asian Co-Prosperity Sphere.
And so on December 7, 1941, in the midst of peace negotiations, the Japanese Combined Fleet steamed into the waters north of Hawaii and gave the American Pacific Fleet the worst thrashing in the history of the U.S. Navy. Three days later, Germany declared war on the United States as promised - a geopolitical blunder of the first order. America immediately threw the greater weight of its armed forces against Germany, leaving MacArthur and the Pacific theater forces to muddle along as best they could while the Japanese rampaged through Southeast Asia and the South Pacific.
Japan’s action in deciding to fight China, America, Great Britain, and Australia simultaneously seems unbelievably stupid only because it was. The remarkable thing is not that Japan was defeated, but how long it held the Allies off. No doubt Japanese racism was a major contributor to the blunder; the typical Japanese military view of the American was that he was a weak, effeminate coward, who would quickly beg for peace after having his nose bloodied at Pearl Harbor and the Philippines. American and British racism also played a role, as few believed that the “inferior” Asians would dare face soldiers of the noble Anglo-Saxon race, much less surprise and defeat them. Both sides would learn, on Luzon, New Guinea, Guadalcanal, and Tarawa, how badly they had misjudged the other.