[Problem] To provide a compound which can be used for the prevention and/or treatment of diseases in which 5-HT 2B receptor and 5-HT 7 receptor are concerned, particularly for the treatment of irritable bowel syndrome (IBS). [Means for Resolution] It was found that an amide derivative characterized by the possession of a nitrogen-containing bicyclic hetero ring (e.g., an indole or the like), or a pharmaceutically acceptable salt thereof, has a strong antagonism for both of the 5-HT 2B receptor and 5-HT 7 receptor. In addition, the compound of the present invention having the antagonistic activity for both of the receptors showed a good pharmacological action in comparison with the case in which an antagonist selective for either one of the receptors was used alone. Based on the above, the compound of the present invention is useful for the prevention and/or treatment of diseases in which 5-HT 2B receptor and 5-HT 7 receptor are concerned, particularly for the treatment of irritable bowel syndrome (IBS).