Japan has elaborate ways to deal with natural disasters, but unprecedented rains took people by surprise, killing at least 148 people.