A compound represented by formula (I) or a salt thereof, which has a potent Raf inhibitory activity. In formula (I), R 1 represents an optionally substituted C 1-6 alkyl, etc.; X represents -O- or -NR 2 - (wherein R 2 represents a hydrogen atom or a C 1-6 alkyl); Y represents a group represented by formula 2 (2i or 2ii) (wherein ring A represents an optionally substituted benzene ring; Z represents a group represented by (1) -NR 3 CO-W 1 -, (2) - NR 3 CO-W 1 -O-, (3) -NR 3 CO-W 1 -O-W 2 -, (4) -NR 3 CO-W 1 -S-, (5) -NR 3 CO-W 1 -NR 4 -, (6) -NR 3 COO-, (7) -NR 3 COO-W 1 -, (8) -NR 3 CO-CO-, or (9) - NR 3 CONR 4 - (wherein R 3 and R 9 each represents a hydrogen atom, etc., and W 1 and W 2 each represents an optionally substituted C 1-6 alkylene, etc.); and R 5 represents an optionally substituted five- or six-membered ring group.