A semiconductor device according to the present invention is provided with a first electrically conductive layer formed on a semiconductor element or on one main surface of a semiconductor substrate, an insulating layer formed on the first electrically conductive layer through which a connection hole of which diameter is the smallest in a portion other than the bottom is formed and a second electr