The mayor of a Tokyo suburb will resign to take responsibility for sexual misconduct against female employees.