In the ritsuryo system, those who were in a direct line and in the up to six degree of kinship were the Imperial family, but there is no such restriction after the Meiji period.
律令制のもとでは直系で六親等までが皇族であったが、明治以降そのような制限は設けられていない。