A resin composition includes a
polymer having a constitutional unit represented by [(R2)d(R3)e(OR4)fSiOg / 2], and a constitutional unit represented by [(R1)bMOc / 2], and a
solvent having a 1-
octanol / water
partition coefficient log Pow of 3 or less. In a case where a plurality of R2's are present, R2's are each independently an
aryl group or an aralkyl group, in a case where a plurality of R3's are present, R3's are each independently a
hydrogen atom, a linear or branched
aliphatic hydrocarbon group, or an
aromatic hydrocarbon group, in a case where a plurality of R4's are present, R4's are each independently a
hydrogen atom or a linear or branched
aliphatic hydrocarbon group, d is a number of 1 or more and 3 or less, e is a number of 0 or more and 2 or less, f is a number of 0 or more and less than 3, g is a number of more than 0 and 3 or less, and d+e+f+g=4. M is at least one selected from the group consisting of Fe, Co, Ni, Cu, Zn, Ga, Ge, Mo, Pd, Ag, Sn, Cs, Ba, W, and Hf, in a case where a plurality of R1's are present, R1's are each independently a
hydrogen atom, a
hydroxy group, a
halogen group, an
alkoxy group, a linear or branched
aliphatic hydrocarbon group, or an
aromatic hydrocarbon group, b is a number of 0 or more and less than 6, c is a number of more than 0 and 6 or less, and b+c=3 to 6.