The purpose of the present invention is to provide: compounds having a TrkA inhibiting effect, or pharmacologically acceptable salts thereof, or solvates of these; pharmaceutical compositions characterized by containing these as an active ingredient; and the pharmaceutical application of these, especially agents for the prevention and/or treatment of diseases involving TrkA (such as pain, cancer, inflammation/inflammatory diseases, allergic diseases, skin diseases, neurodegenerative diseases, infections, Sjogren's syndrome, endometriosis, kidney diseases, and osteoporosis). Specifically, provided are compounds represented by formula (I) or optical isomers thereof, or pharmacologically acceptable salts of these, or solvates of these, etc.