It is demonstrated that itinerant-localized transition of heavy electrons occurs inside the magnetically ordered phase of the Kondo-Heisenberg lattice. The phase diagram and electronic structure are derived by means of the continuous-time quantum Monte Carlo combined with the dynamical mean-field theory. Around the itinerant-localized transition, nearly flat bands appear on the Fermi surface with almost vanishing quasi-particle renormalization factor. At the same time, there emerges a strong local magnetic fluctuation with a minute energy scale. Considering both antiferromagnetic and ferromagnetic Heisenberg interactions, coherent understanding is achieved on rich phase diagrams observed in CeRh1−xCoxIn5, CeRu2(SixGe1−x)2, UGe2 and CeT2Al10 (T=Fe,Ru,Os).