In the pre-Meiji era, nanshoku (男色) relationships inside Buddhist monasteries were typically pederastic.
During the period before the Meiji Restoration, intimate relationships between male monks in Buddhist temples were commonly considered pederastic.