The answer is C. The Diet
According to the Japanese Parliamentary system the Prime Minister is selected by the Japanese parliament, also known as the Diet. The Prime Minister must enjoy the confidence of the House of Representatives.
The Prime Minister is ceremonially appointed by the Japanese Emperor.