The present invention relates to a compound that has GLP-1
receptor agonist activity and is useful as a therapeutic or prophylactic agent for diseases associated with the GLP-1
receptor, or a pharmaceutically acceptable salt thereof, and relates to a pharmaceutical composition containing the compound or its pharmaceutically acceptable salt.Provided is a compound represented by formula (I):wherein A1 is C(R5) or the like, A2 is C(R6) or the like, A3 is C(R7) or the like, R5, R6, and R7 are each independently a
hydrogen atom or the like, R1 is carboxy or the like, R2 is substituted or unsubstituted
alkyl or the like, —X— is —O— or the like, the ring represented by:is a ring represented by: and the likewhereinR10 is each independently
halogen or the like,s is 0 or the like,R13 is each independently a
hydrogen atom or the like, and R3 is substituted or unsubstituted aromatic carbocyclyl or the like, ora pharmaceutically acceptable salt thereof.