Japan will face Brazil in a World Cup last-32 clash after drawing 1-1 with Sweden on Thursday to finish runners-up behind the Netherlands in Group F.