Charles M. Schulz Sonoma County Airport: The sensible choice if you fly: rent a car at the airport and drive north via US-101/CA-20 or the coast route. Allow roughly 3 hours in good conditions; the last stretch is slow, dark two-lane road rather than freeway. There is no useful airport-to-Fort-Bragg public-transfer shortcut, so budget a rental-car day rate plus fuel rather than an expensive one-way rideshare.
San Francisco International Airport: Unless you are deliberately travelling car-free, rent a car and allow about 4 hours, more on a Friday or in rain. Public transport exists but is an endurance exercise: published bus itineraries start around $64 and take just over 6 hours. Do not assume a Bay Area airport makes Fort Bragg an easy side trip.
Martinez Amtrak station: The workable car-free rail connection is Amtrak/Thruway to Willits, then a short walk to the CA-1/CA-20 junction for Mendocino Transit Authority service into Fort Bragg. The Thruway fare averages about $30 one-way before the MTA leg, but connections are sparse—MTA has only two intercity trips each way daily—so treat this as a 4–5-hour, timetable-led journey, not a spontaneous transfer.
Getting to Fort Bragg — North Carolina: Flights, Airports & Transfers | Byline