TOKYO, Oct 12 (Reuters) - Japanese stocks rocked back and forth in volatile trading on Wednesday, with the market lacking direction ahead of this week's key U.S. CPI data that will be scoured for key clues to inflation and the rate hikes that could come to tame it.

The Nikkei share average opened down 0.18% before recovering to gain 0.36%, ultimately ending up down 0.14% at 26,364.25 at the break.

The broader Topix lost 0.05%.

The biggest loser on the Nikkei was semiconductor equipment maker Tokyo Electron Ltd, which fell 4.69% amid ongoing struggles in the chips industry. The Philadelphia semiconductor index has declined for four straight sessions.

"It doesn't look like growth stocks, in particular semi-conductor-related stocks, have bottomed out," said Hiroyasu Mori of Okachi Securities, who pointed to Apple's reported suspension of an iPhone production increase as a spark for the trend.

"For now, it seems the market will be selling off high-tech stocks and buying stocks related to domestic demand," he said.

Demand was strong for system-on-chip designer Socionext Inc , however, which started trading on Wednesday after what is said to be the biggest IPO in Japan so far this year.

Shares in Socionext last traded at 3,950 yen, 8.2% higher than the initial offer price.

The yen plunged to new 24-year lows, falling as far as 146.39 to the dollar. The Japanese currency hadn't fallen below 146 since 1998, and the Ministry of Finance intervened to prop it up in September when it reached 145.9.

A weak yen can help some Japanese exporters, who benefit from cheaper foreign sales. Topix transportation equipment stocks were up 0.34%, though that included several automakers like Mitsubishi Motor that fell.

Overall, the market lacked direction as it awaited Thursday's Consumer Price Index (CPI) report in the U.S.

"The CPI has often caused turbulence until now, so a lot of investors want to wait and see what happens," said a strategist at a domestic securities firm.

The best performers on the Nikkei were related to travel and retail, as Japan opens its borders for regular tourism this week.

Central Japan Railway Co and West Japan Railway Co both gained more than 2.5%, as did 7-11 owner Seven & I Holdings Co Ltd and department store operator Aeon Co Ltd.

Of the Nikkei's 225 constituents, 144 declined, 74 advanced, and seven traded flat. (Reporting by Sam Byford and Tokyo markets team; editing by Uttaresh.V)