The improvement comes as marriages show signs of recovery after a prolonged slump, supported by incentives designed to ease the financial burden of raising children.