To show respect or deference (to obey respectfully or humble oneself); also to sit up straight or adopt a formal posture. Commonly heard in the polite phrase かしこまりました.
「お願いします」——「かしこまりました」、と店員が丁寧に答えた。
"Please." — "Certainly," the clerk replied politely.
お客様の前では、かしこまった態度で接する必要がある。
In front of customers, you need to behave in a respectful/formal manner.
訪問先で緊張して、思わず背筋を伸ばしてかしこまってしまった。
I got nervous at the place I visited and instinctively sat up straight in a formal way.