Japan is often perceived as a global leader in technology, famous for its robots, bullet trains, and advanced consumer electronics.