Hakodate is the main gateway, with trains north to Sapporo and south to Honshu, as well as ferry connections to Tohoku.