# Japan

estate_holder_male_japanese = {
	type = character
	gender = male
	special = domicile
    domicile_type = japanese_manor
	priority = 10
	governments = { japan_feudal_government japan_administrative_government }

	flavourization_rules = {
		top_liege = no
	}
}
estate_holder_female_japanese = {
	type = character
	gender = female
	special = domicile
    domicile_type = japanese_manor
	priority = 10
	governments = { japan_feudal_government japan_administrative_government }

	flavourization_rules = {
		top_liege = no
	}
}

baron_administrative_male_japanese = {
	type = character
	gender = male
	special = holder
	tier = barony
	priority = 28
	governments = { japan_administrative_government }
	heritages = { heritage_japonic }
	
	flavourization_rules = {
		top_liege = no
		spouse_takes_title = no
	}
}
baron_administrative_female_japanese = {
	type = character
	gender = female
	special = holder
	tier = barony
	priority = 28
	governments = { japan_administrative_government }
	heritages = { heritage_japonic }
	
	flavourization_rules = {
		top_liege = no
		spouse_takes_title = no
	}
}
barony_administrative_japanese = {
	type = title
	tier = barony
	priority = 51
	governments = { japan_administrative_government }
	heritages = { heritage_japonic }
	flavourization_rules = {
		top_liege = no
	}
}
barony_theocracy_japanese_buddhism_religion = {
	type = title
	tier = barony
	priority = 61
	holding = church_holding
	faiths = { pundarika dhyana sukhavati }
	heritages = { heritage_japonic }
	flavourization_rules = { 
		top_liege = no
	}
}
barony_theocracy_shintoism_religion = {
	type = title
	tier = barony
	priority = 61
	holding = church_holding
	faiths = { shinto shugendo }
	heritages = { heritage_japonic }
	flavourization_rules = { 
		top_liege = no
	}
}


spouse_administrative_female_japanese = { # Lady
	type = character
	gender = female
	special = holder
	priority = 125
	governments = { japan_feudal_government japan_administrative_government }
	heritages = { heritage_japonic }
}
count_administrative_male_japanese = { # Kokushi / 国司
	type = character
	gender = male
	special = holder
	tier = county
	priority = 28
	governments = { japan_administrative_government }
	heritages = { heritage_japonic }
	
	flavourization_rules = {
		top_liege = no
		spouse_takes_title = no
	}
}
count_administrative_female_japanese = { # Kokushi / 国司
	type = character
	gender = female
	special = holder
	tier = county
	priority = 28
	governments = { japan_administrative_government }
	heritages = { heritage_japonic }
	
	flavourization_rules = {
		top_liege = no
		spouse_takes_title = no
	}
}
county_administrative_japanese = { # Kuni / 国
	type = title
	tier = county
	priority = 51
	governments = { japan_administrative_government }
	heritages = { heritage_japonic }
	flavourization_rules = {
		top_liege = no
	}
}
duke_administrative_male_japanese = {
	type = character
	gender = male
	special = holder
	tier = duchy
	priority = 50
	governments = { japan_administrative_government }
	heritages = { heritage_japonic }
	
	flavourization_rules = {
		top_liege = no
		spouse_takes_title = no
	}
}
duke_administrative_female_japanese = {
	type = character
	gender = female
	special = holder
	tier = duchy
	priority = 50
	governments = { japan_administrative_government }
	heritages = { heritage_japonic }
	
	flavourization_rules = {
		top_liege = no
		spouse_takes_title = no
	}
}
duchy_administrative_japanese = {
	type = title
	tier = duchy
	priority = 81
	governments = { japan_administrative_government }
	heritages = { heritage_japonic }
	flavourization_rules = {
		top_liege = no
	}
}
king_administrative_male_japanese = {
	type = character
	gender = male
	special = holder
	tier = kingdom
	priority = 80
	governments = { japan_administrative_government }
	heritages = { heritage_japonic }
	
	flavourization_rules = {
		top_liege = no
		spouse_takes_title = no
	}
}
king_administrative_female_japanese = {
	type = character
	gender = female
	special = holder
	tier = kingdom
	priority = 80
	governments = { japan_administrative_government }
	heritages = { heritage_japonic }
	
	flavourization_rules = {
		top_liege = no
		spouse_takes_title = no
	}
}
kingdom_administrative_japanese = {
	type = title
	tier = kingdom
	priority = 81
	governments = { japan_administrative_government }
	heritages = { heritage_japonic }
	flavourization_rules = {
		top_liege = no
	}
}

### SORYO
count_feudal_male_japanese = { # Sōryō / 惣領
	type = character
	gender = male
	special = holder
	tier = county
	priority = 28
	governments = { japan_feudal_government }
	heritages = { heritage_japonic }
	
	flavourization_rules = {
		top_liege = no
		spouse_takes_title = yes
	}
}
count_feudal_female_japanese = { # Sōryō / 惣領
	type = character
	gender = female
	special = holder
	tier = county
	priority = 28
	governments = { japan_feudal_government }
	heritages = { heritage_japonic }
	
	flavourization_rules = {
		top_liege = no
		spouse_takes_title = yes
	}
}
county_feudal_japanese = { # Bushidan / 武士団
	type = title
	tier = county
	priority = 51
	governments = { japan_feudal_government }
	heritages = { heritage_japonic }
	flavourization_rules = {
		top_liege = no
	}
}
duke_feudal_male_japanese = { # Tōryo / 棟梁
	type = character
	gender = male
	special = holder
	tier = duchy
	priority = 35
	governments = { japan_feudal_government }
	heritages = { heritage_japonic }
	
	flavourization_rules = {
		top_liege = no
		spouse_takes_title = no
	}
}
duke_feudal_female_japanese = { # Tōryo / 棟梁
	type = character
	gender = female
	special = holder
	tier = duchy
	priority = 35
	governments = { japan_feudal_government }
	heritages = { heritage_japonic }
	
	flavourization_rules = {
		top_liege = no
		spouse_takes_title = no
	}
}
duchy_feudal_japanese = { # Ichizoku / 一族
	type = title
	tier = duchy
	priority = 81
	governments = { japan_feudal_government }
	heritages = { heritage_japonic }
	flavourization_rules = {
		top_liege = no
	}
}
king_feudal_male_japanese = {
	type = character
	gender = male
	special = holder
	tier = kingdom
	priority = 80
	governments = { japan_feudal_government }
	heritages = { heritage_japonic }
	
	flavourization_rules = {
		top_liege = no
		spouse_takes_title = no
	}
}
king_feudal_female_japanese = {
	type = character
	gender = female
	special = holder
	tier = kingdom
	priority = 80
	governments = { japan_feudal_government }
	heritages = { heritage_japonic }
	
	flavourization_rules = {
		top_liege = no
		spouse_takes_title = no
	}
}
kingdom_feudal_japanese = {
	type = title
	tier = kingdom
	priority = 81
	governments = { japan_feudal_government }
	heritages = { heritage_japonic }
	flavourization_rules = {
		top_liege = no
	}
}

##### EMPIRE OF JAPAN

### KAMPAKU

emperor_administrative_male_japanese = { # Kampaku / 関白
	type = character
	gender = male
	special = holder
	tier = empire
	priority = 1000
	titles = { e_japan }
	governments = { japan_administrative_government }
	flavourization_rules = {
		only_holder = yes
	}
}
emperor_administrative_female_japanese = { # Kampaku / 関白
	type = character
	special = holder
	gender = female
	tier = empire
	priority = 1000
	titles = { e_japan }
	governments = { japan_administrative_government }
	flavourization_rules = {
		only_holder = yes
	}
}

### DAIJO DAIJIN

emperor_daijo_daijin_male_japanese_feudal = { # Daijō-daijin / 太政大臣
	type = character
	special = holder
	gender = male
	tier = empire
	priority = 500
	titles = { e_japan }
	heritages = { heritage_japonic }
	governments = { japan_feudal_government }
	flavourization_rules = { 
		only_holder = yes
	}
}
emperor_daijo_daijin_female_japanese_feudal = { # Daijō-daijin / 太政大臣
	type = character
	special = holder
	gender = female
	tier = empire
	priority = 500
	titles = { e_japan }
	heritages = { heritage_japonic }
	governments = { japan_feudal_government }
	flavourization_rules = { 
		only_holder = yes
	}
}
empire_administration_japanese = { # Administration
	type = title
	special = holder
	tier = empire
	priority = 500
	titles = { e_japan }
	heritages = { heritage_japonic }
	governments = { japan_feudal_government }
}

### SHOGUN

emperor_shogun_male_japanese = { # Shogun / 将軍
	type = character
	special = holder
	gender = male
	tier = empire
	priority = 1001
	titles = { e_japan }
	heritages = { heritage_japonic }
	flag = shogun_flag
	flavourization_rules = { 
		only_holder = yes
	}
}
emperor_shogun_female_japanese = { # Shogun / 将軍
	type = character
	special = holder
	gender = female
	tier = empire
	priority = 1001
	titles = { e_japan }
	heritages = { heritage_japonic }
	flag = shogun_flag
	flavourization_rules = { 
		only_holder = yes
	}
}
empire_shogunate_japanese = { # Shogunate / 幕府
	type = title
	tier = empire
	priority = 1500
	titles = { e_japan }
	heritages = { heritage_japonic }
	flag = shogun_flag
}

### JOKO

emperor_joko_male_japanese = { # Jōkō / 上皇
	type = character
	special = holder
	gender = male
	tier = empire
	priority = 1001
	titles = { e_japan }
	heritages = { heritage_japonic }
	flag = joko_flag
	flavourization_rules = { 
		only_holder = yes
	}
}
emperor_joko_female_japanese = { # Jōkō / 上皇
	type = character
	special = holder
	gender = female
	tier = empire
	priority = 1001
	titles = { e_japan }
	heritages = { heritage_japonic }
	flag = joko_flag
	flavourization_rules = { 
		only_holder = yes
	}
}

estate_holder_joko_male_japanese = { # Jōkō / 上皇
	type = character
	gender = male
	special = domicile
    domicile_type = japanese_manor
	priority = 20
	governments = { japan_feudal_government japan_administrative_government }
	flag = joko_flag

	flavourization_rules = {
		top_liege = no
	}
}
estate_holder_joko_female_japanese = { # Jōkō / 上皇
	type = character
	gender = female
	special = domicile
    domicile_type = japanese_manor
	priority = 20
	governments = { japan_feudal_government japan_administrative_government }
	flag = joko_flag

	flavourization_rules = {
		top_liege = no
	}
}

##### CHRYSANTHEMUM THRONE / ROYALTY

### TENNO

emperor_tenno_male_japanese_flag = { # Ten'nō / 天皇
	type = character
	special = holder
	gender = male
	tier = empire
	priority = 2000
	heritages = { heritage_japonic }
	flag = ceremonial_liege_flag
}
emperor_tenno_female_japanese_flag = { # Ten'nō / 天皇
	type = character
	special = holder
	gender = female
	tier = empire
	priority = 2000
	heritages = { heritage_japonic }
	flag = ceremonial_liege_flag
}
emperor_tenno_male_japanese = { # Ten'nō / 天皇
	type = character
	special = holder
	gender = male
	tier = empire
	priority = 2000
	titles = { k_chrysanthemum_throne }
	heritages = { heritage_japonic }
}
emperor_tenno_female_japanese = { # Ten'nō / 天皇
	type = character
	special = holder
	gender = female
	tier = empire
	priority = 2000
	titles = { k_chrysanthemum_throne }
	heritages = { heritage_japonic }
}
empire_tenno_japanese = { # Empire
	type = title
	tier = empire
	special = holder
	priority = 1501
	flag = ceremonial_liege_flag
}

king_tenno_male_japanese = { # Ten'nō / 天皇
	type = character
	special = holder
	tier = kingdom
	priority = 1500
	titles = { k_chrysanthemum_throne }
	flavourization_rules = { 
		only_holder = yes
	}
}
king_tenno_female_japanese = { # Ten'nō / 天皇
	type = character
	special = holder
	gender = female
	tier = kingdom
	priority = 1500
	titles = { k_chrysanthemum_throne }
	flavourization_rules = { 
		only_holder = yes
	}
}
queen_kogo_female_japanese = { # Kōgō / 皇后
	type = character
	special = holder
	gender = female
	tier = kingdom
	priority = 501
	titles = { k_chrysanthemum_throne }
	flavourization_rules = { 
		spouse_takes_title = yes
	}
}
prince_tenno_male_japanese = { # Shin'nō / 親王
	type = character
	gender = male
	special = ruler_child
	priority = 40
	titles = { k_chrysanthemum_throne }
	flavourization_rules = { 
		top_liege = no
	}
}
princess_tenno_female_japanese = { # Naishin'nō / 内親王
	type = character
	gender = female
	special = ruler_child
	priority = 40
	titles = { k_chrysanthemum_throne }
	flavourization_rules = { 
		top_liege = no
	}
}
tenno_empress_dowager = { # Kōtaigō / 皇太后
	type = character
	gender = female
	special = queen_mother
	titles = { k_chrysanthemum_throne }
	priority = 75
	flavourization_rules = { 
		top_liege = no
	}
}

# Fallback Japan

count_male_japanese = { # Daimyō / 大名
	type = character
	gender = male
	special = holder
	tier = county
	priority = 25
	governments = { feudal_government clan_government tribal_government }
	name_lists = { name_list_yamato }
	flavourization_rules = { 
		spouse_takes_title = no	
	}
}
count_female_japanese = { # Daimyō / 大名
	type = character
	gender = female
	special = holder
	tier = county
	priority = 25
	governments = { feudal_government clan_government tribal_government }
	name_lists = { name_list_yamato }
	flavourization_rules = { 
		spouse_takes_title = no	
	}
}
duke_male_japanese = { # Grand Daimyō / 大大名
	type = character
	gender = male
	special = holder
	tier = duchy
	priority = 30
	governments = { feudal_government clan_government tribal_government }
	name_lists = { name_list_yamato }
	flavourization_rules = { 
		spouse_takes_title = no	
	}
}
duke_female_japanese = { # Grand Daimyō / 大大名
	type = character
	gender = female
	special = holder
	tier = duchy
	priority = 30
	governments = { feudal_government clan_government tribal_government }
	name_lists = { name_list_yamato }
	flavourization_rules = { 
		spouse_takes_title = no	
	}
}
king_male_japanese = { # Tandai / 探題
	type = character
	special = holder
	tier = kingdom
	priority = 47
	name_lists = { name_list_yamato }
	flavourization_rules = { 
		spouse_takes_title = no	
	}
}
king_female_japanese = { # Tandai / 探題
	type = character
	special = holder
	gender = female
	tier = kingdom
	priority = 47
	name_lists = { name_list_yamato }
	flavourization_rules = { 
		spouse_takes_title = no	
	}
}

### EMISHI

baron_male_emishi = {
	type = character
	gender = male
	special = holder
	tier = barony
	priority = 28
	name_lists = { name_list_emishi }
	flavourization_rules = {
		top_liege = no
		spouse_takes_title = no
	}
}
baron_female_emishi = {
	type = character
	gender = female
	special = holder
	tier = barony
	priority = 28
	name_lists = { name_list_emishi }
	flavourization_rules = {
		top_liege = no
		spouse_takes_title = no
	}
}
barony_emishi = {
	type = title
	tier = barony
	priority = 51
	name_lists = { name_list_emishi }
	flavourization_rules = {
		top_liege = no
	}
}
count_male_emishi = {
	type = character
	gender = male
	special = holder
	tier = county
	priority = 28
	name_lists = { name_list_emishi }
	flavourization_rules = {
		top_liege = no
		spouse_takes_title = no
	}
}
count_female_emishi = {
	type = character
	gender = female
	special = holder
	tier = county
	priority = 28
	name_lists = { name_list_emishi }
	flavourization_rules = {
		top_liege = no
		spouse_takes_title = no
	}
}
county_emishi = {
	type = title
	tier = county
	priority = 51
	name_lists = { name_list_emishi }
	flavourization_rules = {
		top_liege = no
	}
}

### AINU

baron_male_ainu = {
	type = character
	gender = male
	special = holder
	tier = barony
	priority = 28
	name_lists = { name_list_ainu }
	flavourization_rules = {
		top_liege = no
		spouse_takes_title = no
	}
}
baron_female_ainu = {
	type = character
	gender = female
	special = holder
	tier = barony
	priority = 28
	name_lists = { name_list_ainu }
	flavourization_rules = {
		top_liege = no
		spouse_takes_title = no
	}
}
barony_ainu = {
	type = title
	tier = barony
	priority = 51
	name_lists = { name_list_ainu }
	flavourization_rules = {
		top_liege = no
	}
}
count_male_ainu = {
	type = character
	gender = male
	special = holder
	tier = county
	priority = 28
	name_lists = { name_list_ainu }
	flavourization_rules = {
		top_liege = no
		spouse_takes_title = no
	}
}
count_female_ainu = {
	type = character
	gender = female
	special = holder
	tier = county
	priority = 28
	name_lists = { name_list_ainu }
	flavourization_rules = {
		top_liege = no
		spouse_takes_title = no
	}
}
county_ainu = {
	type = title
	tier = county
	priority = 51
	name_lists = { name_list_ainu }
	flavourization_rules = {
		top_liege = no
	}
}
duke_male_ainu = {
	type = character
	gender = male
	special = holder
	tier = duchy
	priority = 47
	name_lists = { name_list_ainu }
	flavourization_rules = {
		top_liege = no
		spouse_takes_title = no
	}
}
duke_female_ainu = {
	type = character
	gender = female
	special = holder
	tier = duchy
	priority = 47
	name_lists = { name_list_ainu }
	flavourization_rules = {
		top_liege = no
		spouse_takes_title = no
	}
}
duchy_ainu = {
	type = title
	tier = duchy
	priority = 51
	name_lists = { name_list_ainu }
	flavourization_rules = {
		top_liege = no
	}
}
king_male_ainu = {
	type = character
	gender = male
	special = holder
	tier = kingdom
	priority = 47
	name_lists = { name_list_ainu }
	flavourization_rules = {
		top_liege = no
		spouse_takes_title = no
	}
}
king_female_ainu = {
	type = character
	gender = female
	special = holder
	tier = kingdom
	priority = 47
	name_lists = { name_list_ainu }
	flavourization_rules = {
		top_liege = no
		spouse_takes_title = no
	}
}
kingdom_ainu = {
	type = title
	tier = kingdom
	priority = 51
	name_lists = { name_list_ainu }
	flavourization_rules = {
		top_liege = no
	}
}
