The present invention aims to provide a compound having a superior selective α
1D
adrenergic receptor antagonistic action and useful as an agent for the prophylaxis or treatment of a lower urinary tract disease and the like.
The present invention provides a compound represented by the formula (I)
wherein each symbol is as defined in the specification, or a salt thereof.