I have always been engaged in sports as a sideline and have a good understanding of pain.
First of all:
You can judge whether it is muscle pain or bone pain by your own pain.
If it's muscle pain: then recall whether your right leg has exercised violently recently, probably because of strenuous exercise.
If it is bone pain: it is better to go to the hospital for examination.
Secondly:
You're right. Sitting for too long will hurt your legs.
Long-term compression of the leg nerves, leading to poor blood circulation, is normal. Failure to provide enough blood oxygen and energy will cause thigh pain. As long as you exercise regularly, walk more, do some leg stretching exercises, and rub your legs in leg press leg press, you can relieve the pain.
If the pain can't be relieved for a long time, please go to the hospital for diagnosis and confirm your physical condition in time to avoid prolonged illness.
Wish you good health.