focus_tree = {
	id = jap_mac_shogunate_ft
	country = {
		factor = 0
		modifier = {
			add = 101
			OR = {
				tag = TSH
				tag = EZO
			}
			has_country_flag = JAP_machine_era_ft
		}
	}

	continuous_focus_position = { x = 100 y = 1150 }
	default = no

	focus = {
		id = JAP_mac_bakufu_renegotiations
		icon = GFX_Focus_social_reforms

		cost = 70

		available = { tag = TSH }

		x = 10

		completion_reward = {
			set_cosmetic_tag = TSH_matsudaira_nippon_cosmetic
			hidden_effect = {
				remove_ideas = {
					TSH_spirit_vic_bakufu_shogunate_unconfidence
					TSH_spirit_vic_bakufu_emperor_reserved
					TSH_spirit_vic_bakufu_emperor_emboldened
				}
			}
		}
	}

	focus = {
		id = JAP_mac_imperial_supremacy
		icon = GFX_Focus_social_reforms

		cost = 70

		available = { tag = JAP }

		x = 15

		completion_reward = {

		}
	}
	focus = {
		id = JAP_mac_isolated_republic
		icon = GFX_Focus_social_reforms

		cost = 5

		x = 20

		completion_reward = {
			if = {
				limit = { JAP = { exists = no } TSH = { exists = no } }
				set_cosmetic_tag = JAP
			}
		}
	}
	focus = {
		id = JAP_mac_the_new_han
		icon = GFX_Focus_social_reforms

		cost = 70

		mutually_exclusive = { focus = JAP_mac_integration_of_the_han }

		prerequisite = {
			focus = JAP_mac_isolated_republic
			focus = JAP_mac_imperial_supremacy
			focus = JAP_mac_bakufu_renegotiations
		}

		available = {
			any_country = {
				is_subject_of = ROOT
				OR = {
					is_fudai_daimyo = yes
					is_tozama_daimyo = yes
				}
			}
		}

		ai_will_do = { base = 0 modifier = { tag = EZO add = 5 } }

		x = 2
		y = 1

		completion_reward = {

		}
	}
	focus = {
		id = JAP_mac_integration_of_the_han
		icon = GFX_Focus_social_reforms

		cost = 70

		prerequisite = {
			focus = JAP_mac_isolated_republic
			focus = JAP_mac_imperial_supremacy
			focus = JAP_mac_bakufu_renegotiations
		}

		available = {
			# any_country = {
			# 	is_subject_of = ROOT
			# 	OR = {
			# 		is_fudai_daimyo = yes
			# 		is_tozama_daimyo = yes
			# 	}
			# }
		}

		mutually_exclusive = { focus = JAP_mac_the_new_han }

		ai_will_do = { base = 1 modifier = { OR = { tag = JAP tag = TSH } add = 5 } }

		x = 4
		y = 1

		completion_reward = {
			every_country = {
				limit = {
					is_subject_of = ROOT
					OR = {
						is_fudai_daimyo = yes
						is_tozama_daimyo = yes
					}
				}
				ROOT = {
					annex_country = {
						target = PREV
						transfer_troops = yes
					}
				}
			}
			hidden_effect = {
				remove_ideas = {
					TSH_spirit_vic_han_system
					TSH_spirit_vic_han_system_1
				}
			}
		}
	}
	focus = {
		id = JAP_mac_new_names

		completion_reward = {
			set_temp_variable = { eoanb_prestige_change = 1 }
			eoanb_change_prestige_score = yes
			every_state = {
				limit = { is_in_japan = yes }
				reset_state_name = yes
			}
		}
	}
}