PROBLEM TO BE SOLVED: To provide a therapeutic agent having a strong regulation effect of α7 nicotinic acetylcholine receptor for diseases relating to cholinergic property of central nervous system and/or peripheral nervous system, diseases relating to smooth muscle contraction, endocrine diseases, neurodegeneration related diseases or the like.SOLUTION: There is provided a compound represented by the general formula (1) and a pharmaceutically acceptable salt. (1), where X-Y-Z represents RN-N=C, N=CR-N or the like, A represents CRor nitrogen, Brepresents CR, Brepresents a single bond or NR, Rrepresents hydrogen or the like, Rto R, Rto Rare same or different and represent alkyl, hydrogen or the like, Rto Rare same or different and represent alkyl, hydrogen or the like and Rand Rare same or different and represent alkyl, hydrogen or the like.【課題】強いα7ニコチン性アセチルコリン受容体の調節作用を有し、中枢神経系及び/又は末梢神経系のコリン作動性に関する疾患、平滑筋収縮に関する疾患、内分泌疾患、神経変性に関する疾患等の治療薬の提供。【解決手段】下記式(1)で表される化合物又はその薬学上許容される塩[式中、X-Y-Zは、R6N-N=C、N=CR7A-N等を表し、Aは、CR1D又は窒素を表し、B1は、窒素又はCR2Fを表し、B2は、単結合又はNRXを表し、RXは、水素等を表し、R1A~R1D、R2A~R2Fは、同一又は異なって、アルキル、水素等を表し、R3~R5は、同一又は異なって、アルキル、水素等を表し、R6及びR7Aは、同一又は異なって、アルキル、水素等をす]。【選択図】なし