Late Japan comeback sends Germany to defeat