Provided is a compound represented by formula [1] that has excellent NHE3 inhibitory effects, or a pharmaceutically acceptable salt thereof. (In formula [1], A indicates a structure represented by formula [2]. In formula [2], R11 and R12 represent a halogen atom or the like, R2 indicates a C1-6 alkyl or the like, ring E indicates a triazole, a tetrazole, a pyrimidine or the like, R31 and R32 represent a hydrogen atom, a C1-6 alkyl, a C1-6 alkoxy or the like, and W indicates a single bond, a formula NH, a formula O, or a formula CONH. Y indicates a hydrogen atom or a structure represented by formula [3'].)