Some forgotten limitations of railguns: There is a maximum speed for projectiles in naval warfare. Earth is round. So anything moving too fast (~8000m/s) simply cannot hit distant targets. If fired horizontally, the shell will climb up as the earth curves away. This causes all sorts of difficulties if trying to attack another ship. At best, your shells will hit horizontally, far above the waterline. You would need a shell that could either fly itself downwards, bleeding speed, limiting penetration, and defeating the point of using a railgun.