Teachers in Japanese state schools can be transferred from school to school, town to country, etc. by the education authority. Some education authorities state in their policies that they take account of the family circumstances of teachers when making decisions on transfers, but others are ominously silent.
Among the stated objectives of compulsory transfers are ensuring that all schools have a good 'faculty structure' (e.g. age & sex mix, experience, qualifications) & all the suitably qualified teachers they need, & giving teachers a wide range of experience. Spending a teaching career at one school looks unlikely. Some policies explicitly say that teachers are forced to transfer if they've been in one place too long.
[I'm proofreading the English translation of an education ministry document]