This could involve a number of religions, and for example Japanese Confucianism involved hierarchical structures in the society. But i think the best fit is Shintoism, where they believed that the emperor was descended from Gods and in contact with them.