Depends on how observant you are, in Judaism, it
is mandates / marching orders.
The "shiv'a" (literally, "seven") is a lot more than just the mourning period - it is also the period when others are required to come and comfort the mourners. It also officially stops if a holiday happens to fall inside it - thus, it might last as little as half a day, at which Judaism tells you: "It's time to stop mourning". (with the implied statement that the deceased has semi-saint status, and that's why you don't need to mourn as long).
It's not uncommon for people to mourn longer than specified (e.g., the whole 7 days even though there's a holiday that should have terminated it) and for other people to be critical of them for disobeying the letter of the "law"
I don't think it's about reducing guilt; It's about establishing something that's easy to follow for people whose world just collapsed. Guilt management is, perhaps, a small part of that.
During the whole following year (if mourning a parent; 3 months if mourning your child, one month mourning a spouse or a sibling), the mourners are instructed to not enjoy - modern interpretation is to not see movies, shows, attend weddings, etc. I think it's about mourning etiquette much more than it is about guilt.