Although the Japanese warships opened fire with their heavier-caliber offensive armament at maximum range and scored some hits and damaging near misses , their fire was not effective until they had closed within range of the carriers' own 5 inches protective armament.