Surely a solution to that problem would be to institute equal maternity and paternity leave while making it socially acceptable and even encouraged for men to take advantage of said leave.
The men would get the benefit of spending time with their newborn children in a way they cannot do today, while their significant others get the benefit of another person available to help them out full-time through the child's early months. The cherry on top is that businesses would be far less able to view women as men who take more time off.
It does not matter if men are mandated to take the leave, biological differences such as the effects of menstrual cycles will make it so, on average, women will request and/or need more days off. Also, the effects of pregnancy beyond the minimum parental leave duration will pretty much only affect women's ability to work, not men's.
This is the case in Germany but the problem is still not fully solved. But it’s a lot better!