The compound represented by the general formula: wherein ring A is benzene which may be substituted and the like; ring B is benzene which may be substituted and the like; X is a single bond and the like; Y is alkyl which may be substituted and the like; Z is CR 1 or nitrogen atom; R 1 is hydrogen and the like; R 2 is alkyl which may be substituted and the like or a pharmaceutically acceptable salt thereof is useful as a prevention/treatment agent of obesity, diabetes, and the like.