Nonequilibrium thermodynamics in the strong coupling and non-Markovian regime based on a reaction coordinate mapping