If two buildings are owned by different owners and there is an open lot between them, each owner may install a fence on the boundary, sharing the expenses with the other owner.
二棟の建物がその所有者を異にし、かつ、その間に空地があるときは、各所有者は、他の所有者と共同の費用で、その境界に囲障を設けることができる。
If no agreement is reached between the parties, the fence referred to in the preceding paragraph must be a wooden fence, a bamboo fence or a fence made of similar material and must be two meters high.
当事者間に協議が調わないときは、前項の囲障は、板塀又は竹垣その他これらに類する材料のものであって、かつ、高さ二メートルのものでなければならない。
Read this with the articles around it