Investors’ bet on AI boom and Tokyo’s ability to withstand trade turmoil buoy shares