Nominally, sovereignty lay in the emperor but in fact power was wielded by the Fujiwara nobility. What noble family wielded power during the Heian period