The Kamakura shogunate functioned within the framework of the Heian system of Imperial rule .
The shogunate functioned within the framework of the Heian system of Imperial rule .