The present invention relates to a compound having an URAT1 inhibitory activity, and to an URAT1 inhibitor, a blood uric acid level-reducing agent and a pharmaceutical composition containing the compound. More specifically, the present invention relates to a compound represented by the formula (I): wherein R 1 is -Q 1 -A 1 or the like; R 2 is a hydrogen atom, a halogen atom, a lower alkyl group or the like; W 1 , W 2 , W 3 and W 4 are each independently a nitrogen atom or a methine group optionally having substituents, or the like; X and Y are each a single bond, an oxygen atom or the like; Z is a hydroxyl group or COOR 3 or the like.