A magnitude 5.7 earthquake struck central Japan, injuring at least 22 people, shattering store windows, and slowing bullet train service.