The legal capacity of a person to act is governed by their national law.
人の行為能力は、その本国法によって定める。
Notwithstanding the provisions of the preceding paragraph, when a person who has performed a juridical act is subject to the limitation of their capacity to act under their national law but has full capacity to act under the law of the place where the act is done (lex loci actus), that person is deemed to have full capacity to act, only in cases where all the parties were present in a place governed by the same law at the time of the juridical act.
法律行為をした者がその本国法によれば行為能力の制限を受けた者となるときであっても行為地法によれば行為能力者となるべきときは、当該法律行為の当時そのすべての当事者が法を同じくする地に在った場合に限り、当該法律行為をした者は、前項の規定にかかわらず、行為能力者とみなす。
The preceding paragraph does not apply to a juridical act to be governed by the provisions of family law or inheritance law, or a juridical act relating to real property situated in a place governed by a different law from the law of the place where the act was done.
前項の規定は、親族法又は相続法の規定によるべき法律行為及び行為地と法を異にする地に在る不動産に関する法律行為については、適用しない。
Read this with the articles around it
national law
本国法
The law of the country whose nationality a person has. The Act on General Rules for Application of Laws makes it the law that governs, among other things, a person's capacity to act (Article 4, paragraph (1)), the formation of a marriage, for each party (Article 24, paragraph (1)), and inheritance, by the national law of the person who died (Article 36). Under that Act, for a person with two or more nationalities it is the law of the one of those countries where the person has their habitual residence (常居所), or, if they have it in none of them, of the one most closely connected with them; but if one of the nationalities is Japanese, it is Japanese law (Article 38, paragraph (1)). Under that Act, for a person with no nationality the law of their habitual residence is applied instead, except under the rules on the effects of a marriage, which also govern matrimonial property and divorce, and on the legal relationship between parents and child (Articles 25, 26(1), 27 and 32; Article 38, paragraph (2)). Where a person's national law would itself have Japanese law apply, Japanese law applies, except where the national law is applied under those same two rules (Article 41).
Written for this site using Act on General Rules for Application of Laws, Arts. 4, 24, 25, 26, 27, 32, 36, 38, 41 as a reference.