Japan secured a victory over Brazil in a match that saw two high-profile dismissals. Brazil's manager Carlo Ancelotti and forward Raphinha were both sent off during the contest.