Sakusei Byoutou, also known as "Idiopathic Hypersomnia" or "IH", is a rare neurological disorder that affects a person's ability to regulate their sleep-wake cycle. The anime you're referring to is likely a Japanese animated series that explores the life of a high school girl who suffers from this condition.