The national government and local governments must support the custodians of children so that children are raised in good mental and physical health in their families; provided, however, that, taking into consideration the mental and physical condition of children and their custodians, the environment in which these persons are placed and other circumstances, they must take necessary measures so that children continue to be raised in a child-rearing environment similar to that of a family in the case where it is difficult or inappropriate to raise children in their families, and so that children are raised in as good a family-like environment as possible in the case where it is not appropriate to raise children in their families or in that child-rearing environment.
Read this with the articles around it