Gravar-mail: Multiple structural transitions driven by spin-phonon couplings in a perovskite oxide