末期まつご養子ようし
matsu goyōshi

Noun

1. deathbed adoption of a successor (to prevent extinction of the family line); person adopted by someone on his deathbed