A nitrogenous heterocyclic compound represented by general formula (I) or a pharmacologically acceptable salt thereof, efficacious in treating various ischemic cardiac diseases, wherein ring A represents a benzene, pyridine or cyclohexane ring; ring B represents a pyridine, pyrimidine or imidazole ring; R, R, R and R represent each hydrogen, halogen, lower alkoxy, etc.; R represents -NRR (wherein R and R represent each hydrogen, lower alkyl, etc.), etc.; and R represents (a) (wherein R represents hydrogen, lower alkyl, etc.; R, R and R represent each hydrogen, halogen, hydroxy, etc.; and r represents an integer of 0.1 to 8), etc.