Heian period
Late Heian period to the Genpei war.