Provided is a novel compound which shows an antagonistic effect against T-type calcium channels, and is useful as a pharmaceutical product.A compound represented by general formula (I), and a pharmaceutical agent containing the same, are disclosed:wherein n represents the number of nitrogen atoms contained in the6-membered fused aromatic ring, and is 0, 1 or 2; p represents the number of nitrogen atoms contained in the 6-membered aromatic ring, and is 0 or 1; X represents an oxygen atom, -SO2- or -N(R9)-; and R1 to R5 each represents a hydrogen atom or other substituents.