The resin layer 81 is deposited and molded as follows: A framework (not shown) having a height of several mm is disposed around the lead frame 60, and the space or cavity surrounded by the framework is filled with a thermosetting resin such as an epoxy resin or the like.