official
宦 centers on a person serving in an official capacity, especially within a court or government setting. The core idea is an official role or position.
宦 combines 宀 (roof, building) with 臣 (retainer, minister), suggesting an official serving under a roof, i.e., in a court or government office. The exact historical development is uncertain, but the component combination is consistent with the meaning.
Under a roof 宀, a retainer 臣 works as an official. Picture a minister in a palace hall carrying out duties.
For カン, imagine an official carrying a can of documents: can -> カン, and the official 宦 works under the roof with that can.