Japan aiming for their first last-four appearance since 2005 pushed the four-time champs until the last seconds in an incredibly hard-fought contest.
The South Americans soon drew level after Eudin finished a sweeping move from close range.
Ozu then had an effort cleared off the line, and the player of the Asian qualifiers crashed home a penalty as Japan drew level.
The third and final quarter remained scoreless until the midway point as Daniel forced home from close range following Jorginho’s good lead-up work.
Soon enough captain Bueno scored as Brazil took the lead for the third and final time.