If the land and a building on that land belong to the same owner, a mortgage is created with respect to that land or building, and the enforcement of that mortgage causes them to belong to different owners, it is deemed that a superficies has been created with respect to that building. In this case, the rent is fixed by the court at the request of the parties.
土地及びその上に存する建物が同一の所有者に属する場合において、その土地又は建物につき抵当権が設定され、その実行により所有者を異にするに至ったときは、その建物について、地上権が設定されたものとみなす。この場合において、地代は、当事者の請求により、裁判所が定める。
Read this with the articles around it
superficies
地上権
A right to use another person's land in order to own buildings or other structures, or trees or bamboo, on it (Civil Code, Article 265). It can be entered in the land register (Real Property Registration Act, Article 3, item (ii)). The Act on Land and Building Leases counts a superficies held in order to own a building as a land leasehold right (借地権), just as it counts a lease of land for that purpose (Article 2, item (i)).
Written for this site using Civil Code, Art. 265, Real Property Registration Act, Art. 3 and Act on Land and Building Leases, Art. 2 as a reference.