You can apply for the visa at the Japanese Embassy/ Consulate in your home country or your country of residence.