What is the cause of erythema on the inner thighs of infants?

It is most often seen in three conditions: nappy dermatitis, interscalene rash and bright red nevus. Of these.
Erythema in nappy dermatitis can involve the genital area, buttocks and lower abdomen in addition to the inner thighs, and can be effectively relieved by timely nappy changes in mild cases, or may develop into Jacquet’s nappy dermatitis and granuloma of the baby’s buttocks in severe cases.
It occurs in hot weather and, in addition to the groin, in areas prone to friction such as the armpits, under the breasts, flexors of the joints and the neck. It begins as a well-defined, limited bright red or dark red spot, which may later develop into papules, papules, macules, vesicles or, in severe cases, even shallow ulcers.
Bright red nevus: appears at birth or shortly after birth as a pale red or purplish-red patch with no conscious symptoms, which partially or completely fades on pressure.