Host galaxy extinction of Type Ia supernovae: co-evolution of interstellar medium structure and the extinction law with star formation