A capacitor includes a lower electrode, a first dielectric film composed
of lead zirconate titanate niobate formed above the lower electrode, a
second dielectric film composed of lead zirconate titanate or lead
zirconate titanate niobate with a Nb composition smaller than a Nb
composition of the lead zirconate titanate niobate composing the first
dielectric film, and an upper electrode formed above the second
dielectric film.