[Object] To provide a therapeutic and/or prophylactic agent for urinary frequency, urinary urgency, and urinary incontinence associated with various lower urinary tract diseases including overactive bladder, various lower urinary tract diseases accompanied by lower urinary tract pain, such as interstitial cystitis, chronic prostatitis, and the like, and various diseases accompanied by pain, based on an excellent trkA receptor inhibitory action. [Means for Solution] A novel azolecarboxamide compound in which a thiazole ring or an oxazole ring is bonded to a benzene ring, a pyridine ring, a pyridazine ring, a thiophene ring, a pyrazole ring or a pyrrole ring through carboxamide, or a salt thereof is confirmed to have a potent trkA receptor inhibitory activity, and found to be capable of being used as a therapeutic and/or prophylactic agent which is excellent in efficacy and safety for urinary frequency, urinary urgency, and urinary incontinence associated with various lower urinary tract diseases including overactive bladder, various lower urinary tract diseases accompanied by lower urinary tract pain, such as interstitial cystitis, chronic prostatitis, and the like, and various diseases accompanied by pain, thereby completing the present invention.本發明提供一種以優良trkA受體阻斷作用為準,含有過動膀胱之各種下部尿道疾病所引起的頻尿、尿意急迫感、尿失禁、及間質性膀胱炎或引起慢性前立腺炎等下部尿道疼痛之各種下部尿道疾病、以及引起疼痛之各種疾病之治療及/或預防劑。確認噻唑環或噁唑環為介著羧醯胺結合於苯環、吡啶環、噠嗪環、噻吩環、吡唑環或吡咯環為特徵之新穎唑系羧醯胺化合物或其鹽,具有強力trkA受體阻斷活性,發現可作為有效性、安全性優良之含過動膀胱之各種下部尿道疾病所引起的頻尿、尿意急迫感、尿失禁、及間質性膀胱炎或引起慢性前立腺炎等下部尿道疼痛之各種下部尿道疾病、以及引起疼痛之各種疾患的治療及/或預防劑而完成本發明。