The present invention provides a medicament for treating a disease related with CNS and/or PNS cholinergic action, smooth muscle contraction, incretion, neurodegeneration, etc. which has a potent activity for modulating α 7 nAChR, comprising a compound of the following formula (I) wherein A is CR1E or nitrogen atom; X-Y-Z is N-CO-NR3AR3B, etc.; R1A to R1E are the same or different and hydrogen atom, etc.; R2A to R2D are the same or different and hydrogen atom, etc.; R3A and R3B are the same or different and optionally-substituted C3-10 cycloalkyl, etc.; and n is 1 or 2; or a pharmaceutically acceptable salt thereof.本發明係提供一種中樞神經系(CNS)及/或末梢神經系(PNS)之膽鹼能性相關疾病、平滑肌收縮相關疾病、內分泌疾病、神經變性相關之疾病等的治療藥,該治療藥係包含下述式(I)表示之化合物或其製藥學上容許之鹽,且具有強的α 7尼古丁乙醯膽鹼受體(α 7 nAChR)之調節作用者,[式中,A表示CR1E或氮原子;X-Y-Z表示N-CO-NR3AR3B等;R1A至R1E可相同或不同,表示氫原子等;R2A至R2D可相同或不同,表示氫原子等;R3A及R3B可相同或不同,表示可經取代之C3-10環烷基等;n表示1或2]。