[verb (dict form)] + にしたがって / にしたがい [noun] + にしたがって / にしたがい
The grammar structure にしたがって expresses two main ideas: (1) "as ~ happens" – describing how one thing changes in proportion to or along with another change, and (2) "in accordance with / following" – describing acting according to rules, instructions, or someone's guidance. It comes from the verb したがう従う (したがう), meaning "to follow" or "to obey."
When attached to a verb, にしたがって expresses that as one thing progresses or changes, another thing naturally changes along with it. This usage emphasizes a gradual, correlated shift.
This usage is similar to ~につれて and ~にともなって, though にしたがって often implies a natural or expected progression.
When attached to a noun (such as rules, instructions, or a person's guidance), にしたがって means "following" or "in accordance with."
In formal writing, にしたがい is used instead of にしたがって. The meaning is the same, but the tone is more literary.