Actually I do not think it is so easy to attribute to the stupid decision.
Japan is an island country, and that time korean also have few oil resource, Japenese may have no better options but attacked US.
Germany also need resource for their war, UK can make trouble in the sea, maybe the only...