Most larger stations on the JR network have "Green Windows," which are called Midori no madoguchi in Japanese. Although intracity tickets are sold by machines nowadays, you still have to deal with a person in the Green Window if you want: