A compound of the formula (I):wherein A is alkylene optionally having an unsaturated bond; R is —C(═O)—R1; R1 is hydroxy or the like; m is 0 or 1; p is 0 or 1; X1 and X3 are each independently optionally substituted aryl or optionally substituted heteroaryl or the like; X2 is a bond, —CH2—, —S—, —SO2—, —CH2—O—, —O—CH2—, —CH2—S—, —S—CH2—, or the like; X4 is —CH2—, —CH2—CH2—, —C(═O)—, or the like, having a dual antagonistic activity against both a thromboxane A2 receptor and a prostaglandin D2 receptor is found.