Tatsuhiro Sakamoto’s late goal gave Japan a 3-2 win over Brazil in a friendly match in Singapore, avenging their previous World Cup defeat.