The Heian period (平安時代, Heian jidai?) is the last division of classical Japanese history, running from 794 to 1185. What was declining along with the imperial court?