1. An inkjet printer comprising: a color ink ejection head including a color ink nozzle array having a plurality of nozzles arranged at a pitch along a main scanning direction and configured to eject a color ink to a sheet transferred in a sub-scanning direction orthogonal to the main scanning direction; a functional ink ejection head including a functional ink nozzle array having a plurality of nozzles arranged at the pitch along the main scanning direction and configured to eject a colorless-transparent functional ink to the sheet transferred in the sub-scanning direction; and a controller configured to control the color ink ejection head and the functional ink ejection head, wherein the controller is configured to drive the color ink ejection head and the functional ink ejection head to print test images on the sheet in a plurality of types of test patterns between which a positional relationship of a dot of the color ink and a dot of the functional ink to be formed on the sheet is varied, determine an overlapping degree of the dot of the color ink and the dot of the functional ink in the respective printed test images on a basis of a color attribute of the respective printed test images, select at least one test pattern of the plurality of types of the test patterns on a basis of the determined overlapping degrees, and control the functional ink ejection head to print on a basis of a control content corresponding to the at least one test pattern selected, the test patterns include: a plurality of types of test patterns for the sub-scanning direction between which the positional relationship is varied in the sub-scanning direction; and two types of test patterns for the main scanning direction between which the positional relationship is varied with a shift by the pitch in the main scanning direction, the controller is further configured to select one test pattern of the plurality of types of test patterns for the sub-scanning direction on a basis of the determined overlapping degrees in the test images of the plurality of types of test patterns for the sub-scanning direction, select one test pattern of the two types of test patterns for the main scanning direction on a basis of the determined overlapping degrees in the test images of the two types of test patterns for the main scanning direction, and control the functional ink ejection head to print on a basis of a control content corresponding to the test patterns selected.