In Japan the company has to receive most of it's income sources from within Japan so unless you are telecommuting for a Japanese company or a Japanese branch, this should not be ok with the immigration.
Really? My impression was that immigration mainly cares about having a stable situation, and the gov't generally wants to make sure you're paying taxes. Do you have a place explaining this in more detail?