TOKYO, July 4 (Reuters) - Japan's Nikkei share average inched higher on Friday, as chip-related stocks tracked a strong overnight performance on Wall Street, though the gains were capped as investors locked in profits after a recent rally.
The Nikkei .N225 was up 0.11% at 39,828.2, after hitting an intraday high of 40,012.66.
Earlier in the session, the benchmark index hovered between negative territory and modest gains. The Nikkei has slipped 0.8% so far this week and is on course to snap a three-week winning streak.
The broader Topix .TOPX was steady at 2,829.67.
"Investors remained optimistic about the market outlook, but the Nikkei is still vulnerable," said Shuutarou Yasuda, a market analyst at Tokai Tokyo Intelligence Laboratory.
"As soon as it hit the 40,000 level, there was a sell-off to book profits," he said.
Wall Street rallied on Thursday to record closing highs, as chipmaker Nvidia rose closer to a $4 trillion valuation and a surprisingly strong U.S. jobs report cheered investors, who shrugged off dimming chances for an interest rate cut this month. .N
Investors remained cautious and refrained from making active bets on Japanese stocks at the end of the week, as they awaited a key U.S. trade tariff deadline next week, strategists said.
Chip-related stocks led the gains on the Nikkei, with Advantest rising 2.33% and Tokyo Electron gaining 1%.
Banking shares advanced as Japanese government bond yields tracked U.S. yields higher. Solid job gains in the U.S. bolstered the case for the Federal Reserve to keep interest rates on hold.
The bank sector .IBNKS.T rose 1.14% to become the top gainer among the 33 industry sub-indexes on the Tokyo Stock Exchange.
Shares of Mitsubishi UFJ Financial Group 8306.T rose 1.16%.
Uniqlo-brand owner Fast Retailing 9983.T fell 0.81% to weigh on the Nikkei the most.