Japan coach thanks fans after historic win