[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 수용체 저해 활성을 갖는 것을 확인하고, 유효성, 안전성이 우수한, 과활동 방광을 포함한 각종 하부 요로 질환에 따른 빈뇨, 요의 절박감, 요실금, 및 간질성 방광염이나 만성 전립선염 등의 하부 요로 동통을 수반하는 각종 하부 요로 질환, 및 동통을 수반하는 각종 질환의 치료 및/또는 예방제가 될 수 있는 것을 발견하여 본 발명을 완성하였다.