Under a Japanese law that dates back to the Meiji era, more than a century ago, all married couples