What key national resource helped Japan prosper and also acted as a defense barrier?

the surrounding ocean