Oh - if you looking for only buying one camera to do both, that isn't it. I thought you were looking at buying two cameras. Two of those cameras - one for the up close and one for the distance would be appropriate.
A varifocal is intended to be a set it and forget it. You set the zoom level for the area you are looking at getting coverage and the focus is for that location.
Trying to use one camera for a range of distances means that you are then digitally zooming for the areas further away and that degrades the quality fast.
If you want the ability to zoom in and out somewhat frequently, then you need a PTZ camera.
A varifocal is intended to be a set it and forget it. You set the zoom level for the area you are looking at getting coverage and the focus is for that location.
Trying to use one camera for a range of distances means that you are then digitally zooming for the areas further away and that degrades the quality fast.
If you want the ability to zoom in and out somewhat frequently, then you need a PTZ camera.