Yojimbo isn’t based of any thing. It’s an original movie that was influenced by american westerns and went on to influence the world. The movie first came out in 1961.
Cardcaptor Sakura: The Movie, comes from the anime series by the same name, except the movie part. That series is based on the manga, again by the same name, written and illustrated by Clamp. If you don’t know who Clamp is, please stop reading this article and Google them, if that doesn’t ring a few bells. Then read or watch at least one of there works, trust me there is a whole library to choose from. Cliff note about them, they are an all female mangaka group that have been producing original manga since 1989. Cardcaptor Sakura is just one one their many many works, that came out in 1996. The anime came out in 1998 and the movie came out in 1999.