That is right Sometime people forgot Japanese role in Chinese modernization though Japanese thought their assistance is not free or large But they paly important role in technology transfer because in the 60's when China start the modernization of infrastructure. Most of the harbors, railways, airport are built by the Japanese companies. I remembber 16 harbors and 2 electrified trunk line.Power plant etc Latter modern manufacturing move en mass to china again transfer of technology and management.
Even today with semiconductor many japanese semiconductor are supplying Huawei and robotic stepper motor from Fuji.
Certainly the government is toeing to US out of obvious reason But there are in Japan who see that their future will hinge on China and they make preparation for that day specially among the industrialist Keidanren.
It's the politicians as well who see Japan's future is in a Chinese orbit.
Tokyo Mayor Ishihara Shintaro was on record as saying they needed to solidify control of the Senkaku/Diaoyu Island now, because in the future, China would be so big it could easily overwhelm Japan from both an economic and military point of view.
Ishihara Shintaro was famous for authoring the nationalistic book "The Japan That Can Say No: Why Japan Will Be First Among Equals" when Japan thought it could compete with the USA in the 1980s.
And when Abe Shinzo was Prime Minister the first time around, he was in favour of engagement in China (and still is).
It was for the same reason as he also saw China as Japan's future/challenge.
Anyway, back on topic.