It is a very odd routing. But, the problem is that separate tickets MEX-NRT and NRT-EWR with a claim of "transit" is even odder.
Bottom line is that "odd" isn't the standard, it is whether OP's ground time in Japan qualifies as a "transit." If it does not, he will be denied boarding at MEX however he is ticketed.