Are you planning on joining us out here in the Free State of New Hampshire?
The section of California law in question is Penal Code 12026.1:
===========
12026.1. (a) Section 12025 shall not be construed to prohibit any
citizen of the United States over the age of 18 years who resides or
is temporarily within this state, and who is not within the excepted
classes prescribed by Section 12021 or 12021.1 of this code or
Section 8100 or 8103 of the Welfare and Institutions Code, from
transporting or carrying any pistol, revolver, or other firearm
capable of being concealed upon the person, provided that the
following applies to the firearm:
(1) The firearm is within a motor vehicle and it is locked in the
vehicle's trunk or in a locked container in the vehicle other than
the utility or glove compartment.
(2) The firearm is carried by the person directly to or from any
motor vehicle for any lawful purpose and, while carrying the firearm,
the firearm is contained within a locked container.
(b) The provisions of this section do not prohibit or limit the
otherwise lawful carrying or transportation of any pistol, revolver,
or other firearm capable of being concealed upon the person in
accordance with this chapter.
(c) As used in this section, "locked container" means a secure
container which is fully enclosed and locked by a padlock, key lock,
combination lock, or similar locking device.
=========
You might also look for statutes relating to California's "safe storage" requirements, but your plan sounds like it would meet that criteria. I'm not a lawyer, so this isn't legal advice.