Disclosed is a CB2 receptor modulator or the like containing an imidazole derivative representedby the general formula (I) below or a pharmaceutically acceptable salt thereofas an active ingredient. (I) [In the formula, R representsan optionally substituted lower alkyl group or the like; R representsan optionally substituted cycloalkyl or the like; R represents anoptionally substituted aryl or the like; and n represents an integer of 0-3.]