The present invention provides compounds of the following formula, the pharmaceutically acceptable salt thereof, or the solvate thereof :(wherein, cycle A represents,cycle B represents a heteroaryl group which may be substituted(except for substituted isoxazolyl group) or heterocycle group which may be substituted, R1represents hydrogen atom or alkyl group which may be substituted, R2represents-OR5, -SR5, halogen atom or haloalkyl group, etc., R3represents alkyl group which may be substituted, etc., R4represents alkyl group which may be substituted, etc., R5represent alkyl group which may be substituted, etc., R6represents hydrogen atom, etc., R7and R8each represents hydrogen atom, etc., R10and R11each represents hydrogen atom, etc, R12represent alkyl group which may be substituted, etc., m and p each represents integer of 1~3), which can be used as inhibitor of 11β-hydroxysteroid dehydrogenase type I.本發明為提供可作為I型11β羥基類固醇脫氫酶抑制劑之如下式所示化合物、其製藥容許鹽或這些之溶劑合物:(式中環A為環B為可有取代之雜芳基(但可有取代之異唑基除外)或可有取代之雜環基、R1為氫或可有取代之烷基、R2為-OR5、-SR5、鹵素或鹵化烷基等、R3為可有取代之烷基等、R4為可有取代之烷基等、R5為可有取代之烷基等、R6為氫等、R7和R8各為氫等、R10和R11各為氫等、R12為可有取代之烷基等、m和p各為1~3之整數)。