A compound represented by formula (I) or a salt thereof, which has a potent Raf inhibitory activity.In formula (I), R1 represents an optionally substituted C1-6 alkyl, etc. X represents -O- or -NR2- (wherein R2 represents a hydrogen atom or a C1-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) -NR3CO-W1-, (2) - NR3CO-W1-O-, (3) -NR3CO-W1-O-W2-, (4) -NR3CO-W1-S-, (5) -NR3CO-W1-NR4-, (6) -NR3COO-, (7) -NR3COO-W1-, (8) -NR3CO-CO-, or (9) - NR3CONR4- (wherein R3 and R9 each represents a hydrogen atom, etc., and W1 and W2 each represents an optionally substituted C1-6 alkylene, etc.) and R5 represents an optionally substituted five- or six-membered ring group.