A compound that has an mPGES-1 inhibitory effect and is useful as an active ingredient in a pharmaceutical for the treatment of diseases such as inflammation, pain, or rheumatism (X is a carbonyl group or a sulfonyl group; R 1 is a hydrogen atom, a halogen atom, an alkyl. Group, alkanoyl group, cyano group, or carboxyl group; R 2 is an alkyl group, a carbocyclic group, or a heterocyclic group; R 3 is a hydrogen atom or 1 to 3 substituents; R 4 and R 5 are hydrogen atoms, Halogen atom or alkyl group; R 6 is alkyl group or alkoxy group; Ring A is heterocyclic diyl group).mPGES-1阻害作用を有し、炎症、疼痛、又はリウマチなどの疾患の治療のための医薬の有効成分として有用な化合物(Xはカルボニル基又はスルホニル基;R1は水素原子、ハロゲン原子、アルキル基、アルカノイル基、シアノ基、又はカルボキシル基;R2はアルキル基、炭素環基、又は複素環基;R3は水素原子又は1ないし3個の置換基;R4及びR5は水素原子、ハロゲン原子、又はアルキル基;R6はアルキル基、又はアルコキシ基;環Aは複素環ジイル基を示す)。