A heteroaryl derivative of the formula (1): (wherein Ring Z is an optionally substituted heteroaryl, R 1 is a carboxyl group or an alkoxycarbonyl group, etc., W 1 and W 2 are an optionally substituted lower alkylene, Ar 1 is an optionally substituted arylene or an optionally substituted heteroarylene, W 3 is a single bond, a lower alkylene, a lower alkenylene, etc., W 4 is a single bond, -NR 10 -, etc., Ar 2 is an optionally substituted aryl or an optionally substituted heteroaryl), or a prodrug thereof, or a pharmaceutically acceptable salt thereof.