If you use the Hokkaido Shinkansen, which opened in 2016, you will arrive at Sapporo Station in about four and a half hours, when traveling from Tokyo Station to Shin-Hakodate Hokuto Station. From Hakodate, Sapporo is a further three and a half hours by express train.