A compound, represented by any one of formula to formula: wherein, in formula to formula, R 1, R 2 and R 3 are independently hydrogen, alkyl having 1 to 8 carbons, alkenyl having 2 to 8 carbons, alkoxy having 1 to 7 carbons or alkenyloxy having 2 to 7 carbons; ring A 1 is cyclohexyl, cyclohexenyl or phenyl, and ring A 2 is 1,4-cyclohexylene, 1,4-cyclohexenylene or 1,4-phenylene, and in the rings, at least one hydrogen may be replaced by fluorine; L 1, L 2, L 3, L 4, L 5, L 7, L 8, L 10, L 12, L 13, L 15, L 16, L 17, L 18, L 19 and L 20 are independently hydrogen, fluorine, methyl or ethyl; Sp 1, Sp 2 and Sp 3 are independently a single bond or alkylene having 1 to 5 carbons, and in the alkylene, at least one piece of -CH 2 - may be replaced by -O-; c, d and e are independently 0, 1 or 2, and a sum of c, d and e is 2, 3 or 4; and P 1, P 2 and P 3 are independently a polymerizable group represented by formula (P-11); wherein, in formula (P-11), M 1 and M 2 are independently hydrogen, fluorine, methyl, ethyl or trifluoromethyl; Sp 5 is a single bond or alkylene having 1 to 5 carbons, and in the alkylene, at least one piece of -CH 2 - may be replaced by -O-; and X 1 is -OH or -NH 2; wherein, in formula to formula, R 1 and R 2 are independently alkyl having 1 to 7 carbons, alkenyl having 2 to 7 carbons, alkoxy having 1 to 6 carbons or alkenyloxy having 2 to 6 carbons; L 6, L 7, L 8, L 9, L 10, L 11, L 13, L 15, L 16, L 17, L 18, L 19, L 20, L 21, L 22 and L 23 are independently hydrogen, fluorine, methyl or ethyl; Sp 1 and Sp 3 are independently a single bond or alkylene having 1 to 3 carbons, and in the alkylene, at least one piece of -CH 2 - may be replaced by -O-; and P 1 and P 3 are independently a polymerizable group represented by formula (P-111); wherein, in formula (P-111), M 1 and M 2 are independently hydrogen, fluorine or methyl; and Sp 5 is a single bond or alkylene having 1 to 3 carbons, and in the alkylene, at least one piece of -CH 2 - may be replaced by -O-. wherein, in formula to formula, R 1, R 2 and R 3 are independently hydrogen, alkyl having 1 to 8 carbons, alkenyl having 2 to 8 carbons, alkoxy having 1 to 7 carbons or alkenyloxy having 2 to 7 carbons; ring A 1 is cyclohexyl, cyclohexenyl or phenyl, and ring A 2 is 1,4-cyclohexylene, 1,4-cyclohexenylene or 1,4-phenylene, and in the rings, at least one hydrogen may be replaced by fluorine; L 1, L 2, L 3, L 4, L 5, L 7, L 8, L 10, L 12, L 13, L 15, L 16, L 17, L 18, L 19 and L 20 are independently hydrogen, fluorine, methyl or ethyl; R 1, R 2 and R 3 are independently hydrogen, alkyl having 1 to 8 carbons, alkenyl having 2 to 8 carbons, alkoxy having 1 to 7 carbons or alkenyloxy having 2 to 7 carbons; ring A 1 is cyclohexyl, cyclohexenyl or phenyl, and ring A 2 is 1,4-cyclohexylene, 1,4-cyclohexenylene or 1,4-phenylene, and in the rings, at least one hydrogen may be replaced by fluorine; L 1, L 2, L 3, L 4, L 5, L 7, L 8, L 10, L 12, L 13, L 15, L 16, L 17, L 18, L 19 and L 20 are independently hydrogen, fluorine, methyl or ethyl; Sp 1, Sp 2 and Sp 3 are independently a single bond or alkylene having 1 to 5 carbons, and in the alkylene, at least one piece of -CH 2 - may be replaced by -O-; c, d and e are independently 0, 1 or 2, and a sum of c, d and e is 2, 3 or 4; and P 1, P 2 and P 3 are independently a polymerizable group represented by formula (P-11); c, d and e are independently 0, 1 or 2, and a sum of c, d and e is 2, 3 or 4; and P 1, P 2 and P 3 are independently a polymerizable group represented by formula (P-11); wherein, in formula (P-11), M 1 and M 2 are independently hydrogen, fluorine, methyl, ethyl or trifluoromethyl; Sp 5 is a single bond or alkylene having 1 to 5 carbons, and in the alkylene, at least one piece of -CH 2 - may be replaced by -O-; and X 1 is -OH or -NH 2; wherein, in formula to formula, R 1 and R 2 are independently alkyl having 1 to 7 carbons, alkenyl having 2 to 7 carbons, alkoxy having 1 to 6 carbons or alkenyloxy having 2 to 6 carbons; L 6, L 7, L 8, L 9, L 10, L 11, L 13, L 15, L 16, L 17, L 18, L 19, L 20, L 21, L 22 and L 23 are independently hydrogen, fluorine, methyl or ethyl; Sp 1 and Sp 3 are independently a single bond or alkylene having 1 to 3 carbons, and in the alkylene, at least one piece of -CH 2 - may be replaced by -O-; and P 1 and P 3 are independently a polymerizable group represented by formula (P-111); R 1 and R 2 are independently alkyl having 1 to 7 carbons, alkenyl having 2 to 7 carbons, alkoxy having 1 to 6 carbons or alkenyloxy having 2 to 6 carbons; L 6, L 7, L 8, L 9, L 10, L 11, L 13, L 15, L 16, L 17, L 18, L 19, L 20, L 21, L 22 and L 23 are independently hydrogen, fluorine, methyl or ethyl; Sp 1 and Sp 3 are independently a single bond or alkylene having 1 to 3 carbons, and in the alkylene, at least one piece of -CH 2 - may be replaced by -O-; and P 1 and P 3 are independently a polymerizable group represented by formula (P-111); wherein, in formula (P-111), M 1 and M 2 are independently hydrogen, fluorine or methyl; and Sp 5 is a single bond or alkylene having 1 to 3 carbons, and in the alkylene, at least one piece of -CH 2 - may be replaced by -O-.