The shrine honours the country’s war dead, including military officials convicted by an international tribunal after World War II.