The samurai and bushido were the class and ethical system of Japan's warrior society. The samurai (originally "one who serves") rose in the ninth and tenth centuries as estate guards, and after the Genpei War held national power; the Kamakura, Muromachi and Edo shogunates were all founded by warriors, for nearly seven hundred years. Institutionally the samurai stood on the lord–vassal bond: land or stipend exchanged for military service, a lord's word answered by a retainer's death — the Kamakura gokenin system and Edo alternate attendance were its forms; martial arts (bow, horse, sword, spear) were cultivated with letters (Chinese learning, tea), and in the Edo period samurai also served as administrators. The term "bushido" became current only in the late Edo period: the Hagakure (1716) declared that "the way of the samurai is death," centring loyalty and honour above life, blending Zen self-restraint with Confucian ethics; Nitobe Inazō's Bushido (1899), translated into Western languages, became the world's shorthand for the Japanese spirit. The Meiji Restoration abolished the domains, introduced conscription and the sword ban of 1876, ending samurai status, while "bushido" rhetoric was redirected into the Imperial Rescript to Soldiers and national morality, and pre-war militarism borrowed its name; after the war its legacy has been debated through literature and film (Kurosawa, The Last Samurai), as both professional ethic and martial spirit.