Getting an X-ray on your hands and feet or undergoing phototherapy or light therapy can increase your risk of developing black lines on your nails. Nail melanoma (also known as subungual melanoma) is ...