Leggett Modes Accompanying Crystallographic Phase Transitions