@charset "utf-8";

#top_menu {
	position: relative;
	margin: 0 auto;
	padding-top: 50px;
	padding-bottom: 10px;
}

.top-menu-line {
	width: 100%;
	text-align: center;
	margin: 40px 0;
}

.top-menu-line img {
	width: 160px;
	height: auto;
}

.top-nav-container {
	display: inline-flex;
	align-items: center;
	gap: 86px;
	justify-content: center;
	width: 100%;
}

.top-menu-text {
	width: fit-content;
	color: #2A53E3;
	font-size: 24px;
	font-family: 'Arita-buri';
	font-weight: 600;
	letter-spacing: 0;
	line-height: normal;
	text-decoration: none;
	transition: color 0.2s ease;
	cursor: pointer;
}

.top-menu-text:hover,
.top-menu-text:focus {
	color: #1a3bb3;
}

.logo-container {
	position: relative;
	width: 225px;
	height: 113px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.logo-bg-circle {
	position: absolute;
	width: 60.89%;
	height: 121.24%;
	top: -21.24%;
	left: 36.44%;
	border-radius: 68.5px;
	background: linear-gradient(
		180deg,
		rgba(42, 83, 227, 1) 0%,
		rgba(230, 229, 234, 1) 100%
	);
	z-index: -1;
}

.rotating-text {
	position: absolute;
	width: 200px;
	height: 200px;
	top: calc(-3.55% - 40px);
	left: calc(15.33% - 40px);
	z-index: 0;
	pointer-events: none;
	overflow: visible;
	animation: rotate 20s linear infinite;
}

@keyframes rotate {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

.logo-container a {
	display: block;
	width: 100%;
	height: 100%;
	position: relative;
	z-index: 1;
}

.logo-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
	#top_menu {
		padding-top: 30px;
		padding-bottom: 10px;
	}

	.top-nav-container {
		flex-direction: column;
		gap: 20px;
	}

	.top-menu-text {
		font-size: 18px;
		text-align: center;
	}

	.logo-container {
		width: 180px;
		height: 90px;
		order: -1; /* 로고를 맨 위로 */
	}

	.logo-bg-circle {
		width: 60.89%;
		height: 121.24%;
	}

	.rotating-text {
		width: 160px;
		height: 160px;
		top: calc(-3.55% - 32px);
		left: calc(15.33% - 32px);
	}

	.top-menu-line {
		margin: 30px 0;
	}

	.top-menu-line img {
		width: 120px;
	}
}

@media (max-width: 480px) {
	#top_menu {
		padding-top: 20px;
	}

	.top-nav-container {
		gap: 15px;
	}

	.top-menu-text {
		font-size: 16px;
	}

	.logo-container {
		width: 150px;
		height: 75px;
	}

	.rotating-text {
		width: 140px;
		height: 140px;
		top: calc(-3.55% - 28px);
		left: calc(15.33% - 28px);
	}

	.top-menu-line {
		margin: 20px 0;
	}

	.top-menu-line img {
		width: 100px;
	}
}
