First, a compound represented by formula (16): [0035] wherein, in formula (16), R is H or a methyl group and m??? is an integer or 2 to 10, [0036] is reacted with a compound represented by the aforementioned formula (12), in the presence of a base such as potassium hydroxide or sodium hydride, and a compound represented by formula (17) is obtained: [0037] wherein, in formula (17), R is H or a meth