A compound represented by the formula (1) wherein ring A is aryl optionally having substituent(s) and the like; ring B is arylene optionally having substituent(s) and the like; m=0-2; n=1-5; X is a bond and the like; Y is a bond and the like; and Z is hydrogen atom and the like or a pharmaceutically acceptable salt thereof, and a hydrate or solvate thereof have affinity for CCR3, and can be pharmaceutical products for the treatment and/or prophylaxis of immune or inflammatory diseases.