Japan stunned Brazil with three second-half goals to claim a 3-2 friendly victory in Tokyo on Tuesday, their first win over the South Americans in 14 attempts.