An object of the present invention is to provide a novel low molecular weight compound exhibiting an osteogenesis-promoting action. This object is achieved by a compound having the general formula (I) or a pharmacologically acceptable salt thereof: wherein each substituent is defined as follows: A is a 3- to 10-membered heterocyclyl group and the like, B is an amino group and the like, and X is N and the like.