Foxes? They don't predate on hedgehogs! It's only badgers that can reliably unroll and eat them.
But the reason for hedgehogs' decline is of course... us. Habitat loss, use of pesticides, road deaths, more hard paving and secure fences, increase in ground flooding...