welcome to healthcaremagic
it may be both cause bacterial infection or hereditary.
bacterial infection can occur between the natural nail plate and the nail bed, and/or between an artificial nail coating and the natural nail plate. The after effects of this infection will cause the nail plate to darken and soften underneath an artificial coating.
IN some cases it may be hereditary as your parent has same
For confirmation contact your physicians