Please help me identify this show about a time-travel romance similar to The Girl who Leapt Through Time.
The music video you mistook for an anime is called Owari no Sekai Kara, written by Maeda Jun and sung by Yanagi Nagi. Here is a page with the lyrics.