In December 1945, four years after Japanese forces attacked Pearl Harbor, an 86-year-old man, riddled by the disgrace of the emperor’s defeat, succeeded in killing himself. It was a terrible ending to a courageous life. He was by some accounts the last remaining samurai, a link to the country’s imperial past—and to a code of conduct that had endured for hundreds of years.

* * *