A semiconductor device according to claim 13, wherein the first gate electrode and the second gate electrode are formed of an alloy or a compound of one kind or plural kinds of elements selected from the group consisting of tungsten (W), molybdenum (Mo), tantalum (Ta), and titanium (Ti).