Japan Stocks Rally as Tech Shares Extend Gains After AI Selloff