focus_tree = {
	id = japan_wtt_focus

	country = {
		factor = 0
		modifier = {
			add = 20
			tag = JAP
		}
	}


	default = no

	continuous_focus_position = { x = 30 y = 2000 }

	focus = {
		id = JAP_the_unthinkable_option
		icon = GFX_goal_JAP_the_unthinkable_option
		mutually_exclusive = {
			focus = JAP_purge_the_kodoha_faction
			focus = JAP_support_the_kodoha_faction
			focus = JAP_strengthen_civilian_government
		}
		x = 4
		y = 0

		cost = 10
		ai_will_do = {
			factor = 0.75 #it's now more unthinkable
		}
		
		allow_branch = {
			if = {
				limit = {
					has_game_rule = {
						rule = obsolete_focus_branches_visibility
						option = HIDE
					}
				}
				NOT = {
					OR = {
						has_completed_focus = JAP_purge_the_kodoha_faction
						has_completed_focus = JAP_support_the_kodoha_faction
						has_completed_focus = JAP_strengthen_civilian_government
					}
				}
			}
		}
		

		bypass = {
			has_government = communism
		}

		completion_reward = {
			add_ideas = JAP_the_unthinkable_option
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = sanzo_nosaka
			add_ideas = sanzo_nosaka
			add_political_power = 200
			mark_focus_tree_layout_dirty = yes
		}
		search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = JAP_approach_the_young_officers
		icon = GFX_focus_generic_military_mission
		prerequisite = { focus = JAP_the_unthinkable_option }
		x = -1
		y = 1
		relative_position_id = JAP_the_unthinkable_option

		cost = 5

		ai_will_do = {
			factor = 1
		}

		bypass = {
			has_government = communism
		}

		completion_reward = {
			add_popularity = { ideology = fascism popularity = -0.10 }
			add_popularity = { ideology = communism popularity = 0.05 }
			custom_effect_tooltip = JAP_approach_the_young_officers_tt
			hidden_effect = {
				create_corps_commander = {
					traits = { JAP_communist_sympathizer trickster}
					id = 750 #communist general 1
					attack_skill = 1
					defense_skill = 4
					planning_skill = 3
					logistics_skill = 2
					skill = 3
				}
				create_corps_commander = {
					traits = { JAP_communist_sympathizer trait_mountaineer trait_cautious}
					id = 751 #communist general 2
					attack_skill = 2
					defense_skill = 2
					planning_skill = 1
					logistics_skill = 2
					skill = 2
				}
				create_corps_commander = {
					traits = { JAP_communist_sympathizer trait_reckless politically_connected}
					id = 752 #communist general 3
					attack_skill = 4
					defense_skill = 1
					planning_skill = 3
					logistics_skill = 3
					skill = 3
				}
			}
			add_war_support = 0.1
		}
		search_filters = { FOCUS_FILTER_WAR_SUPPORT }
	}

	focus = {
		id = JAP_exchange_the_exiles
		icon = GFX_goal_generic_forceful_treaty
		prerequisite = { focus = JAP_the_unthinkable_option }
		x = 1
		y = 1
		relative_position_id = JAP_the_unthinkable_option

		cost = 5

		ai_will_do = {
			factor = 1
		}

		bypass = {
			has_government = communism
		}

		completion_reward = {
			add_popularity = { ideology = fascism popularity = -0.10 }
			add_popularity = { ideology = communism popularity = 0.05 }			
			add_stability = 0.1
			MAN = {
				country_event = wtt_japan.21
				custom_effect_tooltip = JAP_if_man_accepts
				effect_tooltip = {
					global_every_army_leader = {
						limit = {
							OWNER = { tag = ROOT }
							has_trait = JAP_samurai_lineage
						}
						set_nationality = PREV
					}
				}
			}
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = JAP_minoru_takano					#tomin suzuki does not exist	
		}
		search_filters = { FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = JAP_cast_the_die
		icon = GFX_focus_jap_cast_the_die
		prerequisite = { focus = JAP_approach_the_young_officers }
		prerequisite = { focus = JAP_exchange_the_exiles }
		x = 1
		y = 1
		relative_position_id = JAP_approach_the_young_officers

		cost = 10

		ai_will_do = {
			factor = 2
		}

		bypass = {
			has_government = communism
		}

		completion_reward = {
			hidden_effect = {
				add_popularity = { ideology = communism popularity = 0.05 }
				if = {
					limit = {
						has_country_leader = { ruling_only = yes character = JAP_emperor_hirohito }
					}
					remove_country_leader_trait = imperial_sanction
				}
			}
			if = {	#You allied me, I allied you, buddy, but sorry, we are now different
				limit = {
					is_in_faction = yes
					any_other_country = {
						is_faction_leader = yes
						is_in_faction_with = ROOT
						NOT = {
							has_government = communism
						} 
					}
				}
				every_other_country = {
					limit = {
						is_faction_leader = yes
						is_in_faction_with = ROOT
						NOT = {
							has_government = communism
						}
					}
					remove_from_faction = ROOT
					add_ai_strategy = {	#your problem, not ours
						type = ignore
						id = ROOT
						value = 300
					}
				}
			}
			remove_ideas = JAP_the_unthinkable_option
			set_capital = { state = 532 }
			start_civil_war = {
				ruling_party = communism
				ideology = ROOT
				size = 0.45	#This was too much for AI
				capital = 282
				states = { 282 533 536 555 529 530 528 526 524 645 648 646 647 684 633 609 745 527 525 917 918 919 920 }
				keep_unit_leaders = {
					750 751 752
				}
			}
			custom_effect_tooltip = cast_the_die_TT
			if = {
				limit = {
					MEN = { is_subject_of = ROOT }
				}
				set_autonomy = { target = MEN autonomy_state = autonomy_free }
			}
			if = {
				limit = {
					MAN = { is_subject_of = ROOT }
				}
				set_autonomy = { target = MAN autonomy_state = autonomy_free }
				MAN = {
					set_autonomy = { target = MEN autonomy_state = autonomy_integrated_puppet }
				}
			}
			if = {
				limit = {
					MAN = { has_idea = MAN_kwantung_veto }
				}
				MAN = { remove_ideas = MAN_kwantung_veto }
			}
			if = {
				limit = {
					any_state = {
						is_controlled_by = ROOT
						is_core_of = KOR
					}
				}
				release = KOR
				set_autonomy = { target = KOR autonomy_state = autonomy_free }
			}
			if = {
				limit = {
					any_state = {
						is_controlled_by = ROOT
						is_core_of = NKR
					}
				}
				release = NKR
				set_autonomy = { target = NKR autonomy_state = autonomy_free }
			}
			hidden_effect = {
				division_template = { name = "Kōdō Tai" division_names_group = JAP_INF_01 is_locked = yes regiments = { militia = { x = 0 y = 0 } militia = { x = 1 y = 0 } militia = { x = 1 y = 0 } militia = { x = 1 y = 1 } } }
				532 = {
					create_unit = {
						division = "name = \"1. Kōdō Tai\" division_template = \"Kōdō Tai\" start_experience_factor = 0"
						owner = ROOT
					}
					create_unit = {
						division = "name = \"2. Kōdō Tai\" division_template = \"Kōdō Tai\" start_experience_factor = 0"
						owner = ROOT
					}
					create_unit = {
						division = "name = \"3. Kōdō Tai\" division_template = \"Kōdō Tai\" start_experience_factor = 0"
						owner = ROOT
					}
					create_unit = {
						division = "name = \"4. Kōdō Tai\" division_template = \"Kōdō Tai\" start_experience_factor = 0"
						owner = ROOT
					}
					create_unit = {
						division = "name = \"5. Kōdō Tai\" division_template = \"Kōdō Tai\" start_experience_factor = 0"
						owner = ROOT
					}
				}
				531 = {
					create_unit = {
						division = "name = \"6. Kōdō Tai\" division_template = \"Kōdō Tai\" start_experience_factor = 0"
						owner = ROOT
					}
					create_unit = {
						division = "name = \"7. Kōdō Tai\" division_template = \"Kōdō Tai\" start_experience_factor = 0"
						owner = ROOT
					}
					create_unit = {
						division = "name = \"8. Kōdō Tai\" division_template = \"Kōdō Tai\" start_experience_factor = 0"
						owner = ROOT
					}
					create_unit = {
						division = "name = \"9. Kōdō Tai\" division_template = \"Kōdō Tai\" start_experience_factor = 0"
						owner = ROOT
					}
					create_unit = {
						division = "name = \"10. Kōdō Tai\" division_template = \"Kōdō Tai\" start_experience_factor = 0"
						owner = ROOT
					}
				}
				534 = {
					create_unit = {
						division = "name = \"11. Kōdō Tai\" division_template = \"Kōdō Tai\" start_experience_factor = 0"
						owner = ROOT
					}
					create_unit = {
						division = "name = \"12. Kōdō Tai\" division_template = \"Kōdō Tai\" start_experience_factor = 0"
						owner = ROOT
					}
				}
				535 = {
					create_unit = {
						division = "name = \"13. Kōdō Tai\" division_template = \"Kōdō Tai\" start_experience_factor = 0"
						owner = ROOT
					}
					create_unit = {
						division = "name = \"14. Kōdō Tai\" division_template = \"Kōdō Tai\" start_experience_factor = 0"
						owner = ROOT
					}
				}
				537 = {
					create_unit = {
						division = "name = \"15. Kōdō Tai\" division_template = \"Kōdō Tai\" start_experience_factor = 0"
						owner = ROOT
					}
					create_unit = {
						division = "name = \"16. Kōdō Tai\" division_template = \"Kōdō Tai\" start_experience_factor = 0"
						owner = ROOT
					}
					create_unit = {
						division = "name = \"17. Kōdō Tai\" division_template = \"Kōdō Tai\" start_experience_factor = 0"
						owner = ROOT
					}										
				}
			}
			hidden_effect = {
				random_other_country = {
					limit = {
						original_tag = JAP
						has_government = fascism
					}
					#JAI as tag alias
					set_country_flag = r56_JAP_fascist_rebel_check
					hidden_effect = {
						division_template = { name = "Keibitai" division_names_group = JAP_INF_01 is_locked = yes regiments = { infantry = { x = 0 y = 0 } infantry = { x = 1 y = 0 } } }
						529 = {
							create_unit = {
								division = "name = \"1. Keibitai\" division_template = \"Keibitai\" start_experience_factor = 0"
								owner = PREV
							}
							create_unit = {
								division = "name = \"2. Keibitai\" division_template = \"Keibitai\" start_experience_factor = 0"
								owner = PREV
							}
							create_unit = {
								division = "name = \"3. Keibitai\" division_template = \"Keibitai\" start_experience_factor = 0"
								owner = PREV
							}
							create_unit = {
								division = "name = \"4. Keibitai\" division_template = \"Keibitai\" start_experience_factor = 0"
								owner = PREV
							}
							create_unit = {
								division = "name = \"5. Keibitai\" division_template = \"Keibitai\" start_experience_factor = 0"
								owner = PREV
							}
						}
						530 = {
							create_unit = {
								division = "name = \"6. Keibitai\" division_template = \"Keibitai\" start_experience_factor = 0"
								owner = PREV
							}
							create_unit = {
								division = "name = \"7. Keibitai\" division_template = \"Keibitai\" start_experience_factor = 0"
								owner = PREV
							}
						}
						533 = {
							create_unit = {
								division = "name = \"8. Keibitai\" division_template = \"Keibitai\" start_experience_factor = 0"
								owner = PREV
							}
							create_unit = {
								division = "name = \"9. Keibitai\" division_template = \"Keibitai\" start_experience_factor = 0"
								owner = PREV
							}
						}
						282 = {
							create_unit = {
								division = "name = \"10. Keibitai\" division_template = \"Keibitai\" start_experience_factor = 0"
								owner = PREV
							}
							create_unit = {
								division = "name = \"11. Keibitai\" division_template = \"Keibitai\" start_experience_factor = 0"
								owner = PREV
							}
							create_unit = {
								division = "name = \"12. Keibitai\" division_template = \"Keibitai\" start_experience_factor = 0"
								owner = PREV
							}	
							create_unit = {
								division = "name = \"13. Keibitai\" division_template = \"Keibitai\" start_experience_factor = 0"
								owner = PREV
							}
							create_unit = {
								division = "name = \"14. Keibitai\" division_template = \"Keibitai\" start_experience_factor = 0"
								owner = PREV
							}																				
						}						
					}
				}
			}
			add_stability = -0.1
			if = {
				limit = {
					communism > 0.8
				}
				remove_ideas = sanzo_nosaka				
			}
		}
		search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_TFV_AUTONOMY FOCUS_FILTER_POLITICAL FOCUS_FILTER_MANPOWER }
	}
	focus = {
		id = JAP_smash_the_imperialists
		icon = GFX_focus_attack_japan
		prerequisite = { focus = JAP_cast_the_die }
		x = -4
		y = 1
		relative_position_id = JAP_cast_the_die

		cost = 5

		ai_will_do = {
			factor = 5
		}

		available = {
			has_civil_war = yes
		}

		search_filters = { FOCUS_FILTER_MILITARY_IMPROVEMENT FOCUS_FILTER_WAR_SUPPORT }
		completion_reward = {
			add_timed_idea = {
				idea = JAP_smash_the_imperialists_idea
				days = 730
			}			
			add_war_support = 0.05
		}
	}
	

	focus = {
		id = JAP_the_fate_of_the_imperial_family
		icon = GFX_goal_JAP_fate_of_the_imperial_family
		prerequisite = { focus = JAP_cast_the_die }
		x = -2
		y = 1
		relative_position_id = JAP_cast_the_die

		cost = 10

		ai_will_do = {
			factor = 1
		}

		available = {
			has_civil_war = no
		}

		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			country_event = wtt_japan.31
			add_ideas = JAP_revolutionary_fervour
			if = {
				limit = {
					communism > 0.8
				}
				remove_ideas = sanzo_nosaka				
			}			
		}
	}

	focus = {
		id = JAP_rebuild_the_civil_service
		icon = GFX_generic_goal_communist_reforms
		prerequisite = { focus = JAP_the_fate_of_the_imperial_family }
		x = -1
		y = 1
		relative_position_id = JAP_the_fate_of_the_imperial_family

		cost = 5

		ai_will_do = {
			factor = 1
		}

		completion_reward = {
			add_timed_idea = {
				idea = JAP_rebuild_the_civil_service
				days = 730
			}
			if = {
				limit = {
					communism > 0.8
				}
				remove_ideas = sanzo_nosaka				
			}			
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = JAP_open_up_the_universities
		icon = GFX_goal_research_silver
		prerequisite = { focus = JAP_the_fate_of_the_imperial_family }
		x = 1
		y = 1
		relative_position_id = JAP_the_fate_of_the_imperial_family

		cost = 10

		ai_will_do = {
			factor = 2
		}

		available = {
			has_stability < 0.5
		}

		completion_reward = {
			add_research_slot = 1
		}
		search_filters = { FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = JAP_finish_the_fight
		icon = GFX_goal_MAN_depose_the_weak_monarch
		prerequisite = { focus = JAP_rebuild_the_civil_service }
		prerequisite = { focus = JAP_open_up_the_universities }
		x = 0
		y = 2
		relative_position_id = JAP_the_fate_of_the_imperial_family

		cost = 10

		ai_will_do = {
			factor = 1
		}

		available = {
			country_exists = MAN
			MAN = {
				NOT = {
					has_government = communism
				}
			}
		}

		bypass = {
			OR = {
				has_wargoal_against = MAN
				has_war_with = MAN
				MAN = {
					exists = no
				}
				MAN = {
					has_government = communism
				}
			}
		}

		will_lead_to_war_with = MAN
		completion_reward = {
			create_wargoal = {
				target = MAN
				expire = 0
				type = puppet_wargoal_focus
			}
			if = {
				limit = {
					communism > 0.8
				}
				remove_ideas = sanzo_nosaka				
			}			
		}
		search_filters = { FOCUS_FILTER_ANNEXATION }
	}

	focus = {
		id = JAP_join_comintern
		icon = GFX_focus_chi_mission_to_the_soviet_union
		prerequisite = { focus = JAP_finish_the_fight }
		prerequisite = { focus = JAP_red_pacific_fleet }
		mutually_exclusive = { focus = JAP_asian_communist_solidarity }
		x = 0
		y = 3
		relative_position_id = JAP_the_fate_of_the_imperial_family

		cost = 10

		ai_will_do = {
			factor = 1
		}

		available = {
			has_government = communism
			is_subject = no
			if = {
				limit = {
					SOV = {
						has_government = communism
					}
					NOT = { has_war_with = SOV }
					NOT = { is_in_faction_with = SOV }					
				}
			}

		}

		completion_reward = {
			#Join SOV faction. If SOV has no faction or is not faction leader, form own faction and cry a lot.
			if = {
				limit = {
					SOV = {
						is_faction_leader = yes
						has_government = communism
					}
				}
				SOV = { country_event = generic.2 }
			}
			else_if = {
				limit = {
					any_other_country = {
						has_government = communism
						is_faction_leader = yes
						is_major = yes
						has_capitulated = no
						num_of_factories > 70
					}
				}
				random_other_country = {
					limit = {
						has_government = communism
						is_faction_leader = yes
						is_major = yes
						num_of_factories > 70
					}
					country_event = generic.2
				}				
			}
			else_if = {
				limit = {
					any_other_country = {
						has_government = communism
						is_faction_leader = yes
						is_major = yes
						has_capitulated = no
						num_of_factories > 50
					}
				}
				random_other_country = {
					limit = {
						has_government = communism
						is_faction_leader = yes
						is_major = yes
						num_of_factories > 50
					}
					country_event = generic.2
				}				
			}			
			else_if = {
				limit = {
					any_other_country = {
						has_government = communism
						is_faction_leader = yes
						is_major = yes
						has_capitulated = no
					}
				}
				random_other_country = {
					limit = {
						has_government = communism
						is_faction_leader = yes
						is_major = yes
						has_capitulated = no
					}
					country_event = generic.2
				}
			}
			else_if = {
				limit = {
					any_other_country = {
						has_government = communism
						is_faction_leader = yes

						has_capitulated = no
					}
				}
				random_other_country = {
					limit = {
						has_government = communism
						is_faction_leader = yes
						has_capitulated = no
					}
					country_event = generic.2
				}
			}
			else = {
				set_rule = { can_create_factions = yes }
				create_faction = JAP_the_new_international
				add_political_power = 100
				if = {
					limit = {
						any_other_country = {
							has_government = communism
							is_puppet = no
							is_in_faction = no
							original_tag = SOV
							has_capitulated = no
						}
					}
					random_other_country = {
						limit = {
							has_government = communism
							is_puppet = no
							is_in_faction = no
							original_tag = SOV
							has_capitulated = no
						}
						country_event = generic.5
					}
				}
				
			}
		}
		search_filters = { FOCUS_FILTER_ALLIANCE FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = JAP_soviet_technology_sharing
		icon = GFX_goal_tfv_generic_tech_sharing
		prerequisite = { focus = JAP_join_comintern }
		x = 0
		y = 1
		relative_position_id = JAP_join_comintern

		cost = 10

		ai_will_do = {
			factor = 1
		}

		available = {
			has_government = communism
			is_in_faction_with = SOV
		}

		completion_reward = {
			add_tech_bonus = {
				name = JAP_soviet_technology_sharing
				uses = 1
				bonus = 0.5
				category = infantry_weapons
			}
			add_tech_bonus = {
				name = JAP_soviet_technology_sharing
				uses = 1
				bonus = 0.5
				category = support_tech
			}
			SOV = {
				add_tech_bonus = {
					name = JAP_soviet_technology_sharing
					uses = 1
					bonus = 0.5
					category = infantry_weapons
				}
				add_tech_bonus = {
					name = JAP_soviet_technology_sharing
					uses = 1
					bonus = 0.5
					category = support_tech
				}
			}

			
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = JAP_import_soviet_armor
		icon = GFX_goal_generic_heavy_armour_russian
		prerequisite = { focus = JAP_soviet_technology_sharing }
		x = 0
		y = 2
		relative_position_id = JAP_join_comintern

		cost = 10

		ai_will_do = {
			factor = 1
		}

		available = {
			has_government = communism
			is_in_faction_with = SOV
		}

		completion_reward = {
			add_tech_bonus = {
				name = JAP_import_soviet_armor
				uses = 1
				bonus = 1
				ahead_reduction = 1
				category = cat_medium_armor
			}
			

			
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = JAP_strike_the_old_oppressors
		icon = GFX_goal_generic_attack_united_states
		prerequisite = { focus = JAP_import_soviet_armor focus = JAP_liberate_korea }
		x = 2
		y = 3
		relative_position_id = JAP_join_comintern

		cost = 10

		ai_will_do = {
			factor = 1
		}

		available = {
			is_subject = no
			USA = {
				NOT = {
					has_government = ROOT
				}
			}
		}

		completion_reward = {
			create_wargoal = {
				target = USA
				expire = 0
				type = puppet_wargoal_focus
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = JAP_reddoborantias
		icon = GFX_goal_communist_brigades
		prerequisite = { 
			focus = JAP_join_comintern
			focus = JAP_asian_communist_solidarity
		}
		x = 2
		y = 1
		relative_position_id = JAP_join_comintern

		cost = 10

		ai_will_do = {
			factor = 1
		}

		available = {
			has_government = communism
		}

		completion_reward = {
			add_ideas = JAP_communist_volunteers
		}
	}

	focus = {
		id = JAP_red_brigades
		icon = GFX_goal_generic_left_militia
		prerequisite = { focus = JAP_cast_the_die }
		x = 0
		y = 1
		relative_position_id = JAP_cast_the_die

		cost = 5

		ai_will_do = {
			factor = 3
		}

		available = {
			has_government = communism
			has_civil_war = no
		}

		completion_reward = {
			add_ideas = JAP_red_brigades
		}
		search_filters = { FOCUS_FILTER_MANPOWER }
	}

	focus = {
		id = JAP_red_pacific_fleet
		icon = GFX_goal_generic_navy_doctrines_tactics
		prerequisite = { focus = JAP_red_brigades }
		x = 0
		y = 2
		relative_position_id = JAP_red_brigades

		cost = 10

		ai_will_do = {
			factor = 2
			modifier = {
				factor = 2
				FRA = { has_war = yes }
			}
		}
		

		completion_reward = {
			add_doctrine_cost_reduction = {
				name = JAP_strike_south_doctrine
				cost_reduction = 0.5
				uses = 2
				category = naval_doctrine
			}
			random_owned_controlled_state = {
				prioritize = { 531 282 }
				limit = {
					ROOT = { has_full_control_of_state = PREV }
					is_core_of = ROOT
					free_building_slots = {
						building = dockyard
						size > 2
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = JAP_guard_the_revolution
		icon = GFX_goal_HON_nkvd_assistance
		cost = 10
		prerequisite = {
			focus = JAP_red_pacific_fleet
		}
		allow_branch = {
			has_dlc = "La Resistance"
			if = {
				limit = {
					has_game_rule = {
						rule = obsolete_focus_branches_visibility
						option = HIDE
					}
				}
				NOT = {
					OR = {
						has_completed_focus = JAP_support_the_kodoha_faction
						has_completed_focus = JAP_purge_the_kodoha_faction
						has_completed_focus = JAP_strengthen_civilian_government
					}
				}
			}
		}		
		relative_position_id = JAP_red_pacific_fleet
		x = 4
		y = 1
		ai_will_do = {
			factor = 10
			modifier = {
				is_historical_focus_on = yes
				factor = 0.5
			}
		}
		available = {
			has_intelligence_agency = yes
		}
		completion_reward = {			
			add_ideas = GER_abwehr_contacts
			create_operative_leader = {
				name = "Hotsumi Ozaki"
				portrait_path = gfx/leaders/Asia/portrait_asia_generic_operative_male_6.dds 
				traits = { operative_well_groomed operative_infiltrator operative_double_agent }
				bypass_recruitment = no
				available_to_spy_master = yes
				nationalities = { SOV JAP }
			}
			add_tech_bonus = {
				name = mp_tech_bonus_name
				bonus = 1
				uses = 1
				category = military_police_tech
			}							
		}
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_ESPIONAGE }
	}

	focus = {
		id = JAP_asian_communist_solidarity
		icon = GFX_focus_chi_cooperation_with_the_communists
		prerequisite = { focus = JAP_finish_the_fight }
		prerequisite = { focus = JAP_red_pacific_fleet }
		mutually_exclusive = { focus = JAP_join_comintern }
		x = 2
		y = 3
		relative_position_id = JAP_red_brigades

		cost = 10

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				PRC = { surrender_progress > 0 }
			}
		}

		available = {
			has_government = communism
			is_subject = no
			NOT = { has_war_with = event_target:WTT_communist_china }
			event_target:WTT_communist_china = {
				has_government = communism
				OR = {
					is_in_faction = no
					is_faction_leader = yes
				}
			}
		}


		completion_reward = {
			if = {
				limit = {
					event_target:WTT_communist_china = { is_faction_leader = yes }
				}
				event_target:WTT_communist_china = { country_event = generic.2 }
			}
			else_if = {
				limit = {
					is_faction_leader = yes
				}
				event_target:WTT_communist_china = { country_event = generic.5 }
			}
			else = {
				create_faction = JAP_asian_communist_solidarity
				custom_effect_tooltip = JAP_asian_communist_solidarity_tt
				hidden_effect = {
					event_target:WTT_communist_china = { country_event = generic.5 }
				}
			}
		}
		search_filters = { FOCUS_FILTER_ALLIANCE FOCUS_FILTER_POLITICAL }
	}
	focus = {
		id = JAP_reignite_the_chinese_civil_war
		icon = GFX_focus_attack_china
		prerequisite = { focus = JAP_asian_communist_solidarity }
		will_lead_to_war_with = CHI
		x = 1
		y = 1
		relative_position_id = JAP_asian_communist_solidarity

		cost = 10

		available = {
			is_puppet = no
			NOT = { has_war_with = CHI }
			NOT = {
				is_in_faction_with = CHI
			}
			is_in_faction_with = PRC
			PRC = {
				has_government = communism
			}
			has_navy_size = {
				size > 15
			}
			has_army_manpower = {
				size > 200000
			}	
		}
		bypass = {

		}

		will_lead_to_war_with = CHI

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				has_war = yes
				
			}
		}

		completion_reward = {
			if = {
				limit = {
					CHI = {
						NOT = {
							is_in_faction_with = ROOT
							has_war_with = ROOT	
						}
					}
				}
				PRC = {
					create_wargoal = {
						target = CHI
						expire = 0
						type = annex_everything
					}
				}
			}
			if = {
				limit = {
					XSM = {
						NOT = {
							is_in_faction_with = ROOT
							has_war_with = ROOT	
						}
					}
				}
				PRC = {
					create_wargoal = {
						target = XSM
						expire = 0
						type = annex_everything
					}
				}
			}
			if = {
				limit = {
					GXC = {
						NOT = {
							is_in_faction_with = ROOT
							has_war_with = ROOT	
						}
					}
				}
				PRC = {
					create_wargoal = {
						target = GXC
						expire = 0
						type = annex_everything
					}
				}
			}
			if = {
				limit = {
					SIK = {
						NOT = {
							is_in_faction_with = ROOT
							has_war_with = ROOT	
						}
					}
				}
				PRC = {
					create_wargoal = {
						target = SIK
						expire = 0
						type = annex_everything
					}
				}
			}
			if = {
				limit = {
					TNG = {
						NOT = {
							is_in_faction_with = ROOT
							has_war_with = ROOT
						}
					}
				}
				PRC = {
					create_wargoal = {
						target = TNG
						expire = 0
						type = annex_everything
					}
				}
			}				
			if = {
				limit = {
					SHX = {
						NOT = {
							is_in_faction_with = ROOT
							has_war_with = ROOT	
						}
					}
				}
				PRC = {
					create_wargoal = {
						target = SHX
						expire = 0
						type = annex_everything
					}
				}
			}
			if = {
				limit = {
					MEN = {
						NOT = {
							is_in_faction_with = ROOT
							has_war_with = ROOT	
						}
					}
				}
				PRC = {
					create_wargoal = {
						target = MEN
						expire = 0
						type = annex_everything
					}
				}
			}
			if = {
				limit = {
					YUN = {
						NOT = {
							is_in_faction_with = ROOT
							has_war_with = ROOT	
						}
					}
				}
				PRC = {
					create_wargoal = {
						target = YUN
						expire = 0
						type = annex_everything
					}
				}
			}																	
			add_named_threat = { threat = 1 name = JAP_intervene_in_china }
		}
	}

	focus = {
		id = JAP_liberate_korea
		icon = GFX_goal_JAP_the_korean_question
		prerequisite = { focus = JAP_asian_communist_solidarity }
		x = 0
		y = 2
		relative_position_id = JAP_asian_communist_solidarity

		cost = 10

		ai_will_do = {
			factor = 2
		}

		available = {
			NOT = {
				is_in_faction_with = KOR
				is_in_faction_with = NKR
			}
			KOR = { NOT = { has_government = communism } }
			NKR = { NOT = { has_government = communism } }
		}

		bypass = {
			OR = {
				NOT = { country_exists = KOR }
				NOT = { country_exists = NKR }
				MAN = { has_government = communism }
				is_in_faction_with = KOR
				is_in_faction_with = NKR
			}
		}

		completion_reward = {
			create_wargoal = {
				target = KOR
				expire = 0
				type = puppet_wargoal_focus
			}
			create_wargoal = {
				target = NKR
				expire = 0
				type = puppet_wargoal_focus
			}
		}
		search_filters = { FOCUS_FILTER_ANNEXATION }
	}

	focus = {
		id = JAP_nationalize_the_zaibatsus
		icon = GFX_focus_jap_zaibatsu
		prerequisite = { focus = JAP_cast_the_die }
		x = 2
		y = 1
		relative_position_id = JAP_cast_the_die

		cost = 10

		ai_will_do = {
			factor = 3
		}

		available = {
			has_civil_war = no
		}

		complete_tooltip = {
			random_state = {
				limit = {
					has_state_flag = JAP_zaibatsus_factories
				}
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
			}
			swap_ideas = {
				remove_idea = JAP_zaibatsus
				add_idea = JAP_nationalize_the_zaibatsus
			}
		}

		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					ROOT = { has_full_control_of_state = PREV }
					is_core_of = ROOT
					not = {
						state = 646
						state = 645
						state = 555
					}
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
				set_state_flag = JAP_zaibatsus_factories
			}
			random_owned_controlled_state = {
				limit = {
					ROOT = { has_full_control_of_state = PREV }
					is_core_of = ROOT
					not = {
						state = 646
						state = 645
						state = 555
					}
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
				set_state_flag = JAP_zaibatsus_factories
			}			
			swap_ideas = {
				remove_idea = JAP_zaibatsus
				add_idea = JAP_nationalize_the_zaibatsus
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = JAP_people_owned_mines
		icon = GFX_goal_generic_commie_investments
		prerequisite = { focus = JAP_nationalize_the_zaibatsus }
		x = -1
		y = 1
		relative_position_id = JAP_nationalize_the_zaibatsus

		cost = 5

		ai_will_do = {
			factor = 1
		}

		completion_reward = {
			random_owned_controlled_state = {
				prioritize = { 535 }
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = steel_mill
					level = 2
					instant_build = yes
				}
			}
			unlock_decision_tooltip = develop_north_sakhalin_oil_deposits
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_OIL}
	}

	focus = {
		id = JAP_public_works
		icon = GFX_goal_communist_factory
		prerequisite = { focus = JAP_nationalize_the_zaibatsus }
		x = 1
		y = 1
		relative_position_id = JAP_nationalize_the_zaibatsus

		cost = 5

		ai_will_do = {
			factor = 1
		}

		available = {
			has_full_control_of_state = 535
			has_full_control_of_state = 533
			has_full_control_of_state = 528
		}

		completion_reward = {
			535 = {
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			533 = {
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			528 = {
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					ROOT = { has_full_control_of_state = PREV }
					is_core_of = ROOT
					not = {
						state = 646
						state = 645
						state = 555
					}
					free_building_slots = {
						building = arms_factory
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
				set_state_flag = JAP_nationalize_war_industry_AF
			}
			random_owned_controlled_state = {
				limit = {
					ROOT = { has_full_control_of_state = PREV }
					is_core_of = ROOT
					not = {
						state = 646
						state = 645
						state = 555
					}
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
				set_state_flag = JAP_nationalize_war_industry_IC
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = JAP_tokyo_aluminum_plant
		icon = GFX_focus_generic_aluminum
		prerequisite = { focus = JAP_people_owned_mines }
		prerequisite = { focus = JAP_public_works }
		x = 0
		y = 2
		relative_position_id = JAP_nationalize_the_zaibatsus

		cost = 10

		ai_will_do = {
			factor = 2
		}

		available = {
			has_full_control_of_state = 282
		}

		completion_reward = {
		
			random_owned_controlled_state = {
				prioritize = { 282 }
				add_extra_state_shared_building_slots = 3
				add_building_construction = {
					type = aluminum_mill
					level = 3
					instant_build = yes
				}				
			}
			if = {
				limit = {
					NOT = {
						has_tech = aluminum_production_1
					}
				}
				set_technology = { aluminum_production_1 = 1 }
				else = {
					add_tech_bonus = {
						name = construction_tech_bonus
						bonus = 1
						ahead_reduction = 2
						uses = 1
						category = aluminium_tech
					}					
				}
			}			
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_ALUMINIUM}
	}

	focus = {
		id = JAP_purge_the_kodoha_faction
		icon = GFX_goal_JAP_tojo_purge
		mutually_exclusive = { focus = JAP_the_unthinkable_option focus = JAP_support_the_kodoha_faction focus = JAP_strengthen_civilian_government }
		allow_branch = {
			if = {
				limit = {
					has_game_rule = {
						rule = obsolete_focus_branches_visibility
						option = HIDE
					}
				}
				NOT = {
					OR = {
						has_completed_focus = JAP_the_unthinkable_option
						has_completed_focus = JAP_support_the_kodoha_faction
						has_completed_focus = JAP_strengthen_civilian_government
					}
				}
			}
		}
		offset = {
			x = -10
			y = 0
			trigger = {
				AND = {
					has_game_rule = {
						rule = obsolete_focus_branches_visibility
						option = HIDE
					}
					has_completed_focus = JAP_purge_the_kodoha_faction
				}
			}
		}
		x = 10
		y = 0
		relative_position_id = JAP_the_unthinkable_option
		cost = 5

		ai_will_do = {
			factor = 4
		}

		select_effect = {
			if = {
				limit = {
						date < 1936.1.3
				}
				country_event = { id = r56_japan.1 days = 57 }
			}
		}

		completion_reward = {
			add_stability = 0.1
			add_popularity = { ideology = fascism popularity = 0.1 }
			retire_character = JAP_shigeru_honjo # jingoistic aide de camp purged, maybe the role of guardian of the privy seal could be even more influential but I don't have a list of those who held that position.
			retire_character = JAP_sadao_araki # should be proheminent in Kodoha Japan -> I gave him some extra traits and he is promoted to field marshal.
			retire_character = JAP_jinzaburo_masaki # high ranking kodoha leader, can become chief of the army otherwise
			hidden_effect = {
				set_cosmetic_tag = JAP2
				if = {
					limit = {
						has_dlc = "La Resistance"
						NOT = {
							any_other_country = {
								has_country_flag = aiyappan_recruited
							}
						}
					}
					#
					create_operative_leader = {
						name = "Aiyappan Pillai Madhavan Nair"
						portrait_path = gfx/leaders/India/portrait_india_generic_operative_male_3.dds 
						traits = {  operative_demolition_expert operative_natural_orator }
						bypass_recruitment = no
						available_to_spy_master = yes
						nationalities = { JAP RAJ }
					}
					set_country_flag = aiyappan_recruited
				}
			}
			mark_focus_tree_layout_dirty = yes
		}
		search_filters = { FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = JAP_liaison_conference
		icon = GFX_goal_generic_intelligence_exchange
		prerequisite = { focus = JAP_purge_the_kodoha_faction }
		x = -2
		y = 1
		relative_position_id = JAP_purge_the_kodoha_faction

		cost = 10

		ai_will_do = {
			factor = 2
		}

		completion_reward = {
			add_ideas = JAP_liaison_conference
			every_army_leader = {
				add_planning = 1
			}
			every_navy_leader = {
				add_coordination = 1
			}
		}
	}

	focus = {
		id = JAP_greater_east_asian_co_prosperity_sphere
		icon = GFX_goal_JAP_co_prosperity_sphere
		prerequisite = { focus = JAP_liaison_conference }
		x = -1
		y = 1
		relative_position_id = JAP_liaison_conference

		cost = 5

		ai_will_do = {
			factor = 2
		}

		available = {
			is_subject = no
		}

		completion_reward = {
			set_rule = { can_create_factions = yes }
			if = {
				limit = {
					NOT = {
						is_in_faction = yes
					}
				}
				create_faction = JAP_greater_east_asian_co_prosperity_sphere
			}
			unlock_decision_category_tooltip = r56_chinese_gui_category
			set_country_flag = chi_interested_in_china
		}
		search_filters = { FOCUS_FILTER_ALLIANCE FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = JAP_intervene_in_china
		icon = GFX_focus_attack_china
		prerequisite = { focus = JAP_greater_east_asian_co_prosperity_sphere }
		will_lead_to_war_with = CHI
		x = -1
		y = 1
		relative_position_id = JAP_greater_east_asian_co_prosperity_sphere

		cost = 10

		available = {
			is_puppet = no
			NOT = { has_war_with = CHI }
			NOT = {
				is_in_faction_with = CHI
			}
		}
		bypass = {
			OR = {
				AND = {
					608 = {
						NOT = {
							is_controlled_by = CHI
							is_controlled_by = PRC
							is_controlled_by = SHX
						}
					}
					597 = {
						NOT = {
							is_controlled_by = CHI
							is_controlled_by = PRC
							is_controlled_by = SHX
						}
					}
					614 = {
						NOT = {
							is_controlled_by = CHI
							is_controlled_by = PRC
							is_controlled_by = SHX
						}
					}
				}
				has_war_with = CHI
				CHI = {
					has_completed_focus = KMT_support_pro_japanese_faction
				}
			}
		}

		will_lead_to_war_with = CHI

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				date < 1937.1.1
			}
		}

		completion_reward = {
			if = {
				limit = {
					CHI = { #if CHI owns one of these states, they get the event
						OR = {
							controls_state = 608
							controls_state = 597
							controls_state = 614
						}
					}
				}
				CHI = {
					country_event = china.1
				}
			}
			if = {
				limit = {
					PRC = { #only fires the event for PRC if they control ALL of the states (to ensure that only one of them gets it, to avoid issues when one selects to turn over the states and the other doesn't)
						controls_state = 608
						controls_state = 597
						controls_state = 614
					}
				}
				PRC = {
					country_event = china.1
				}
			}
			if = {
				limit = {
					SHX = { #only fires the event for SHX if they control ALL of the states (to ensure that only one of them gets it, to avoid issues when one selects to turn over the states and the other doesn't)
						controls_state = 608
						controls_state = 597
						controls_state = 614
					}
				}
				SHX = {
					country_event = china.1
				}
			}
			add_named_threat = { threat = 1 name = JAP_intervene_in_china }
			add_ideas = JAP_intervene_in_china_5
			unlock_decision_tooltip = JAP_china_step_up_war_effort
		}
	}

	focus = {
		id = JAP_secure_china
		icon = GFX_goal_generic_major_war
		prerequisite = { focus = JAP_intervene_in_china }
		x = -1
		y = 1
		relative_position_id = JAP_intervene_in_china

		cost = 5

		ai_will_do = {
			factor = 3
			modifier = {
				factor = 0
				threat < 0.9
			}
		}

		available = {
			CHI = {
				surrender_progress > 0.25 #lowered bc of the vps added if china completes the big rear
			}
		}

		bypass = {
			CHI = { has_capitulated = yes }
		}


		completion_reward = {
			JAP_intervene_in_china_remove = yes
			add_named_threat = { threat = 10 name = JAP_secure_china }
			USA = { add_war_support = 0.05 }
			unlock_decision_tooltip = JAP_ichi_go
		}
	}

	focus = {
		id = JAP_develop_chinese_resources
		icon = GFX_goal_generic_construct_civilian
		prerequisite = { focus = JAP_secure_china }
		x = 0
		y = 1
		relative_position_id = JAP_secure_china

		cost = 10

		ai_will_do = {
			factor = 4
		}

		available = {
			OR = {
				AND = {
					has_full_control_of_state = 605
					has_full_control_of_state = 325
				}
				AND = {
					605 = {
						owner = { is_in_faction_with = JAP }
					}
					325 = {
						owner = { is_in_faction_with = JAP }
					}	
				}
			}
		}

		completion_reward = {
			605 = {
				add_resource = {
					type = aluminium
					amount = 8
				}
			}
			325 = {
				add_resource = {
					type = aluminium
					amount = 12
				}
			}
			if = {
				limit = {
					NOT = {
						has_tech = aluminum_production_1
					}
				}
				set_technology = { aluminum_production_1 = 1 }
				else = {
					add_tech_bonus = {
						name = construction_tech_bonus
						bonus = 1
						uses = 1
						category = aluminium_tech
					}					
				}
			}			
			unlock_decision_category_tooltip = prospect_for_resources
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_ALUMINIUM}
	}

	focus = {
		id = JAP_strike_south_doctrine
		icon = GFX_goal_generic_navy_doctrines_tactics
		prerequisite = { focus = JAP_greater_east_asian_co_prosperity_sphere }
		prerequisite = { focus = JAP_sign_tripartite_pact }
		x = 0
		y = 2
		relative_position_id = JAP_liaison_conference

		cost = 5

		ai_will_do = {
			factor = 2
			modifier = {
				factor = 2
				FRA = { has_war = yes }
			}
		}

		completion_reward = {
			add_doctrine_cost_reduction = {
				name = JAP_strike_south_doctrine
				cost_reduction = 0.5
				uses = 2
				category = naval_doctrine
			}
            add_tech_bonus = {
                name = infantry_artillery_bonus
                bonus = 1
                uses = 1
                category = summer_clothing_tech
            }			
			unlock_decision_tooltip = JAP_pressure_france
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}
	focus = {
		id = JAP_imperial_rule_assistance_association
		icon = GFX_focus_jap_showa_restoration
		prerequisite = { focus = JAP_strike_south_doctrine focus = JAP_intervene_in_china }
		x = -1
		y = 1
		relative_position_id = JAP_strike_south_doctrine

		cost = 5

		ai_will_do = {
			factor = 4
		}

		available = {
			OR = {
				has_government = fascism
				AND = {
					fascism > 0.4
				}
			}
			if = {
				limit = {
					is_subject = yes
				}
				OVERLORD = {
					has_government = fascism
				}
			}
		}

		completion_reward = {
			add_country_leader_role = {
				character = JAP_hideki_tojo
				promote_leader = yes
				country_leader = {
			  		ideology = fascism_ideology
				  	expire = "1965.1.1"
				  	traits = {
						imperial_sanction
						r56_trait_opposed_to_communism
				  	}
				}
			}			
			add_popularity = { ideology = fascism popularity = 0.2 }
			add_political_power = 150
			add_ideas = paramilitarism_focus
			set_party_name = { 
				ideology = fascism 
				long_name = JAP_imperial_rule_assistance_association_party 
				name = JAP_imperial_rule_assistance_association_party
			}			
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}
	focus = {
		id = JAP_non_aggression_pact_with_the_soviet_union
		icon = GFX_focus_generic_russian_deal_communist
		prerequisite = { focus = JAP_strike_south_doctrine }
		x = 0
		y = 2
		relative_position_id = JAP_strike_south_doctrine

		cost = 5

		ai_will_do = {
			factor = 2
		}

		bypass = {
			OR = {
				has_non_aggression_pact_with = SOV
				has_war_with = SOV
			}
		}

		completion_reward = {
			SOV = { country_event = { id = wtt_japan.11 } }
			unlock_decision_tooltip = develop_north_sakhalin_oil_deposits
		}
		search_filters = { FOCUS_FILTER_OIL FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = JAP_bypass_the_philippines
		icon = GFX_goal_generic_position_armies
		prerequisite = { focus = JAP_non_aggression_pact_with_the_soviet_union }
		mutually_exclusive = { focus = JAP_formosa_forward_operating_base }
		x = 1
		y = 1
		relative_position_id = JAP_non_aggression_pact_with_the_soviet_union

		cost = 10

		ai_will_do = {
			factor = 2
			modifier = {
				add = 3
				ROOT = {
					has_full_control_of_state = 286
				}
			}
		}

		completion_reward = {
			if = {
				limit = {
					ROOT = {
						NOT = {
							has_full_control_of_state = 286
							has_full_control_of_state = 671
							has_full_control_of_state = 336
						}
					}
				}
				add_war_support = -0.05
			}
			add_tech_bonus = {
				name = JAP_bypass_the_philippines
				bonus = 1
				uses = 1
				category = tp_tech
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = JAP_formosa_forward_operating_base
		icon = GFX_focus_JAP_formosa_base
		prerequisite = { focus = JAP_non_aggression_pact_with_the_soviet_union }
		mutually_exclusive = { focus = JAP_bypass_the_philippines }
		x = -1
		y = 1
		relative_position_id = JAP_non_aggression_pact_with_the_soviet_union

		will_lead_to_war_with = PHI

		cost = 10

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 10
				"PHI" = {
					has_war = yes
					NOT = { has_war_with = JAP }
				}
			}
			modifier = {
				has_war_with = SOV
				factor = 0
			}
			modifier = {
				has_civil_war = yes
				factor = 0
			}			
			modifier = {
				has_War_with = event_target:WTT_current_china_leader
				event_target:WTT_current_china_leader = {
					surrender_progress < 0.2
				}
				factor = 0
			}
			modifier = {
				surrender_progress > 0.1
				factor = 0
			}			
		}

		available = {
			524 = { is_owned_or_subject_trigger = yes }
			is_subject = no #either use bypass or take alternative no reason to do otherwise
		}

		select_effect = {	#makes the focus uncancellable, if thats an issue move this to an AI block
			if = { #allows the AI to plan for the strike on historical
				limit = {
					is_historical_focus_on = yes
					PHI = {
						r56_script_target_is_sane = yes
					}
				}
				add_ai_strategy = {
					type = prepare_for_war
					id = PHI
					value = 125
				}
				if = {
					limit = {
						PHI = {
							is_subject_of = USA
						}
					}
					add_ai_strategy = {
						type = prepare_for_war
						id = USA
						value = 100
					}
				}
			}
		}

		bypass = {
			OR = {
				has_war_with = PHI
				has_wargoal_against = PHI
			}
		}
		will_lead_to_war_with = PHI

		completion_reward = {
			if = {
				limit = {
					524 = {
						OWNER = { is_owned_or_subject_trigger = yes }
					}
				}
				524 = {
					add_building_construction = {
						type = coastal_bunker
						level = 2
						instant_build = yes
						province = 12068
					}
					add_building_construction = {
						type = coastal_bunker
						level = 2
						instant_build = yes
						province = 7186
					}
					add_building_construction = {
						type = naval_base
						province = 7186
						level = 2
						instant_build = yes
					}
					add_building_construction = {
						type = anti_air_building
						level = 2
						instant_build = yes
					}
					add_building_construction = {
						type = air_base
						level = 1
						instant_build = yes
					}					
				}
			}			
			if = { #allows the AI to plan for the strike on historical
				limit = {
					is_historical_focus_on = yes
					MAL = {
						r56_script_target_is_sane = yes
					}
				}
				set_country_flag = r56_mal_is_in_strike
				add_ai_strategy = {
					type = prepare_for_war
					id = MAL
					value = 125
				}
			}
			if = { #allows the AI to plan for the strike on historical
				limit = {
					is_historical_focus_on = yes
					INS = {
						r56_script_target_is_sane = yes
					}
				}
				add_ai_strategy = {
					type = prepare_for_war
					id = INS
					value = 125
				}
			}
			if = {
				limit = {	#moved back out of southern resource strike area which could bypass, breaking historical when Japan did especially well, but moved AI preparing into an immediate block for this focus
					country_exists = PHI					
				}
				create_wargoal = {
					target = PHI
					expire = 0
					type = annex_everything
				}
				add_ai_strategy = {
					type = conquer
					id = PHI
					value = 200
				}
				add_ai_strategy = {
					type = invade
					id = PHI
					value = 200
				}
				if = {
					limit = {
						PHI = { is_subject_of = USA }
					}
					add_ai_strategy = {
						type = conquer
						id = USA
						value = 250
					}
					add_ai_strategy = {
						type = declare_war
						id = USA
						value = 250
					}
					add_ai_strategy = {
						type = antagonize
						id = USA
						value = 500 
					}
				}
			}
			if = { #allows the AI to plan for the strike on historical
				limit = {
					is_historical_focus_on = yes
					JAP = {
						has_country_flag = r56_mal_is_in_strike
					}
					MAL = {
						is_subject_of = ENG
					}
					RAJ = {
						is_subject_of = ENG
						r56_script_target_is_sane = yes
					}
				}
				set_country_flag = r56_RAJ_is_in_strike
				add_ai_strategy = {
					type = prepare_for_war
					id = RAJ
					value = 100
				}
				add_ai_strategy = {
					type = prepare_for_war
					id = ENG
					value = 100
				}
			}
			if = { #allows the SIA AI to plan for the strike on historical
				limit = {
					is_historical_focus_on = yes
					JAP = {
						has_country_flag = r56_mal_is_in_strike
					}
					MAL = {
						exists = yes
					}
					SIA = {
						is_ai = yes
						is_in_faction_with = JAP
						exists = yes
						NOT = {
							has_war_with = ENG
						}
					}
				}
				add_ai_strategy = {
					type = prepare_for_war
					id = MAL
					value = 125
				}
			}
			if = { #allows the SIA AI to plan for the strike on historical
				limit = {
					is_historical_focus_on = yes
					JAP = {
						has_country_flag = r56_RAJ_is_in_strike
					}
					SIA = {
						is_ai = yes
						is_in_faction_with = JAP
						exists = yes
						NOT = {
							has_war_with = ENG
						}
					}
				}
				add_ai_strategy = {
					type = prepare_for_war
					id = RAJ
					value = 125
				}
				if = {
					limit = {
						RAJ = {
							is_subject_of = ENG
						}
					}
					add_ai_strategy = {
						type = prepare_for_war
						id = ENG
						value = 100
					}
				}
			}
			custom_effect_tooltip = JAP_taiwan_fob_prepare_tt			
		}
		search_filters = { FOCUS_FILTER_ANNEXATION }
	}
	focus = {
		id = JAP_strike_on_the_southern_resource_area
		icon = GFX_focus_jap_strike_south
		prerequisite = { focus = JAP_formosa_forward_operating_base focus = JAP_bypass_the_philippines }
		x = -1
		y = 1
		relative_position_id = JAP_bypass_the_philippines

		will_lead_to_war_with = ENG
		will_lead_to_war_with = MAL
		will_lead_to_war_with = INS

		cost = 5

		ai_will_do = {
			factor = 10
			modifier = {
				factor = 0
				date < 1940.1.1
			}
			modifier = {
				factor = 0
				ENG = { has_war = no }
				HOL = { has_war = no }
				
			}
			modifier = {
				has_war_with = SOV
				factor = 0
			}
			modifier = {
				has_civil_war = yes
				factor = 0
			}			
		}

		available = {	
			r56_script_i_am_sane = yes
			is_subject = no
			OR = {
				INS = {
					r56_script_target_is_sane = yes
				}
				MAL = {
					r56_script_target_is_sane = yes
				}				
			}
		}

		bypass = {
			OR = {
				AND = {
					OR = {
						has_wargoal_against = INS
						has_war_with = INS
					}
					OR = {
						has_wargoal_against = MAL
						has_war_with = MAL
					}
					OR = {
						custom_trigger_tooltip = {	#reduces huge bypass tooltip
							tooltip = JAP_french_indochina_not_controlled_by_indochina_or_france
							671 = {
								NOT = {
									is_controlled_by = FRA
									is_controlled_by = FRI
								}
							}
							670 = {
								NOT = {
									is_controlled_by = FRA
									is_controlled_by = FRI
								}
							}
							286 = {
								NOT = {
									is_controlled_by = FRA
									is_controlled_by = FRI
								}
							}
							741 = {
								NOT = {
									is_controlled_by = FRA
									is_controlled_by = FRI
								}
							}
							924 = {
								NOT = {
									is_controlled_by = FRA
									is_controlled_by = FRI
								}
							}
							925 = {
								NOT = {
									is_controlled_by = FRA
									is_controlled_by = FRI
								}
							}
							926 = {
								NOT = {
									is_controlled_by = FRA
									is_controlled_by = FRI
								}
							}
						}
						has_wargoal_against = FRA
						has_war_with = FRA
					}
				}
				if = {	#moved to if block to make the condition list less extremely long
					limit = {
						is_subject = yes
					}
					OR = {
						has_full_control_of_state = 333
						has_full_control_of_state = 672
						has_full_control_of_state = 974
						has_full_control_of_state = 334
						has_full_control_of_state = 977
						has_full_control_of_state = 978
					}
					has_full_control_of_state = 916
					has_full_control_of_state = 671
					else ={
						hidden_trigger = {
							always = no
						}
					}
				}
			}
		}

		
		completion_reward = {
            add_tech_bonus = {
                name = infantry_artillery_bonus
                bonus = 1
                uses = 2
                category = r56_jungle_infantry_tech
			}
			if = {
				limit = {
					NOT = { has_wargoal_against = INS }
					NOT = { has_war_with = INS }
					country_exists = INS
					if = {
						limit = {
							INS = { is_subject_of = HOL }
						}
						OR = {
							has_country_flag = HOL_declare_war_indies_allowed
							HOL = { NOT = { has_completed_focus = HOL_placate_the_japanese } }
						}
					}
				}
				create_wargoal = {
					target = INS
					expire = 0
					type = annex_everything
				}
				add_ai_strategy = {
					type = invade
					id = INS
					value = 200
				}
				add_ai_strategy = {
					type = conquer
					id = INS
					value = 200
				}
			}
			if = {
				limit = {
					INS = { exists = no }
					976 = {
						CONTROLLER = {
							NOT = {
								is_in_faction_with = ROOT
							}
						}
					}
					if = {
						limit = {
							976 = {
								CONTROLLER = {
									tag = HOL
								}
							}
						}
						OR = {
							has_country_flag = HOL_declare_war_indies_allowed
							HOL = { NOT = { has_completed_focus = HOL_placate_the_japanese } }
						}
					}
				}
				976 = {
					OWNER = {
						ROOT = {
							create_wargoal = {
								target = PREV
								expire = 0
								type = take_state_focus
								generator = { 976 334 672 673 668 667 669 738 974 975 977 978 }
							}
							add_ai_strategy = {
								type = conquer
								id = PREV
								value = 200
							}
						}
					}
				}
			}
			if = {
				limit = {
					NOT = { has_wargoal_against = MAL }
					NOT = { has_war_with = MAL }
					country_exists = MAL
				}
				create_wargoal = {
					target = MAL
					expire = 0
					type = annex_everything
				}
				add_ai_strategy = {
					type = invade
					id = MAL
					value = 200
				}
				add_ai_strategy = {
					type = conquer
					id = MAL
					value = 200
				}
			}
			if = {
				limit = {
					MAL = { exists = no }
					336 = {
						CONTROLLER = {
							NOT = {
								is_in_faction_with = ROOT
							}
						}
					}
				}
				336 = {
					OWNER = {
						ROOT = {
							create_wargoal = {
								target = PREV
								expire = 0
								type = take_state_focus
								generator = { 336 }
							}
							add_ai_strategy = {
								type = conquer
								id = PREV
								value = 200
							}
						}
					}
				}
			}
			if = {
				limit = {
					OR = {
						671 = {
							is_controlled_by = FRA
						}
						670 = {
							is_controlled_by = FRA
						}
						286 = {
							is_controlled_by = FRA
						}
						741 = {
							is_controlled_by = FRA
						}
						924 = {
							is_controlled_by = FRA
						}
						925 = {
							is_controlled_by = FRA
						}
						926 = {
							is_controlled_by = FRA
						}
						918 = {
							is_controlled_by = FRA
						}
						928 = {
							is_controlled_by = FRA
						}
					}
					NOT = { has_wargoal_against = FRA }
					NOT = { has_war_with = FRA }
				}
				#Might be generating on states FRA does not own, but not worth the time to get it exact. Should have no gameplay impact.
				create_wargoal = {
					target = FRA
					expire = 0
					type = take_state_focus
					generator = { 671 670 286 741 924 925 926 927 928 }
				}
			}
			if = {
				limit = {
					OR = {
						671 = {
							is_controlled_by = FRI
						}
						670 = {
							is_controlled_by = FRI
						}
						286 = {
							is_controlled_by = FRI
						}
						741 = {
							is_controlled_by = FRI
						}
						924 = {
							is_controlled_by = FRI
						}
						925 = {
							is_controlled_by = FRI
						}
						926 = {
							is_controlled_by = FRI
						}
						918 = {
							is_controlled_by = FRI
						}
						928 = {
							is_controlled_by = FRI
						}
					}
					NOT = { has_wargoal_against = FRI }
					NOT = { has_war_with = FRI }
				}
				#Might be generating on states FRI does not own, but not worth the time to get it exact. Should have no gameplay impact.
				create_wargoal = {
					target = FRI
					expire = 0
					type = take_state_focus
					generator = { 671 670 286 741 924 925 926 927 928 }
				}
			}
			if = { #AI handicap idea and equipment so they can pull this off
				limit = {
						check_variable = { global.r56_var_multiplayer < 1 } #You don't get a handicap in MP
					JAP = {
						is_ai = yes
						is_major = yes
					}
					OR = {
						PHI = {
							exists = yes
						}
						INS = {
							exists = yes
						}
						MAL = {
							exists = yes
						}
						FRI = {
							exists = yes
						}
					}
					if = 	{#don't make it harder for a player
						limit = {
							PHI = {
								exists = yes
							}
						}
						PHI = {
							is_ai = yes
						}	
					}
					if = {
						limit = {
							MAL = {
								exists = yes
							}
						}
						MAL = {
							is_ai = yes
						}	
					}
					if = {
						limit = {
							INS = {
								exists = yes
							}
						}
						INS = {
							is_ai = yes
						}	
					}
					if = {
						limit = {
							FRI = {
								exists = yes
							}
						}
						FRI = {
							is_ai = yes
						}	
					}
				}
				add_timed_idea = {
					idea = JAP_r56_nanshin_ron_ai
					days = 90
				}
				hidden_effect = {
					add_fuel = 4500
					add_equipment_to_stockpile = {
						type = convoy_1
						amount = 50
						producer = JAP
					}
				}
			}
			else = {
				add_timed_idea = {
					idea = JAP_r56_nanshin_ron_player
					days = 60
				}
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_ANNEXATION }
	}
	focus = {
		id = JAP_proclaim_indonesian_liberation
		icon = GFX_goal_flag_indonesia
		x = -1
		y = 1
		prerequisite = {
			focus = JAP_strike_on_the_southern_resource_area
		}
		relative_position_id = JAP_strike_on_the_southern_resource_area
		cost = 10

		ai_will_do = {
			factor = 50
		}

		allow_branch = {
			#has_dlc = "La Resistance"
		}

		available = {
			is_subject = no
			OR = {
				INS = {
					is_subject_of = ROOT
				}
				any_state = {
					is_core_of = INS
					is_controlled_by = ROOT
				}
			}
		}
		
		bypass = {

		}
		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			add_relation_modifier = {
				target = INS
				modifier = JAP_proclaim_indonesian_liberation
			}			
		}
	}
	focus = {
		id = JAP_support_the_indian_independence_league
		icon = GFX_goal_RAJ_dreams_of_ahand_hindustan
		x = 0
		y = 2
		prerequisite = {
			focus = JAP_strike_on_the_southern_resource_area
		}
		relative_position_id = JAP_strike_on_the_southern_resource_area
		cost = 10

		ai_will_do = {
			factor = 3
		}

		allow_branch = {
			#has_dlc = "La Resistance"
		}

		available = {
			is_subject = no
			OR = {
				RAJ = {
					is_subject_of = ROOT
				}
				any_state = {
					is_core_of = RAJ
					is_controlled_by = ROOT
				}
			}
		}
		
		bypass = {

		}
		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			add_relation_modifier = {
				target = RAJ
				modifier = JAP_indian_independence_league
			}			
		}
	}
	focus = {
		id = JAP_indian_liberation_army
		icon = GFX_goal_RAJ_indian_revolt
		x = 0
		y = 1
		prerequisite = {
			focus = JAP_support_the_indian_independence_league
		}
		relative_position_id = JAP_support_the_indian_independence_league
		cost = 10

		ai_will_do = {
			factor = 50
		}

		allow_branch = {
			#has_dlc = "La Resistance"
		}

		available = {
			OR = {
				RAJ = {
					is_subject = yes
					OVERLORD = {
						has_war_with = ROOT
					}
				}
				any_country = {
					original_tag = RAJ
					is_in_faction_with = ROOT
				}
			}
			
		}
		
		bypass = {

		}
		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			if = {
				limit = {
					OVERLORD = {
						RAJ = {
							has_war_with = ROOT
						}
					}
				}
				add_manpower = 50000
			}
			if = {
				limit = {
					any_country = {
						original_tag = RAJ
						is_in_faction_with = ROOT
					}
				}
				add_doctrine_cost_reduction = {
					name = JAP_build_up_the_manchurian_army
					cost_reduction = 0.5
					uses = 2				
					category = land_doctrine
				}
				if = {
					limit = { has_equipment = { support_equipment > 500 } }

					send_equipment = {
						target = PREV
						equipment = support_equipment
						amount = 500
						old_prioritised = yes
					}
				}

				if = {
					limit = { has_equipment = { artillery_equipment > 250 } }
					send_equipment = {
						target = PREV
						equipment = artillery_equipment
						amount = 250
						old_prioritised = yes
					}
				}				
			}		
		}
	}
	focus = {
		id = JAP_proclaim_philippines_liberation
		icon = GFX_goal_philippines_post_independence_stabilization
		x = -3
		y = 1
		prerequisite = {
			focus = JAP_strike_on_the_southern_resource_area
		}
		relative_position_id = JAP_strike_on_the_southern_resource_area
		cost = 10

		ai_will_do = {
			factor = 50
		}

		allow_branch = {
			#has_dlc = "La Resistance"
		}

		available = {
			is_subject = no
			OR = {
				PHI = {
					is_subject_of = ROOT
				}
				controls_state = 623
				controls_state = 327
				controls_state = 624
				controls_state = 625
				controls_state = 628
				controls_state = 627
			}
		}
		
		bypass = {

		}
		
		
		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			add_relation_modifier = {
				target = PHI
				modifier = JAP_proclaim_philippines_liberation
			}			
		}
	}		
	focus = {
		id = JAP_support_the_burmese_liberation_movement
		icon = GFX_goal_generic_befriend_burma
		x = 1
		y = 1
		prerequisite = {
			focus = JAP_strike_on_the_southern_resource_area
		}
		relative_position_id = JAP_strike_on_the_southern_resource_area
		cost = 10

		ai_will_do = {
			factor = 50
		}

		allow_branch = {
			#has_dlc = "La Resistance"
		}

		available = {
			is_subject = no
			288 = {
				NOT = {
					is_core_of = RAJ
				}
			}
			OR = {
				BRM = {
					is_subject_of = ROOT
				}
				any_state = {
					is_core_of = BRM
					is_controlled_by = ROOT
				}
			}
			NOT = {
				BRM = {
					has_war_with = ROOT
				}
			}
		}
		
		bypass = {

		}
		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			add_relation_modifier = {
				target = BRM
				modifier = JAP_support_the_burmese_liberation_movement
			}			
		}
	}	
	focus = {
		id = JAP_alliance_with_siam
		icon = GFX_goal_generic_befriend_siam
		prerequisite = { focus = JAP_strike_south_doctrine }
		x = 1
		y = 1
		relative_position_id = JAP_strike_south_doctrine

		cost = 5

		ai_will_do = {
			factor = 5
		}

		available = {
			is_faction_leader = yes
			country_exists = SIA
			SIA = {
				is_in_faction = no
				OR = {
					has_government = fascism
					has_government = neutrality
				}
				NOT = {
					has_war_with = ROOT
				}
				is_puppet = no
			}
		}

		bypass = {
			is_in_faction_with = SIA
		}


		completion_reward = {
			SIA = { country_event = generic.5 }
			add_ai_strategy = {
				type = protect
				id = SIA
				value = 100
			}
		}
		search_filters = { FOCUS_FILTER_ALLIANCE }
	}

	focus = {
		id = JAP_exploit_the_southern_resource_area
		icon = GFX_goal_generic_construction2
		prerequisite = { focus = JAP_coal_liquification }
		prerequisite = { focus = JAP_strike_on_the_southern_resource_area }
		x = 3
		y = 1
		relative_position_id = JAP_strike_on_the_southern_resource_area

		cost = 10

		ai_will_do = {
			factor = 10
		}

		available = {
			OR = {
				has_full_control_of_state = 333
				has_full_control_of_state = 672
				has_full_control_of_state = 974
				has_full_control_of_state = 334
				has_full_control_of_state = 977
				has_full_control_of_state = 978
			}
			has_full_control_of_state = 916
			has_full_control_of_state = 671
		}


		completion_reward = {
			916 = {
				add_resource = {
					type = aluminium
					amount = 12
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			333 = {
				if = {
					limit = { is_fully_controlled_by = ROOT }
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
			}
			672 = {
				if = {
					limit = { is_fully_controlled_by = ROOT }
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
			}
			974 = {
				if = {
					limit = { is_fully_controlled_by = ROOT }
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
			}
			334 = {
				if = {
					limit = { is_fully_controlled_by = ROOT }
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
			}
			977 = {
				if = {
					limit = { is_fully_controlled_by = ROOT }
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
			}
			978 = {
				if = {
					limit = { is_fully_controlled_by = ROOT }
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
			}
			671 = {
				add_resource = {
					type = aluminium
					amount = 6
				}
			}
			if = {
				limit = {
					NOT = {
						has_tech = aluminum_production_1
					}
				}
				set_technology = { aluminum_production_1 = 1 }
				else = {
					add_tech_bonus = {
						name = construction_tech_bonus
						bonus = 1
						uses = 1
						category = aluminium_tech
					}					
				}
			}	
			unlock_decision_category_tooltip = prospect_for_resources
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_ALUMINIUM}
	}

	focus = {
		id = JAP_sign_tripartite_pact
		icon = GFX_goal_generic_the_axis
		prerequisite = { focus = JAP_liaison_conference }
		x = 1
		y = 1
		relative_position_id = JAP_liaison_conference

		cost = 10

		ai_will_do = {
			factor = 3
			modifier = {
				factor = 0
				NOT = { GER = { is_in_faction_with = ITA } }
			}
		}

		available = {
			any_country = {
				original_tag = GER
				has_government = fascism
				NOT = { has_war_with = ROOT }
			}
			any_country = {
				original_tag = ITA
				has_government = fascism
				NOT = { has_war_with = ROOT }
			}
		}

		bypass = {
			custom_trigger_tooltip = {
				tooltip = JAP_sign_tripartite_pact_bypass_tt
				OR = {
					NOT = {
						any_country = {
							original_tag = GER
							has_government = fascism
						}
					}
					any_country = {
						original_tag = GER
						has_government = fascism
						has_war_with = ROOT
					}
					NOT = {
						any_country = {
							original_tag = ITA
							has_government = fascism
						}
					}
					any_country = {
						original_tag = ITA
						has_government = fascism
						has_war_with = ROOT
					}
				}
			}
		}


		completion_reward = {
			random_country = {
				limit = {
					original_tag = GER
					has_government = fascism
				}
				country_event = { id = wtt_japan.109 days = 1 }
			}
		}
	}

	focus = {
		id = JAP_guide_the_zaibatsus
		icon = GFX_focus_jap_zaibatsu
		prerequisite = { focus = JAP_purge_the_kodoha_faction }
		x = 1
		y = 1
		relative_position_id = JAP_purge_the_kodoha_faction

		cost = 5

		ai_will_do = {
			factor = 3
		}

		complete_tooltip = {
			random_state = {
				limit = {
					has_state_flag = JAP_zaibatsus_factories
				}
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
			}			
			swap_ideas = {
				remove_idea = JAP_zaibatsus
				add_idea = JAP_guide_the_zaibatsus
			}
		}

		completion_reward = {
			random_owned_controlled_state = {
				
				limit = {
					is_in_home_area = yes
					ROOT = { has_full_control_of_state = PREV }
					is_core_of = ROOT
					not = {
						state = 646
						state = 645
						state = 555
					}
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
				set_state_flag = JAP_zaibatsus_factories
			}
			random_owned_controlled_state = {
				limit = {
					is_in_home_area = yes
				}
				add_extra_state_shared_building_slots = 1
				
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
				set_state_flag = JAP_zaibatsus_factories
			}
			random_owned_controlled_state = {
				prioritize = { 531 282 }
				limit = {
					ROOT = { has_full_control_of_state = PREV }
					is_core_of = ROOT
					
					free_building_slots = {
						building = dockyard
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				prioritize = { 528 529 }
				limit = {
					ROOT = { has_full_control_of_state = PREV }
					is_core_of = ROOT
					
					free_building_slots = {
						building = dockyard
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
			}											
			swap_ideas = {
				remove_idea = JAP_zaibatsus
				add_idea = JAP_guide_the_zaibatsus
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = JAP_nationalize_war_industry
		icon = GFX_goal_generic_state_economy
		prerequisite = { focus = JAP_guide_the_zaibatsus }
		prerequisite = { focus = JAP_national_mobilization_law }
		x = 0
		y = 2
		relative_position_id = JAP_guide_the_zaibatsus

		cost = 10

		ai_will_do = {
			factor = 3
		}

		complete_tooltip = {
			random_state = {
				limit = {
					has_state_flag = JAP_nationalize_war_industry_AF
				}
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
			}
			random_state = {
				limit = {
					has_state_flag = JAP_nationalize_war_industry_IC
				}
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
			}
		}

		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					ROOT = { has_full_control_of_state = PREV }
					is_in_home_area = yes
					is_core_of = ROOT
					not = {
						state = 646
						state = 645
						state = 555
					}
					free_building_slots = {
						building = arms_factory
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
				set_state_flag = JAP_nationalize_war_industry_AF
			}
			random_owned_controlled_state = {
				limit = {
					
					is_in_home_area = yes
					
					ROOT = { has_full_control_of_state = PREV }
					is_core_of = ROOT
					not = {
						state = 646
						state = 645
						state = 555
					}
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
				set_state_flag = JAP_nationalize_war_industry_IC
			}
			random_owned_controlled_state = {
				limit = {
					
					is_in_home_area = yes
					
					ROOT = { has_full_control_of_state = PREV }
					is_core_of = ROOT
					not = {
						state = 646
						state = 645
						state = 555
					}
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}				
			}			
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = JAP_coal_liquification
		icon = GFX_goal_generic_oil_refinery
		prerequisite = { focus = JAP_nationalize_war_industry }
		x = 0
		y = 6
		relative_position_id = JAP_guide_the_zaibatsus

		cost = 10

		ai_will_do = {
			factor = 2
		}

		available = {
			any_controlled_state = {
				is_core_of = ROOT
				synthetic_refinery < 3
			}
		}
		

		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					is_core_of = ROOT
					synthetic_refinery < 3
					free_building_slots = { #less than 24 unlocked slots
						building = industrial_complex
						size > 0
						include_locked = yes
					}
				}
				prioritize = { 528 }
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = synthetic_refinery
					level = 1
					instant_build = yes
				}
			}
			add_tech_bonus = {
				name = JAP_coal_liquification
				bonus = 1
				uses = 2
				category = synth_resources
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH FOCUS_FILTER_OIL }
	}

	focus = {
		id = JAP_national_mobilization_law
		icon = GFX_goal_JAP_sakura_infantry
		prerequisite = { focus = JAP_guide_the_zaibatsus focus = JAP_challenge_the_zaibatsus }
		x = 2
		y = 1
		relative_position_id = JAP_guide_the_zaibatsus
		#offset = {
		#	x = 0
		#	y = 0
		#	trigger = {
		#		has_game_rule = {
		#			rule = obsolete_focus_branches_visibility
		#			option = HIDE
		#		}
		#		has_completed_focus = JAP_purge_the_kodoha_faction
		#	}
		#}
		offset = {
			x = -20
			y = 0
			trigger = {
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
				has_completed_focus = JAP_support_the_kodoha_faction
			}
		}
		allow_branch = {
			if = {
				limit = {
					has_game_rule = {
						rule = obsolete_focus_branches_visibility
						option = HIDE
					}
				}
				NOT = {
					OR = {
						has_completed_focus = JAP_the_unthinkable_option
						has_completed_focus = JAP_strengthen_civilian_government
					}
				}
			}
		}
		cost = 5

		ai_will_do = {
			factor = 2
		}


		completion_reward = {
			if = {
				limit = {
					has_war_support < 0.5
				}
				add_war_support = 0.1
			}
			else_if = {
				limit = {
					has_idea = war_economy
				}
				add_political_power = 150
			}
			else = {
				add_ideas = war_economy
			}
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = fumimaro_konoe
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_POLITICAL FOCUS_FILTER_WAR_SUPPORT }
	}

	focus = {
		id = JAP_national_research_policy
		icon = GFX_goal_research_silver
		prerequisite = { focus = JAP_national_mobilization_law }
		x = 0
		y = 1
		relative_position_id = JAP_national_mobilization_law

		cost = 10

		ai_will_do = {
			factor = 4
		}


		completion_reward = {
			add_research_slot = 1
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = JAP_imperial_arsenals
		icon = GFX_goal_generic_construct_mil_factory
		prerequisite = { focus = JAP_national_mobilization_law }
		prerequisite = { focus = JAP_challenge_the_zaibatsus }
		x = 2
		y = 1
		relative_position_id = JAP_national_mobilization_law

		cost = 10

		ai_will_do = {
			factor = 3
		}

		complete_tooltip = {
			random_state = {
				limit = {
					has_state_flag = JAP_imperial_arsenals1
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
			}
			random_state = {
				limit = {
					has_state_flag = JAP_imperial_arsenals2
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					
					is_in_home_area = yes
					
					ROOT = { has_full_control_of_state = PREV }
					is_core_of = ROOT
					not = {
						state = 646
						state = 645
						state = 555
					}
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
			}			
		}

		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					is_in_home_area = yes
					is_fully_controlled_by = PREV
					is_core_of = ROOT
					not = {
						state = 646
						state = 645
						state = 555
					}
					free_building_slots = {
						building = arms_factory
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
				set_state_flag = JAP_imperial_arsenals1
			}
			random_owned_controlled_state = {
				limit = {
					is_in_home_area = yes
					is_fully_controlled_by = PREV
					is_core_of = ROOT
					not = {
						state = 646
						state = 645
						state = 555
					}
					free_building_slots = {
						building = arms_factory
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
				set_state_flag = JAP_imperial_arsenals2
			}
			random_owned_controlled_state = {
				limit = {
					is_in_home_area = yes
					is_fully_controlled_by = PREV
					is_core_of = ROOT
					not = {
						state = 646
						state = 645
						state = 555
					}
					free_building_slots = {
						building = arms_factory
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
				set_state_flag = JAP_imperial_arsenals3
			}			
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = JAP_national_defense_state
		icon = GFX_goal_JAP_defence
		prerequisite = { focus = JAP_shining_sun }
		x = 6
		y = 1
		relative_position_id = JAP_shining_sun

		cost = 10

		ai_will_do = {
			factor = 1
		}

		available = {
			has_idea = war_economy
		}
		
		completion_reward = {
			if = {
				limit = {
					has_war_support < 0.8
				}
				add_war_support = 0.1
			}
			if = {
				limit = {
					NOT = { has_idea = extensive_conscription }
				}
				add_ideas = extensive_conscription
			}
			if = {
				limit = {
					has_idea = tot_economic_mobilisation
				}
				add_political_power = 150
			}
			else = {
				add_ideas = tot_economic_mobilisation
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 1
						include_locked = yes
					}
					is_core_of = JAP
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 1
						include_locked = yes
					}
					is_core_of = JAP
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_POLITICAL FOCUS_FILTER_MANPOWER FOCUS_FILTER_WAR_SUPPORT }
	}
	focus = {
		id = JAP_black_dragon_society
		icon = GFX_goal_generic_spy_connection
		cost = 5
		prerequisite = {
			focus = JAP_support_the_kodoha_faction
			focus = JAP_purge_the_kodoha_faction
		}
		allow_branch = {
			has_dlc = "La Resistance"
			if = {
				limit = {
					has_game_rule = {
						rule = obsolete_focus_branches_visibility
						option = HIDE
					}
				}
				NOT = {
					has_completed_focus = JAP_the_unthinkable_option
					has_completed_focus = JAP_strengthen_civilian_government
				}
			}
		}		
		relative_position_id = JAP_purge_the_kodoha_faction
		x = 3
		y = 1
		offset = {
			x = -20
			y = 0
			trigger = {
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
				has_completed_focus = JAP_support_the_kodoha_faction
			}
		}
		ai_will_do = {
			factor = 10
			modifier = {
				is_historical_focus_on = yes
				factor = 0.5
			}
		}
		available = {
			has_intelligence_agency = yes
		}
		completion_reward = {
			add_ideas = GER_abwehr_contacts
			add_political_power = 60				
		}
		search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_ESPIONAGE }
	}
	focus = {
		id = JAP_spiritual_mobilization
		icon = GFX_focus_jap_spiritual_mobilization
		prerequisite = { focus = JAP_national_defense_state }
		x = -2
		y = 1
		relative_position_id = JAP_national_defense_state

		cost = 10

		ai_will_do = {
			factor = 4
		}

		completion_reward = {
			add_ideas = spiritual_mobilization_idea
			custom_effect_tooltip = peace_conference_spiritual_mob_modifier_japan
		}
		search_filters = { FOCUS_FILTER_MANPOWER }
	}

	focus = {
		id = JAP_warrior_spirit
		icon = GFX_focus_generic_japanese_imperial_glory
		prerequisite = { focus = JAP_national_defense_state }
		x = 2
		y = 1
		relative_position_id = JAP_national_defense_state

		cost = 10

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_war = no
			}
			modifier = {
				factor = 10
				surrender_progress > 0.9
			}
		}

		completion_reward = {
			hidden_effect = {
				set_rule = {
					can_use_kamikaze_pilots = yes
				}
			}
			custom_effect_tooltip = kamikaze_focus_tooltip
			custom_effect_tooltip = cost_reduced_last_stand
		}
		search_filters = { FOCUS_FILTER_MILITARY_IMPROVEMENT }
	}

	focus = {
		id = JAP_strengthen_the_divine_wind
		icon = GFX_goal_JAP_tides
		prerequisite = { focus = JAP_spiritual_mobilization }
		prerequisite = { focus = JAP_warrior_spirit }
		prerequisite = { focus = JAP_iron_will }
		x = 0
		y = 1
		relative_position_id = JAP_iron_will

		cost = 10

		ai_will_do = {
			factor = 3
		}

		available = {
			is_special_project_completed = sp:sp_rocket_interceptor
		}
		completion_reward = {
			if = {
				limit = {
					NOT = { has_dlc = "By Blood Alone" }
				}
				custom_effect_tooltip = JAP_strengthen_the_divine_wind_effect
				hidden_effect = { set_technology = { suicide_craft = 1 } }
			}
			else = {
				custom_effect_tooltip = JAP_strengthen_the_divine_wind_effect_bba
				hidden_effect = { set_technology = { suicide_charge = 1 popup = no} }
			}
			add_war_support = 0.1
		}
	}

	focus = {
		id = JAP_nishina_okochi_directive
		icon = GFX_goal_generic_nuclear_energy
		prerequisite = { focus = JAP_strengthen_the_divine_wind }
		x = 0
		y = 1
		relative_position_id = JAP_strengthen_the_divine_wind

		cost = 10

		ai_will_do = {
			factor = 3
		}

		available = {
			has_tech = atomic_research
		}
		completion_reward = {
			add_breakthrough_progress = {
				specialization = specialization_nuclear
				value = 0.5
			}
			if = {
				limit = { 
					ROOT = {
						has_character = JAP_yoshio_nishina
					}
				}
				custom_effect_tooltip = generic_skip_one_line_tt
				ROOT = { 
					JAP_yoshio_nishina = {
						add_scientist_xp = {
							experience = 300
							specialization = specialization_nuclear
						}
					}
				}
			}
		}
	}

	focus = {
		id = JAP_support_the_kodoha_faction
		icon = GFX_goal_JAP_kodoha
		allow_branch = {
			if = {
				limit = {
					has_game_rule = {
						rule = obsolete_focus_branches_visibility
						option = HIDE
					}
				}
				NOT = {
					OR = {
						has_completed_focus = JAP_the_unthinkable_option
						has_completed_focus = JAP_purge_the_kodoha_faction
						has_completed_focus = JAP_strengthen_civilian_government
					}
				}
			}
		}
		mutually_exclusive = { focus = JAP_purge_the_kodoha_faction focus = JAP_the_unthinkable_option focus = JAP_strengthen_civilian_government }
		x = 8
		y = 0
		relative_position_id = JAP_purge_the_kodoha_faction
		cost = 5
		offset = {
			x = -20
			y = 0
			trigger = {
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
				has_completed_focus = JAP_support_the_kodoha_faction
			}
		}
		ai_will_do = {
			factor = 3
		}

		completion_reward = {
			add_political_power = 100
			country_event = { id = wtt_japan.108 }
			set_party_name = {
			    ideology = neutrality
			    long_name = JAP_neutrality_party_kodoha_long
			    name = JAP_neutrality_party_kodoha
			}
			JAP_sadao_araki={ # make araki field marshal
				promote_leader = yes
			}

		    custom_effect_tooltip = available_chief_of_army # strongly suggest to pick one of the kodoha head as chief of the army
			show_ideas_tooltip = JAP_jinzaburo_masaki
			#add_ideas = JAP_jinzaburo_masaki
			
			
			mark_focus_tree_layout_dirty = yes
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = JAP_challenge_the_zaibatsus
		icon = GFX_focus_jap_zaibatsu
		prerequisite = { focus = JAP_support_the_kodoha_faction }
		x = -3
		y = 1
		relative_position_id = JAP_support_the_kodoha_faction

		cost = 5

		ai_will_do = {
			factor = 3
		}

		complete_tooltip = {
			random_state = {
				limit = {
					has_state_flag = JAP_zaibatsus_factories
				}
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
			}
			swap_ideas = {
				remove_idea = JAP_zaibatsus
				add_idea = JAP_zaibatsus_challenged
			}
		}

		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					ROOT = { has_full_control_of_state = PREV }
					is_core_of = ROOT
					not = {
						state = 646
						state = 645
						state = 555
					}
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
				set_state_flag = JAP_zaibatsus_factories
			}
			random_owned_controlled_state = {
				limit = {
					
					is_in_home_area = yes
					
					ROOT = { has_full_control_of_state = PREV }
					is_core_of = ROOT
					not = {
						state = 646
						state = 645
						state = 555
					}
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}			
			swap_ideas = {
				remove_idea = JAP_zaibatsus
				add_idea = JAP_zaibatsus_challenged
			}
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = JAP_seigo_nakano
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_STABILITY }
	}

	focus = {
		id = JAP_showa_restoration
		icon = GFX_focus_jap_showa_restoration
		prerequisite = { focus = JAP_support_the_kodoha_faction }
		mutually_exclusive = { focus = JAP_modern_shogunate }
		x = 1
		y = 1
		relative_position_id = JAP_support_the_kodoha_faction

		cost = 5

		ai_will_do = {
			factor = 2
		}


		completion_reward = {
			set_cosmetic_tag = JAP_showa_restoration
			swap_ideas = {
				remove_idea = JAP_militarism
				add_idea = JAP_militarism_showa
			}
		}
		search_filters = { FOCUS_FILTER_MILITARY_IMPROVEMENT FOCUS_FILTER_ANNEXATION FOCUS_FILTER_INDUSTRY FOCUS_FILTER_POLITICAL FOCUS_FILTER_WAR_SUPPORT }
	}

	focus = {
		id = JAP_modern_shogunate
		icon = GFX_goal_samurai
		prerequisite = { focus = JAP_support_the_kodoha_faction }
		mutually_exclusive = { focus = JAP_showa_restoration }
		x = -1
		y = 1
		relative_position_id = JAP_support_the_kodoha_faction

		cost = 5

		ai_will_do = {
			factor = 1
		}


		completion_reward = {
			set_victory_points = {
				province = 11960
				value = 50
			}
			set_capital = { state = 531 }
			hidden_effect = {
				set_victory_points = {
					province = 1182
					value = 40
				}
			}
			swap_ideas = {
				remove_idea = JAP_militarism
				add_idea = JAP_militarism_shogunate
			}

			JAP_shigeru_honjo={	
				add_advisor_role = {
					activate = no
					advisor = {
						slot = political_advisor
						cost = 50
						idea_token = JAP_shigeru_honjo
						traits = {
							JAP_jingoistic_aide_de_camp
						}
					}
				}
			}	
		}
		search_filters = { FOCUS_FILTER_MILITARY_IMPROVEMENT FOCUS_FILTER_ANNEXATION FOCUS_FILTER_RESEARCH FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_INDUSTRY FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = JAP_prepare_for_war_with_the_soviet_union
		icon = GFX_focus_SOV_reinforce_northern_naval_bases
		prerequisite = { focus = JAP_modern_shogunate focus = JAP_showa_restoration }
		x = 1
		y = 1
		relative_position_id = JAP_modern_shogunate
		text = r56_JAP_prepare_for_war_with_the_soviet_union

		cost = 10

		ai_will_do = {
			factor = 2
		}


		completion_reward = {
            add_doctrine_cost_reduction = {
                name = JAP_prepare_for_war_with_the_soviet_union
                cost_reduction = 0.5
                uses = 1
				category = land_doctrine
			}
            add_tech_bonus = {
                name = infantry_artillery_bonus
                bonus = 3
                uses = 1
                category = winter_clothing_tech
            }				
			every_owned_state = {
				limit = {
					is_fully_controlled_by = ROOT
					is_owned_by = ROOT
					any_neighbor_state = {
						OR = {
							is_controlled_by = SOV
							AND = {
								is_controlled_by = MON
								MON = { is_in_faction_with = SOV }
							}
							AND = {
								is_controlled_by = SIK
								SIK = { is_in_faction_with = SOV }
							}
						}
					}
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			MAN = {
				every_owned_state = {
					limit = {
						is_fully_controlled_by = MAN
						is_owned_by = MAN
						MAN = { is_puppet_of = JAP }
					}
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
			}
			MEN = {
				every_owned_state = {
					limit = {
						is_fully_controlled_by = MEN
						is_owned_by = MEN
						MEN = { is_puppet_of = JAP }
					}
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = JAP_join_the_london_naval_treaty
		icon = GFX_goal_naval_treaty
		prerequisite = { focus = JAP_prepare_for_war_with_the_soviet_union }
		x = -1
		y = 1
		relative_position_id = JAP_prepare_for_war_with_the_soviet_union

		cost = 5

		ai_will_do = {
			factor = 3
		}

		available = {
			NOT = { has_war_with = FRA }
			NOT = { has_war_with = ENG }
			NOT = { has_war_with = USA }
		}

		bypass = {
			has_naval_treaty_trigger = yes
		}


		completion_reward = {
			if = {
				limit = { not = { has_dlc = "Man the Guns" } }
				add_ideas = JAP_the_london_naval_treaty
				unlock_decision_tooltip = { decision = JAP_break_the_london_naval_treaty show_effect_tooltip = yes }
			}
			else = {
				add_ideas = MTG_naval_treaty_adherent
			}
			FRA = { add_opinion_modifier = { target = ROOT modifier = JAP_join_the_london_naval_treaty } }
			USA = { add_opinion_modifier = { target = ROOT modifier = JAP_join_the_london_naval_treaty } }
			ENG = { add_opinion_modifier = { target = ROOT modifier = JAP_join_the_london_naval_treaty } }
			add_opinion_modifier = { target = FRA modifier = JAP_join_the_london_naval_treaty }
			add_opinion_modifier = { target = USA modifier = JAP_join_the_london_naval_treaty }
			add_opinion_modifier = { target = ENG modifier = JAP_join_the_london_naval_treaty }
		}
		search_filters = { FOCUS_FILTER_MILITARY_IMPROVEMENT FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = JAP_build_up_the_manchurian_army
		icon = GFX_goal_MAN_coa_army
		prerequisite = { focus = JAP_prepare_for_war_with_the_soviet_union }
		x = 1
		y = 1
		relative_position_id = JAP_prepare_for_war_with_the_soviet_union

		cost = 5

		ai_will_do = {
			factor = 4
		}

		available = {
			MAN = {
				OR = {
					is_in_faction_with = ROOT
					is_subject_of = ROOT
				}
			}
			if = {
				limit = {
					is_ai = no
				}
				has_equipment = { infantry_equipment > 1999 }
			}
		}

		bypass = {
			MAN = {
				OR = {
					exists = no
					NOT = {
						is_subject_of = ROOT
						has_civil_war = yes
					}
				}
				
			}
		}


		completion_reward = {
			send_equipment = {
				target = MAN
				equipment = infantry_equipment
				amount = 2000
				old_prioritised = yes
			}
			if = {
				limit = { has_equipment = { support_equipment > 500 } }
				send_equipment = {
					target = MAN
					equipment = support_equipment
					amount = 500
					old_prioritised = yes
				}
			}
			if = {
				limit = { has_equipment = { artillery_equipment > 250 } }
				send_equipment = {
					target = MAN
					equipment = artillery_equipment
					amount = 250
					old_prioritised = yes
				}
			}
			MAN = {
				add_doctrine_cost_reduction = {
					name = JAP_build_up_the_manchurian_army
					cost_reduction = 0.5
					uses = 1
					category = land_doctrine
				}
				add_autonomy_ratio = {
					value = -0.08333
					localization = JAP_build_up_the_manchurian_army
				}
			}
			MAN = {
				country_event = wtt_japan.41
			}
		}
		search_filters = { FOCUS_FILTER_MILITARY_IMPROVEMENT FOCUS_FILTER_RESEARCH FOCUS_FILTER_TFV_AUTONOMY }
	}

	focus = {
		id = JAP_create_a_manchurian_imperial_air_force
		icon = GFX_goal_MAN_coa_air_force
		prerequisite = { focus = JAP_build_up_the_manchurian_army }
		x = 0
		y = 1
		relative_position_id = JAP_build_up_the_manchurian_army

		cost = 10

		ai_will_do = {
			factor = 3
		}

		available = {
			MAN = {
				OR = {
					is_in_faction_with = ROOT
					is_subject_of = ROOT
				}
			}
		}

		bypass = {
			MAN = {
				OR = {
					exists = no
					NOT = {
						is_subject_of = ROOT
						has_civil_war = yes
					}
				}
			}
		}


		completion_reward = {
			air_experience = 25
			MAN = {
				add_tech_bonus = {
					name = JAP_create_a_manchurian_imperial_air_force
					bonus = 1
					uses = 1
					category = tactical_bomber
					category = cat_strategic_bomber
					category = naval_bomber
					category = cas_bomber
				}
				add_tech_bonus = {
					name = JAP_create_a_manchurian_imperial_air_force
					bonus = 1
					uses = 1
					category = light_fighter
					category = cat_heavy_fighter
				}
				every_owned_state = {
					limit = {
						is_fully_controlled_by = MAN
						is_owned_by = MAN
						MAN = { is_puppet_of = JAP }
					}
					add_building_construction = {
						type = air_base
						level = 2
						instant_build = yes
					}
				}
				add_autonomy_ratio = {
					value = -0.08333
					localization = JAP_build_up_the_manchurian_army
				}
			}
		}
		search_filters = { FOCUS_FILTER_MILITARY_IMPROVEMENT FOCUS_FILTER_RESEARCH FOCUS_FILTER_TFV_AUTONOMY FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = JAP_non_aggression_pact_with_china
		icon = GFX_focus_chi_cooperation_with_the_nationalists
		prerequisite = { focus = JAP_join_the_london_naval_treaty }
		x = 0
		y = 1
		relative_position_id = JAP_join_the_london_naval_treaty

		cost = 10

		ai_will_do = {
			factor = 3
		}

		bypass = {
			OR = {
				has_war_with = event_target:WTT_current_china_leader
				has_non_aggression_pact_with = CHI
			}
		}

		completion_reward = {
			CHI = { country_event = wtt_japan.11 } #TODO_WTT_CD make a proper is nationalist china trigger
			609 = {
				if = {
					limit = { is_controlled_by = ROOT }
					add_building_construction = {
						type = bunker
						level = 3
						province = 6969
						instant_build = yes
					}
					add_building_construction = {
						type = bunker
						level = 3
						province = 11822
						instant_build = yes
					}
					add_building_construction = {
						type = bunker
						level = 3
						province = 12043
						instant_build = yes
					}
				}
			}
			if = {
				limit = {
					MAN = {
						is_puppet_of = ROOT
					}
				}
				MAN = {
					610 = {
						if = {
							limit = { is_controlled_by = PREV }
							add_building_construction = {
								type = bunker
								level = 3
								province = 3955
								instant_build = yes
							}
						}
					}
				}
			}
			if = {
				limit = {
					MEN = {
						is_puppet_of = ROOT
					}
				}
				MEN = {
					611 = {
						if = {
							limit = { is_controlled_by = PREV }
							add_building_construction = {
								type = bunker
								level = 3
								province = 1137
								instant_build = yes
							}
							add_building_construction = {
								type = bunker
								level = 3
								province = 6904
								instant_build = yes
							}
							add_building_construction = {
								type = bunker
								level = 3
								province = 9776
								instant_build = yes
							}
						}
					}
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = JAP_seek_alliances
		icon = GFX_goal_tfv_generic_tech_sharing
		prerequisite = { focus = JAP_non_aggression_pact_with_china }
		prerequisite = { focus = JAP_create_a_manchurian_imperial_air_force }
		x = 1
		y = 1
		relative_position_id = JAP_non_aggression_pact_with_china

		cost = 5

		ai_will_do = {
			factor = 2
			modifier = {
				GER = {
					NOT = {
						has_government = fascism
					}
				}
				factor = 4
			}
		}

		available = {
			is_subject = no
			is_in_faction = no
			has_capitulated = no
		}

		bypass = {
			is_in_faction = yes
		}

		completion_reward = {
			add_political_power = 50
			if = {
				limit = {
					has_country_leader = { character = JAP_emperor_hirohito } #Hirohito
				}
				remove_country_leader_trait = warrior_code
			}
			unlock_decision_category_tooltip = JAP_seek_alliances
			news_event = {id = r56.news_event.31 hours = 6 }
		}
		search_filters = { FOCUS_FILTER_ALLIANCE FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = JAP_adapt_to_siberian_warfare
		icon = GFX_goal_generic_cold_war
		prerequisite = { focus = JAP_seek_alliances }
		x = -2
		y = 1
		relative_position_id = JAP_seek_alliances
		cost = 10
		ai_will_do = {
			base = 60
		}

		completion_reward = {
            every_army_leader = {
                add_logistics = 1
            }			
			add_ideas = TUR_sub_zero_survival_training
			add_tech_bonus = {
				name = land_doc_bonus
				bonus = 1
				uses = 1
				category = winter_clothing_tech
			}			
		}
	}

	focus = {
		id = JAP_obtain_polish_cryptological_data
		icon = GFX_focus_generic_cryptologic_bomb
		prerequisite = { focus = JAP_seek_alliances } #focus = JAP_west_pacific_treaty_organization focus = JAP_rekindle_the_old_alliance }
		x = 2
		y = 1
		relative_position_id = JAP_seek_alliances
		offset = {
			x = -1
			y = 0
			trigger = {
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
				has_completed_focus = JAP_strengthen_civilian_government
			}
		}
		cost = 10
		available = {
			POL = {
				is_in_faction_with = ROOT 
				is_puppet = no
				if = {
					limit = {
						has_dlc = "La Resistance"
						has_dlc = "Man the Guns"
					}
					has_completed_focus = POL_expand_polish_intelligence
				}
				else_if = {
					limit = {
						NOT = { has_dlc = "La Resistance" }
						has_dlc = "Man the Guns"
					}
					has_completed_focus = POL_Polish_Cipher_Bureau_no_lar
				}
				else_if = {
					limit = {
						NOT = { has_dlc = "La Resistance" }
						NOT = { has_dlc = "Man the Guns" }
					}
					has_completed_focus = POL_Polish_Cipher_Bureau_no_lar_no_mtg
				}
			}
			if = {
				limit = {
					has_dlc = "La Resistance"
				}
				has_intelligence_agency = yes
			}
		}
		ai_will_do = {
			factor = 3
		}

		available_if_capitulated = yes

		completion_reward = {
			if = {
				limit = {
					NOT = { has_dlc = "La Resistance" }
				}
				add_tech_bonus = {
					name = codebreaking_bonus
					bonus = 1.0
					uses = 2
					category = decryption_tech
					category = computing_tech
				}
				add_ideas = ENG_crypto_bomb_idea_lar
			}
			else_if = {
                limit = {
                    has_dlc = "La Resistance"
				}			
				add_ideas = POL_Polish_Cipher_Bureau_Focus2_lar	
				hidden_effect = {
					set_technology = { lar_decryption_bonus_tech = 1 }
				}
				custom_effect_tooltip = lar_decryption_bonus_tt
			}
            if = {
                limit = {
                    has_dlc = "La Resistance"
                    NOT = {
                        has_done_agency_upgrade = upgrade_form_department
                    }
                }
                upgrade_intelligence_agency = upgrade_form_department            
            }
            else_if = {
                limit = {
                    has_dlc = "La Resistance"
                    NOT = {
                        has_done_agency_upgrade = upgrade_decryption_boost
                    }
                }
                upgrade_intelligence_agency = upgrade_decryption_boost            
            }    
            else_if = {
                limit = {
                    has_dlc = "La Resistance"
                    NOT = {
                        has_done_agency_upgrade = upgrade_decryption_boost_2
                    }
                }
                upgrade_intelligence_agency = upgrade_decryption_boost_2            
            }			
		}
		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_ESPIONAGE }
	}

	focus = {
		id = JAP_preemptive_war
		icon = GFX_goal_attack_communists
		prerequisite = { focus = JAP_seek_alliances }
		x = 0
		y = 1
		relative_position_id = JAP_seek_alliances

		cost = 10

		ai_will_do = {
			factor = 3
			modifier = {
				surrender_progress > 0.1
				factor = 0
			}			
		}
		available = {
			r56_script_i_am_sane = yes
			SOV = {
				r56_script_target_is_sane = yes
			}
		}

		bypass = {
			OR = {
				has_war_with = SOV
				has_wargoal_against = SOV
				SOV = { exists = no }
			}
		}

		completion_reward = {
			create_wargoal = {
				target = SOV
				expire = 0
				type = annex_everything
			}
			unlock_decision_tooltip = JAP_war_with_soviet_union
			if = {
				limit = {
					has_country_leader = { ruling_only = yes character = JAP_emperor_hirohito }
					has_country_leader_with_trait = imperial_sanction
				}
				remove_country_leader_trait = imperial_sanction
			}
		}
		search_filters = { FOCUS_FILTER_ANNEXATION }
	}


	focus = {
		id = JAP_operate_the_trans_siberian_railway
		
		icon = GFX_focus_generic_railroad
		
		prerequisite = { focus =JAP_preemptive_war }
		x = -1
		y = 2 
		relative_position_id = JAP_preemptive_war
		cost = 10

		available = {

			OR = {
				has_full_control_of_state = 408
				has_full_control_of_state = 657
				has_full_control_of_state = 561
			}
		}

		completion_reward = {
			add_timed_idea = {
				idea = NORDIC_railway_expansion_member_ns
				days = 365
			}
			add_tech_bonus = {
				name = JAP_support_the_railways_and_shipping_section
				bonus = 1
				uses = 1
				category = railway_construction_tech
			}		
			add_tech_bonus = {
				name = infantry_artillery_bonus
				bonus = 1
				uses = 1
				category = winter_clothing_tech
			}		
		}
	}


	focus = {
		id = JAP_stimulate_mongol_traditions
		icon = GFX_goal_generic_cavalry
		allow_branch = {
			#has_dlc = "La Resistance"
		}
		x = 1
		y = 2
		relative_position_id = JAP_preemptive_war
		offset = {
			x = -25
			y = 0
			trigger = {
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
				has_completed_focus = JAP_strengthen_civilian_government
			}
		}
		cost = 10
		prerequisite = {
			focus = JAP_preemptive_war
			#focus = JAP_preemptive_strike_soviet
		}

		ai_will_do = {
			factor = 3
		}

		available = {
			is_subject = no
			OR = {
				TAN = {
					is_subject_of = ROOT
				}
				any_state = {
					is_core_of = TAN
					is_controlled_by = ROOT
				}
			}			
			OR = {
				MON = {
					is_subject_of = ROOT
				}
				any_state = {
					is_core_of = MON
					is_controlled_by = ROOT
				}
			}			
			OR = {
				MEN = {
					is_subject_of = ROOT
				}
				any_state = {
					is_core_of = MEN
					is_controlled_by = ROOT
				}
			}
			OR = {
				BYA = {
					is_subject_of = ROOT
				}
				any_state = {
					is_core_of = BYA
					is_controlled_by = ROOT
				}
			}
		}
		
		bypass = {

		}
		search_filters = { FOCUS_FILTER_POLITICAL }
		completion_reward = {
			add_relation_modifier = {
				target = TAN
				modifier = JAP_pro_mongol_propaganda
			}
			add_relation_modifier = {
				target = MON
				modifier = JAP_pro_mongol_propaganda
			}
			add_relation_modifier = {
				target = MEN
				modifier = JAP_pro_mongol_propaganda
			}
			add_relation_modifier = {
				target = BYA
				modifier = JAP_pro_mongol_propaganda
			}
		}
	}
	focus = {
		id = JAP_establish_the_northern_resource_area
		icon = GFX_goal_generic_construction2
		prerequisite = { focus = JAP_preemptive_war }
		prerequisite = { focus = JAP_imperial_arsenals }
		x = 0
		y = 4
		relative_position_id = JAP_imperial_arsenals

		cost = 10

		ai_will_do = {
			factor = 3
		}

		available = {
			has_tech = excavation1
			has_full_control_of_state = 564
			OR = {
				has_full_control_of_state = 657
				has_full_control_of_state = 408
				has_full_control_of_state = 560
			}
		}

		completion_reward = {
			657 = {
				if = {
					limit = { is_fully_controlled_by = ROOT }
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
			}
			408 = {
				if = {
					limit = { is_fully_controlled_by = ROOT }
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
			}
			560 = {
				if = {
					limit = { is_fully_controlled_by = ROOT }
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
			}
			564 = {
				add_resource = {
					type = aluminium
					amount = 8
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
			if = {
				limit = {
					NOT = {
						has_tech = aluminum_production_1
					}
				}
				set_technology = { aluminum_production_1 = 1 }
				else = {
					add_tech_bonus = {
						name = construction_tech_bonus
						bonus = 1
						uses = 1
						category = aluminium_tech
					}					
				}
			}		
			unlock_decision_category_tooltip = prospect_for_resources
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_ALUMINIUM}
	}

	focus = {
		id = JAP_german_rocketry
		icon = GFX_focus_rocketry
		prerequisite = { focus = JAP_preemptive_war }
		x = 0
		y = 1
		relative_position_id = JAP_preemptive_war

		cost = 10

		ai_will_do = {
			factor = 1
		}

		available = {
			is_in_faction_with = GER
			NOT = { has_war_with = GER }
		}


		completion_reward = {
			add_tech_bonus = {
				name = JAP_german_rocketry
				bonus = 1
				uses = 1
				category = rocketry
			}
			add_breakthrough_progress = {
				specialization = specialization_air
				value = 0.50
			}
			add_ideas = JAP_german_rocketry
			random_country = {
				limit = {
					original_tag = GER
					has_government = fascism
					is_faction_leader = yes
				}
				add_to_tech_sharing_group = JAP_german_rocketry
				ROOT = { add_to_tech_sharing_group = JAP_german_rocketry }
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	######DEMO TREE ##############
	focus = {
		id = JAP_strengthen_civilian_government
		icon = GFX_goal_JAP_strenghten_the_civilian_government
		mutually_exclusive = { focus = JAP_purge_the_kodoha_faction focus = JAP_support_the_kodoha_faction focus = JAP_the_unthinkable_option }
		x = 8
		y = 0
		relative_position_id = JAP_support_the_kodoha_faction

		cost = 5

		ai_will_do = {
			factor = 2
		}

		offset = {
			x = -27
			y = 0
			trigger = {
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
				has_completed_focus = JAP_strengthen_civilian_government
			}
		}

		allow_branch = {
			if = {
				limit = {
					has_game_rule = {
						rule = obsolete_focus_branches_visibility
						option = HIDE
					}
				}
				NOT = {
					OR = {
						has_completed_focus = JAP_purge_the_kodoha_faction
						has_completed_focus = JAP_support_the_kodoha_faction
						has_completed_focus = JAP_the_unthinkable_option
					}
				}
			}
		}
		completion_reward = {
			mark_focus_tree_layout_dirty = yes
			add_political_power = 120
			add_timed_idea = { idea = JAP_strengthen_civilian_government days = 1095 }
			custom_effect_tooltip = available_political_advisor
			show_ideas_tooltip = kijuro_shidehara		
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = JAP_purge_the_militarists
		icon = GFX_goal_samurai_purge
		prerequisite = { focus = JAP_strengthen_civilian_government }
		x = -1
		y = 1
		relative_position_id = JAP_strengthen_civilian_government

		cost = 5

		ai_will_do = {
			factor = 1
		}


		completion_reward = {
			remove_ideas = JAP_militarism
			MAN = {
				add_ideas = MAN_militarism #TODO_WTT_CD consider moving to MAN idea file
			}
		}
		search_filters = { FOCUS_FILTER_ANNEXATION FOCUS_FILTER_RESEARCH FOCUS_FILTER_POLITICAL FOCUS_FILTER_WAR_SUPPORT }
	}

	focus = {
		id = JAP_ally_with_the_zaibatsus
		icon = GFX_focus_jap_zaibatsu
		prerequisite = { focus = JAP_strengthen_civilian_government }
		x = 1
		y = 1
		relative_position_id = JAP_strengthen_civilian_government

		cost = 10

		ai_will_do = {
			factor = 1
		}

		available = {
			has_full_control_of_state = 282
			has_full_control_of_state = 529
		}


		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					ROOT = { has_full_control_of_state = PREV }
					is_core_of = ROOT
					not = {
						state = 646
						state = 645
						state = 555
					}
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
				set_state_flag = JAP_zaibatsus_factories
			}
			random_owned_controlled_state = {
				limit = {
					ROOT = { has_full_control_of_state = PREV }
					NOT = { has_state_flag = JAP_zaibatsus_factories }
					is_core_of = ROOT
					not = {
						state = 646
						state = 645
						state = 555
					}
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
				set_state_flag = JAP_zaibatsus_factories
			}
			swap_ideas = {
				add_idea = JAP_zaibatsus_empowered
				remove_idea = JAP_zaibatsus
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = JAP_research_spending
		icon = GFX_goal_research_silver
		prerequisite = { focus = JAP_ally_with_the_zaibatsus }
		x = 1
		y = 2
		relative_position_id = JAP_ally_with_the_zaibatsus

		cost = 10

		ai_will_do = {
			factor = 2
		}


		completion_reward = {
			add_research_slot = 1
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = JAP_pre_emptive_coup
		icon = GFX_goal_generic_democratic_army
		prerequisite = { focus = JAP_ally_with_the_zaibatsus }
		prerequisite = { focus = JAP_purge_the_militarists }
		x = -1
		y = 1
		relative_position_id = JAP_ally_with_the_zaibatsus

		cost = 5

		ai_will_do = {
			factor = 2
		}

		available = {
			democratic > 0.3
		}

		bypass = {
			has_government = democratic
		}


		completion_reward = {
			add_political_power = 50
			hidden_effect = {
				if = {
					limit = {
						has_country_leader = { ruling_only = yes name = "Hirohito" }
					}
					remove_country_leader_trait = imperial_sanction
				}
			}
			country_event = { id = wtt_japan.114 }
			effect_tooltip = {
				if = {
					limit = {
						MAN = { is_subject_of = ROOT }
					}
					set_autonomy = { target = MAN autonomy_state = autonomy_free }
				}
				if = {
					limit = {
						MAN = { has_idea = MAN_kwantung_veto }
					}
					MAN = { remove_ideas = MAN_kwantung_veto }
				}
				if = {
					limit = {
						MEN = { is_subject_of = ROOT }
					}
					MAN = { puppet = MEN }
				}
				add_popularity = { ideology = democratic popularity = 0.1 }
				start_civil_war = {
					ruling_party = democratic
					ideology = fascism
					size = 0.5
				}
				random_other_country = {
					limit = {
						original_tag = JAP
						has_government = fascism
					}
					set_cosmetic_tag = JAP2
				}									
				if = {
					limit = {
						any_state = {
							is_controlled_by = ROOT
							is_core_of = KOR
						}
					}
					release = KOR
					set_autonomy = { target = KOR autonomy_state = autonomy_free }
				}
				if = {
					limit = {
						any_state = {
							is_controlled_by = ROOT
							is_core_of = NKR
						}
					}
					release = NKR
					set_autonomy = { target = NKR autonomy_state = autonomy_free }
				}
			}
		}
		search_filters = { FOCUS_FILTER_TFV_AUTONOMY FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = JAP_the_showa_constitution
		icon = GFX_goal_JAP_showa_constitution
		prerequisite = { focus = JAP_pre_emptive_coup }
		x = 0
		y = 1
		relative_position_id = JAP_pre_emptive_coup

		cost = 5

		ai_will_do = {
			factor = 1
		}

		available = {
			has_civil_war = no
		}

		completion_reward = {
			add_popularity = { ideology = democratic popularity = 0.1 }
			add_ideas = JAP_hirohito
			country_event = { 
				id = r56_japan.10
			}
		}
		search_filters = { FOCUS_FILTER_STABILITY }
	}
	#####RIGHT WING PARTY OF JAPAN LEFT SIDE ####LET ZAIBATSUS REIGN/MILITARIST PATH
	focus = {
		id = JAP_rikken_seiyukai
		icon = GFX_focus_chi_collaboration_with_the_japanese
		prerequisite = { focus = JAP_the_showa_constitution }
		x = 3
		y = 1
		relative_position_id = JAP_the_showa_constitution

		cost = 1

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 2
				CHI = { has_government = democratic }
			}
		}
		available = {
			has_country_flag = JAP_rikken_seiyukai_won
		}

		completion_reward = {
			add_political_power = 10
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}
	focus = {
		id = JAP_subsidise_the_zaibatsus
		icon = GFX_focus_jap_zaibatsu
		prerequisite = { focus = JAP_rikken_seiyukai }
		prerequisite = { focus = JAP_corporate_developments }
		x = -1
		y = 1
		relative_position_id = JAP_rikken_seiyukai

		cost = 10

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 2
				CHI = { has_government = democratic }
			}
		}

		available = {
			is_subject = no
		}

		completion_reward = {
			swap_ideas = {
				remove_idea = JAP_zaibatsus_empowered
				add_idea = JAP_zaibatsus_subsidies
			}
			random_owned_controlled_state = {
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				prioritize = { 531 }
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}
	focus = {
		id = JAP_invite_the_militarist_back
		icon = GFX_focus_generic_collective_defense
		prerequisite = { focus = JAP_subsidise_the_zaibatsus }
		x = 0
		y = 2
		relative_position_id = JAP_subsidise_the_zaibatsus

		cost = 5

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 2
				CHI = { has_government = democratic }
			}
		}

		available = {
			is_subject = no
		}

		completion_reward = {
			add_ideas = JAP_militarism_democracy
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}
	focus = {
		id = JAP_the_bastion
		icon = GFX_goal_generic_bastion_of_democracy
		prerequisite = { focus = JAP_rikken_seiyukai }
		x = 1
		y = 3
		relative_position_id = JAP_rikken_seiyukai

		cost = 5

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 2
				CHI = { has_government = democratic }
			}
		}

		available = {
			is_subject = no
		}

		completion_reward = {
			add_ideas = JAP_bastion_of_democracy
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}
	#####LEFT WING PARTY OF JAPAN RIGHT SIDE (look at towards usa/uk)
	focus = {
		id = JAP_rikken_minseito
		icon = GFX_goal_generic_befriend_japan_alt
		prerequisite = { focus = JAP_the_showa_constitution }
		x = -3
		y = 1
		relative_position_id = JAP_the_showa_constitution

		cost = 1
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 2
				CHI = { has_government = democratic }
			}
		}

		available = {
			has_country_flag = JAP_rikken_mineseito_won }

		completion_reward = {
			add_political_power = 10
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = JAP_controlled_zaibatsus
		icon = GFX_goal_generic_state_economy
		prerequisite = { focus = JAP_corporate_developments }
		prerequisite = { focus = JAP_rikken_minseito }
		x = 1
		y = 1
		relative_position_id = JAP_rikken_minseito

		cost = 10

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 2
				CHI = { has_government = democratic }
			}
		}

		available = {
			is_subject = no
		}

		completion_reward = {
			swap_ideas = {
				remove_idea = JAP_zaibatsus_empowered
				add_idea = JAP_controlled_zaibatsus
			}
			random_owned_controlled_state = {
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				prioritize = { 531 }
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}
	focus = {
		id = JAP_workers_compensation
		icon = GFX_focus_generic_self_management
		prerequisite = { focus = JAP_controlled_zaibatsus }
		prerequisite = {
			focus = JAP_introducing_health_care
		}
		x = 0
		y = 2
		relative_position_id = JAP_controlled_zaibatsus

		cost = 5

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 2
				CHI = { has_government = democratic }
			}
		}

		available = {
			is_subject = no
		}

		completion_reward = {
			add_ideas = JAP_workers_compensation_idea
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}
	focus = {
		id = JAP_introducing_health_care
		icon = GFX_goal_medicine
		prerequisite = { focus = JAP_controlled_zaibatsus }
		x = -1
		y = 1
		relative_position_id = JAP_controlled_zaibatsus

		cost = 5

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 2
				CHI = { has_government = democratic }
			}
		}

		available = {
			is_subject = no
		}

		completion_reward = {
			add_ideas = JAP_health_care_idea
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}

	focus = {
		id = JAP_conciliatory_foreign_policy
		icon = GFX_goal_generic_peaceful_diplomacy
		prerequisite = { focus = JAP_rikken_minseito }
		x = -1
		y = 3
		relative_position_id = JAP_rikken_minseito

		cost = 5

		available = {
			is_subject = no
			has_war = no
		}

		ai_will_do = {
			factor = 3
		}

		completion_reward = {
			add_political_power = 80
			add_war_support = -0.05
			every_other_country = {
				limit = {
					is_major = yes
					has_war = no
					is_subject = no
				}
				add_opinion_modifier = { target = ROOT modifier = small_increase }
				add_ai_strategy = {
					type = befriend
					id = ROOT
					value = 10
				}
			}
		}
	}


	focus = {
		id = JAP_corporate_developments
		icon = GFX_goal_FRA_class_collaboration
		cost = 10
		prerequisite = {
			focus = JAP_the_showa_constitution
		}		
		relative_position_id = JAP_the_showa_constitution
		x = 0
		y = 1
		completion_reward = {
			#add_timed_idea = {
			#	days = 30
			#	idea = JAP_investment
			#}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				prioritize = { 282 }
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				prioritize = { 529 }
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
			}	
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
				}
				prioritize = { 532 }
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
			}
			#random_owned_controlled_state = {
			#	limit = {
			#		free_building_slots = {
			#			building = industrial_complex
			#			size > 1
			#			include_locked = yes
			#		}
			#	}
			#	prioritize = { 528 }
			#	add_extra_state_shared_building_slots = 2
			#	add_building_construction = {
			#		type = industrial_complex
			#		level = 2
			#		instant_build = yes
			#	}
			#}							
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}
	focus = {
		id = JAP_finance_the_naval_arsenals
		icon = GFX_focus_naval_defense_fund
		prerequisite = { focus = JAP_corporate_developments }
		x = 0
		y = 1
		relative_position_id = JAP_corporate_developments

		cost = 10

		ai_will_do = {
			factor = 4
		}

		completion_reward = {
			random_owned_controlled_state = {
				prioritize = { 531 }
				limit = {
					ROOT = { has_full_control_of_state = PREV }
					is_core_of = ROOT
					free_building_slots = {
						building = dockyard
						size > 2
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				prioritize = { 282 }
				limit = {
					ROOT = { has_full_control_of_state = PREV }
					is_core_of = ROOT
					free_building_slots = {
						building = dockyard
						size > 2
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				prioritize = { 529 }
				limit = {
					ROOT = { has_full_control_of_state = PREV }
					is_core_of = ROOT
					free_building_slots = {
						building = dockyard
						size > 2
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
			}
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				every_military_industrial_organization = {
					limit = {
						OR = {
							is_military_industrial_organization = JAP_kure_naval_arsenal_organization
							is_military_industrial_organization = JAP_yokosuka_naval_arsenal_organization
							is_military_industrial_organization = JAP_maizuru_naval_arsenal_organization
							is_military_industrial_organization = JAP_sasebo_naval_arsenal_organization
						}
					}
					add_mio_funds = 1500
				}
			}
		}
	}
	focus = {
		id = JAP_expand_kobe_steel_works
		icon = GFX_focus_generic_steel
		cost = 10
		prerequisite = {
			 focus = JAP_finance_the_naval_arsenals
		}	
		relative_position_id = JAP_corporate_developments
		x = -1
		y = 2
		ai_will_do = {
			factor = 5
		}
		mutually_exclusive = {
			focus = JAP_expand_aluminium_plants
		}
		completion_reward = {
			random_owned_controlled_state = {
				prioritize = { 531 }
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = steel_mill
					level = 2
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				prioritize = { 535 }
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = steel_mill
					level = 2
					instant_build = yes
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_STEEL }
	}
	focus = {
		id = JAP_expand_aluminium_plants
		icon = GFX_focus_generic_aluminum
		cost = 10
		prerequisite = {
			focus = JAP_finance_the_naval_arsenals
		}	
		mutually_exclusive = {
			focus = JAP_expand_kobe_steel_works
		}
		x = 1
		y = 2
		relative_position_id = JAP_corporate_developments
		ai_will_do = {
			factor = 2
		}
		completion_reward = {
			random_owned_controlled_state = {
				prioritize = { 531 }
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = aluminum_mill
					level = 2
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				prioritize = { 535 }
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = aluminum_mill
					level = 2
					instant_build = yes
				}
			}	
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_STEEL }
	}
	focus = {
		id = JAP_sumitomo_rubber_industries
		icon = GFX_focus_generic_rubber
		cost = 10
		prerequisite = {
			focus = JAP_expand_aluminium_plants focus = JAP_expand_kobe_steel_works
		}
		relative_position_id = JAP_corporate_developments
		x = 0
		y = 3

		completion_reward = {
			random_owned_controlled_state = {
				prioritize = { 531 }
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = rubber_refinery
					level = 2
					instant_build = yes
				}
			}	
			random_owned_controlled_state = {
				prioritize = { 282 }
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = rubber_refinery
					level = 2
					instant_build = yes
				}
			}		
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH FOCUS_FILTER_OIL FOCUS_FILTER_RUBBER}
	}

	focus = {
		id = JAP_west_pacific_treaty_organization
		icon = GFX_goal_generic_freedom
		prerequisite = { focus = JAP_conciliatory_foreign_policy focus = JAP_the_bastion }
		x = -2
		y = 1
		relative_position_id = JAP_the_bastion
		mutually_exclusive = { focus = JAP_trans_pacific_alliance focus = JAP_rekindle_the_old_alliance }

		cost = 7

		available = {
			has_government = democratic
			#KOR = {
			#	OR = {
			#		is_faction_leader = yes
			#		is_in_faction = no
			#		is_in_faction_with = AST
			#		is_in_faction_with = CAN
			#	}
			#	has_government = democratic
			#}
			is_in_faction = no
			is_subject = no
			NOT = { has_war_with = KOR }
		}
		
		available_if_capitulated = yes

		completion_reward = {
			set_rule = {
				can_create_factions = yes
			}
			create_faction = JAP_west_pacific_treaty_organization
			if = {
				limit = {
					KOR = {
						is_faction_leader = yes
						has_government = democratic
					}
				}
				KOR = {
					country_event = generic.2
				}
			}
			else_if = {
				limit = {
					KOR = {
						has_government = democratic
						is_faction_leader = no
					}
				}
				create_faction = JAP_trans_pacific_faction
				KOR = {
					country_event = generic.5
				}
			}
			else_if = {
				limit = {
					KOR = {
						has_government = democratic
						is_faction_leader = no
					}
					AST = {
						has_government = democratic
						is_faction_leader = yes
					}
				}
				AST = {
					country_event = generic.2
				}
			}
			else_if = {
				limit = {
					KOR = {
						has_government = democratic
						is_faction_leader = no
					}
					CAN = {
						has_government = democratic
						is_faction_leader = yes
					}
				}
				CAN = {
					country_event = generic.2
				}
			}						
		}
	}
	focus = {
		id = JAP_joint_civilian_investment
		icon = GFX_focus_generic_industry_2
		x = 2
		y = 1
		relative_position_id = JAP_west_pacific_treaty_organization

		cost = 10
		prerequisite = { focus = JAP_west_pacific_treaty_organization }
		ai_will_do = {
			factor = 2
		}
		available = {
			OR = {
				is_in_faction_with = CHI
				is_in_faction_with = SIA
				is_in_faction_with = KOR
			}
		}
		available_if_capitulated = yes

		completion_reward = {
			custom_effect_tooltip = JAP_invest_in_allies_tt
			add_stability = 0.10
			#JAPAN
			if = {
				limit = {
					JAP = {
						controls_state = 282
						controls_state = 528
						controls_state = 531
						controls_state = 529
					}
				}
				add_tech_bonus = {
					name = secret_bonus
					bonus = 1
					uses = 1
					category = industry
				}
				531 = {
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}	
				}
				529 = {
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
				}
				#534 = {
				#	add_extra_state_shared_building_slots = 2
				#	add_building_construction = {
				#		type = industrial_complex
				#		level = 1
				#		instant_build = yes
				#	}
				#}
				#532 = {
				#	add_extra_state_shared_building_slots = 2
				#	add_building_construction = {
				#		type = industrial_complex
				#		level = 1
				#		instant_build = yes
				#	}
				#}
			}
			###KOREA
			if = {
				limit = {
					KOR = {
						is_in_faction_with = JAP
						controls_state = 527
						controls_state = 920
						controls_state = 525
					}
				}
				add_tech_bonus = {
					name = secret_bonus
					bonus = 1
					uses = 1
					category = industry
				}
				#918 = {
				#	add_extra_state_shared_building_slots = 2
				#	add_building_construction = {
				#		type = industrial_complex
				#		level = 1
				#		instant_build = yes
				#	}	
				#}
				#527 = {
				#	add_extra_state_shared_building_slots = 2
				#	add_building_construction = {
				#		type = industrial_complex
				#		level = 1
				#		instant_build = yes
				#	}
				#}
				919 = {
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = industrial_complex
						level = 2
						instant_build = yes
					}
				}
			}
			#SIAM
			if = {
				limit = {
					SIA = {
						is_in_faction_with = JAP
						controls_state = 289
						controls_state = 868
						controls_state = 869
					}
				}
				add_tech_bonus = {
					name = secret_bonus
					bonus = 1
					uses = 1
					category = industry
				}
				868 = {
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}	
				}
				869 = {
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
				}
				#724 = {
				#	add_extra_state_shared_building_slots = 2
				#	add_building_construction = {
				#		type = industrial_complex
				#		level = 1
				#		instant_build = yes
				#	}
				#}
			}
			#CHINA
			if = {
				limit = {
					CHI = {
						is_in_faction_with = JAP
						controls_state = 613
						controls_state = 605
						controls_state = 608
					}
				}
				add_tech_bonus = {
					name = secret_bonus
					bonus = 1
					uses = 1
					category = industry
				}
				620 = {
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}	
				}
				606 = {
					add_extra_state_shared_building_slots = 2
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
				}
				#600 = {
				#	add_extra_state_shared_building_slots = 2
				#	add_building_construction = {
				#		type = industrial_complex
				#		level = 1
				#		instant_build = yes
				#	}
				#}
			}
		}
	}
	focus = {
		id = JAP_joint_military_cooperation
		icon = GFX_goal_generic_multinational_army
		prerequisite = { focus = JAP_joint_civilian_investment }
		x = -1
		y = 1
		relative_position_id = JAP_joint_civilian_investment
		ai_will_do = {
			factor = 2
		}
		cost = 5

		available = {
			OR = {
				is_in_faction_with = CHI
				is_in_faction_with = SIA
				is_in_faction_with = KOR
			}
		}
		available_if_capitulated = yes

		completion_reward = {
			custom_effect_tooltip = JAP_invest_in_allies_tt
			add_ideas = JAP_north_east_asian_military
			every_other_country = {
				limit = {
					is_in_faction_with = ROOT
					OR = {
						original_tag = CHI
						original_tag = KOR
						original_tag = SIA
					}
				}
				add_ideas = JAP_north_east_asian_military
			}
		}
	}
	focus = {
		id = JAP_joint_industrial_planning
		icon = GFX_focus_generic_the_giant_wakes
		x = 0
		y = 1
		relative_position_id = JAP_joint_military_cooperation
		ai_will_do = {
			factor = 2
		}
		cost = 8
		prerequisite = { focus = JAP_east_asian_bank }
		prerequisite = {
			focus = JAP_joint_military_cooperation
		}
		available_if_capitulated = yes

		completion_reward = {
			custom_effect_tooltip = JAP_invest_in_allies_tt
			add_timed_idea = {
				idea = JAP_joint_civilian_investment_idea
				days = 365
			}
			every_other_country = {
				limit = {
					is_in_faction_with = ROOT
					OR = {
						original_tag = CHI
						original_tag = KOR
						original_tag = SIA
					}
				}
				add_timed_idea = {
					idea = JAP_joint_civilian_investment_idea
					days = 365
				}
			}
		}
	}

	focus = {
		id = JAP_east_asian_bank
		icon = GFX_goal_generic_banking
		x = 1
		y = 1
		relative_position_id = JAP_joint_civilian_investment
		ai_will_do = {
			factor = 2
		}
		cost = 10
		prerequisite = { focus = JAP_joint_civilian_investment }

		available = {
			OR = {
				is_in_faction_with = CHI
				is_in_faction_with = SIA
				is_in_faction_with = KOR
			}
		}
		available_if_capitulated = yes

		completion_reward = {
			custom_effect_tooltip = JAP_invest_in_allies_tt
			add_ideas = JAP_north_east_asian_bank
			every_other_country = {
				limit = {
					is_in_faction_with = ROOT
					OR = {
						original_tag = CHI
						original_tag = KOR
						original_tag = SIA
					}
				}
				add_ideas = JAP_north_east_asian_bank
			}
		}
	}
	focus = {
		id = JAP_korean_chaebols
		icon = GFX_focus_generic_industry_1
		x = 0
		y = 1
		relative_position_id = JAP_east_asian_bank

		cost = 5
		prerequisite = { focus = JAP_joint_military_cooperation }
		prerequisite = { focus = JAP_east_asian_bank }

		available = {
			is_in_faction_with = KOR
		}
		available_if_capitulated = yes

		completion_reward = {
			KOR = {
				add_ideas = JAP_the_chaebols
			}
		}
	}

	focus = {
		id = JAP_rekindle_the_old_alliance
		icon = GFX_goal_JAP_alliance_ENG
		prerequisite = { focus = JAP_conciliatory_foreign_policy focus = JAP_the_bastion }
		mutually_exclusive = { focus = JAP_trans_pacific_alliance focus = JAP_west_pacific_treaty_organization }
		x = -6
		y = 1
		relative_position_id = JAP_the_bastion

		cost = 7

		ai_will_do = {
			factor = 1
		}

		available = {
			has_government = democratic
			is_subject = no
			ENG = {
				has_government = democratic
				is_faction_leader = yes
			}
			NOT = { has_war_with = ENG }
		}

		completion_reward = {
			if = {
				limit = {
					ENG = {
						has_government = democratic
						is_faction_leader = yes
						has_capitulated = no
					}
				}
				ENG = {
					country_event = generic.2
				}
			}
			else_if = {
				limit = {
					USA = {
						has_government = democratic
						is_faction_leader = yes
						has_capitulated = no
					}
				}
				USA = {
					country_event = generic.2
				}
			}
			else_if = {
				limit = {
					any_other_country = {
						has_government = democratic
						is_faction_leader = yes
						is_major = yes
						has_capitulated = no
						num_of_factories > 70
					}
				}
				random_other_country = {
					limit = {
						has_government = democratic
						is_faction_leader = yes
						is_major = yes
						num_of_factories > 70
					}
					country_event = generic.2
				}				
			}
			else_if = {
				limit = {
					any_other_country = {
						has_government = democratic
						is_faction_leader = yes
						is_major = yes
						has_capitulated = no
						num_of_factories > 50
					}
				}
				random_other_country = {
					limit = {
						has_government = democratic
						is_faction_leader = yes
						is_major = yes
						num_of_factories > 50
					}
					country_event = generic.2
				}				
			}			
			else_if = {
				limit = {
					any_other_country = {
						has_government = democratic
						is_faction_leader = yes
						is_major = yes
						has_capitulated = no
					}
				}
				random_other_country = {
					limit = {
						has_government = democratic
						is_faction_leader = yes
						is_major = yes
						has_capitulated = no
					}
					country_event = generic.2
				}
			}
			else_if = {
				limit = {
					any_other_country = {
						has_government = democratic
						is_faction_leader = yes

						has_capitulated = no
					}
				}
				random_other_country = {
					limit = {
						has_government = democratic
						is_faction_leader = yes
						has_capitulated = no
					}
					country_event = generic.2
				}
			}
			else = {
				set_rule = { can_create_factions = yes }
				create_faction = JAP_the_old_alliance
				ENG = { country_event = generic.5 }
			}
		}
		search_filters = { FOCUS_FILTER_ALLIANCE FOCUS_FILTER_POLITICAL }
	}
	focus = {
		id = JAP_trans_pacific_alliance
		icon = GFX_goal_JAP_alliance_USA
		prerequisite = { focus = JAP_conciliatory_foreign_policy focus = JAP_the_bastion }
		x = -8
		y = 1
		relative_position_id = JAP_the_bastion

		mutually_exclusive = {  focus = JAP_rekindle_the_old_alliance focus = JAP_west_pacific_treaty_organization }
		cost = 7

		ai_will_do = {
			factor = 1
		}

		available = {
			has_government = democratic
			USA = {
				OR = {
					is_faction_leader = yes
					is_in_faction = no
					is_in_faction_with = AST
					is_in_faction_with = CAN
				}
				has_government = democratic
			}
			is_in_faction = no
			is_subject = no
			NOT = { has_war_with = USA }
		}

		completion_reward = {
			set_rule = {
				can_create_factions = yes
			}
			if = {
				limit = {
					USA = {
						is_faction_leader = yes
						has_government = democratic
					}
				}
				USA = {
					country_event = generic.2
				}
			}
			else_if = {
				limit = {
					USA = {
						has_government = democratic
						is_faction_leader = no
					}
				}
				create_faction = JAP_trans_pacific_faction
				USA = {
					country_event = generic.5
				}
			}
			else_if = {
				limit = {
					USA = {
						has_government = democratic
						is_faction_leader = no
					}
					AST = {
						has_government = democratic
						is_faction_leader = yes
					}
				}
				AST = {
					country_event = generic.2
				}
			}
			else_if = {
				limit = {
					USA = {
						has_government = democratic
						is_faction_leader = no
					}
					CAN = {
						has_government = democratic
						is_faction_leader = yes
					}
				}
				CAN = {
					country_event = generic.2
				}
			}						
		}
		search_filters = { FOCUS_FILTER_ALLIANCE FOCUS_FILTER_POLITICAL }
	}
	focus = {
		id = JAP_economic_deals
		icon = GFX_focus_chi_collaboration_with_the_japanese
		x = 0
		y = 1
		relative_position_id = JAP_trans_pacific_alliance
		cost = 8
		prerequisite = { focus = JAP_trans_pacific_alliance focus = JAP_rekindle_the_old_alliance }

		available = {
			OR = {
				any_other_country = {
					AND = {
						is_in_faction_with = JAP
						is_faction_leader = yes
						has_government = democratic
					}
				}
				is_faction_leader = yes
			}
		}
		ai_will_do = {
			factor = 2
		}
		available_if_capitulated = yes

		completion_reward = {
			add_tech_bonus = {
				name = secret_bonus
				bonus = 1
				uses = 1
				category = industry
			} 
			add_ideas = JAP_influenced_economy
			every_other_country = {
				limit = {
					is_in_faction_with = JAP
					OR = {
						is_faction_leader = yes
						original_tag = USA
						original_tag = ENG
					}
				}
				country_event = { 
					id = r56_japan.11
					days = 14
				}
			}
		}
	}
	focus = {
		id = JAP_economic_deals_planes
		icon = GFX_focus_generic_aircraft_production
		x = 2
		y = 1
		relative_position_id = JAP_economic_deals
		mutually_exclusive = {
			focus = JAP_economic_deals_infantry focus = JAP_economic_deals_tanks
		}
		cost = 10
		prerequisite = { focus = JAP_economic_deals }

		available = {
			has_idea = JAP_sent_us_their_technicians_planes
			NOT = {
				has_idea = JAP_focus_on_our_own_economy
			}
			OR = {
				any_other_country = {
					NOT = {
						has_idea = JAP_we_sent_our_technicians_planes
					}
					AND = {
						is_in_faction_with = JAP
						is_faction_leader = yes
						has_government = democratic
					}
				}
				is_faction_leader = yes
			}
		}
		available_if_capitulated = yes

		completion_reward = {
			add_ideas = JAP_economy_by_japan_planes
			random_core_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size = 1
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 1
				}
			}
			random_core_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size = 1
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 1
				}
			}
			every_other_country = {
				limit = {
					has_country_flag = JAP_importer_wants_planes_flag
				}
				add_ideas = JAP_economy_by_japan_planes
			}
		}


	}
	focus = {
		id = JAP_economic_deals_tanks
		icon = GFX_focus_generic_license_production
		x = -2
		y = 1
		relative_position_id = JAP_economic_deals
		mutually_exclusive = {
			focus = JAP_economic_deals_infantry focus = JAP_economic_deals_planes
		}
		cost = 10
		prerequisite = { focus = JAP_economic_deals }

		available = {
			has_idea = JAP_sent_us_their_technicians_tanks
			NOT = {
				has_idea = JAP_focus_on_our_own_economy
			}
			OR = {
				any_other_country = {
					NOT = {
						has_idea = JAP_we_sent_our_technicians_tanks
					}
					AND = {
						is_in_faction_with = JAP
						is_faction_leader = yes
						has_government = democratic
					}
				}
				is_faction_leader = yes
			}
		}
		available_if_capitulated = yes

		completion_reward = {
			add_ideas = JAP_economy_by_japan_tanks
			random_core_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size = 1
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 1
				}
			}
			random_core_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size = 1
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 1
				}
			}
			every_other_country = {
				limit = {
					has_country_flag = JAP_importer_wants_tanks_flag
				}
				add_ideas = JAP_economy_by_japan_tanks
			}
		}
	}
	focus = {
		id = JAP_economic_deals_infantry
		icon = GFX_goal_proving_grounds
		x = 0
		y = 1
		relative_position_id = JAP_economic_deals
		mutually_exclusive = {
			focus = JAP_economic_deals_planes focus = JAP_economic_deals_tanks
		}
		cost = 10
		prerequisite = { focus = JAP_economic_deals }

		available = {
			has_idea = JAP_sent_us_their_technicians_infantry
			NOT = {
				has_idea = JAP_focus_on_our_own_economy
			}
			OR = {
				any_other_country = {
					NOT = {
						has_idea = JAP_we_sent_our_technicians_infantry
					}
					AND = {
						is_in_faction_with = JAP
						is_faction_leader = yes
						has_government = democratic
					}
				}
				is_faction_leader = yes
			}
		}
		available_if_capitulated = yes

		completion_reward = {
			add_ideas = JAP_economy_by_japan_infantry
			random_core_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size = 1
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 1
				}
			}
			random_core_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size = 1
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 1
				}
			}
			every_other_country = {
				limit = {
					has_country_flag = JAP_importer_wants_guns_flag
				}
				add_ideas = JAP_economy_by_japan_infantry
			}
		}
	}
	focus = {
		id = JAP_increase_our_effiency
		icon = GFX_goal_generic_build_tank
		x = 0
		y = 2
		relative_position_id = JAP_economic_deals
		cost = 10
		prerequisite = { focus = JAP_economic_deals_infantry focus = JAP_economic_deals_planes focus = JAP_economic_deals_tanks }

		available = {
			NOT = {
				has_idea = JAP_focus_on_our_own_economy
			}
		}
		available_if_capitulated = yes

		completion_reward = {
			swap_ideas = {
				remove_idea = JAP_influenced_economy
				add_idea = JAP_efficent_economy
			}
		}
	}
	focus = {
		id = JAP_looking_inwards
		icon = GFX_focus_generic_modernize_industry
		x = -4
		y = 1
		relative_position_id = JAP_economic_deals
		cost = 10
		prerequisite = { focus = JAP_economic_deals }
		allow_branch = {
			has_country_flag = JAP_inwards_focused_flag
		}
		available = {
			has_idea = JAP_focus_on_our_own_economy
		}
		available_if_capitulated = yes

		completion_reward = {
			random_core_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 1
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
				}
			}
			random_core_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 0
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = arms_factory
					level = 2
				}
			}
			swap_ideas = {
				remove_idea = JAP_focus_on_our_own_economy
				add_idea = JAP_focus_on_our_own_economy_2
			}
		}
	}
	focus = {
		id = JAP_expand_the_alliance
		icon = GFX_goal_philippines_invite_malaysia
		prerequisite = { focus = JAP_west_pacific_treaty_organization }
		x = 0
		y = 1
		relative_position_id = JAP_west_pacific_treaty_organization

		cost = 5

		ai_will_do = {
			factor = 5			
		}

		available = {
			is_subject = no
			is_faction_leader = yes
			has_capitulated = no
		}
		completion_reward = {
			add_political_power = 50
			unlock_decision_category_tooltip = JAP_alliance_expansion_plan	
			news_event = {id = r56.news_event.31 hours = 6 }									
		}
		search_filters = { FOCUS_FILTER_ALLIANCE FOCUS_FILTER_POLITICAL }
	}
	focus = {
		id = JAP_island_investment
		icon = GFX_goal_generic_industrial_planning
		prerequisite = { focus = JAP_conciliatory_foreign_policy focus = JAP_the_bastion }
		x = 0
		y = 1
		relative_position_id = JAP_the_bastion

		cost = 5

		ai_will_do = {
			factor = 10
		}

		available = {
			is_subject = no
		}

		completion_reward = {
			add_political_power = 50
			custom_effect_tooltip = JAP_island_colonization_tt
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}
	focus = {
		id = JAP_pacific_guardian
		icon = GFX_focus_jap_pacific_guardian
		prerequisite = { focus = JAP_trans_pacific_alliance focus = JAP_rekindle_the_old_alliance focus = JAP_west_pacific_treaty_organization }
		x = -2
		y = 2
		relative_position_id = JAP_west_pacific_treaty_organization

		cost = 10

		ai_will_do = {
			factor = 1
		}

		completion_reward = {
			unlock_decision_category_tooltip = JAP_pacific_guardian
		}
		search_filters = { FOCUS_FILTER_ALLIANCE }
	}
	focus = {
		id = JAP_anti_communist_bulwark
		icon = GFX_focus_ger_bulwark_against_bolshevism
		prerequisite = { focus = JAP_pacific_guardian }
		x = -1
		y = 1
		relative_position_id = JAP_pacific_guardian

		cost = 5

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 2
				SOV = { has_war = yes }
			}
		}

		available = {
			NOT = { has_government = communism }
		}

		completion_reward = {
			add_ideas = JAP_anti_communist_volunteers
			SOV = { add_opinion_modifier = { target = ROOT modifier = JAP_anti_communist_bulwark } }
			PRC = { add_opinion_modifier = { target = ROOT modifier = JAP_anti_communist_bulwark } }
			add_opinion_modifier = { target = SOV modifier = JAP_anti_communist_bulwark }
			add_opinion_modifier = { target = PRC modifier = JAP_anti_communist_bulwark }
		}
	}


	focus = {
		id = JAP_the_korean_question
		icon = GFX_goal_JAP_the_korean_question
		prerequisite = { focus = JAP_rekindle_the_old_alliance focus = JAP_trans_pacific_alliance }
		x = 0
		y = 1
		relative_position_id = JAP_rekindle_the_old_alliance

		cost = 5

		ai_will_do = {
			factor = 1
		}

		available = {
			NOT = { has_war_with = KOR }
			NOT = { has_war_with = NKR }
		}
		bypass = {
			is_in_faction_with = KOR
		}
		completion_reward = {
			if = {
				limit = {
					country_exists = KOR
					has_government = democratic
				}
				KOR = { country_event = generic.5 }
			}
			else_if = {
				limit = {
					country_exists = NKR
					has_government = democratic
				}
				NKR = { country_event = generic.5 }
			}
			else_if = {
				limit = {
					country_exists = KOR
					NOT = { has_government = democratic }
					is_subject = no
				}
				KOR = { add_timed_idea = { idea = democratic_influence days = 360 } }
			}
			else_if = {
				limit = {
					country_exists = NKR
					NOT = { has_government = democratic }
					is_subject = no
				}
				NKR = { add_timed_idea = { idea = democratic_influence days = 360 } }
			}
			else_if = {
				limit = {
					has_full_control_of_state = 525
					has_full_control_of_state = 527
					has_full_control_of_state = 917
					has_full_control_of_state = 918
					has_full_control_of_state = 919
					has_full_control_of_state = 920
					KOR = { exists = no }
					NKR = { exists = no }
				}
				activate_mission_tooltip = JAP_release_korea
				set_country_flag = JAP_release_korea_activate
			}
			else_if = {
				limit = {
					MAN = {
						has_government = fascism
						has_full_control_of_state = 525
						has_full_control_of_state = 527
						has_full_control_of_state = 917
						has_full_control_of_state = 918
						has_full_control_of_state = 919
						has_full_control_of_state = 920
					}
				}
				create_wargoal = {
					type = take_state_focus
					target = MAN
					expire = 0
					generator = { 525 527 917 918 919 920 }
				}
			}
		}
		search_filters = { FOCUS_FILTER_ANNEXATION }
	}
	focus = {
		id = JAP_liberate_manchuria
		icon = GFX_goal_JAP_attack_manchukuo
		prerequisite = { focus = JAP_pacific_guardian }
		x = 1
		y = 1
		relative_position_id = JAP_pacific_guardian

		cost = 10

		ai_will_do = {
			factor = 2
		}

		available = {
			MAN = { NOT = { has_government = democratic } }
		}

		bypass = {
			OR = {
				NOT = { country_exists = MAN }
				MAN = { has_government = democratic }
			}
		}

		completion_reward = {
			if = {
				limit = {
					MAN = {
						exists = yes
						OR = {
							has_government = fascism
							has_government = communism
						}
					}
				}
				create_wargoal = {
					type = topple_government
					target = MAN
					expire = 0
				}
			}
			if = {
				limit = {
					SOV = {
						owns_state = 610
						owns_state = 716
						owns_state = 328
						owns_state = 715
						owns_state = 714
						owns_state = 717
						owns_state = 941
						owns_state = 942
						owns_state = 943
						owns_state = 944
						owns_state = 945
						owns_state = 946
						owns_state = 947
					}
				}
				create_wargoal = {
					target = SOV
					expire = 0
					type = take_state_focus
					generator = { 610 716 328 715 714 717 941 942 943 944 945 946 947 }
				}
			}
			unlock_decision_tooltip = JAP_return_manchuria
			custom_effect_tooltip = JAP_liberate_manchuria_tt
		}
		search_filters = { FOCUS_FILTER_ANNEXATION }
	}

	focus = {
		id = JAP_crush_chinese_communists
		icon = GFX_goal_PRC_destroy_the_communists
		prerequisite = { focus = JAP_anti_communist_bulwark }
		x = 0
		y = 1
		relative_position_id = JAP_anti_communist_bulwark

		cost = 10

		ai_will_do = {
			factor = 2
		}

		available = {
			PRC = { NOT = { has_government = democratic is_in_faction_with = JAP } }
		}

		bypass = {
			PRC = {
				exists = no
				is_in_faction_with = JAP
			}
		}

		completion_reward = {
			create_wargoal = {
				type = topple_government
				target = PRC
				expire = 0
			}

		}
		search_filters = { FOCUS_FILTER_ANNEXATION }
	}
	focus = {
		id = JAP_preemptive_strike_soviet
		icon = GFX_focus_attack_soviet
		prerequisite = { focus = JAP_anti_communist_bulwark }
		x = -2
		y = 1
		relative_position_id = JAP_anti_communist_bulwark

		cost = 10

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				has_war = yes
			}
		}

		available = {
			SOV = {
				NOT = {
					has_government = democratic
					is_in_faction_with = JAP
				}
			}
		}

		completion_reward = {
			create_wargoal = {
				type = puppet_wargoal_focus
				target = SOV
				expire = 0
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = JAP_full_sovereignty_for_the_philippines
		icon = GFX_goal_philippines_democracy
		prerequisite = { focus = JAP_liberate_manchuria }
		x = 0
		y = 1
		relative_position_id = JAP_liberate_manchuria

		cost = 10

		ai_will_do = {
			factor = 1
		}

		bypass = {
			PHI = {
				is_subject = no
			}
			USA = {
				AND = {
					OR = {
						has_idea = JAP_economy_by_japan_infantry
						has_idea = JAP_economy_by_japan_tanks
						has_idea = JAP_economy_by_japan_planes
					}
					is_in_faction_with = JAP
				}
			}
		}

		completion_reward = {
			PHI = { OVERLORD = { country_event = { id = wtt_japan.104 days = 1 } } }
		}
	}


	focus = {
		id = JAP_ultimate_deterrence
		icon = GFX_focus_wonderweapons
		prerequisite = { focus = JAP_full_sovereignty_for_the_philippines }
		prerequisite = { focus = JAP_crush_chinese_communists focus = JAP_preemptive_strike_soviet }
		x = -1
		y = 1
		relative_position_id = JAP_full_sovereignty_for_the_philippines

		cost = 10

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 3
				has_global_flag = first_nuke_dropped
			}
		}

		available = {
			is_in_faction = yes
		}

		completion_reward = {
			add_tech_bonus = {
				name = secret_bonus
				bonus = 1
				uses = 1
				category = nuclear
			} 
			add_to_tech_sharing_group = JAP_ultimate_deterrence
			every_country = {
				limit = { is_in_faction_with = ROOT }
				add_to_tech_sharing_group = JAP_ultimate_deterrence
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}
	####
	### MANCHU INVESTMENT BRANCH
	###
	focus = {
		id = JAP_the_manchurian_project
		icon = GFX_focus_jap_manchurian_project
		x = 37
		y = 0
		offset = {
			x = -26
			y = 0
			trigger = {
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
				has_completed_focus = JAP_the_unthinkable_option
			}
		}
		offset = {
			x = -29
			y = 0
			trigger = {
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
				has_completed_focus = JAP_support_the_kodoha_faction
			}
		}
		offset = {
			x = -25
			y = 0
			trigger = {
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
				has_completed_focus = JAP_purge_the_kodoha_faction
			}
		}
		offset = {
			x = -27
			y = 0
			trigger = {
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
				has_completed_focus = JAP_strengthen_civilian_government
			}
		}
		cost = 5

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 2
				OR = {
					has_completed_focus = JAP_support_the_kodoha_faction
					has_completed_focus = JAP_purge_the_kodoha_faction
				}
			}
			modifier = {
				factor = 10
				has_completed_focus = JAP_seek_alliances
			}
		}

		available = {
			MAN = { is_subject_of = ROOT }
		}

		completion_reward = {
			MAN = {
				add_stability = 0.1
				add_war_support = 0.1
				add_political_power = 150
			}
		}
		search_filters = { FOCUS_FILTER_STABILITY FOCUS_FILTER_POLITICAL FOCUS_FILTER_WAR_SUPPORT }
	}
	focus = {
		id = JAP_develop_mengjiang
		icon = GFX_goal_generic_light_industry
		x = 3
		y = 0
		relative_position_id = JAP_the_manchurian_project

		cost = 5

		ai_will_do = {
			factor = 2
		}

		available = {
			OR = {
				MEN = { is_subject_of = ROOT }
				any_controlled_state = {
					is_core_of = MEN
				}
			}
		}

		completion_reward = {
			if = {
				limit = {
					MEN = {
						is_subject_of = ROOT
					}
				}
				MEN = {
					random_owned_controlled_state = {
						limit = {
							industrial_complex > 0
						}
						add_extra_state_shared_building_slots = 1
						add_building_construction = {
							type = industrial_complex
							level = 1
							instant_build = yes
						}
					}
					random_owned_controlled_state = {
						limit = {
							#arms_factory > 0
						}
						add_extra_state_shared_building_slots = 1
						add_building_construction = {
							type = arms_factory
							level = 1
							instant_build = yes
						}
					}
				}
			}
			else = {
				random_owned_controlled_state = {
					limit = {
						is_core_of = MEN
						industrial_complex > 0
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
				}
				random_owned_controlled_state = {
					limit = {
						is_core_of = MEN
						#arms_factory > 0
					}
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}
	focus = {
		id = JAP_fortify_the_border
		icon = GFX_goal_generic_construct_military
		prerequisite = { focus = JAP_the_manchurian_project focus = JAP_develop_mengjiang }
		x = 4
		y = 1
		relative_position_id = JAP_the_manchurian_project

		cost = 5

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 10
				has_completed_focus = JAP_seek_alliances
			}
		}

		available = {
			MAN = { is_subject_of = ROOT }
		}

		completion_reward = {
			MAN = {
				every_owned_state = {
					limit = {
						is_fully_controlled_by = PREV
						any_neighbor_state = {
							is_controlled_by = SOV
						}
					}
					set_building_level = {
						type = bunker
						level = 2
						province = {
							all_provinces = yes
							limit_to_border = yes
							level < 2
						}
					}
				}
			}
			if = {
				limit = {
					MEN = {
						is_puppet_of = ROOT
					}
				}
				MEN = {
					every_owned_state = {
						limit = {
							is_fully_controlled_by = PREV
							any_neighbor_state = {
								is_controlled_by = MON
							}
						}
						set_building_level = {
							type = bunker
							level = 2
							province = {
								all_provinces = yes
								limit_to_border = yes
								level < 2
							}
						}
					}
				}
			}
		}
	}
	focus = {
		id = JAP_resource_manchu
		icon = GFX_goal_generic_construction2
		prerequisite = { focus = JAP_the_manchurian_project }
		x = 2
		y = 1
		relative_position_id = JAP_the_manchurian_project

		cost = 8
		ai_will_do = {
			factor = 2
		}

		available = {
			716 = { is_fully_controlled_by = MAN }
			MAN = { is_subject_of = ROOT }
		}

		completion_reward = {
			#mark_focus_tree_layout_dirty = yes
			MAN = {
				add_ideas = MAN_resource_manchu_idea
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_STEEL}
	}

	focus = {
		id = JAP_expand_the_showa_steel_works
		icon = GFX_focus_generic_steel
		prerequisite = { focus = JAP_resource_manchu }
		x = 1
		y = 1
		relative_position_id = JAP_resource_manchu

		cost = 5

		ai_will_do = {
			factor = 2
		}

		available = {
			716 = { is_fully_controlled_by = MAN }
			MAN = { is_subject_of = ROOT }
		}


		completion_reward = {
			716 = {
				add_resource = {
					type = steel
					amount = 16
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = steel_mill
					level = 1
					instant_build = yes
				}				
			}

		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_STEEL}
	}

	focus = {
		id = JAP_expanded_aluminium_in_manchu
		icon = GFX_focus_generic_aluminum
		prerequisite = { focus = JAP_resource_manchu }
		x = -1
		y = 1
		relative_position_id = JAP_resource_manchu

		cost = 5

		ai_will_do = {
			factor = 2
		}

		available = {
			716 = { is_fully_controlled_by = MAN }
			MAN = { is_subject_of = ROOT }
		}


		completion_reward = {
			716 = {

				add_resource = {
					type = aluminium
					amount = 16
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = aluminum_mill
					level = 1
					instant_build = yes
				}				
			}		
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_STEEL}
	}
	focus = {
		id = JAP_manchu_oil
		icon = GFX_goal_generic_oil_refinery
		prerequisite = { focus = JAP_expand_the_showa_steel_works }
		prerequisite = { focus = JAP_expanded_aluminium_in_manchu }
		x = 0
		y = 2
		relative_position_id = JAP_resource_manchu

		cost = 8

		ai_will_do = {
			factor = 2
		}

		available = {
			943 = { is_fully_controlled_by = MAN }
			MAN = { is_subject_of = ROOT }
		}


		completion_reward = {
			716 = {
				add_resource = {
					type = oil
					amount = 16
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
				add_building_construction = {
					type = fuel_silo
					level = 1
					instant_build = yes
				}					
			}		
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_STEEL}
	}

	focus = {
		id = JAP_manchu_buff
		icon = GFX_goal_JAP_manchu_army
		prerequisite = { focus = JAP_manchu_oil  focus = JAP_japanese_settlement }
		mutually_exclusive = { focus = JAP_manchu_buff1
		}
		x = -1
		y = 3
		relative_position_id = JAP_resource_manchu

		cost = 10

		ai_will_do = {
			factor = 2
		}
		available = {
			NOT = {
				has_completed_focus = JAP_manchu_buff1
			}
		}


		completion_reward = {
			MAN = {
				add_ideas = MAN_manchurian_army
			}
		}
		search_filters = { FOCUS_FILTER_MILITARY_IMPROVEMENT }
	}
	focus = {
		id = JAP_manchu_buff1
		icon = GFX_goal_JAP_manchu_special_forces
		prerequisite = { focus = JAP_manchu_oil  focus = JAP_japanese_settlement }
		mutually_exclusive = {
			focus = JAP_manchu_buff
		}
		x = -3
		y = 3
		relative_position_id = JAP_resource_manchu

		cost = 10

		ai_will_do = {
			factor = 2
		}
		available = {
			NOT = {
				has_completed_focus = JAP_manchu_buff
			}
		}


		completion_reward = {
			MAN = {
				add_ideas = MAN_specialized_units
			}
		}
		search_filters = { FOCUS_FILTER_MILITARY_IMPROVEMENT }
	}

	focus = {
		id = JAP_factory_manchu
		icon = GFX_focus_SOV_south_manchuria_railway
		prerequisite = { focus = JAP_the_manchurian_project }
		x = -2
		y = 1
		relative_position_id = JAP_the_manchurian_project

		cost = 5

		ai_will_do = {
			factor = 1
		}

		available = {
			MAN = { 
				is_subject_of = ROOT 
				controls_state = 716
			}
		}

		completion_reward = {
			#mark_focus_tree_layout_dirty = yes
			MAN = {
				if = {
					limit = {
						controls_state = 716
					}
					build_railway = { #Mukden-Korean border
						path = {
							11771 9885 3895 3839 3970 6981
						}
					}
					build_railway = { #Mukden - Dalian
						path = {
							11771 987 9781 11764 964 3783 6851 1150
						}
					}
				}
				if = {
					limit = {
						controls_state = 716
						controls_state = 610
					}
					build_railway = { #Mukden - Chinese border
						path = { 11771 6951 11815 9835 6837 11886 3900 }
					}
				}
				remove_ideas = MAN_kwantung_veto
				MAN_low_legitimacy_level_down = yes
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = JAP_light_industry_development
		icon = GFX_goal_generic_light_industry
		prerequisite = { focus = JAP_factory_manchu }
		x = -1
		y = 1
		relative_position_id = JAP_factory_manchu

		cost = 5

		ai_will_do = {
			factor = 2
		}

		available = {
			MAN = {
				is_subject_of = ROOT
				has_full_control_of_state = 715
			}
		}

		completion_reward = {
			MAN = {
				random_owned_controlled_state = {
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
				}
				random_owned_controlled_state = {
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = industrial_complex
						level = 1
						instant_build = yes
					}
				}
			}

		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = JAP_heavy_industry_development
		icon = GFX_goal_generic_build_tank
		prerequisite = { focus = JAP_factory_manchu }
		x = 1
		y = 1
		relative_position_id = JAP_factory_manchu

		cost = 5

		ai_will_do = {
			factor = 2
		}

		available = {
			MAN = {
				is_subject_of = ROOT
				has_full_control_of_state = 716
			}
		}


		completion_reward = {
			MAN = {
				random_owned_controlled_state = {
					add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
				}
				random_owned_controlled_state = {
					add_extra_state_shared_building_slots = 1
					add_building_construction = {
						type = arms_factory
						level = 1
						instant_build = yes
					}
				}
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = JAP_japanese_settlement
		icon = GFX_focus_generic_industry_2
		prerequisite = { focus = JAP_heavy_industry_development }
		prerequisite = { focus = JAP_light_industry_development }
		x = 0
		y = 2
		relative_position_id = JAP_factory_manchu

		cost = 10

		ai_will_do = {
			factor = 1
		}

		available = {
			MAN = {
				is_subject_of = ROOT
				has_full_control_of_state = 715
				has_full_control_of_state = 610
				has_full_control_of_state = 328
			}
		}


		completion_reward = {
			715 = { add_extra_state_shared_building_slots = 2 }
			610 = { add_extra_state_shared_building_slots = 2 }
			328 = { add_extra_state_shared_building_slots = 2 }
			MAN = {
				add_ideas = MAN_japanese_settlers
			}
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}
	focus = {
		id = JAP_army_expansion_law
		icon = GFX_goal_JAP_flag_army
		x = 45
		y = 0

		cost = 5

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 2
				has_completed_focus = JAP_support_the_kodoha_faction
			}
		}
		offset = {
			x = -26
			y = 0
			trigger = {
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
				has_completed_focus = JAP_the_unthinkable_option
			}
		}
		offset = {
			x = -29
			y = 0
			trigger = {
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
				has_completed_focus = JAP_support_the_kodoha_faction
			}
		}
		offset = {
			x = -25
			y = 0
			trigger = {
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
				has_completed_focus = JAP_purge_the_kodoha_faction
			}
		}
		offset = {
			x = -27
			y = 0
			trigger = {
				has_game_rule = {
					rule = obsolete_focus_branches_visibility
					option = HIDE
				}
				has_completed_focus = JAP_strengthen_civilian_government
			}
		}
		completion_reward = {
			army_experience = 30
			add_equipment_to_stockpile = {
				type = infantry_equipment_0
				producer = JAP
				amount = 3000
			}
			random_owned_controlled_state = {
				prioritize = { 528 }
				limit = {
					is_core_of = ROOT
					is_in_home_area = yes
					free_building_slots = {
						building = arms_factory
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				prioritize = { 531 }
				limit = {
					is_core_of = ROOT
					is_in_home_area = yes
					free_building_slots = {
						building = arms_factory
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}			
			#bit of help for the AI
			hidden_effect = {
				if = {
					limit = {
						difficulty > 1
						JAP = {
							is_ai = yes
						}
					}
					add_equipment_to_stockpile = {
						type = infantry_equipment
						amount = 2000
						producer = JAP
					}

				}
			}			
		}
		search_filters = { FOCUS_FILTER_INDUSTRY }
	}		

	focus = {
		id = JAP_small_arms_modernization
		icon = GFX_goal_CHI_support_pro_japanese_faction
		prerequisite = { focus = JAP_army_expansion_law }
		x = -1
		y = 1
		relative_position_id = JAP_army_expansion_law

		cost = 5

		ai_will_do = {
			factor = 2
			modifier = {
				factor = 2
				has_completed_focus = JAP_support_the_kodoha_faction
			}
		}

		completion_reward = {
			add_tech_bonus = {
				name = JAP_small_arms_modernization
				bonus = 1
				uses = 3
				category = infantry_weapons
			}
			add_tech_bonus = {
				name = JAP_small_arms_modernization
				bonus = 1
				uses = 1
				category = support_tech
			}
			random_owned_controlled_state = {
				prioritize = { 528 }
				limit = {
					is_core_of = ROOT
					is_in_home_area = yes
					free_building_slots = {
						building = arms_factory
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				prioritize = { 531 }
				limit = {
					is_core_of = ROOT
					is_in_home_area = yes
					free_building_slots = {
						building = arms_factory
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}			
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}
	
	focus = {
		id = JAP_pack_guns
		icon = GFX_goal_generic_army_artillery2
		prerequisite = { focus = JAP_small_arms_modernization }
		x = -1
		y = 1
		relative_position_id = JAP_small_arms_modernization

		cost = 5

		ai_will_do = {
			factor = 1
		}

		completion_reward = {
			add_ideas = JAP_pack_guns
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = JAP_modern_artillery
		icon = GFX_goal_generic_army_artillery
		prerequisite = { focus = JAP_pack_guns }
		x = 0
		y = 1
		relative_position_id = JAP_pack_guns

		cost = 10

		ai_will_do = {
			factor = 1
		}

		completion_reward = {
			add_tech_bonus = {
				name = JAP_modern_artillery
				bonus = 1
				uses = 2
				category = artillery
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = JAP_armored_divisions
		icon = GFX_goal_generic_army_tanks
		prerequisite = { focus = JAP_small_arms_modernization }
		x = 1
		y = 1
		relative_position_id = JAP_small_arms_modernization

		cost = 5

		ai_will_do = {
			factor = 1
		}
		
		completion_reward = {
			army_experience = 15
			add_tech_bonus = {
				name = JAP_armored_divisions
				bonus = 1
				uses = 2
				category = armor
			}
			if = {
				limit = {
					has_dlc = "La Resistance"
				}
				add_tech_bonus = {
					name = JAP_armored_divisions
					bonus = 1
					uses = 1
					category = armored_cars_tech
				}
			}
			add_tech_bonus = {
				name = JAP_armored_divisions
				bonus = 1
				uses = 1
				category = maintenance_company_tech
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}
	
	focus = {
		id = JAP_diversified_tank_roles
		icon = GFX_goal_tank_map
		prerequisite = { focus = JAP_armored_divisions }
		mutually_exclusive = { focus = JAP_expand_the_teishin_shudan }
		x = 0
		y = 1
		relative_position_id = JAP_armored_divisions
		cost = 10
		ai_will_do = {
			factor = 1
		}
		available = {
			if = {
				limit = {
					has_dlc = "No Step Back"
				}
				has_tech = basic_medium_tank_chassis
			}
		}

		available_if_capitulated = yes

		completion_reward = {
			if = {
				limit = {
					has_dlc = "No Step Back"
				}
				add_tech_bonus = {
					name = armor_bonus
					bonus = 1
					uses = 1
					category = armor
				}
				add_tech_bonus = {
					name = armor_bonus
					bonus = 1
					uses = 1
					category = armor_variant_tech
				}				
				if = {
					limit = {
						has_tech = centimetric_radar
					}
					create_equipment_variant = {
						name = "Ho-Ni I"
						type = medium_tank_destroyer_chassis_1
						parent_version = 0
						modules = {
							main_armament_slot = tank_medium_cannon
							turret_type_slot = tank_medium_fixed_superstructure_turret
							suspension_type_slot = tank_bogie_suspension
							armor_type_slot = tank_riveted_armor
							engine_type_slot = tank_diesel_engine
							special_type_slot_1 = tank_radio_3
						}
						upgrades = {
							tank_nsb_engine_upgrade = 4
							tank_nsb_armor_upgrade = 4
						}
						icon = "gfx/interface/technologies/tank/medium_tank/r56_tech_JAP_medium_tank_01_TD.dds"	#changed it, for the icon was apparently missing
					}
				}
				else_if = {
					limit = {
						has_tech = cavity_magnatron
					}
					create_equipment_variant = {
						name = "Ho-Ni I"
						type = medium_tank_destroyer_chassis_1
						parent_version = 0
						modules = {
							main_armament_slot = tank_medium_cannon
							turret_type_slot = tank_medium_fixed_superstructure_turret
							suspension_type_slot = tank_bogie_suspension
							armor_type_slot = tank_riveted_armor
							engine_type_slot = tank_diesel_engine
							special_type_slot_1 = tank_radio_2
						}
						upgrades = {
							tank_nsb_engine_upgrade = 4
							tank_nsb_armor_upgrade = 4
						}
						icon = "gfx/interface/technologies/tank/medium_tank/r56_tech_JAP_medium_tank_01_TD.dds"	#changed it, for the icon was apparently missing
					}
				}
				else_if = {
					limit = {
						has_tech = radio
					}
					create_equipment_variant = {
						name = "Ho-Ni I"
						type = medium_tank_destroyer_chassis_1
						parent_version = 0
						modules = {
							main_armament_slot = tank_medium_cannon
							turret_type_slot = tank_medium_fixed_superstructure_turret
							suspension_type_slot = tank_bogie_suspension
							armor_type_slot = tank_riveted_armor
							engine_type_slot = tank_diesel_engine
							special_type_slot_1 = tank_radio_1
						}
						upgrades = {
							tank_nsb_engine_upgrade = 4
							tank_nsb_armor_upgrade = 4
						}
						icon = "gfx/interface/technologies/tank/medium_tank/r56_tech_JAP_medium_tank_01_TD.dds"	#changed it, for the icon was apparently missing
					}
				}
				else = {
					create_equipment_variant = {
						name = "Ho-Ni I"
						type = medium_tank_destroyer_chassis_1
						parent_version = 0
						modules = {
							main_armament_slot = tank_medium_cannon
							turret_type_slot = tank_medium_fixed_superstructure_turret
							suspension_type_slot = tank_bogie_suspension
							armor_type_slot = tank_riveted_armor
							engine_type_slot = tank_diesel_engine
						}
						upgrades = {
							tank_nsb_engine_upgrade = 4
							tank_nsb_armor_upgrade = 4
						}
						icon = "gfx/interface/technologies/tank/medium_tank/r56_tech_JAP_medium_tank_01_TD.dds"	#changed it, for the icon was apparently missing
					}
				}
				
				if = {
					limit = {
						has_tech = centimetric_radar
					}
					create_equipment_variant = {
						name = "Ho-I"
						type = medium_tank_artillery_chassis_1
						parent_version = 0
						modules = {
							main_armament_slot = tank_medium_howitzer
							turret_type_slot = tank_medium_fixed_superstructure_turret
							suspension_type_slot = tank_bogie_suspension
							armor_type_slot = tank_riveted_armor
							engine_type_slot = tank_diesel_engine
							special_type_slot_1 = tank_radio_3
						}
						upgrades = {
							tank_nsb_engine_upgrade = 4
							tank_nsb_armor_upgrade = 4
						}
						icon = "gfx/interface/technologies/tank/medium_tank/r56_tech_JAP_medium_tank_01_SPA.dds"	#changed it, for the icon was apparently missing
					}
				}
				else_if = {
					limit = {
						has_tech = cavity_magnatron
					}
					create_equipment_variant = {
						name = "Ho-I"
						type = medium_tank_artillery_chassis_1
						parent_version = 0
						modules = {
							main_armament_slot = tank_medium_howitzer
							turret_type_slot = tank_medium_fixed_superstructure_turret
							suspension_type_slot = tank_bogie_suspension
							armor_type_slot = tank_riveted_armor
							engine_type_slot = tank_diesel_engine
							special_type_slot_1 = tank_radio_2
						}
						upgrades = {
							tank_nsb_engine_upgrade = 4
							tank_nsb_armor_upgrade = 4
						}
						icon = "gfx/interface/technologies/tank/medium_tank/r56_tech_JAP_medium_tank_01_SPA.dds"	#changed it, for the icon was apparently missing
					}
				}
				else_if = {
					limit = {
						has_tech = radio
					}
					create_equipment_variant = {
						name = "Ho-I"
						type = medium_tank_artillery_chassis_1
						parent_version = 0
						modules = {
							main_armament_slot = tank_medium_howitzer
							turret_type_slot = tank_medium_fixed_superstructure_turret
							suspension_type_slot = tank_bogie_suspension
							armor_type_slot = tank_riveted_armor
							engine_type_slot = tank_diesel_engine
							special_type_slot_1 = tank_radio_1
						}
						upgrades = {
							tank_nsb_engine_upgrade = 4
							tank_nsb_armor_upgrade = 4
						}
						icon = "gfx/interface/technologies/tank/medium_tank/r56_tech_JAP_medium_tank_01_SPA.dds"	#changed it, for the icon was apparently missing
					}
				}
				else = {
					create_equipment_variant = {
						name = "Ho-I"
						type = medium_tank_artillery_chassis_1
						parent_version = 0
						modules = {
							main_armament_slot = tank_medium_howitzer
							turret_type_slot = tank_medium_fixed_superstructure_turret
							suspension_type_slot = tank_bogie_suspension
							armor_type_slot = tank_riveted_armor
							engine_type_slot = tank_diesel_engine
						}
						upgrades = {
							tank_nsb_engine_upgrade = 4
							tank_nsb_armor_upgrade = 4
						}
						icon = "gfx/interface/technologies/tank/medium_tank/r56_tech_JAP_medium_tank_01_SPA.dds"	#changed it, for the icon was apparently missing
					}
				}
				
				if = {
					limit = {
						has_tech = improved_medium_tank_chassis
						has_tech = centimetric_radar
					}
					create_equipment_variant = {
						name = "Ho-Ni III"
						type = medium_tank_destroyer_chassis_2
						parent_version = 0
						modules = {
							main_armament_slot = tank_medium_cannon_2
							turret_type_slot = tank_medium_fixed_superstructure_turret
							suspension_type_slot = tank_bogie_suspension
							armor_type_slot = tank_riveted_armor
							engine_type_slot = tank_diesel_engine
							special_type_slot_1 = tank_radio_3
						}
						upgrades = {
							tank_nsb_engine_upgrade = 4
							tank_nsb_armor_upgrade = 4
						}
						icon = "gfx/interface/technologies/tank/medium_tank/r56_tech_JAP_medium_tank_01_SPA.dds"	#changed it, for the icon was apparently missing
					}
				}
				else_if = {
					limit = {
						has_tech = improved_medium_tank_chassis
						has_tech = cavity_magnatron
					}
					create_equipment_variant = {
						name = "Ho-Ni III"
						type = medium_tank_destroyer_chassis_2
						parent_version = 0
						modules = {
							main_armament_slot = tank_medium_cannon_2
							turret_type_slot = tank_medium_fixed_superstructure_turret
							suspension_type_slot = tank_bogie_suspension
							armor_type_slot = tank_riveted_armor
							engine_type_slot = tank_diesel_engine
							special_type_slot_1 = tank_radio_2
						}
						upgrades = {
							tank_nsb_engine_upgrade = 4
							tank_nsb_armor_upgrade = 4
						}
						icon = "gfx/interface/technologies/tank/medium_tank/r56_tech_JAP_medium_tank_02_TD.dds"	#changed it, for the icon was apparently missing
					}
				}
				else_if = {
					limit = {
						has_tech = improved_medium_tank_chassis
						has_tech = radio
					}
					create_equipment_variant = {
						name = "Ho-Ni III"
						type = medium_tank_destroyer_chassis_2
						parent_version = 0
						modules = {
							main_armament_slot = tank_medium_cannon_2
							turret_type_slot = tank_medium_fixed_superstructure_turret
							suspension_type_slot = tank_bogie_suspension
							armor_type_slot = tank_riveted_armor
							engine_type_slot = tank_diesel_engine
							special_type_slot_1 = tank_radio_1
						}
						upgrades = {
							tank_nsb_engine_upgrade = 4
							tank_nsb_armor_upgrade = 4
						}
						icon = "gfx/interface/technologies/tank/medium_tank/r56_tech_JAP_medium_tank_02_TD.dds"	#changed it, for the icon was apparently missing
					}
				}
				else_if = {
					limit = {
						has_tech = improved_medium_tank_chassis
						NOT = { has_tech = radio }
					}
					create_equipment_variant = {
						name = "Ho-Ni III"
						type = medium_tank_destroyer_chassis_2
						parent_version = 0
						modules = {
							main_armament_slot = tank_medium_cannon_2
							turret_type_slot = tank_medium_fixed_superstructure_turret
							suspension_type_slot = tank_bogie_suspension
							armor_type_slot = tank_riveted_armor
							engine_type_slot = tank_diesel_engine
						}
						upgrades = {
							tank_nsb_engine_upgrade = 4
							tank_nsb_armor_upgrade = 4
						}
						icon = "gfx/interface/technologies/tank/medium_tank/r56_tech_JAP_medium_tank_02_TD.dds"	#changed it, for the icon was apparently missing
					}
				}
				else = {
					custom_effect_tooltip = JAP_diversified_tank_roles_ho_ni_3_tt
				}
			}
			else = {
				add_tech_bonus = {
					name = armor_bonus
					bonus = 1.0
					uses = 3
					category = armor_variant_tech
				}
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}
	
	focus = {
		id = JAP_supremacy_of_technology
		icon = GFX_goal_generic_production
		prerequisite = { focus = JAP_modern_artillery focus = JAP_armored_divisions }
		mutually_exclusive = { focus = JAP_supremacy_of_will }
		x = -1
		y = 1
		relative_position_id = JAP_diversified_tank_roles

		cost = 5

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 2
				has_completed_focus = JAP_strengthen_civilian_government
			}
		}

		completion_reward = {
			add_tech_bonus = {
				name = JAP_supremacy_of_technology
				bonus = 1
				uses = 2
				category = cat_mechanized_equipment
			}
			if = {
				limit = {
					has_dlc = "Man the Guns"
				}
				add_tech_bonus = {
					name = JAP_supremacy_of_technology
					bonus = 1
					uses = 1
					technology = amphibious_mechanized_infantry
					technology = amphibious_mechanized_infantry_2
				}
			}
			add_ideas = JAP_supremacy_of_technology
			custom_effect_tooltip = JAP_supremacy_of_technology_facilities_tt
			hidden_effect = {
				IF = {
					limit = { 
						282 = {
							is_fully_controlled_by = ROOT
							air_facility < 1
							land_facility < 1
							naval_facility < 1
							nuclear_facility < 1
						}
					}

					282 = {
						add_building_construction = {
							type = land_facility
							level = 1
							instant_build = yes
							province = 9998 # Yokohama
						}
					}
				}
				IF = {
					limit = { 
						528 = {
							is_fully_controlled_by = ROOT
							air_facility < 1
							land_facility < 1
							naval_facility < 1
							nuclear_facility < 1
						}
					}

					528 = {
						add_building_construction = {
							type = naval_facility
							level = 1
							instant_build = yes
							province = 9950 # Nagasaki
						}
					}
				}
			}
		}
	}
	
	focus = {
		id = JAP_support_the_railways_and_shipping_section
		icon = GFX_focus_generic_public_works_A
		prerequisite = { focus = JAP_supremacy_of_technology }
		x = -2
		y = 2
		relative_position_id = JAP_supremacy_of_technology
		cost = 10
		ai_will_do = {
			factor = 1
		}

		available_if_capitulated = yes

		completion_reward = {
			add_tech_bonus = {
				name = JAP_support_the_railways_and_shipping_section
				bonus = 1
				uses = 2
				category = train_tech
			}
			add_tech_bonus = {
				name = JAP_support_the_railways_and_shipping_section
				bonus = 1
				uses = 1
				category = tp_tech
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}
	
	focus = {
		id = JAP_rocket_artillery
		icon = GFX_goal_generic_rocket_artillery
		prerequisite = { focus = JAP_supremacy_of_technology }
		x = -1
		y = 1
		relative_position_id = JAP_supremacy_of_technology
		cost = 10
		ai_will_do = {
			factor = 1
		}

		available_if_capitulated = yes

		completion_reward = {
			add_tech_bonus = {
				name = jet_rocket_bonus
				bonus = 1
				uses = 2
				category = rocketry
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_breakthrough_progress = {
				specialization = specialization_air
				value = 0.50
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}
	
	focus = {
		id = JAP_the_ultimate_tank
		icon = GFX_goal_generic_license_tanks
		prerequisite = { focus = JAP_supremacy_of_technology }
		prerequisite = { focus = JAP_rethink_armor_design }
		x = 0
		y = 2
		relative_position_id = JAP_supremacy_of_technology
		cost = 10
		ai_will_do = {
			factor = 1
		}
		available = {
			if = {
				limit = {
					has_dlc = "No Step Back"
				}
				has_tech = super_heavy_tank_chassis
				has_tech = armor_tech_2
				has_tech = engine_tech_2
			}
		}

		available_if_capitulated = yes

		completion_reward = {
			if = {
				limit = {
					has_dlc = "No Step Back"
				}
				if = {
					limit = {
						has_tech = centimetric_radar
					}
					create_equipment_variant = {
						name = "O-I"
						type = super_heavy_tank_chassis_1
						parent_version = 0
						modules = {
							main_armament_slot = tank_super_heavy_cannon
							turret_type_slot = tank_super_heavy_four_man_tank_turret
							suspension_type_slot = tank_bogie_suspension
							armor_type_slot = tank_welded_armor
							engine_type_slot = tank_petrol_electric_engine
							special_type_slot_1 = tank_radio_3
							special_type_slot_2 = armor_skirts
							special_type_slot_3 = secondary_turret_hmg
							special_type_slot_4 = sloped_armor
						}
						upgrades = {
							tank_nsb_engine_upgrade = 12
							tank_nsb_armor_upgrade = 10
						}
						icon = "gfx/interface/technologies/JAP_superheavy_tank.dds"
					}
				}
				else_if = {
					limit = {
						has_tech = cavity_magnatron
					}
					create_equipment_variant = {
						name = "O-I"
						type = super_heavy_tank_chassis_1
						parent_version = 0
						modules = {
							main_armament_slot = tank_super_heavy_cannon
							turret_type_slot = tank_super_heavy_four_man_tank_turret
							suspension_type_slot = tank_bogie_suspension
							armor_type_slot = tank_welded_armor
							engine_type_slot = tank_petrol_electric_engine
							special_type_slot_1 = tank_radio_2
							special_type_slot_2 = armor_skirts
							special_type_slot_3 = secondary_turret_hmg
							special_type_slot_4 = sloped_armor
						}
						upgrades = {
							tank_nsb_engine_upgrade = 12
							tank_nsb_armor_upgrade = 10
						}
						icon = "gfx/interface/technologies/JAP_superheavy_tank.dds"
					}
				}
				else_if = {
					limit = {
						has_tech = radio
					}
					create_equipment_variant = {
						name = "O-I"
						type = super_heavy_tank_chassis_1
						parent_version = 0
						modules = {
							main_armament_slot = tank_super_heavy_cannon
							turret_type_slot = tank_super_heavy_four_man_tank_turret
							suspension_type_slot = tank_bogie_suspension
							armor_type_slot = tank_welded_armor
							engine_type_slot = tank_petrol_electric_engine
							special_type_slot_1 = tank_radio_1
							special_type_slot_2 = armor_skirts
							special_type_slot_3 = secondary_turret_hmg
							special_type_slot_4 = sloped_armor
						}
						upgrades = {
							tank_nsb_engine_upgrade = 12
							tank_nsb_armor_upgrade = 10
						}
						icon = "gfx/interface/technologies/JAP_superheavy_tank.dds"
					}
				}
				else = {
					create_equipment_variant = {
						name = "O-I"
						type = super_heavy_tank_chassis_1
						parent_version = 0
						modules = {
							main_armament_slot = tank_super_heavy_cannon
							turret_type_slot = tank_super_heavy_four_man_tank_turret
							suspension_type_slot = tank_bogie_suspension
							armor_type_slot = tank_welded_armor
							engine_type_slot = tank_petrol_electric_engine
							special_type_slot_1 = armor_skirts
							special_type_slot_2 = secondary_turret_hmg
							special_type_slot_3 = sloped_armor
						}
						upgrades = {
							tank_nsb_engine_upgrade = 12
							tank_nsb_armor_upgrade = 10
						}
						icon = "gfx/interface/technologies/JAP_superheavy_tank.dds"
					}
				}
				add_equipment_production = {
					equipment = {
						type = super_heavy_tank_chassis
						creator = "JAP" 
						version_name = "O-I"
					}
					requested_factories = 1
					progress = 0.4
					efficiency = 50
				}
				
				if = {
					limit = {
						has_tech = centimetric_radar
					}
					create_equipment_variant = {
						name = "Ho-Ri"
						type = heavy_tank_destroyer_chassis_2
						parent_version = 0
						modules = {
							main_armament_slot = tank_heavy_cannon_2
							turret_type_slot = tank_heavy_fixed_superstructure_turret
							suspension_type_slot = tank_bogie_suspension
							armor_type_slot = tank_cast_armor
							engine_type_slot = tank_diesel_engine
							special_type_slot_1 = tank_radio_3
							special_type_slot_2 = extra_ammo_storage
						}
						upgrades = {
							tank_nsb_engine_upgrade = 6
							tank_nsb_armor_upgrade = 8
						}
						icon = "gfx/interface/technologies/tank/heavy_tank/r56_tech_JAP_heavy_tank_02_TD.dds"
					}
				}
				else_if = {
					limit = {
						has_tech = cavity_magnatron
					}
					create_equipment_variant = {
						name = "Ho-Ri"
						type = heavy_tank_destroyer_chassis_2
						parent_version = 0
						modules = {
							main_armament_slot = tank_heavy_cannon_2
							turret_type_slot = tank_heavy_fixed_superstructure_turret
							suspension_type_slot = tank_bogie_suspension
							armor_type_slot = tank_cast_armor
							engine_type_slot = tank_diesel_engine
							special_type_slot_1 = tank_radio_2
							special_type_slot_2 = extra_ammo_storage
						}
						upgrades = {
							tank_nsb_engine_upgrade = 6
							tank_nsb_armor_upgrade = 8
						}
						icon = "gfx/interface/technologies/tank/heavy_tank/r56_tech_JAP_heavy_tank_02_TD.dds"
					}
				}
				else_if = {
					limit = {
						has_tech = radio
					}
					create_equipment_variant = {
						name = "Ho-Ri"
						type = heavy_tank_destroyer_chassis_2
						parent_version = 0
						modules = {
							main_armament_slot = tank_heavy_cannon_2
							turret_type_slot = tank_heavy_fixed_superstructure_turret
							suspension_type_slot = tank_bogie_suspension
							armor_type_slot = tank_cast_armor
							engine_type_slot = tank_diesel_engine
							special_type_slot_1 = tank_radio_1
							special_type_slot_2 = extra_ammo_storage
						}
						upgrades = {
							tank_nsb_engine_upgrade = 6
							tank_nsb_armor_upgrade = 8
						}
						icon = "gfx/interface/technologies/tank/heavy_tank/r56_tech_JAP_heavy_tank_02_TD.dds"
					}
				}
				else = {
					create_equipment_variant = {
						name = "Ho-Ri"
						type = heavy_tank_destroyer_chassis_2
						parent_version = 0
						modules = {
							main_armament_slot = tank_heavy_cannon_2
							turret_type_slot = tank_heavy_fixed_superstructure_turret
							suspension_type_slot = tank_bogie_suspension
							armor_type_slot = tank_cast_armor
							engine_type_slot = tank_diesel_engine
							special_type_slot_1 = tank_radio_1
							special_type_slot_2 = extra_ammo_storage
						}
						upgrades = {
							tank_nsb_engine_upgrade = 6
							tank_nsb_armor_upgrade = 8
						}
						icon = "gfx/interface/technologies/tank/heavy_tank/r56_tech_JAP_heavy_tank_02_TD.dds"
					}
				}
			}
			else = {
				add_tech_bonus = {
					name = JAP_the_ultimate_tank
					bonus = 1
					uses = 1
					technology = super_heavy_tank
					technology = super_heavy_td
					technology = super_heavy_art
					technology = super_heavy_spaa
				}
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = JAP_army_expansion
		icon = GFX_goal_JAP_army_expansion
		prerequisite = { focus = JAP_army_expansion_law }
		x = 3
		y = 1
		relative_position_id = JAP_army_expansion_law

		cost = 5

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 2
				has_completed_focus = JAP_support_the_kodoha_faction
			}
		}

		completion_reward = {
			add_doctrine_cost_reduction = {
				name = JAP_army_expansion
				cost_reduction = 0.5
				uses = 2
				category = land_doctrine
			}
			add_ideas = JAP_army_expansion_idea
			custom_effect_tooltip = available_chief_of_army
			show_ideas_tooltip = hajime_sugiyama
			set_division_template_lock = {
				division_template = "Jōsetsu Shidan"
				is_locked = no
			}
		}
		search_filters = { FOCUS_FILTER_POLITICAL }
	}
	
	focus = {
		id = JAP_kempetai_repression
		icon = GFX_goal_generic_secret_police_2
		cost = 5
		prerequisite = {
			focus = JAP_army_expansion
		}
		available = {
			OR = {
				has_completed_focus = JAP_support_the_kodoha_faction
				has_completed_focus = JAP_purge_the_kodoha_faction
				has_completed_focus = JAP_cast_the_die
			}
		}
		relative_position_id = JAP_army_expansion
		x = 0
		y = 1
		ai_will_do = {
			factor = 10
		}
		completion_reward = {
			if = {
				limit = {
					has_dlc = "La Resistance"
					NOT = {
						has_intelligence_agency = yes
					}
				}
				create_intelligence_agency = yes
			}			
			add_tech_bonus = {
				name = mp_tech_bonus_name
				bonus = 1
				uses = 2
				category = military_police_tech
			}
			
			if = {
				limit = {
					NOT = {
						has_idea = r56i_laws_security_balanced
						has_idea = r56i_laws_security_rights
						has_idea = r56i_laws_security_order
					}
				}
				custom_effect_tooltip = EFFECT_CHANGE_LAW_r56i_laws_social
				show_ideas_tooltip = r56i_laws_security_order
				hidden_effect = {
					add_ideas = r56i_laws_security_order
				}
				
			}
		}
		search_filters = {  FOCUS_FILTER_RESEARCH FOCUS_FILTER_ESPIONAGE }
	}
	
	focus = {
		id = JAP_expand_the_teishin_shudan
		icon = GFX_focus_generic_paratrooper
		prerequisite = { focus = JAP_army_expansion }
		mutually_exclusive = { focus = JAP_diversified_tank_roles }
		x = -1
		y = 2
		relative_position_id = JAP_army_expansion

		cost = 10

		ai_will_do = {
			factor = 1
		}
		
		completion_reward = {
			army_experience = 10
			add_tech_bonus = {
				name = JAP_expand_the_teishin_shudan
				bonus = 1
				uses = 2
				category = para_tech
			}
			add_tech_bonus = {
				name = JAP_expand_the_teishin_shudan
				bonus = 1.0
				uses = 1
				category = r56_special_forces_training_tech 
			}	
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				add_doctrine_cost_reduction = {
					name = JAP_expand_the_teishin_shudan
					cost_reduction = 0.75
					uses = 2
					category = cat_paratroopers_doctrine
				}	
			}
			hidden_effect = {
				set_country_flag = cite_an_airborne_unit_flag
			}
			unlock_decision_tooltip = { decision = cite_an_airborne_unit show_effect_tooltip = yes }					
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}
	
	focus = {
		id = JAP_bicycle_battalions
		icon = GFX_focus_SWE_bicycle
		prerequisite = { focus = JAP_army_expansion }
		x = 1
		y = 2
		relative_position_id = JAP_army_expansion

		cost = 5

		ai_will_do = {
			factor = 1
		}
		
		completion_reward = {
			set_technology = { bicycle_infantry = 1 }
			add_tech_bonus = {
				name = JAP_bicycle_battalions
				bonus = 1
				uses = 1
				category = recon_tech
			}			
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}
	
	focus = {
		id = JAP_supremacy_of_will
		icon = GFX_goal_supremacy_of_will
		prerequisite = { focus = JAP_expand_the_teishin_shudan focus = JAP_bicycle_battalions }
		mutually_exclusive = { focus = JAP_supremacy_of_technology }
		x = 1
		y = 1
		relative_position_id = JAP_expand_the_teishin_shudan

		cost = 5

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 2
				has_completed_focus = JAP_support_the_kodoha_faction
			}
		}
		
		available = {
			NOT = { has_government = democratic }
		}

		completion_reward = {
			add_war_support = 0.1
			add_ideas = JAP_superior_will
		}
	}
	
	focus = {
		id = JAP_defense_in_depth
		icon = GFX_goal_generic_military_sphere
		prerequisite = { focus = JAP_supremacy_of_technology focus = JAP_supremacy_of_will }
		x = -1
		y = 1
		relative_position_id = JAP_supremacy_of_will

		cost = 10

		ai_will_do = {
			factor = 1
		}

		completion_reward = {
			add_doctrine_cost_reduction = {
				name = JAP_defense_in_depth
				cost_reduction = 0.5
				uses = 1
				category = land_doctrine
			}
			add_ideas = JAP_defense_in_depth
		}
	}
	
	focus = {
		id = JAP_lunge_mines
		icon = GFX_focus_JAP_lunge_mines
		prerequisite = { focus = JAP_supremacy_of_will }
		x = 1
		y = 1
		relative_position_id = JAP_supremacy_of_will

		cost = 5

		ai_will_do = {
			factor = 1
		}

		completion_reward = {
			set_technology = { JAP_lunge_mines = 1 }
			custom_effect_tooltip = JAP_lunge_mines_tt
		}
	}
	
	focus = {
		id = JAP_raise_the_boeitai
		icon = GFX_goal_generic_into_fire
		prerequisite = { focus = JAP_supremacy_of_will }
		x = 0
		y = 2
		relative_position_id = JAP_supremacy_of_will

		cost = 10

		ai_will_do = {
			factor = 1
		}
		
		available = {
			has_war = yes
			surrender_progress > 0.39
		}

		completion_reward = {
			if = {
				limit = {
					NOT =  { has_tech = r56_militia_tech }
				}
				set_technology = { r56_militia_tech = 1 }
				hidden_effect = {
					load_oob = "r56_unlock_militia"
				}
			}
			add_manpower = 7500
			add_ideas = JAP_the_boeitai
		}
	}
	
	focus = {
		id = JAP_rethink_armor_design
		icon = GFX_goal_generic_design_equipment_standards
		prerequisite = { focus = JAP_supremacy_of_technology focus = JAP_supremacy_of_will }
		x = 1
		y = 1
		relative_position_id = JAP_supremacy_of_technology

		cost = 10

		ai_will_do = {
			factor = 1
		}

		available = {
			has_army_experience > 49.99
			if = {
				limit = {
					has_dlc = "No Step Back"
				}
				has_tech = advanced_medium_tank_chassis
				has_tech = artillery4
				has_tech = armor_tech_2
				has_tech = engine_tech_2
			}
		}
		
		completion_reward = {
			army_experience = -50
			army_experience = 15
			add_doctrine_cost_reduction = {
				name = JAP_rethink_armor_design
				cost_reduction = 0.5
				uses = 1
				category = land_doctrine
			}
			if = {
				limit = {
					has_dlc = "No Step Back"
				}
				add_tech_bonus = {
					name = JAP_rethink_armor_design
					bonus = 1
					uses = 1
					category = armor
				}
				if = {
					limit = {
						has_tech = centimetric_radar
					}
					create_equipment_variant = {
						name = "Chi-Nu"
						type = medium_tank_chassis_3
						parent_version = 0
						modules = {
							main_armament_slot = tank_medium_cannon_2
							turret_type_slot = tank_medium_three_man_tank_turret
							suspension_type_slot = tank_bogie_suspension
							armor_type_slot = tank_welded_armor
							engine_type_slot = tank_gasoline_engine
							special_type_slot_1 = tank_radio_3
							special_type_slot_2 = smoke_launchers
						}
						upgrades = {
							tank_nsb_engine_upgrade = 6
							tank_nsb_armor_upgrade = 5
						}
						icon = "gfx/interface/technologies/JAP_imp_main_tank.dds"
					}
				}
				else_if = {
					limit = {
						has_tech = cavity_magnatron
					}
					create_equipment_variant = {
						name = "Chi-Nu"
						type = medium_tank_chassis_3
						parent_version = 0
						modules = {
							main_armament_slot = tank_medium_cannon_2
							turret_type_slot = tank_medium_three_man_tank_turret
							suspension_type_slot = tank_bogie_suspension
							armor_type_slot = tank_welded_armor
							engine_type_slot = tank_gasoline_engine
							special_type_slot_1 = tank_radio_2
							special_type_slot_2 = smoke_launchers
						}
						upgrades = {
							tank_nsb_engine_upgrade = 6
							tank_nsb_armor_upgrade = 5
						}
						icon = "gfx/interface/technologies/JAP_imp_main_tank.dds"
					}
				}
				else_if = {
					limit = {
						has_tech = radio
					}
					create_equipment_variant = {
						name = "Chi-Nu"
						type = medium_tank_chassis_3
						parent_version = 0
						modules = {
							main_armament_slot = tank_medium_cannon_2
							turret_type_slot = tank_medium_three_man_tank_turret
							suspension_type_slot = tank_bogie_suspension
							armor_type_slot = tank_welded_armor
							engine_type_slot = tank_gasoline_engine
							special_type_slot_1 = tank_radio_1
							special_type_slot_2 = smoke_launchers
						}
						upgrades = {
							tank_nsb_engine_upgrade = 6
							tank_nsb_armor_upgrade = 5
						}
						icon = "gfx/interface/technologies/JAP_imp_main_tank.dds"
					}
				}
				else = {
					create_equipment_variant = {
						name = "Chi-Nu"
						type = medium_tank_chassis_3
						parent_version = 0
						modules = {
							main_armament_slot = tank_medium_cannon_2
							turret_type_slot = tank_medium_three_man_tank_turret
							suspension_type_slot = tank_bogie_suspension
							armor_type_slot = tank_welded_armor
							engine_type_slot = tank_gasoline_engine
							special_type_slot_1 = smoke_launchers
						}
						upgrades = {
							tank_nsb_engine_upgrade = 6
							tank_nsb_armor_upgrade = 5
						}
						icon = "gfx/interface/technologies/JAP_imp_main_tank.dds"
					}
				}
				
				if = {
					limit = {
						has_tech = centimetric_radar
					}
					create_equipment_variant = {
						name = "Chi-To"
						type = medium_tank_chassis_3
						parent_version = 0
						modules = {
							main_armament_slot = tank_medium_cannon_2
							turret_type_slot = tank_medium_three_man_tank_turret
							suspension_type_slot = tank_bogie_suspension
							armor_type_slot = tank_welded_armor
							engine_type_slot = tank_gasoline_engine
							special_type_slot_1 = tank_radio_3
							special_type_slot_2 = smoke_launchers
							special_type_slot_3 = additional_machine_guns
						}
						upgrades = {
							tank_nsb_engine_upgrade = 9
							tank_nsb_armor_upgrade = 8
						}
						icon = "gfx/interface/technologies/JAP_imp_main_tank.dds"
					}
				}
				else_if = {
					limit = {
						has_tech = cavity_magnatron
					}
					create_equipment_variant = {
						name = "Chi-To"
						type = medium_tank_chassis_3
						parent_version = 0
						modules = {
							main_armament_slot = tank_medium_cannon_2
							turret_type_slot = tank_medium_three_man_tank_turret
							suspension_type_slot = tank_bogie_suspension
							armor_type_slot = tank_welded_armor
							engine_type_slot = tank_gasoline_engine
							special_type_slot_1 = tank_radio_2
							special_type_slot_2 = smoke_launchers
							special_type_slot_3 = additional_machine_guns
						}
						upgrades = {
							tank_nsb_engine_upgrade = 9
							tank_nsb_armor_upgrade = 8
						}
						icon = "gfx/interface/technologies/JAP_imp_main_tank.dds"
					}
				}
				else_if = {
					limit = {
						has_tech = radio
					}
					create_equipment_variant = {
						name = "Chi-To"
						type = medium_tank_chassis_3
						parent_version = 0
						modules = {
							main_armament_slot = tank_medium_cannon_2
							turret_type_slot = tank_medium_three_man_tank_turret
							suspension_type_slot = tank_bogie_suspension
							armor_type_slot = tank_welded_armor
							engine_type_slot = tank_gasoline_engine
							special_type_slot_1 = tank_radio_1
							special_type_slot_2 = smoke_launchers
							special_type_slot_3 = additional_machine_guns
						}
						upgrades = {
							tank_nsb_engine_upgrade = 9
							tank_nsb_armor_upgrade = 8
						}
						icon = "gfx/interface/technologies/JAP_imp_main_tank.dds"
					}
				}
				else = {
					create_equipment_variant = {
						name = "Chi-To"
						type = medium_tank_chassis_3
						parent_version = 0
						modules = {
							main_armament_slot = tank_medium_cannon_2
							turret_type_slot = tank_medium_three_man_tank_turret
							suspension_type_slot = tank_bogie_suspension
							armor_type_slot = tank_welded_armor
							engine_type_slot = tank_gasoline_engine
							special_type_slot_1 = smoke_launchers
							special_type_slot_2 = additional_machine_guns
						}
						upgrades = {
							tank_nsb_engine_upgrade = 9
							tank_nsb_armor_upgrade = 8
						}
						icon = "gfx/interface/technologies/JAP_imp_main_tank.dds"
					}
				}
			}
			else = {
				add_tech_bonus = {
					name = JAP_rethink_armor_design
					bonus = 1
					uses = 2
					category = armor
				}
				add_tech_bonus = {
					name = JAP_rethink_armor_design
					bonus = 1
					uses = 2
					category = armor_variant_tech
				}
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}
	
	focus = {
		id = JAP_embrace_jungle_warfare
		icon = GFX_goal_generic_jungle_warfare
		prerequisite = { focus = JAP_supremacy_of_technology focus = JAP_supremacy_of_will }
		x = 2
		y = 2
		relative_position_id = JAP_supremacy_of_technology

		cost = 10

		ai_will_do = {
			factor = 1
		}

		completion_reward = {
			add_tech_bonus = {
				name = JAP_embrace_jungle_warfare
				bonus = 1
				uses = 1
				category = r56_jungle_infantry_tech
			}	
			effect_tooltip = {
				set_technology = { HON_jungle_infantry = 1 }
			}
			hidden_effect = {
				set_technology = { HON_jungle_infantry = 1 }
				set_technology = { HON_jungle_motor = 1 }
			}
		}
	}
	
	focus = {
		id = JAP_protect_our_islands_skies
		icon = GFX_focus_generic_air_defense
		prerequisite = { focus = JAP_army_expansion_law }
		x = 6
		y = 1
		relative_position_id = JAP_army_expansion_law

		cost = 10

		ai_will_do = {
			factor = 1
		}

		available = {
			has_tech = interwar_antiair
		}

		completion_reward = {
			random_owned_controlled_state = {
				prioritize = { 282 }
				limit = {
					is_core_of = ROOT
					is_in_home_area = yes
					free_building_slots = {
						building = anti_air_building
						size > 1
					}
				}
				add_building_construction = {
					type = anti_air_building
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					is_core_of = ROOT
					is_in_home_area = yes
					free_building_slots = {
						building = anti_air_building
						size > 1
					}
				}
				add_building_construction = {
					type = anti_air_building
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					is_core_of = ROOT
					is_in_home_area = yes
					free_building_slots = {
						building = anti_air_building
						size > 1
					}
				}
				add_building_construction = {
					type = anti_air_building
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					is_core_of = ROOT
					is_in_home_area = yes
					free_building_slots = {
						building = anti_air_building
						size > 1
					}
				}
				add_building_construction = {
					type = anti_air_building
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					is_core_of = ROOT
					is_in_home_area = yes
					free_building_slots = {
						building = anti_air_building
						size > 1
					}
				}
				add_building_construction = {
					type = anti_air_building
					level = 1
					instant_build = yes
				}
			}
		}
	}
	
	focus = {
		id = JAP_form_the_volunteer_corps
		icon = GFX_goal_generic_citizens
		prerequisite = { focus = JAP_protect_our_islands_skies }
		x = -1
		y = 1
		relative_position_id = JAP_protect_our_islands_skies

		cost = 5

		ai_will_do = {
			factor = 1
		}
		
		available = {
			has_war = yes
			any_enemy_country = {
				is_major = yes
				stockpile_ratio = { 
					archetype = large_plane_airframe
					ratio > 1
				}
			}
		}

		completion_reward = {
			add_ideas = JAP_the_volunteer_corps
		}
	}
	
	focus = {
		id = JAP_prepare_for_an_invasion
		icon = GFX_focus_generic_coastal_fort
		prerequisite = { focus = JAP_protect_our_islands_skies }
		x = 1
		y = 1
		relative_position_id = JAP_protect_our_islands_skies

		cost = 20

		ai_will_do = {
			factor = 1
		}
		
		available = {
			has_war_with_major = yes
			OR = {
				surrender_progress > 0.05
				casualties_k > 1000
			}
		}

		completion_reward = {
			add_timed_idea = {
				idea = JAP_prepare_for_an_invasion
				days = 360
			}
			every_owned_state = {
				limit = {
					is_fully_controlled_by = ROOT
					is_core_of = ROOT
					is_in_home_area = yes
				}
				add_building_construction = {
					type = coastal_bunker
					province = {
						all_provinces = yes
						limit_to_coastal = yes
					}
					level = 2
					instant_build = yes
				}
				add_building_construction = {
					type = coastal_bunker
					province = {
						all_provinces = yes
						limit_to_naval_base = yes
					}
					level = 1
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = JAP_fighter_modernization
		icon = GFX_goal_generic_air_fighter
		prerequisite = { focus = JAP_army_expansion_law focus = JAP_new_naval_estimates }
		x = 9
		y = 2
		relative_position_id = JAP_army_expansion_law

		cost = 10

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 2
				has_completed_focus = JAP_support_the_kodoha_faction
				has_completed_focus = JAP_purge_the_kodoha_faction
			}
		}

		completion_reward = {
			if = {
				limit = {
					has_dlc = "By Blood Alone"
				}
				add_tech_bonus = {
					name = JAP_fighter_modernization
					bonus = 1
					uses = 1
					technology = improved_small_airframe
					technology = advanced_small_airframe
				}
				add_tech_bonus = {
					name = JAP_fighter_modernization
					technology = engines_3
					bonus = 1
					uses = 1
				}	
			}
			else = {
				add_tech_bonus = {
					name = JAP_fighter_modernization
					bonus = 1
					uses = 1
					category = light_fighter
				}
				add_tech_bonus = {
					name = JAP_fighter_modernization
					bonus = 1
					uses = 1
					category = cat_heavy_fighter
				}
				if = {
					limit = {
						has_dlc = "La Resistance"
					}
					add_tech_bonus = {
						name = scout_plane
						bonus = 1.0
						uses = 1
						category = cat_scout_plane
					}
				}
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = JAP_range_focus
		icon = GFX_goal_JAP_bomber
		prerequisite = { focus = JAP_fighter_modernization }
		x = -1
		y = 1
		relative_position_id = JAP_fighter_modernization

		cost = 5

		ai_will_do = {
			factor = 4
		}

		completion_reward = {
			add_doctrine_cost_reduction = {
				name = JAP_range_focus
				cost_reduction = 0.5
				uses = 1
				category = air_doctrine
			}
			IF = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}	
				custom_effect_tooltip = available_mio_tt
				show_mio_tooltip = JAP_aichi_organization
				mio:JAP_aichi_organization = {
					add_mio_funds = 1500
				}
			}
			ELSE = {
				custom_effect_tooltip = available_designer
				show_ideas_tooltip = aichi
			}
		}
	}
	focus = {
		id = JAP_showa_aircraft_industry #created in 1937, made licensed transport planes
		icon = GFX_focus_generic_copy_plane_designs
		prerequisite = { focus = JAP_range_focus }
		x = -1
		y = 1
		relative_position_id = JAP_range_focus

		cost = 5

		ai_will_do = {
			factor = 2
		}

		available = {
			has_full_control_of_state = 282
		}

		completion_reward = {
			random_owned_controlled_state = {
				prioritize = { 282 }
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}				
			}
			air_experience = 10
			add_ideas = HUN_license_foreign
				
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_ALUMINIUM}
	}
	focus = {
		id = JAP_agility_focus
		icon = GFX_goal_JAP_naval_aviation
		prerequisite = { focus = JAP_fighter_modernization }
		x = 1
		y = 1
		relative_position_id = JAP_fighter_modernization

		cost = 5

		ai_will_do = {
			factor = 4
			modifier = {
				factor = 2
				has_completed_focus = JAP_purge_the_kodoha_faction
			}
		}

		completion_reward = {
			add_doctrine_cost_reduction = {
				name = JAP_agility_focus
				cost_reduction = 0.5
				uses = 1
				category = air_doctrine
			}
			IF = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}	
				custom_effect_tooltip = available_mio_tt
				show_mio_tooltip = JAP_mitsubishi_organization
				mio:JAP_mitsubishi_organization = {
					add_mio_funds = 1500
				}
			}
			ELSE = {
				custom_effect_tooltip = available_designer
				show_ideas_tooltip = mitsubishi
			}
		}
	}

	focus = {
		id = JAP_the_zero
		icon = GFX_focus_jap_zero
		prerequisite = { focus = JAP_agility_focus }
		x = 1
		y = 1
		relative_position_id = JAP_agility_focus
		cost = 10

		ai_will_do = {
			factor = 3
			modifier = {
				factor = 8
				has_completed_focus = JAP_purge_the_kodoha_faction
			}
		}

		bypass = {
			if = {
				limit = {
					NOT = {
						has_dlc = "By Blood Alone"
					}
				}
				has_tech = cv_fighter2
				else = {
					hidden_trigger = {
						always = no
					}
				}
			}
		}
		
		completion_reward = {
			air_experience = 10
			navy_experience = 15	
			
			if = {
				limit = {
					NOT = {
						has_dlc = "By Blood Alone"
					}
				}
				custom_effect_tooltip = JAP_the_zero_tt
				hidden_effect = {
					set_technology = { cv_fighter2 = 1 } 	 
				}
				add_tech_bonus = {
					name = JAP_fighter_modernization
					bonus = 1
					uses = 1
					category = light_fighter
				}
			}
			else = {
				if = {
					limit = {
						NOT = {
							has_tech = improved_small_airframe
						}
					}
					set_technology = {
						improved_small_airframe = 1
					}
				}
				else = {
					add_breakthrough_progress = {
						specialization = specialization_air
						value = 0.50
					}
				}
				create_equipment_variant = {
					name = "A6M Zero-Sen"
					type = cv_small_plane_airframe_2
					modules = {
						fixed_main_weapon_slot = light_mg_2x
						fixed_auxiliary_weapon_slot_1 = aircraft_cannon_1_2x
						engine_type_slot = engine_3_1x
						special_type_slot_1 = drop_tanks
						special_type_slot_2 = fuel_tanks_small
					}
					icon = "GFX_JAP_cv_fighter2_medium"
				}
				add_tech_bonus = {
					name = JAP_fighter_modernization
					bonus = 1
					uses = 1
					category = light_air
				}
			}
			
		}		
	}

	focus = {
		id = JAP_bomber_modernization
		icon = GFX_goal_generic_CAS
		prerequisite = { focus = JAP_range_focus focus = JAP_agility_focus }
		x = 0
		y = 2
		relative_position_id = JAP_fighter_modernization

		cost = 10

		ai_will_do = {
			factor = 1
		}


		completion_reward = {
			if = {
				limit = {
					has_dlc = "By Blood Alone"
				}
				add_tech_bonus = {
					name = JAP_bomber_modernization
					technology = basic_medium_airframe
					technology = improved_medium_airframe
					technology = advanced_large_airframe
					bonus = 1
					uses = 1
				}
				add_tech_bonus = {
					name = JAP_bomber_modernization
					technology = cavity_magnatron
					bonus = 0.75
					uses = 1
				}			
			}
			else = {
				add_tech_bonus = {
					name = JAP_bomber_modernization
					bonus = 1
					uses = 1
					category = cas_bomber
					category = tactical_bomber
				}
				add_tech_bonus = {
					name = JAP_bomber_modernization
					bonus = 1
					uses = 1
					category = maritime
				}			
			}		
			
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = JAP_strategic_bomber_effort
		icon = GFX_goal_generic_air_bomber
		prerequisite = { focus = JAP_range_focus }
		prerequisite = { focus = JAP_bomber_modernization }
		x = -1
		y = 3
		relative_position_id = JAP_fighter_modernization

		cost = 10

		ai_will_do = {
			factor = 1
		}


		completion_reward = {
			if = {
				limit = {
					has_dlc = "By Blood Alone"
				}
				add_tech_bonus = {
					name = JAP_strategic_bomber_effort
					technology = basic_large_airframe
					technology = improved_large_airframe
					technology = advanced_large_airframe
					bonus = 1
					uses = 2
				}
			}
			else = {
				add_tech_bonus = {
					name = JAP_strategic_bomber_effort
					bonus = 1
					uses = 2
					category = cat_strategic_bomber
				}
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = JAP_unified_fighter_development
		icon = GFX_goal_generic_air_fighter2
		prerequisite = { focus = JAP_agility_focus }
		x = 1
		y = 3
		relative_position_id = JAP_fighter_modernization

		cost = 10

		ai_will_do = {
			factor = 2
		}

		available = {
			NOT = {
				OR = {
					has_idea = JAP_interservice_rivalry_navy_dominant
					has_idea = JAP_interservice_rivalry_army_dominant
				}
			}
		}


		completion_reward = {
			remove_ideas = JAP_duplicate_research_efforts
			custom_effect_tooltip = available_chief_of_airforce
			show_ideas_tooltip = JAP_takeo_yasuda
			
		}
	}
	focus = {
		id = JAP_reform_airframe_production
		icon = GFX_focus_generic_aircraft_production
		prerequisite = { focus = JAP_unified_fighter_development focus = JAP_the_zero }
		x = 1
		y = 1
		relative_position_id = JAP_unified_fighter_development

		cost = 10

		ai_will_do = {
			factor = 2
		}


		completion_reward = {
			add_ideas = JAP_airframe_supplies_improvements
		}
	}
	focus = {
		id = JAP_jet_prototypes
		icon = GFX_goal_generic_air_jet_new
		prerequisite = { focus = JAP_unified_fighter_development focus = JAP_strategic_bomber_effort }
		x = 0
		y = 4
		relative_position_id = JAP_fighter_modernization

		cost = 10

		ai_will_do = {
			factor = 1
		}


		completion_reward = {
			add_tech_bonus = {
				name = JAP_jet_prototypes
				bonus = 1
				uses = 2
				category = jet_technology
			}
			add_breakthrough_progress = {
				specialization = specialization_air
				value = 0.50
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas = r56_generic_jet_idea
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = JAP_new_naval_estimates
		icon = GFX_goal_JAP_new_naval_estimates
		x = 14
		y = 0
		relative_position_id = JAP_army_expansion_law

		cost = 5

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 2
				has_completed_focus = JAP_purge_the_kodoha_faction
			}
		}

		complete_tooltip = {
			random_state = {
				limit = {
					has_state_flag = JAP_new_naval_estimates_DY1
				}
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
			}
			random_state = {
				limit = {
					has_state_flag = JAP_new_naval_estimates_DY2
				}
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
			}
		}

		completion_reward = {
			if = {
				limit = {
					not = { has_dlc = "Man the Guns" }
				}
				add_tech_bonus = {
					name = JAP_supremacy_of_the_battlefleet
					bonus = 1.0
					uses = 1
					category = shbb_tech
				}
			}
			else = {
				navy_experience = 50
			}
			random_owned_controlled_state = {
				limit = {
					ROOT = { has_full_control_of_state = PREV }
					is_core_of = ROOT
					not = {
						state = 646
						state = 645
						state = 555
					}
					free_building_slots = {
						building = dockyard
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
				set_state_flag = JAP_new_naval_estimates_DY1
			}
			random_owned_controlled_state = {
				limit = {
					ROOT = { has_full_control_of_state = PREV }
					is_core_of = ROOT
					not = {
						state = 646
						state = 645
						state = 555
					}
					free_building_slots = {
						building = dockyard
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
				set_state_flag = JAP_new_naval_estimates_DY2
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH FOCUS_FILTER_INDUSTRY }
	}

	focus = {
		id = JAP_carrier_warfare_experiments
		icon = GFX_focus_GER_graf_zeppelin
		prerequisite = { focus = JAP_new_naval_estimates }
		mutually_exclusive = { focus = JAP_supremacy_of_the_battlefleet }
		x = -1
		y = 1
		relative_position_id = JAP_new_naval_estimates

		cost = 5

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 2
				has_completed_focus = JAP_purge_the_kodoha_faction
			}
		}

		completion_reward = {
			add_doctrine_cost_reduction = {
				name = JAP_carrier_warfare_experiments
				cost_reduction = 0.5
				uses = 2
				category = cat_base_strike
			}
			add_tech_bonus = {
				name = JAP_supremacy_of_the_battlefleet
				bonus = 1
				uses = 1
				category = cv_tech
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = JAP_expand_the_snlf
		icon = GFX_goal_generic_amphibious_assault
		prerequisite = { focus = JAP_carrier_warfare_experiments focus = JAP_supremacy_of_the_battlefleet }
		x = 0
		y = 2
		relative_position_id = JAP_new_naval_estimates

		cost = 10

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 2
				has_completed_focus = JAP_purge_the_kodoha_faction
			}
		}

		completion_reward = {
	
			add_ideas = JAP_expand_the_snlf
			add_tech_bonus = {
				name = JAP_expand_the_snlf
				bonus = 1
				uses = 1
				category = marine_tech
			}
			add_tech_bonus = {
				name = JAP_expand_the_snlf
				bonus = 1.0
				uses = 1
				category = r56_special_forces_training_tech 
			}
			if = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}
				add_doctrine_cost_reduction = {
					name = special_forces_bonus
					cost_reduction = 0.75
					uses = 2
					category = cat_marines_doctrine
				}	
			}			
			if = {
				limit = {
					has_dlc = "Man the Guns"
				}
				add_tech_bonus = {
					name = JAP_expand_the_snlf
					bonus = 1
					uses = 1
					category = amphibious_armor_tech
				}

				IF = {
					limit = {
						has_dlc = "Arms Against Tyranny"
					}
					custom_effect_tooltip = available_mio_tt
					show_mio_tooltip = JAP_mitsubishi_tank_organization
					mio:JAP_mitsubishi_tank_organization = {
						add_mio_size = 2
	
					}
				}			
				else = {
					custom_effect_tooltip = available_designer
					show_ideas_tooltip = JAP_mitsubishi_tank
				}				
			}
			unlock_decision_tooltip = { decision = cite_a_marine_unit show_effect_tooltip = yes } 
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = JAP_first_air_fleet
		icon = GFX_goal_generic_navy_carrier
		prerequisite = { focus = JAP_carrier_warfare_experiments }
		x = 0
		y = 2
		relative_position_id = JAP_carrier_warfare_experiments

		cost = 10

		ai_will_do = {
			factor = 1
			modifier = {
				factor = 2
				has_completed_focus = JAP_purge_the_kodoha_faction
			}
		}

		completion_reward = {
			add_ideas = JAP_first_air_fleet
			add_tech_bonus = {
				name = JAP_supremacy_of_the_battlefleet
				bonus = 1
				uses = 2
				category = naval_air
			}
		}
	}

	focus = {
		id = JAP_modern_escorts
		icon = GFX_goal_generic_navy_anti_submarine
		prerequisite = { focus = JAP_first_air_fleet focus = JAP_the_ultimate_battleship }
		x = 1
		y = 1
		relative_position_id = JAP_first_air_fleet

		cost = 10

		ai_will_do = {
			factor = 1
		}

		completion_reward = {
			add_tech_bonus = {
				name = JAP_modern_escorts
				bonus = 1
				uses = 1
				category = dd_tech
			}
			if = {
				limit = {
					has_dlc = "Man the Guns"
				}
				add_tech_bonus = {
					name = ENG_anti_non_contact_committee
					bonus = 1.0
					uses = 1
					category = naval_minelaying
				}
				add_tech_bonus = {
					name = ENG_anti_non_contact_committee
					bonus = 1.0
					uses = 1
					category = naval_minesweeping
				}
				add_tech_bonus = {
					name = dd_bonus
					bonus = 1.0
					uses = 1
					category = asw_tech
				}								
			}
			custom_effect_tooltip = generic_skip_one_line_tt
			custom_effect_tooltip = available_military_high_command
			show_ideas_tooltip = JAP_raizo_tanaka_idea
			custom_effect_tooltip = generic_skip_one_line_tt
			add_ideas = JAP_r56_rat_transportation
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = JAP_supremacy_of_the_battlefleet
		icon = GFX_focus_generic_navy_battleship2
		prerequisite = { focus = JAP_new_naval_estimates }
		mutually_exclusive = { focus = JAP_carrier_warfare_experiments }
		x = 1
		y = 1
		relative_position_id = JAP_new_naval_estimates

		cost = 5

		ai_will_do = {
			factor = 1
		}

		completion_reward = {
			add_tech_bonus = {
				name = JAP_supremacy_of_the_battlefleet
				bonus = 1
				uses = 1
				category = bb_tech
			}
			if = {
				limit = {
					has_dlc = "Man the Guns"
				}
				add_tech_bonus = {
					name = industrial_bonus
					bonus = 1
					uses = 1
					category = naval_armor_tech
				}
				add_tech_bonus = {
					name = SPR_navy_modernization
					bonus = 1
					uses = 2
					technology = fire_control_methods_1
					technology = fire_control_methods_2
					technology = fire_control_methods_3
				}				
										
			}			
			IF = {
				limit = {
					has_dlc = "Arms Against Tyranny"
				}	
				custom_effect_tooltip = available_mio_tt
				show_mio_tooltip = JAP_kure_naval_arsenal_organization
				mio:JAP_kure_naval_arsenal_organization = {
					add_mio_size = 2
				}
			}
			ELSE = {
				custom_effect_tooltip = available_designer
				show_ideas_tooltip = kure_naval_arsenal
			}
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}

	focus = {
		id = JAP_the_ultimate_battleship
		icon = GFX_focus_ETH_an_ethiopian_navy_in_exile
		prerequisite = { focus = JAP_supremacy_of_the_battlefleet }
		x = 0
		y = 2
		relative_position_id = JAP_supremacy_of_the_battlefleet

		cost = 10

		ai_will_do = {
			factor = 1
		}

		bypass = {
			AND = {
				has_tech = heavy_battleship
				has_tech = heavy_battleship2
			}
		}

		completion_reward = {
			if = {
				limit = {
					not = { has_dlc = "Man the Guns" }
				}
				add_tech_bonus = {
					name = JAP_the_ultimate_battleship
					bonus = 3.0
					uses = 1
					category = shbb_tech
				}
			}
			else = {
				if = {
					limit = {
						not = { has_tech = ship_hull_super_heavy }
					}
					set_technology = {
						ship_hull_super_heavy = 1
					}
				}
				create_equipment_variant = {
					name = "Yamato Class"
					type = ship_hull_super_heavy_1
					name_group = JAP_BB_HISTORICAL
					parent_version = 0
					modules = {
						fixed_ship_battery_slot = ship_super_heavy_battery_1
						fixed_ship_anti_air_slot = ship_anti_air_2
						fixed_ship_fire_control_system_slot = ship_fire_control_system_1
						fixed_ship_radar_slot = empty
						fixed_ship_engine_slot = heavy_ship_engine_2
						fixed_ship_secondaries_slot = ship_secondaries_2
						fixed_ship_armor_slot = ship_armor_shbb
						front_1_custom_slot = ship_anti_air_1
						front_2_custom_slot = empty
						mid_1_custom_slot = empty
						mid_2_custom_slot = ship_secondaries_2
						mid_3_custom_slot = ship_secondaries_2
						rear_1_custom_slot = ship_super_heavy_battery_1
						rear_2_custom_slot = ship_airplane_launcher_1
					}
				}
				custom_effect_tooltip = JAP_yamato_tt
				hidden_effect = {
					add_equipment_production = {
						equipment = {
							type = ship_hull_super_heavy_1
							creator = "JAP"
							version_name = "Yamato Class"
						}
						name = "Yamato"
						requested_factories = 1
						progress = 0.75
						amount = 1
					}
					add_equipment_production = {
						equipment = {
							type = ship_hull_super_heavy_1
							creator = "JAP"
							version_name = "Yamato Class"
						}
						name = "Musashi"
						requested_factories = 1
						progress = 0.70
						amount = 1
					}
				}
			}
			if = {
				limit = {
					has_dlc = "Man the Guns"
				}
				add_tech_bonus = {
					name = SPR_navy_modernization
					bonus = 1
					uses = 2
					technology = basic_heavy_battery
					technology = improved_heavy_battery
					technology = advanced_heavy_battery
				}
				add_tech_bonus = {
					name = SPR_navy_modernization
					bonus = 1
					uses = 2
					technology = basic_heavy_shell
					technology = improved_heavy_shell
				}				
			}			
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}
	focus = {
		id = JAP_increased_repair_capabilities
		icon = GFX_goal_generic_expand_the_naval_industry
		prerequisite = { focus = JAP_first_air_fleet focus = JAP_the_ultimate_battleship }
		x = 1
		y = 1
		relative_position_id = JAP_the_ultimate_battleship

		cost = 5

		ai_will_do = {
			factor = 4
		}

		completion_reward = {
			random_owned_controlled_state = {
				prioritize = { 531 282 }
				limit = {
					ROOT = { has_full_control_of_state = PREV }
					is_core_of = ROOT
					free_building_slots = {
						building = dockyard
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				prioritize = { 528 529 }
				limit = {
					ROOT = { has_full_control_of_state = PREV }
					is_core_of = ROOT
					free_building_slots = {
						building = dockyard
						size > 1
						include_locked = yes
					}
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
			}			
			add_ideas = ENG_expand_the_repair_yards
		}
		search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_MILITARY_IMPROVEMENT }
	}

	focus = {
		id = JAP_cruiser_modernization
		icon = GFX_goal_generic_navy_cruiser
		prerequisite = { focus = JAP_new_naval_estimates }
		x = 5
		y = 1
		relative_position_id = JAP_new_naval_estimates
		mutually_exclusive = {
			focus = JAP_submarine_modernization
		}		

		cost = 5

		ai_will_do = {
			factor = 1
		}

		completion_reward = {
			add_tech_bonus = {
				name = JAP_cruiser_modernization
				bonus = 3
				uses = 1
				category = cl_tech

			}
			add_tech_bonus = {
				name = JAP_cruiser_modernization
				bonus = 3
				uses = 1
				category = ca_tech
			}
			if = {
				limit = {
					has_dlc = "Man the Guns"
				}
				add_tech_bonus = {
					name = ENG_anti_non_contact_committee
					bonus = 1.0
					uses = 1
					category = naval_minelaying
				}
				add_tech_bonus = {
					name = ENG_anti_non_contact_committee
					bonus = 1.0
					uses = 1
					category = naval_minesweeping
				}
				add_tech_bonus = {
					name = dd_bonus
					bonus = 1.0
					uses = 1
					category = asw_tech
				}								
			}						
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}
	focus = {
		id = JAP_submarine_modernization
		icon = GFX_goal_generic_navy_submarine
		prerequisite = { focus = JAP_new_naval_estimates }
		mutually_exclusive = {
			focus = JAP_cruiser_modernization
		}
		x = 7
		y = 1
		relative_position_id = JAP_new_naval_estimates

		cost = 5

		ai_will_do = {
			factor = 1
		}

		completion_reward = {
			add_tech_bonus = {
				name = JAP_submarine_modernization
				bonus = 1.5
				uses = 1
				category = ss_tech
			}
			if = {
				limit = {
					has_dlc = "Man the Guns"
				}
				add_tech_bonus = {
					name = SPR_navy_modernization
					bonus = 1
					uses = 1
					category = torpedo_equipment
				}
				add_tech_bonus = {
					name = ENG_anti_non_contact_committee
					bonus = 1.0
					uses = 1
					category = naval_minelaying
				}				
			}									
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}
	focus = {
		id = JAP_supply_disruption
		icon = GFX_goal_generic_wolf_pack
		prerequisite = { focus = JAP_submarine_modernization }
		prerequisite = { focus = JAP_long_lance_torpedoes }
		x = 0
		y = 2
		relative_position_id = JAP_submarine_modernization

		cost = 10

		ai_will_do = {
			factor = 1
		}

		completion_reward = {
		#	if = {
		#		limit = {
		#			has_completed_focus = JAP_submarine_modernization
		#		}
		#		add_tech_bonus = {
		#			name = sub_op_bonus
		#			bonus = 1
		#			uses = 2
		#			category = submarine_doctrine
		#		}				
		#	}
			add_ideas = JAP_supply_disruption
			if = {
				limit = {
					has_dlc = "Man the Guns"
				}
				add_tech_bonus = {
					name = SPR_navy_modernization
					bonus = 1
					uses = 1
					category = torpedo_equipment
					technology = basic_submarine_snorkel
					technology = improved_submarine_snorkel	
				}
				add_tech_bonus = {
					name = ENG_anti_non_contact_committee
					bonus = 1.0
					uses = 1
					category = naval_minelaying
				}				
			}												
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}		
	focus = {
		id = JAP_redesign_the_naval_guns
		prerequisite = { focus = JAP_supremacy_of_the_battlefleet focus = JAP_cruiser_modernization }
		mutually_exclusive = { focus = JAP_divert_naval_guns_to_the_army }
		icon = GFX_goal_generic_admirality
		x = -1
		y = 1
		relative_position_id = JAP_cruiser_modernization
		cost = 10
		ai_will_do = {
			factor = 1
		}

		allow_branch = {
			
		}		

		available_if_capitulated = yes

		available = {
			has_dlc = "Man the Guns"
			any_state = {
				is_coastal = yes
				is_controlled_by = ROOT
			}
		}

		completion_reward = {
			add_tech_bonus = {
				name = industrial_bonus
				bonus = 1
				uses = 2
				category = naval_gunnery_tech
			}
			add_tech_bonus = {
				name = SPR_navy_modernization
				bonus = 1
				uses = 1
				category = naval_shell_tech
			}						
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}
	focus = {
		id = JAP_divert_naval_guns_to_the_army
		prerequisite = { focus = JAP_supremacy_of_the_battlefleet focus = JAP_cruiser_modernization }
		mutually_exclusive = { focus = JAP_redesign_the_naval_guns }
		icon = GFX_goal_generic_railway_artillery
		x = -3
		y = 1
		relative_position_id = JAP_cruiser_modernization
		cost = 10
		ai_will_do = {
			factor = 0
			modifier = {
				add = 1
				is_historical_focus_on = no
				
			}
			
		}

		allow_branch = {
			has_dlc = "No Step Back"
		}		

		available_if_capitulated = yes

		completion_reward = {
			if = {
				limit = {
					#has_tech = armored_train
					NOT = {
						has_tech = railway_gun
					}
				}
				set_technology = {
					railway_gun = 1
				}				
			}
			add_equipment_production = {
				equipment = {
					type = railway_gun_equipment_1
					creator = "JAP"
					#version_name = "Canon de 380mm"
				}
				name = "Kyūrei-shiki nijyūyon-miri Resshahō"
				requested_factories = 2
				progress = 0.7
				amount = 1
			}
			if = {
				limit = {
					has_dlc = "Man the Guns"
				}
				add_tech_bonus = {
					name = industrial_bonus
					bonus = 1
					uses = 1
					category = naval_gunnery_tech
				}				
			}	
			JAP_interservice_rivalry_towards_army = yes
		}
		search_filters = { FOCUS_FILTER_RESEARCH }
	}	
	focus = {
		id = JAP_long_lance_torpedoes
		icon = GFX_goal_generic_occupy_start_war
		prerequisite = { focus = JAP_cruiser_modernization focus = JAP_submarine_modernization}
		x = 1
		y = 1
		relative_position_id = JAP_cruiser_modernization

		cost = 10

		ai_will_do = {
			factor = 4
		}


		completion_reward = {
			if = {
				limit = {
					has_dlc = "Man the Guns"
				}
				add_tech_bonus = {
					name = SPR_navy_modernization
					bonus = 1
					uses = 1
					category = torpedo_equipment
				}
			}			
			add_ideas = the_long_lance
		}
	}

	focus = {
		id = JAP_torpedo_cruisers
		icon = GFX_focus_generic_cruiser2
		prerequisite = { focus = JAP_long_lance_torpedoes }
		prerequisite = { focus = JAP_cruiser_modernization }
		x = -1
		y = 1
		relative_position_id = JAP_long_lance_torpedoes

		cost = 10

		ai_will_do = {
			factor = 2
		}

		search_filters = { FOCUS_FILTER_RESEARCH }

		completion_reward = {
			add_breakthrough_progress = {
				specialization = specialization_naval
				value = 0.75
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			IF = {
				limit = {
					has_dlc = "Man the Guns"
				}
				add_ideas = torpedo_cruisers_ns_mtg
			}
			ELSE = {
				add_ideas = torpedo_cruisers_ns
			}
		}
	}

	focus = {
		id = JAP_shining_sun
		icon = GFX_focus_jap_pacific_guardian
		#prerequisite = { focus = JAP_long_lance_torpedoes }
		x = 75
		y = 0
		#relative_position_id = JAP_long_lance_torpedoes

		cost = 10

		ai_will_do = {
			factor = 2
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }

		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 2
						include_locked = yes
					}
					is_core_of = JAP
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 2
						include_locked = yes
					}
					is_core_of = JAP
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
			}

			add_tech_bonus = {
				uses = 2
				bonus = 0.5
				category = industry
			}
		}
	}

	focus = {
		id = JAP_exploit_sphere
		icon = GFX_focus_chi_collaboration_with_the_japanese
		prerequisite = { focus = JAP_shining_sun }
		relative_position_id = JAP_shining_sun
		x = -5
		y = 1

		cost = 5

		ai_will_do = {
			factor = 2
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }

		available = {
			is_faction_leader = yes
		}

		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
					is_core_of = JAP
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
					is_core_of = JAP
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			if = {
				limit = {
					MAN = {
						is_puppet_of = JAP
					}
				}

				MAN = {
					random_owned_controlled_state = {
						limit = {
							free_building_slots = {
								building = industrial_complex
								size > 1
								include_locked = yes
							}
						}
						add_extra_state_shared_building_slots = 2
						add_building_construction = {
							type = industrial_complex
							level = 1
							instant_build = yes
						}
					}
				}
			}
			if = {
				limit = {
					MEN = {
						is_puppet_of = JAP
					}
				}

				MEN = {
					random_owned_controlled_state = {
						limit = {
							free_building_slots = {
								building = industrial_complex
								size > 1
								include_locked = yes
							}
						}
						add_extra_state_shared_building_slots = 2
						add_building_construction = {
							type = industrial_complex
							level = 1
							instant_build = yes
						}
					}
				}
			}
		}
	}

	focus = {
		id = JAP_iron_will
		icon = GFX_focus_jap_pacific_guardian
		prerequisite = { focus = JAP_national_defense_state }
		relative_position_id = JAP_national_defense_state
		x = 0
		y = 1

		cost = 4

		ai_will_do = {
			factor = 2
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }

		available = {
			has_war_support > 0.9
		}

		completion_reward = {
			add_ideas = JAP_iron_will_idea
		}
	}

	focus = {
		id = JAP_focus_on_mainland
		icon = GFX_goal_generic_building_our_industry
		prerequisite = { focus = JAP_shining_sun }
		relative_position_id = JAP_shining_sun
		mutually_exclusive = { focus = JAP_focus_on_resources }
		x = -3
		y = 2

		cost = 10

		ai_will_do = {
			factor = 2
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }

		available = {
		}

		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
					is_core_of = JAP
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
					is_core_of = JAP
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = industrial_complex
					level = 2
					instant_build = yes
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			add_ideas = JAP_mainland_focused_economy_idea
		}
	}

	focus = {
		id = JAP_focus_on_resources
		icon = GFX_focus_jap_strike_south
		prerequisite = { focus = JAP_shining_sun }
		relative_position_id = JAP_shining_sun
		mutually_exclusive = { focus = JAP_focus_on_mainland }
		x = 2
		y = 2

		cost = 10

		ai_will_do = {
			factor = 2
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }

		available = {
		}

		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = steel_mill
						size > 0
						include_locked = yes
					}
					is_core_of = JAP
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = steel_mill
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
					is_core_of = JAP
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = steel_mill
						size > 0
						include_locked = yes
					}
					is_core_of = JAP
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = steel_mill
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 0
						include_locked = yes
					}
					is_core_of = JAP
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}

			custom_effect_tooltip = generic_skip_one_line_tt

			add_ideas = JAP_resource_focused_economy_idea
		}
	}

	focus = {
		id = JAP_improve_heavy_industry
		icon = GFX_goal_generic_civilian_production
		prerequisite = { focus = JAP_focus_on_mainland }
		relative_position_id = JAP_focus_on_mainland
		x = -1
		y = 1

		cost = 10

		ai_will_do = {
			factor = 2
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }

		available = {
		}

		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
					is_core_of = JAP
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = industrial_complex
						size > 1
						include_locked = yes
					}
					is_core_of = JAP
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = industrial_complex
					level = 1
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = JAP_modern_infrastructure
		icon = GFX_goal_generic_road
		prerequisite = { focus = JAP_focus_on_mainland }
		relative_position_id = JAP_focus_on_mainland
		x = 1
		y = 1

		cost = 5

		ai_will_do = {
			factor = 2
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }

		bypass = {
			NOT = {
				282 = {is_owned_and_controlled_by = JAP}
				532 = {is_owned_and_controlled_by = JAP}
				531 = {is_owned_and_controlled_by = JAP}
			}
		}

		completion_reward = {
			if = {
				limit = {
					282 = {
						is_owned_and_controlled_by = JAP
					}
				}

				282 = {
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
			}
			if = {
				limit = {
					532 = {
						is_owned_and_controlled_by = JAP
					}
				}

				532 = {
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
			}
			if = {
				limit = {
					531 = {
						is_owned_and_controlled_by = JAP
					}
				}

				531 = {
					add_building_construction = {
						type = infrastructure
						level = 1
						instant_build = yes
					}
				}
			}
		}
	}

	focus = {
		id = JAP_expand_armaments_production
		icon = GFX_goal_generic_military_factories
		prerequisite = { focus = JAP_improve_heavy_industry }
		prerequisite = { focus = JAP_modern_infrastructure }
		relative_position_id = JAP_modern_infrastructure
		x = -1
		y = 1

		cost = 5

		ai_will_do = {
			factor = 2
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }

		available = {
		}

		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 1
						include_locked = yes
					}
					is_core_of = JAP
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = arms_factory
						size > 1
						include_locked = yes
					}
					is_core_of = JAP
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = arms_factory
					level = 1
					instant_build = yes
				}
			}
		}
	}

	focus = {
		id = JAP_expand_aluminium_production
		icon = GFX_goal_excavation
		prerequisite = { focus = JAP_focus_on_resources }
		relative_position_id = JAP_focus_on_resources
		x = -1
		y = 1

		cost = 5

		ai_will_do = {
			factor = 2
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }

		available = {
		}

		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = aluminum_mill
						size > 1
						include_locked = yes
					}
					is_core_of = JAP
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = aluminum_mill
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = aluminum_mill
						size > 1
						include_locked = yes
					}
					is_core_of = JAP
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = aluminum_mill
					level = 1
					instant_build = yes
				}
			}

			add_tech_bonus = {
				uses = 2
				bonus = 0.5
				category = aluminium_tech
			}
		}
	}

	focus = {
		id = JAP_expand_steel_production
		icon = GFX_goal_generic_expanded_production
		prerequisite = { focus = JAP_focus_on_resources }
		relative_position_id = JAP_focus_on_resources
		x = 1
		y = 1

		cost = 5

		ai_will_do = {
			factor = 2
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }

		available = {
		}

		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = steel_mill
						size > 1
						include_locked = yes
					}
					is_core_of = JAP
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = steel_mill
					level = 1
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = steel_mill
						size > 1
						include_locked = yes
					}
					is_core_of = JAP
				}
				add_extra_state_shared_building_slots = 1
				add_building_construction = {
					type = steel_mill
					level = 1
					instant_build = yes
				}
			}

			add_tech_bonus = {
				uses = 2
				bonus = 0.5
				category = steel_tech
			}
		}
	}

	focus = {
		id = JAP_great_fleet
		icon = GFX_goal_coastal_navy
		prerequisite = { focus = JAP_expand_aluminium_production }
		prerequisite = { focus = JAP_expand_steel_production }
		relative_position_id = JAP_expand_steel_production
		x = -1
		y = 1

		cost = 10

		ai_will_do = {
			factor = 2
		}

		search_filters = { FOCUS_FILTER_INDUSTRY }

		available = {
		}

		completion_reward = {
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = dockyard
						size > 1
						include_locked = yes
					}
					is_core_of = JAP
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
			}
			random_owned_controlled_state = {
				limit = {
					free_building_slots = {
						building = dockyard
						size > 1
						include_locked = yes
					}
					is_core_of = JAP
				}
				add_extra_state_shared_building_slots = 2
				add_building_construction = {
					type = dockyard
					level = 2
					instant_build = yes
				}
			}

			add_tech_bonus = {
				uses = 2
				bonus = 0.5
				category = steel_tech
			}
		}
	}
}
