Disclosed is a compound which has an excellent selective antagonistic activity on an α1D adrenergic receptor and is therefore useful as a prophylactic/therapeutic agent for lower urinary tract diseases and others. Specifically disclosed is a compound represented by formula (I) [wherein each symbol is as defined in the description] or a salt thereof.