Heian society was organized by simply an elaborate system of rank, and the purpose of…