[Problem]To provide a GPR40 activating agent having, as an active ingredient, a novel compound having a GPR40 agonist action, a salt of the compound, a solvate of the salt or the compound, or the like, particularly, an insulin secretagogues and a prophylactic and/or therapeutic agent against diabetes, obesity, or other diseases.[Means of solving the problem]A compound of Formula (I):(where n is 0 to 2 p is 0 to 4 his 0 to 3 j is 0 to 3 k is 0 to 2 a ring B is an aryl group or a heteroaryl group X is O, S, or -NR7- J1 is -CR11aR11b- or -NR11c- J2 is -CR12aR12b- or -NR12c- and R1 to R12c are specific groups),a salt of the compound, or a solvate of the salt or the compound.