Japan's premier to replace top bureaucrat over anti-LGBT remarks