It's not from anime nor manga. It's from doujin game series Touhou Project, which is mainly shmup type games. It's one of big 3 in nowday doujin society(along with Type-Moon and When-They-Cry). Characters in the series are nearly all girls, thus making Touhou a land of yuri.
The two girls you saw in pictures are Marisa Kirisame and Alice Margatroid. The pairing is normally called MariAli or MAlice.
For more details, you better google "Touhou Wiki," it's good source of info., but my warning: characteristics in Touhou are largely fan-made, thus nothing is really certain and some info. there may be out-dated.