The present invention provides a compound having TrkA inhibitory activity, or a pharmaceutically acceptable salt thereof. The present invention relates to a compound represented by Formula (I):wherein =X is =O or the like, R5 and R5A are hydrogen atoms or the like, -A- is -NR1- or the like, B is substituted or unsubstituted aromatic carbocyclyl or the like, R1 is substituted or unsubstituted alkyl or the like, R2 is a hydrogen atom or the like, -W-is -CH2- or the like, -WA- is -CH2- or the like, R13 is substituted or unsubstituted aromatic carbocyclyl or the like, R14 is substituted or unsubstituted aromatic heterocyclyl or the like, R15 is substituted or unsubstituted alkyl or the like, or a pharmaceutically acceptable salt thereof, and a pharmaceutical composition containing the same.