If you're open to buying another bike, many IGH (internal gear hub) bikes come with chainguards. They only have one chainring in the front. The rear gears are enclosed in a cylindrical shaped hub, like below:
The downside to IGH bikes is that they tend to be 5 to 10 pounds heavier than derailleur bikes and they aren't quite as effective for pedaling up steep hills.