what is the difference between shogun and daimyo
Subordinate only to the shōgun, daimyōs were the most powerful feudal rulers from the 10th century to the middle 19th century in Japan. From the Shugo of the Muromachi period through the Sengoku to the daimyōs of the Edo period, the rank had a long and varied history. The backgrounds of daimyō also varied considerably; while some daimyō clans, notably the Mōri, Shimazu and Hosokawa, were cadet branches of the Imperial family or were descended from the kuge, other daimyōs were promoted from the ranks of the samurai, notably during the Edō period.