Customs which are not against public policy have the same effect as laws, to the extent that they are authorized by the provisions of laws and regulations, or they relate to matters not provided for in laws and regulations.
公の秩序又は善良の風俗に反しない慣習は、法令の規定により認められたもの又は法令に規定されていない事項に関するものに限り、法律と同一の効力を有する。
public policy
公の秩序又は善良の風俗
Public order and good morals, called 公序 (public policy) for short in the heading of Article 42 of the Act on General Rules for Application of Laws. The law refuses effect to what goes against them: a juridical act (法律行為), such as a contract, that goes against them is void (Civil Code, Article 90); a custom that does not go against them has the same effect as a law only where laws and regulations authorise it or it concerns a matter they do not provide for (Act on General Rules for Application of Laws, Article 3); and where that Act makes a foreign law govern, a provision of that law is not applied if applying it would go against them (Article 42).
Written for this site using Civil Code, Art. 90 and Act on General Rules for Application of Laws, Arts. 3, 42 as a reference.