Guide for Defense (G4D): Dynamic Guidance for Robust and Balanced Defense in Large Language Models