Q.lemon tree dropping leaves
Our lemon tree has been in the ground for at least 40 years. It’s roots are in dirt – at least two feet from the house and 12 ft along the house. 25 years ago decking was installed leaving about 2 foot round space around it. Decking slats allow water and liquid fertilizer to get to roots.
There is also a small ‘door’ on the deck that can be lifted out for more access through pipe installed there – about 5 Ft from tree.
In both places there is visible soil.
We’ve had a lot of rain this year (SF Bay area).
The leaves are very sparse now. It’s still producing some lemons, but looks sickly. All help appreciated.

Certified GKH Gardening Expert
The first thing would be a good hard maintenance pruning. This will help restore some of the tree's vigor, as it still has quite a bit of potential life left. This article will help with that:
https://www.gardeningknowhow.com/edible/fruits/lemons/lemon-tree-pruning.htm
https://www.gardeningknowhow.com/edible/fruits/lemons/lemon-tree-leaf-drop.htm
After this, I would look into maybe checking your feeding pipe. when you pour feed with water, or pelletized feed, does it drain down quickly? If not it may need to be unclogged or replaced.