Provided is the compound represented by formula (I) (in the formula, Y1 is O or the like; Z1 is, C(R4) or N; Z2a is C(R5a) or the like; Z3a is C(R6) or the like; R4, R5a and R6 are each independently hydrogen atoms or the like; R1 is a substituted or unsubstituted aromatic carbocyclic group or the like; R2a, R2b, R2c and R2d are each independently hydrogen atoms or the like; X is N(R7a) or the like; R7a is a hydrogen atom or the like; R3 is chemical formula 3 or the like; ring B is a 6-membered aromatic carbocycle or the like; R9a and R10a are each independently a halogen or the like; n is an integer from 1 to 5; m is an integer from 0 to 4; and p1 is an integer from 0 to 3) or a pharmaceutically acceptable salt thereof.