The sentence meted out to Tetsuya Yamagami, who shot the former prime minister in Nara in July 2022, was in line with that sought by prosecutors.