To find a therapeutic and / or prophylactic agent for gastrointestinal disorders and the like having excellent activity and safety. The following general formula (I) [wherein A is a substituted phenylene group, B is a substituted 4-10 membered heterocyclic group, a substituted C6-10 aryl group, a substituted C3-10 cycloalkyl group, R1 is a hydrogen atom Or a C1-3 alkyl group, R2 is a hydrogen atom or a C1-3 alkyl group, R3 is a C1-6 alkyl group, a C3-10 cycloalkyl group, a C1-3 alkoxy C1-3 alkyl group or a C1-3 hydroxyalkyl group, R4 represents a hydrogen atom, a C1-6 alkyl group or a halogen atom, n is an integer of 1 to 4, X is methylene, -O-, -NH-, -N (C1-3 alkyl)-, -C (= O)-, -S-, -S (O)-, -S (O2)-or a single bond. Or a pharmacologically acceptable salt thereof.優れた活性及び安全性を有する胃腸障害等の治療薬及び/又は予防薬を見出すこと。下記一般式(I)[式中、Aは置換可フェニレン基、Bは置換可4-10員複素環基、置換可C6-10アリール基、置換可C3-10シクロアルキル基、R1は水素原子又はC1-3アルキル基、R2は水素原子又はC1-3アルキル基、R3はC1-6アルキル基、C3-10シクロアルキル基、C1-3アルコキシC1-3アルキル基又はC1-3ヒドロキシアルキル基、R4は水素原子、C1-6アルキル基又はハロゲン原子を示し、nは1乃至4の整数、Xはメチレン、-O-、-NH-、-N(C1-3アルキル)-、-C(=O)-、-S-、-S(O)-、-S(O2)-又は単結合。]で表される化合物又はその薬理上許容される塩。