Raising children has become significantly more time-consuming and expensive, amid a sense that opportunity has grown more elusive.