I'd say elemental weakness systems can be fun as long as they lead to fun gameplay. The SMT Persona series does this pretty well by making hitting a weakness cause knock-down and grants the attacker an extra turn. This creates a sort of mini-game where the player isn't concerned with the actual damage numbers and is instead playing a game where they try to take as many turns as they can to knock everything down to use an All-Out Attack (or negotiate with the target in games like P5). Dealing damage is still important so it's not like extra damage from hitting a weakness isn't appreciated, but the added mechanics can be fun to play with and can make mob encounters more fun.
I wouldn't worry too much about logic when designing them, but it can be used as a fun way to do world-building while helping the player remember them. Something like the fire elemental spirit and the water elemental spirit hating each other and so magic using their power is at a mutual disadvantage. You can even make some folktale about how they came to hate each other, and if the player party meets the spirits during the plot it can help tie in the gameplay with the lore. Using the 4 classical elements is also unnecessary, though a ton of fantasy games still lean in hard on that.
A triangle system can also be nice since it at least keeps some balance between elements and is usually easy to remember. I think the most important part is definitely what happens after you hit the weakness though. It'll be boring if you just one-shot everything by using the correct attacks, probably more so if you just deal a bit of extra damage. Something needs to happen to make the player care and actually want to engage with the system.
I wouldn't worry too much about logic when designing them, but it can be used as a fun way to do world-building while helping the player remember them. Something like the fire elemental spirit and the water elemental spirit hating each other and so magic using their power is at a mutual disadvantage. You can even make some folktale about how they came to hate each other, and if the player party meets the spirits during the plot it can help tie in the gameplay with the lore. Using the 4 classical elements is also unnecessary, though a ton of fantasy games still lean in hard on that.
A triangle system can also be nice since it at least keeps some balance between elements and is usually easy to remember. I think the most important part is definitely what happens after you hit the weakness though. It'll be boring if you just one-shot everything by using the correct attacks, probably more so if you just deal a bit of extra damage. Something needs to happen to make the player care and actually want to engage with the system.