Japan failed to cap its astonishing run at the Rio Olympic rugby sevens tournament with a medal after losing to Fiji in the semifinals and South Africa in the bronze-medal match on Thursday.