Maybe that’s just me but I don’t think of Japan as a bad model in how to have a dense population that is prosperous. If anything their biggest problem currently is depopulation of remote areas.
The necessary tunnels for Basel would probably cost less than this:
https://en.wikipedia.org/wiki/Gotthard_Base_Tunnel
But Bern<>Zurich is the SBB's bottleneck.