the is an agency of the government of japan in charge of state matters concerning the imperial family, and also keeping of the privy seal and state seal of japan. from around the 8th century ad up to the second world war, it was named the .