[Problem] To provide a compound useful as a novel agent which is excellent in preventing and/or treating cannabinoid receptor type 2-related diseases, based on agonist action on a cannabinoid receptor type 2 [Means for Solution] The present inventors conducted thorough investigation regarding compounds having agonist action on a cannabinoid receptor type 2. They confirmed that the fused ring pyridine compound of the present invention has excellent agonist action on the cannabinoid receptor type 2, thereby completing the present invention. The fused ring pyridine compound of the present invention has agonist action on the cannabinoid receptor type 2, and can be used as an agent for preventing and/or treating cannabinoid receptor type 2-related diseases, for example, inflammatory diseases and pain.本發明係以對大麻鹼第二型受體的促效劑作用為基礎,提供能有效使用為作用於大麻鹼第二型受體之疾病的新穎且優異預防及/或治療劑用之化合物。本發明者等就對大麻鹼第二型受體具有促效劑作用的化合物進行檢討,確認到本發明的縮環吡啶化合物係具有優異的對大麻鹼第二型受體之促效劑作用,遂完成本發明。本發明的縮環吡啶化合物係具有對大麻鹼第二型受體的促效劑作用,可使用為例如發炎性疾病、疼痛等,作用於大麻鹼第二型受體之疾病的預防及/或治療劑。