Provided is a compound which has a mPGES 1 inhibitory activity and is useful for the prevention or treatment of pain rheumatism osteoarthritis fever Alzheimer s disease multiple sclerosis arteriosclerosis glaucoma ocular hypertension ischemic retinal diseases systemic sclerosis and malignant tumors including colorectal cancer. The present invention relates to a compound represented by formula [I] [wherein each symbol is as defined in the description] or a pharmaceutically acceptable salt thereof.