In the present invention, a material having a structure represented by formula (1) or (2) (wherein W equals N or C) is used as a solid electrolyte for a fuel cell. An electrolyte membrane having a small fuel crossover and a fuel cell having excellent ion conductivity and service capacity are obtained.