The best explanation for how Japan was organized politically during the medieval period is:
A network of warriors governed Japan at all levels, including the shogun, who was more powerful than the emperor.
During this time, political power was largely in the hands of the shogun and the samurai class, while the emperor held a more symbolic and ceremonial role.