A cannabinoid receptor modulator containing a compoundrepresented by Formula (I0)(see formula I0)wherein, X is an oxygen atom, etc., R0 is an optionallysubstituted acylamino group, ring A0 is a benzene ringwhich may further have a substituent in addition to R0, andring B is an optionally substituted 5-membered heterocycle,or a salt thereof or a prodrug thereof.