Substitutes Ritsu Doan and Takuma Asano scored late on Wednesday to give Japan a 2-1 World Cup victory over Germany.
Ilkay Gundogan had given four-time champions Germany the lead with a penalty in the first half. But Doan, who plays for German side Freiburg, equalized in the 76th minute after Germany goalkeeper Manuel Neuer blocked a shot from Takumi Minamino.
Then Asano, who plays for German team Bochum, sprinted clear of Nico Schlotterbeck and beat Neuer from a narrow angle in the 83rd.
This was the first competitive meeting between the two countries.
Before the game, Germany players covered their faces during team photos in an apparent rebuke to FIFA following their decision to halt plans to wear armbands to protest discrimination in host country Qatar.