There are probably a lot of things that can cause this.
I did have a similar pain that caused by the ball of my toe being undersupported by my shimano spd shoes, a set of specialized (brand, not literal) shoe wedges fixed me right up. If you feel like the inside (or outside) of your foot is sitting too low in your shoes this could be something to look into.