It was Hitler who declared war on the US after Pearl Harbor so even if Japan was left alone the US would have had to respond to Adolph.
Hitler foolishly believed that Japan would help him to relieve the pressure from the Russians.
The Japs weren’t that stupid.