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