Inheritance when a foreigner dies

Article 36 of Japan's "General Rules for the Application of Laws" stipulates that "inheritance shall be governed by the law of the decedent's home country."
Therefore, when a foreigner living in Japan dies, the law of the foreigner's home country (country of nationality) will be applied to the inheritance.
Therefore, even if the heirs are only a Japanese spouse and children of Japanese nationality, if the decedent is of foreign nationality, in principle, the law of the decedent's home country will be applied.