A surface-emitting type semiconductor laser includes a first mirror, an
active layer formed above the first mirror, a second mirror formed above
the active layer, a first electrode formed above the second mirror, and a
second electrode formed above the first electrode, wherein each of the
first electrode and the second electrode has an opening section, and the
opening section of the first electrode is formed inside the opening
section of the second electrode in a plan view.