In the case where metal such as Co, Cu, or Ni is electro-deposited inside the nanoholes, because the metal element becomes cations in an electro-deposition solution, it is required to apply a negative voltage to the semiconductor at the bottom of the nanoholes where the metal is to be electro-deposited.