Which word does the underlined clause modify?

My grandfather wears a baseball cap whenever he leaves the house.

A.wears
B.baseball
C.grandfather
D.cap