Japanese players celebrate their victory over Ireland at Shizuoka Stadium Ecopa on September 28.
Stu Forster/Getty Images AsiaPac/Getty Images
Japanese players celebrate their victory over Ireland at Shizuoka Stadium Ecopa on September 28.
Now playing
03:37
Pieter Labuschagne on Japan's surprising RWC success
YOKOHAMA, JAPAN - NOVEMBER 02: Siya Kolisi of South Africa lifts the Web Ellis cup following his team's victory against England in the Rugby World Cup 2019 Final between England and South Africa at International Stadium Yokohama on November 02, 2019 in Yokohama, Kanagawa, Japan. (Photo by Hannah Peters/Getty Images)
Hannah Peters/Getty Images Europe/Getty Images
YOKOHAMA, JAPAN - NOVEMBER 02: Siya Kolisi of South Africa lifts the Web Ellis cup following his team's victory against England in the Rugby World Cup 2019 Final between England and South Africa at International Stadium Yokohama on November 02, 2019 in Yokohama, Kanagawa, Japan. (Photo by Hannah Peters/Getty Images)
Now playing
02:18
South Africa upsets England in Rugby World Cup final
South Africa's Siya Kolisi attends a training session at the Arcs Urayasu Park in Urayasu, Chiba Prefecture on September 16, 2019, ahead of the 2019 Japan Rugby World Cup. (Photo by CHARLY TRIBALLEAU / AFP)        (Photo credit should read CHARLY TRIBALLEAU/AFP/Getty Images)
CHARLY TRIBALLEAU/AFP/AFP/Getty Images
South Africa's Siya Kolisi attends a training session at the Arcs Urayasu Park in Urayasu, Chiba Prefecture on September 16, 2019, ahead of the 2019 Japan Rugby World Cup. (Photo by CHARLY TRIBALLEAU / AFP) (Photo credit should read CHARLY TRIBALLEAU/AFP/Getty Images)
Now playing
03:36
South Africa captain Siya Kolisi on Japan and Roger Federer
MONTECASINO, SOUTH AFRICA - JUNE 08:  Siya Kolisi, the first non white, captain of the South Africa Springboks poses with head coach Rassie Erasmus during the South Africa media session held at the Pivot Hotel on June 8, 2018 in Montecasino, South Africa.  (Photo by David Rogers/Getty Images)
David Rogers/Getty Images Europe/Getty Images
MONTECASINO, SOUTH AFRICA - JUNE 08: Siya Kolisi, the first non white, captain of the South Africa Springboks poses with head coach Rassie Erasmus during the South Africa media session held at the Pivot Hotel on June 8, 2018 in Montecasino, South Africa. (Photo by David Rogers/Getty Images)
Now playing
03:44
Rassie Erasmus: Kolisi reaction 'overwhelming'
Now playing
02:40
Age just a number to rugby playing pensioners
LONDON, ENGLAND - AUGUST 05:  Roger Federer of Switzerland returns a shot against Andy Murray of Great Britain during the Men's Singles Tennis Gold Medal Match on Day 9 of the London 2012 Olympic Games at the All England Lawn Tennis and Croquet Club on August 5, 2012 in London, England.  (Photo by Julian Finney/Getty Images)
Julian Finney/Getty Images Europe/Getty Images
LONDON, ENGLAND - AUGUST 05: Roger Federer of Switzerland returns a shot against Andy Murray of Great Britain during the Men's Singles Tennis Gold Medal Match on Day 9 of the London 2012 Olympic Games at the All England Lawn Tennis and Croquet Club on August 5, 2012 in London, England. (Photo by Julian Finney/Getty Images)
Now playing
04:08
Roger Federer talks Olympics and Rugby World Cup
Japan supporters celebrate their team's third try  during the Japan 2019 Rugby World Cup Pool A match between Japan and Scotland at the International Stadium Yokohama in Yokohama on October 13, 2019. (Photo by Odd ANDERSEN / AFP) (Photo by ODD ANDERSEN/AFP via Getty Images)
ODD ANDERSEN/AFP/AFP via Getty Images
Japan supporters celebrate their team's third try during the Japan 2019 Rugby World Cup Pool A match between Japan and Scotland at the International Stadium Yokohama in Yokohama on October 13, 2019. (Photo by Odd ANDERSEN / AFP) (Photo by ODD ANDERSEN/AFP via Getty Images)
Now playing
01:54
Rugby World Cup: Memorable moments from Japan
New Zealand's scrum-half Aaron Smith (C) is hugged by New Zealand's fly-half Richie Mo'unga (2nd R) after scoring a try during the Japan 2019 Rugby World Cup quarter-final match between New Zealand and Ireland at the Tokyo Stadium in Tokyo on October 19, 2019. (Photo by Odd ANDERSEN / AFP) (Photo by ODD ANDERSEN/AFP via Getty Images)
ODD ANDERSEN/AFP/AFP via Getty Images
New Zealand's scrum-half Aaron Smith (C) is hugged by New Zealand's fly-half Richie Mo'unga (2nd R) after scoring a try during the Japan 2019 Rugby World Cup quarter-final match between New Zealand and Ireland at the Tokyo Stadium in Tokyo on October 19, 2019. (Photo by Odd ANDERSEN / AFP) (Photo by ODD ANDERSEN/AFP via Getty Images)
Now playing
01:36
England-New Zealand to face each other in RWC semifinal
A Japan fan has the national team's jersey painted on as he arrives for the Japan 2019 Rugby World Cup Pool A match between Japan and Ireland at the Shizuoka Stadium Ecopa in Shizuoka on September 28, 2019. (Photo by William WEST / AFP)        (Photo credit should read WILLIAM WEST/AFP/Getty Images)
WILLIAM WEST/AFP/AFP/Getty Images
A Japan fan has the national team's jersey painted on as he arrives for the Japan 2019 Rugby World Cup Pool A match between Japan and Ireland at the Shizuoka Stadium Ecopa in Shizuoka on September 28, 2019. (Photo by William WEST / AFP) (Photo credit should read WILLIAM WEST/AFP/Getty Images)
Now playing
02:16
Meet the Rugby World Cup's body-painting superfan
Wales' back row and captiain Sam Warburton catches the ball during a training session at the Hazelwood training centre in London on September 25, 2015 during the 2015 Rugby Union World Cup. Wales will face England on September 26. AFP PHOTO / FRANCK FIFE
RESTRICTED TO EDITORIAL USE        (Photo credit should read FRANCK FIFE/AFP/Getty Images)
FRANCK FIFE/AFP/AFP/Getty Images
Wales' back row and captiain Sam Warburton catches the ball during a training session at the Hazelwood training centre in London on September 25, 2015 during the 2015 Rugby Union World Cup. Wales will face England on September 26. AFP PHOTO / FRANCK FIFE RESTRICTED TO EDITORIAL USE (Photo credit should read FRANCK FIFE/AFP/Getty Images)
Now playing
01:18
Sam Warbuton: Wales aiming for World Cup final
CHOFU, JAPAN - SEPTEMBER 20: A Japan fan poses for a photo outside the stadium prior to the Rugby World Cup 2019 Group A game between Japan and Russia at the Tokyo Stadium on September 20, 2019 in Chofu, Tokyo, Japan. (Photo by Cameron Spencer/Getty Images)
Cameron Spencer/Getty Images AsiaPac/Getty Images
CHOFU, JAPAN - SEPTEMBER 20: A Japan fan poses for a photo outside the stadium prior to the Rugby World Cup 2019 Group A game between Japan and Russia at the Tokyo Stadium on September 20, 2019 in Chofu, Tokyo, Japan. (Photo by Cameron Spencer/Getty Images)
Now playing
03:06
Rugby superfans cycle from London to Tokyo
The Gwijo Squad is changing the atmosphere in South African rugby stadiums
PHILL MAGAKOE/AFP/AFP/Getty Images
The Gwijo Squad is changing the atmosphere in South African rugby stadiums
Now playing
01:44
Gwijo squad confronts apartheid legacy
New Zealand's wing Sevu Reece catches the ball during the Japan 2019 Rugby World Cup Pool B match between New Zealand and South Africa at the International Stadium Yokohama in Yokohama on September 21, 2019. (Photo by Odd ANDERSEN / AFP)        (Photo credit should read ODD ANDERSEN/AFP/Getty Images)
ODD ANDERSEN/AFP/AFP/Getty Images
New Zealand's wing Sevu Reece catches the ball during the Japan 2019 Rugby World Cup Pool B match between New Zealand and South Africa at the International Stadium Yokohama in Yokohama on September 21, 2019. (Photo by Odd ANDERSEN / AFP) (Photo credit should read ODD ANDERSEN/AFP/Getty Images)
Now playing
01:28
Rugby players advised to cover tattoos in Japan
A resident cycles on the street amongst tsunami generated debris in Kamaishi, Iwate prefecture on May 6, 2011. The March 11 earthquake and subsequent tsunami left some 26,000 dead or missing and obliterated whole towns and villages on the northeast coast.    AFP PHOTO / TOSHIFUMI KITAMURA (Photo credit should read TOSHIFUMI KITAMURA/AFP/Getty Images)
TOSHIFUMI KITAMURA/AFP/AFP/Getty Images
A resident cycles on the street amongst tsunami generated debris in Kamaishi, Iwate prefecture on May 6, 2011. The March 11 earthquake and subsequent tsunami left some 26,000 dead or missing and obliterated whole towns and villages on the northeast coast. AFP PHOTO / TOSHIFUMI KITAMURA (Photo credit should read TOSHIFUMI KITAMURA/AFP/Getty Images)
Now playing
03:13
Rugby World Cup: Kamaishi's road to recovery
CNN —  

Ravaged by Typhoon Hagibis, Japan perhaps got the huge lift it needed when its rugby team beat Scotland 28-21 on home soil to reach a first ever World Cup quarterfinal.

The team’s victory came hours after Japan’s worst storm in decades battered much of the country with hurricane like winds and incessant, overpowering rain, killing dozens of people.

Residents had to be airlifted from homes, there was considerable flooding – especially in and around Tokyo – and flights were canceled from the capital’s two main airports of Narita and Haneda.

With three games already canceled this weekend because of the storm – downgraded to a tropical depression Sunday – and its aftereffects, doubts surrounded the host’s clash with Scotland in Yokohama, near Tokyo.

READ: A nation united in belief as host Japan secures famous victory

READ: Host Japan stuns Ireland

But despite flooding near the stadium, organizers decided Sunday morning after an inspection the game in Pool A would proceed. A moment’s silence was held beforehand, as it was ahead of Tonga’s 31-19 win over the US and Wales’$2 35-13 win over Uruguay, both earlier Sunday.

“I really want to acknowledge the families that have lost people in the typhoon,” Japan coach Jamie Joseph, a former New Zealand international, said. “It really motivated our team.

“We talked about that this morning as a group and the players really wanted to play because while we are celebrating tonight there are a lot of people that aren’t. We’d like to acknowledge that.”

Scotland were obviously keen for the crunch clash to go ahead, with reports suggesting it was considering a legal case if called off. In that case, the game would have been declared a 0-0 draw, putting Japan and Ireland through.

It was likely the biggest game in Japan’s rugby history, having agonizingly missed out on a quarterfinal spot at the last World Cup in 2015 despite winning three Pool games.

Scotland needed a victory to have any hopes of progressing at Japan’s expense and while only one spot separated the nations in the world rankings, the visitors might have been the sizable favorites since they only failed to make the quarterfinals once in World Cup history.

And when fly-half Finn Russell touched down in the seventh minute, there was a hush from most of the 70,000 in attendance. Darcy Graham played a key role, stripping Japan’s leading World Cup 2019 scorer going into the game, Yu Tamura, deep in Japan’s half.

Japanese response

Impressively, it did little to detract Japan, however. Japan bossed possession and handled impeccably.

“From my team, the whole World Cup, we prepared really well, the players put their bodies on the line every week,” said Joseph. “But tonight they went another level I felt. They wanted the game as much as the Scottish team. They gave everything they could.

“Everyone gave 150% and that’s what it takes to win big Test matches.”

Even after Tamura missed a penalty from 30 meters, Japan kept pushing and responded with a try from the speedy, powerful Kotaro Matsushita – the hat-trick hero against Russia.

The majestic Kenki Fukuoka played a brilliant pass to Matsushita as he was being tackled, inches away from falling to the grass.

A darting run by Matsushita set up Keita Inagaki’s try in the 26th minute and the 14-7 lead was nothing more than Japan deserved.

02:52 - Source: CNN
Rugby in Japan: Japan's rugby Mecca

No action was taken against Jonny Gray after a head on head tackle on Shota Horie – Horie appeared to be dipping down – but Allan Dell was penalized following a scrum to give Tamura another penalty kick.

Again he was off target although he converted Fukuoka’s try just before halftime for a seemingly hefty 21-7 lead. Fukuoka sped towards the line and ably gathered Timothy Lafaele’s low kick.

The game looked to be out of reach when man-of-the match Fukuoka stripped Chris Harris and ran untouched for another try in the 43rd minute.

It was now 28-7 and the quarterfinals were well in sight.

Scottish comeback

But a pair of quick, converted tries from WP Nel and substitute Zander Fagerson in the 50th and 56th minutes suddenly had Japan in a mild panic as the lead shriveled to 28-21.

It could have been worse. In the 62nd minute, Harris seemed like he wouldn’t be denied as he sprinted to the line. But he was put through by a forward pass from Pete Horne, negating the sequence.

03:00 - Source: CNN
Meet rugby superfan Daisuke Komura

Horne was in agony.

But when the final whistle blew, Japanese fans went wild.

Rugby World Cup 2019 in pictures

View the latest Rugby World Cup news, feature stories, photos and videos on CNN.com.

Japan, a perfect 4-0 in the Pool, faces South Africa next weekend. In the other quarterfinals, two-time defending champion New Zealand meets Ireland, Australia plays England and Wales battles France.

Can Japan go all the way?

Joseph didn’t say that but his team’s confidence is growing.

“The Japanese haven’t really trusted themselves in tough moments and tonight, and I guess the last four matches, the guys have got a lot of belief now and realize what it takes to get across the line.

“The more we win, the more that belief will grow.”