'〜ために': Conscious Purpose (In order to...)
[Verb Volitional Dictionary Form] ために / [Noun] のために (Conscious purpose)
'〜ために' (tame ni) expresses a deliberate, conscious purpose ('in order to / for the sake of'). The verb preceding 'ために' must be a VOLITIONAL verb (an action that can be controlled by conscious human will, such as 買う, 勉強する, 行く). Both clauses share the same subject. It also attaches to nouns: '家族のために' (for the sake of my family).
⚠ Note: Ironclad rule: 'ために' must precede a volitional verb under human control. If the goal is a non-volitional verb (e.g., なる, できる, 見える, わかる), you CANNOT use 'ために'—you must use 'ように'.
日本へ留学するために、日本語を勉強しています。
I am studying Japanese in order to study abroad in Japan.
健康のために、毎朝ジョギングをしています。
I jog every morning for the sake of my health.