Cape Town - Japan's "Ferraris" hit top gear on Sunday as the hosts beat Scotland 28-21 in a barnstorming Rugby World Cup clash to create history by reaching the quarter-finals.

As it happened: Scotland v Japan

Rampaging wingers Kotaro Matsushima and Kenki Fukuoka did the damage for Japan, who survived a late fightback in Yokohama to advance as Pool A winners along with Ireland. 

The Brave Blossoms will face two-time world champions South Africa in Tokyo next weekend after making it a perfect four wins out of four, roared on by a crowd of 67 000.

Fukuoka, scorer of Japan's try in their 19-12 upset over Ireland, grabbed two more in Yokohama with Matsushima notching his fifth of the tournament for the rampant Japanese. 

After a war of words between the rival coaches in the build-up, the teams observed a moment's silence for the victims of the violent typhoon that swept through Japan on Saturday, killing at least 26 and forcing organisers to scrap three pool games.

The needle between the sides quickly resurfaced in Sunday's typhoon-threatened Pool A decider, however, as both teams put in some monstrous early tackles.

"For my team, the whole World Cup, we've prepared really, really well. They've put their bodies on the line every weekend," said Japan coach Jamie Joseph, who has compared his players Ferraris.

"But tonight they went another level I felt. They obviously wanted that game as much as the Scottish team did. They gave everything they possibly could.

"Everyone that entered the game, from our most experienced to our least experienced, gave 150 percent and that's what it takes to win big Test matches."

Scotland needed to win while preventing Japan from securing a defensive bonus point - and they got off to a flying start. 

Early pressure told as flyhalf Finn Russell broke through to give them the lead after just seven minutes. 

But the Japanese hit back quickly with Matsushima latching onto a superb, one-handed offload from Fukuoka to score his fifth try of the tournament. 

Even better was to come from the hosts with a dazzling move straight out of a basketball playbook, quick hands between Shota Horie and William Tupou releasing loosehead prop Keita Inagaki to crash over. 

On the stroke of half-time, the jet-heeled Fukuoka plucked a high-bouncing Timothy Lafaele grubber kick out of the air to leave Scotland with a mountain to climb.

Fukuoka then produced a moment of solo brilliance moments into the second half, stripping the ball from Chris Harris before accelerating clear. 

Scotland, who had bounced back from a 27-3 drubbing by Ireland to smash Samoa 34-0 and Russia 61-0, looked out of it. 

When WP Nel and Zander Fagerson bulldozed over in the space of five minutes, suddenly the Japanese were creaking. 

But they stood firm in the face of a late barrage to avenge a 45-10 defeat by Scotland that cost them a place in the knockout stages of the 2015 World Cup. 

That team, led by Eddie Jones, won three matches, including a breathless 34-32 victory over South Africa in their opening game. 

Japan's current vintage thrashed Russia 30-10 and Samoa 38-19 either side of their massive win over Ireland and coach Jamie Joseph will relish the chance to have another crack at the Springboks.

Scorers

Japan

Tries: Kotaro Matsushima, Keita Inagaki, Kenki Fukuoka (2)

Conversions: Yu Tamura (4)

Scotland

Tries: Finn Russell, WP Nel, Zander Fagerson

Conversions: Greig Laidlaw (3)

Teams

Japan

15 William Tupou, 14 Kotaro Matsushima, 13 Timothy Lafaele, 12 Ryoto Nakamura, 11 Kenki Fukuoka, 10 Yu Tamura, 9 Yutaka Nagare, 8 Kazuki Himeno, 7 Pieter Labuschagne, 6 Michael Leitch (captain), 5 James Moore, 4 Luke Thompson, 3 Jiwon Koo, 2 Shota Horie, 1 Keita Inagaki.

Substitutes: 16 Atsushi Sakate, 17 Isileli Nakajima, 18 Asaeli Ai Valu, 19 Uwe Helu, 20 Hendrik Tui, 21 Fumiaki Tanaka, 22 Rikiya Matsuda, 23 Ryohei Yamanaka

Scotland

15 Stuart Hogg, 14 Tommy Seymour, 13 Chris Harris, 12 Sam Johnson, 11 Darcy Graham 10 Finn Russell, 9 Greig Laidlaw (captain), 8 Blade Thomson, 7 Jamie Ritchie, 6 Magnus Bradbury, 5 Jonny Gray, 4 Grant Gilchrist, 3 Willem Nel, 2 Fraser Brown, 1 Allan Dell.

Substitutes: 16 Stuart McInally, 17 Gordon Reid, 18 Zander Fagerson, 19 Scott Cummings, 20 Ryan Wilson, 21 George Horne, 22 Pete Horne, 23 Blair Kinghorn