Nikkei gains 1.47% weekly but heads for loss as tech valuation concerns weigh