Next, a ferroelectric capacitor, a second interlayer insulating film, and the like are formed.
A contact hole extending from the upper surface of the interlayer insulating film and reaching the first plug is formed.