Provided is a resin composition containing: a thermoplastic resin having a polar group; and a heterocyclic compound containing two or more heteroatoms, wherein the resin composition exhibits a different behavior in elastic strength with a glass transition temperature as a boundary.