Contrastive Domain Generalization via Logit Attribution Matching