A cannabinoid receptor modulator containing a compound represented by Formula (I 0 ) wherein, X is an oxygen atom, etc., R° is an optionally substituted acylamino group, ring A 0 is a benzene ring which may further have a substituent in addition to R°, and ring B is an optionally substituted 5-membered heterocycle, or a salt thereof or a prodrug thereof.