Yui Hasegawa and Mina Tanaka each had a goal and an assist as Japan came from behind to beat Portugal 2-1 on Friday in a women's international soccer friendly.

Nadeshiko Japan, making their last trip overseas before the FIFA Women's World Cup kicks off in July, hit the winner in the 53rd minute at the Estadio D. Afonso Henriques in Guimaraes.

Hasegawa sent a superb long ball over the top that Tanaka did well to control before dinking past Portuguese keeper Ines Pereira.

Portugal, set to make its World Cup debut at the tournament in Australia and New Zealand, took the lead in the 25th minute when Ana Capeta tapped in Jessica's pass to finish a flowing counterattack.

World No. 11 Japan leveled against the 21st-ranked hosts 10 minutes later when Tanaka outflanked the Portugal back line down the left and cut back for Hasegawa to steer home.

"There were difficulties but it's great to get a win," manager Futoshi Ikeda said after making personnel and tactical changes from the U.S.-hosted SheBelieves Cup in February.

"It was a little difficult to pass the ball as we did not have the rhythm we've had before. There are issues, but it's a plus to have turned the game around in this environment far away from home."

Tanaka, who was not called up for the SheBelieves Cup, expressed relief after a strong performance that showcased her ability to finish.

"I'm a forward and producing results does lift me in part," the 28-year-old said.

Kazuyoshi Miura, the 56-year-old Japanese men's footballing icon currently playing for Oliveirense in the Portuguese second tier, was at the game after watching Nadeshiko Japan train on Tuesday.

Japan will take on No. 15 Denmark in the second match of its European tour on Tuesday.