> 心のスキマを埋める **には** ―恋がいちばん！

The context is the following: The girl is explaining to the guy that in order
to free the victim from a "ghost", he needs to fill their heart "void", so
shes saying that "The best way to do it is with love".

I've read "all" the uses of particle に and can't figure out what is it doing
there, "心のスキマを埋める" don't seems to me like the "location of existence" of
something, nor the "direction of the action" (there's not even an action in
that phrase right??, is not the "object of the verb" either, etc etc...

I know that the は particle here is doing like a "contrast" nuance, saying
something like "as compared to other methods", just not sure about the に
particle.

Thank you beforehand, and sorry if its a hard to explain question.
CC BY-SA 4.0
2018-09-03T16:29:06.717
61303
2018-09-25T13:43:22.660
31121
question
particle-に
Whats the に doing in the next sentence?
This usage is to indicate purpose, it is short for "~ためには". In context "In
order to fill the void of the victim's heart, love is the best!"  
「心のスキマを埋めるためには―恋がいちばん！」

[Read more here](https://www.imabi.net/inorderto.htm)
CC BY-SA 4.0
2018-09-03T17:29:37.477
61305
2018-09-03T17:57:11.977
2018-09-03T17:57:11.977
31148
31148
61303
answer
According to "A Dictionary of Intermediate Japanese Grammar", page 289:  
には: a conjunction/compound particle to indicate a purpose for doing something.  
It translates to "to", "in order to", "for the purpose of"

Examples:  
豊かな生活を送りには健康が第一だ。  
In order to lead a rich life, health should be your primary concern.

ハイヒールはハイキングには不向きだ。  
High-heeled shoes are unsuitable for hiking.
CC BY-SA 4.0
2018-09-25T13:43:22.660
61742
2018-09-25T13:43:22.660
18157
61303
answer