SAN FRANCISCO — It has been a confusing season for America’s working men, as the conversation around workplace harassment reveals it to be a nationwide epidemic — and many men wonder if they were involved or ignored the signs.

Consider Owen Cunningham, a director at San Francisco’s KBM-Hogue design firm. When he looks toward the annual corporate holiday party these days, he shudders.

“Cancel the holiday party,” said Mr. Cunningham, 37, adding that he means just until it has been figured out how men and women should interact. He said he considered himself progressive on gender issues but was thinking more about the behavior he had seen in the past: “What flirting is O.K.? Was I ever taking advantage of any meager power I had? You start to wonder.”

Across white-collar workplaces, rank-and-file men are awakening to the prevalence of sexual harassment and assault after high-profile cases including those of Harvey Weinstein, Mark Halperin and Louis C.K. Those cases helped inspire the #MeToo campaign, in which thousands of women have posted about their own harassment experiences on social media. Now many men who like to think they treat women as equals in the workplace are starting to look back at their own behavior and are wondering if they, too, have overstepped at work — in overt or subtle ways that would get them included in a #MeToo post.