Here's why:
* It modifies a noun, describing its duration: "long-term investment"
* It can be used predicatively: "The project is long-term."
While it might seem like a noun because it refers to a concept, it functions grammatically as an adjective within sentences.