Even if a foreign national does not have the capacity to sue or be sued pursuant to the laws of their home country, they are deemed to have the capacity to sue or be sued if they have that capacity pursuant to Japanese law.
外国人は、その本国法によれば訴訟能力を有しない場合であっても、日本法によれば訴訟能力を有すべきときは、訴訟能力者とみなす。
Read this with the articles around it