In a plan view seen from the Z direction, the contact VY may be a substantially circular shape, but may be a substantially elliptical shape having a major axis in the X direction. Accordingly, since the contact VY spreads in the X direction, the bit line BL can be reliably connected by the contact VY even if the bit line BL is slightly deviated in the X direction due to the lithography. However, as long as the contact VY can connect between the contact CH and the bit line BL, the direction of the major axis of the contact VY is not particularly limited. The direction of the major axis of the contact CH is not particularly limited.
Other configurations and manufacturing methods of the third embodiment may be the same as those of the first embodiment. Accordingly, according to the third embodiment, it is also possible to obtain the effects of the first embodiment. The third embodiment may be applied to the second embodiment.