@charset "UTF-8";

.org_chart {
	position: relative;
	overflow-x: clip;
	--line: 2px solid var(--line-color);
	--gap: 16px;
}

.org_mark {
	position: absolute;
	top: 80px;
	left: 50%;
	font-family: Montserrat, Pretendard, sans-serif;
	font-size: clamp(80px, 15vw, 280px);
	line-height: 1;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: rgba(0, 0, 0, 0.04);
	white-space: nowrap;
	pointer-events: none;
	transform: translate(-50%, -50%);
}

.org_top {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 40px;
	padding-bottom: 64px;
}

.org_top::before {
	content: "";
	position: absolute;
	top: 80px;
	bottom: 0;
	left: 50%;
	border-left: var(--line);
	transform: translateX(-1px);
}

.org_ceo {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 160px;
	height: 160px;
	border-radius: 50%;
	background: var(--theme-color);
	font-size: var(--fs-h5);
	line-height: 1;
	font-weight: 700;
	color: #fff;
}

.org_ceo span {
	font-family: Montserrat, Pretendard, sans-serif;
	font-size: 14px;
	font-weight: 400;
	opacity: 0.7;
}

.org_staff {
	position: relative;
	display: flex;
	gap: 8px;
	align-self: stretch;
	padding-left: calc(50% + 40px);
}

.org_staff::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 40px;
	border-top: var(--line);
	transform: translateY(-1px);
}

.org_staff li {
	display: flex;
	align-items: center;
	height: 48px;
	padding: 0 24px;
	border: 1px solid var(--line-color);
	border-radius: 999px;
	background: #fff;
	font-size: var(--fs-body);
	line-height: 1;
	color: var(--sub-color);
	white-space: nowrap;
}

.org_units {
	position: relative;
	display: flex;
	gap: var(--gap);
	padding-top: 40px;
}

.org_units::before {
	content: "";
	position: absolute;
	top: 0;
	right: calc((100% - var(--gap) * (var(--n) - 1)) / var(--n) / 2);
	left: calc((100% - var(--gap) * (var(--n) - 1)) / var(--n) / 2);
	border-top: var(--line);
}

.org_unit {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
}

.org_unit::before {
	content: "";
	position: absolute;
	top: -40px;
	left: 50%;
	height: 40px;
	border-left: var(--line);
	transform: translateX(-1px);
}

.org_unit_name {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 64px;
	padding: 0 16px;
	border-radius: 999px;
	background: var(--dark-color);
	font-size: 20px;
	line-height: 1;
	font-weight: 700;
	color: #fff;
	white-space: nowrap;
}

.org_teams {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 16px;
}

.org_teams li {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 56px;
	padding: 0 16px;
	border-radius: 999px;
	background: var(--surface-color);
	font-size: var(--fs-body);
	line-height: 1;
	color: var(--sub-color);
	text-align: center;
}

@media (max-width: 1280px) {
	.org_unit_name {
		height: 56px;
		font-size: var(--fs-body);
	}

	.org_teams li {
		height: 48px;
		font-size: 14px;
	}
}

@media (max-width: 1024px) {
	.org_chart {
		--gap: 12px;
	}

	.org_top {
		padding-bottom: 48px;
	}

	.org_units {
		padding-top: 32px;
	}

	.org_unit::before {
		top: -32px;
		height: 32px;
	}

	.org_unit_name {
		height: 48px;
		padding: 0 8px;
		font-size: 15px;
	}

	.org_teams {
		margin-top: 12px;
	}

	.org_teams li {
		height: 44px;
		padding: 0 8px;
	}
}

@media (max-width: 768px) {
	.org_chart {
		--gap: 24px;
	}

	.org_mark {
		top: 60px;
	}

	.org_top {
		gap: 24px;
		padding-bottom: var(--gap);
	}

	.org_top::before {
		top: 60px;
	}

	.org_ceo {
		width: 120px;
		height: 120px;
	}

	.org_staff {
		align-self: center;
		justify-content: center;
		gap: 48px;
		padding-left: 0;
	}

	.org_staff::before {
		right: 24px;
		left: 24px;
		width: auto;
	}

	.org_staff li {
		position: relative;
		z-index: 1;
		justify-content: center;
		min-width: 112px;
		height: 44px;
		padding: 0 16px;
		font-size: 15px;
	}

	.org_units {
		flex-direction: column;
		padding-top: 0;
	}

	.org_units::before {
		display: none;
	}

	.org_unit {
		padding: 8px 8px 16px;
		border-radius: 32px;
		background: var(--surface-color);
	}

	.org_unit::before {
		top: calc(var(--gap) * -1);
		height: var(--gap);
	}

	.org_unit_name {
		height: 48px;
		font-size: var(--fs-body);
	}

	.org_teams {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		margin-top: 16px;
		padding: 0 8px;
	}

	.org_teams li {
		height: 40px;
		padding: 0 16px;
		background: #fff;
		white-space: nowrap;
	}
}

@media (max-width: 480px) {
	.org_staff {
		gap: 32px;
	}

	.org_staff li {
		min-width: 96px;
	}

	.org_teams li {
		padding: 0 12px;
	}
}
