The shortest explanation is the US kept all their abilities hidden from the Japanese and the Japanese followed their doctrine even as the doctrine started working against them.
US struggled initially but we denied them their full capabilities by harassing their fleet with constant attacks. They didn’t have the time to arrange their forces they had nor the forces needed to keep on the offense.
“the US kept all their abilities hidden from the Japanese”...
And now the Chinese make the parts and software, and provide workers, studenta, and reaearchers to be sure they miss nothing.