Otaru is a good choice for accomodation especially if you or travelling companions have any interest in ski'ing. There is a popular area for this nearby. The famed "Sushi alley" is also not a bad choice for dining.
Distance and time to Sapporo is not that bad. It's worth checking if regional train passes exist, maybe keihin_242 has current info?