どうも

どうも
adverb, interjection
thanks, hi; somehow; very
informaldescriptiveexpression
1. thanks; hi, hello
Used alone as a casual all-purpose greeting or expression of thanks. Which one it means depends entirely on the situation.
どうも、(ひさ)しぶり
Hey, long time no see!
どうも、(たす)かりました
Thanks, that helped.
Thank you for waiting.
、どうも。
Oh, thanks.
Thank you for everything.
2. somehow, for some reason
Indicates uncertainty about a reason.
I somehow don't feel well.
どうもうまくいかない
Somehow it's not going well.
It seems like he's lying for some reason.
Somehow I can't believe it.
どうも()になる
It bothers me for some reason.
3. very, quite
Used to emphasize an apology or greeting.
Thank you very much.
どうもすみません
I'm very sorry.
I'm very sorry for the rudeness.
Thank you very much for your kindness.
Thank you very much for your hard work.

どうも is a versatile word with three distinct functions: casual greeting/thanks, emphasis, and expressing vague uncertainty.

AS GREETING/THANKS (casual):
Used alone, どうも serves as a casual all-purpose greeting or thanks. It can mean "hi," "thanks," or "sorry" depending on context.

As emphasizer

Strengthens apologies, thanks, and greetings:

As uncertainty marker

Expresses a vague feeling or impression — "somehow," "for some reason":

With a negative predicate

どうも〜ない is a very common frame meaning "just can't (quite)" — the speaker is trying but not succeeding, and cannot say why:

This is the same uncertainty sense above, not a separate meaning.

Register

どうも alone as a greeting is casual. Combined with ありがとうございます or すみません, it is appropriate in polite contexts.