Given the task definition and input, reply with output. In this task, you are given a question. You have to answer the question based on your information.

Who were the two parties fighting in the war where Kajiwara Heima served as karō?
Tokugawa shogunate and those seeking to return political power to the Imperial Court