By Daniel Leussink and Kantaro Komiya

TOKYO (Reuters) -Japan’s factories posted a sharp fall in output in April as China’s COVID-19 lockdowns and wider supply disruptions took a heavy toll on manufacturers, clouding the outlook for the trade-reliant economy.

Separate data showed retail sales posted the largest rise in nearly a year as consumers stepped up spending after the government eased pandemic curbs, withstanding pressure from wider price rises that threaten to hurt demand.

Factory output dropped 1.3% in April from the previous month, official data showed on Tuesday, on sharp falls in the production of items such as electronic parts and production machinery.

It was the first fall in three months and much weaker than a 0.2% decline expected by economists in a Reuters poll.

The data comes a day after Toyota Motor Corp, the world’s largest automaker by sales, missed its global production target for April after output fell more than 9% year-on-year.

Toyota’s output slump last month came after the Japanese carmaker on Friday cut its global production plan for June and signalled the possibility of lowering its full-year output plan of 9.7 million vehicles.

“Japan’s production is likely to keep stalling in the short term as disruptions in the global supply chain continue,” said Kazuma Kishikawa, economist at Daiwa Institute of Research.

A full recovery of goods transportation from China would likely take time even after Shanghai ends its strict COVID-19 lockdown from Wednesday, Kishikawa said, adding that it was likely to weigh on Japanese output.

“Logistics won’t be restored in a day,” he added.

While activity in Japan’s services sector is picking up as the pandemic subsides, the country’s manufacturing sector has been pressured by supply disruptions and higher material prices caused by Russia’s war in Ukraine.

“The soft activity data for April suggest that the Q2 rebound may disappoint, though it’s worth noting that they don’t tell us anything about the recovery in the service sector,” wrote Tom Learmouth, Japan economist at Capital Economics, in a note.

Manufacturers surveyed by the Ministry of Economy, Trade and Industry (METI) expected output to return to growth in May, gaining 4.8%, followed by a 8.9% advance in June.

While output would be on course for a strong rebound this quarter if those forecasts are realised, firms’ production plans have been far more overly optimistic than usual since supply shortages started to take a toll, Learmouth added.

Separate data showed retail sales grew 2.9% in April from a year earlier, marking their sharpest gain since May 2021. That was bigger than the median market forecast for a 2.6% rise.

The jobless rate stood at a more than two-year low of 2.5% in April from the previous month’s 2.6%.

(Reporting by Daniel Leussink and Kantaro Komiya; Additional reporting by Yoshifumi Takemoto; Editing by Sam Holmes)