The present invention provides a compound of the formula (I):wherein R1, R2, R3 and R4 are each independently hydrogen, optionally substituted alkyl, hydroxy, optionally substituted alkoxy or the like, R5 is optionally substituted alkyl, optionally substituted aryl, optionally substituted heterocyclic or the like, R6 is hydrogen, optionally substituted alkyl or the like, R7 is hydrogen, optionally substituted alkyl, optionally substituted alkoxy, optionally substituted aryl, optionally substituted heterocyclic or the like, A is S or O and a broken line represents presence or absence of a bond,pharmaceutically acceptable salt or hydrate thereof and a pharmaceutical composition or a pharmaceutical composition for use as an endothelin receptor antagonist, a peripheral circulation insufficiency-improving agent or a macrophage foam cell formation inhibitor comprising the compound.