The 30-40' is much more than "in the general vicinity"... I am a pump guy with roughly 20 years experience with customers' well pumps and water treatment equipment.
The pressure tank is used to provide the power to move water when the pump is off. It also works as a water hammer arrestor but that is not its purpose. Water hammer is not the problem in having a switch away from the pressure tank
With the switch 30-40' away from the pressure tank, the switch is very likely to slap from off to on and off to on again and again repeatedly until the water use stops, regardless of the size of the pipe for this/the last 30-40'. That KILLS pump motors and spins the electric meter.
Steve mentioned that on off problem before I replied the first time. The only way to prevent that slapping on off is to spread the differential on the switch. I.E. 30-65 etc. The result will be a very noticeable fluctuation of pressure whenever water is used. The size of the pipe or pressure tank doesn't matter. To prevent the fluctuation, use a CSV (Cycle Stop Valve) which gives you many fewer starts on the motor and constant water pressure while using a very small pressure tank.
Also, the switch will have to be set higher than normal the farther away it is from the pressure tank and fixtures because of pressure losses in the pipe and its fittings; albeit the loss will be small.
So run the same ID pipe (probably 1") and put the switch at/on the presssure tank and set the cut-in and out at 30/50 etc. with 1-2 psi less air pressure in the tank than the cut-in setting of the switch with no water in the tank. I.E 30/50 gets 29-28 psi air pressure with no water in the tank. That is a proper installation as per the pump, tank and switch manufacturers. Plus it's the only way to make things work correctly.
If you are going to bury this line, I suggest one piece of 160 or 200 psi rated PE (pollyethylene) IPS plastic pipe using two insert fittings with two opposed SS hose clamps each fitting properly torqued, not over tightened (the main cause of hose clamp failure). No stones/rocks immediately under/over it.
As to the gauge of power cable... 12/2 or 3 w/grd is usually good for 230v up to 600' from the circuit breaker panel to the =< 1.0 hp pump. To check that out:
Please select the company you are looking for and the 4" submersible section of installation IIRC.
Gary
Quality Water Associates