Wasn't it the man trapped in the girl's home, surrounded by huge sand dunes? If so, then surely, Woman of/in the Dunes ,original title Suna no Onna, directed by Hiroshi Teshigahara, 1964. Excellent, like so many from Japan! 