The present invention provides: a novel a-substituted glycineamide derivative or a pharmacologically acceptable salt thereof; a pharmaceutical composition containing the a-substituted glycineamide derivative or a pharmacologically acceptable salt thereof; and a use of the a-substituted glycineamide derivative or a pharmacologically acceptable salt thereof for medical purposes. The present invention provides a compound which has an inhibitory activity on TRPM8 and is represented by general formula (I) [wherein A1 represents a C6-10 aryl group or the like; A2 represents a C6-10 aryl group or the like; X represents CH or the like; Y represents -CR1R2- or the like; R1 and R2 independently represent a hydrogen atom or the like; R3 and R4 independently represent a halogen atom or the like; and n represents 1 or 2] or a pharmacologically acceptable salt thereof. The compound (I) according to the present invention can be used as a therapeutic or prophylactic agent for diseases or conditions associated with afferent nerve hyperexcitability or injury.