Recording device, take-up device, and method for taking up recoding medium