Alternatively, the metal layer comprising a cobalt (Co) alloy is a layer formed from a three-layer structure comprising a first metal layer made of cobalt (Co), a second metal layer made of a group II element formed on the first metal layer, and a third metal layer made of gold (Au) formed on the second metal layer, by alloying the three-layer structure through a heat treatment.