@charset "UTF-8";

#header {
	box-sizing: border-box;
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 74px;
	padding: 0 33px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background-color: #FFFFFF;
	border-bottom: 1px solid #D3D8E0;
}

#header .header-container {
	display: flex;
	gap: 45px;
	margin-top: 6px;
	margin-bottom: 6px;
}

#header .logo {
	display: flex;
	flex-direction: column;
	height: 46px;
	justify-content: center;
	align-items: center;
	padding: 8px 0px;
}

#header .bizLaw {
	color: #3578F6;
	font-weight: 700;
	font-size: 24px;
	line-height: 26px;
	cursor: pointer;
}

#header .logo-title {
	font-size: 12px;
	color: #8A8A8D;
}

#header .menu-container {
	display: flex;
	align-items: center;
	gap: 16px;
	font-weight: 700;
	font-size: 18px;
}

#header .header-side-area {
	display: flex;
	align-items: center;
	gap: 10px;
}

.legal-advice, .ai-search, .communit, .inquiry {
	padding: 0px 10px;
	cursor: pointer;
}

#header .header-side-area .login-button {
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: #3578F6;
	color: white;
	width: 100px;
	height: 36px;
	border-radius: 8px;
	cursor: pointer;
	display: none;
}

#header .header-side-area .signUp-button {
	display: flex;
	justify-content: center;
	align-items: center;
	color: #3578F6;
	width: 100px;
	height: 36px;
	border: 1px solid #3578F6;
	border-radius: 8px;
	cursor: pointer;
	display: none;
}

#header .header-side-area .consultation-history, #header .header-side-area .my-page {
	font-size: 16px;
	padding: 0px 10px;
	font-size: 16px;
	font-weight: 500;
	line-height: 21.79px;
	cursor: pointer;
	display: none;
}

#header .consultation-history {
	position: relative;
}

#header .consultation-history.orange {
	color: #FF6450;
}

#header .consulation-histrory-nav {
	position: absolute;
	right: 0px;
	width: 6px;
	height: 6px;
	background-color: #FF6450;
	border-radius: 6px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

#header .consulation-histrory-nav.show {
	opacity: 1;
	visibility: visible;
}

#header .profile-container {
	padding-left: 10px;
	display: flex;
	justify-content: center;
	align-items: center;
}

#header .profile-button {
	width: 0;
	height: 0;
	border-left: 5px solid transparent; /* 왼쪽 투명 삼각형 */
	border-right: 5px solid transparent; /* 오른쪽 투명 삼각형 */
	border-top: 4.62px solid black; /* 위쪽 검정 삼각형 */
}

#header .my-page {
	display: relative;
}

#header .mypage-options-list {
	display: none; /* 기본적으로 숨김 처리 */
	position: absolute;
	top: 100%;
	right: 0;
	width: 185px;
	background-color: #fff;
	border-radius: 12px;
	z-index: 10;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	margin-top: 5px;
	padding: 8px;
	box-sizing: border-box;
}

#header .mypage-options-list.show {
	display: block;
}

#header .mypage-option-item {
	font-size: 16px;
	font-weight: 500;
	line-height: 40px;
	cursor: pointer;
	color: #36353A;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 5px 8px;
	background-color: white;
	border-radius: 12px;
}

#header .mypage-option-item:hover {
	background-color: #EEEEEF;
}

#header .menu-btn {
	display: none;
}

#header .header-mobile-wrapper {
	display: none;
}

.header-mobile-profile {
	display: none;
}

.header-profile-img {
	width: 32px;
	height: 32px;
	object-fit: cover; /* 이미지가 잘리지 않도록 설정 */
	border-radius: 50%; /* 원형 프로필 이미지 */
}

@media ( max-width : 767px) {
	#header {
		padding: 0px 15px;
		height: 55px;
	}
	#header .bizLaw {
		font-size: 21px;
	}
	#header .menu-container {
		display: none;
	}
	#header .logo-title {
		display: none;
	}
	#header .menu-btn {
		display: block;
		font-size: 26px;
	}
	#header .header-side-area {
		display: none;
	}
	#header input {
		height: 50px;
	}
	#header .header-mobile-wrapper-show {
		display: block;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100vh;
		z-index: 10; /* header-mobile-area-show보다 뒤에 */
	}
	.header-mobile-wrapper-overlay {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background-color: rgba(77, 77, 77, 0.7); /* #4D4D4DB2 */
		z-index: 1; /* 회색 배경이 가장 앞에 오도록 설정 */
	}

	/* 실제 모바일 메뉴 */
	#header .header-mobile-area {
		display: block;
		position: fixed;
		top: 0;
		left: 15%; /* 왼쪽 15% 여백 */
		width: 85%; /* 오른쪽 85% 꽉 차게 */
		height: 100vh; /* 화면 전체 높이 차지 */
		background-color: white; /* 메뉴의 배경색 */
		z-index: 2;
	}
	.header-mobile-area-content {
		display: flex;
		flex-direction: column;
		gap: 10px;
		padding: 10px 20px;
	}
	.header-mobile-area-close-btn-container {
		box-sizing: border-box;
		display: flex;
		justify-content: flex-end;
		padding: 13px 15px;
		align-items: center;
		height: 55px;
		display: flex;
	}
	.header-mobile-area-close-btn {
		width: 15px;
		height: 15px;
		cursor: pointer;
	}
	.header-mobile-login-wrapper {
		padding: 10px 0px;
	}
	.header-mobile-login-context-top {
		font-size: 18px;
		cursor: pointer;
	}
	.header-mobile-login-context-top-hide, .header-mobile-login-context-bottom-hide {
		display: none;
	}
	.header-mobile-login-context-bottom {
		font-size: 14px;
		font-weight: 300;
		cursor: pointer;
	}
	.header-mobile-sign-up, .header-mobile-consultation-history, .header-mobile-legal-advice, .header-mobile-ai-search, .header-mobile-inquiry {
		padding: 20px 0px;
		font-size: 18px;
		line-height: 27px;
		cursor: pointer;
		font-weight: 500;
	}
	.header-mobile-sign-up {
		border-top: 1px solid #D3D8E0;
		border-bottom: 1px solid #D3D8E0;
	}
	.header-mobile-sign-up-hide {
		display: none;
	}
	.header-mobile-consultation-history {
		border-top: 1px solid #D3D8E0;
		border-bottom: 1px solid #D3D8E0;
	}
	.header-mobile-consultation-history {
		display: none;
		position: relative;
	}
	.header-mobile-consultation-history-show {
		display: block;
	}
	.header-mobile-consultation-history-show.orange {
		color: #FF6450;
	}
	.header-mobile-login-container {
		display: flex;
		justify-content: space-between;
		align-items: center;
	}
	.header-mobile-profile-show, .header-mobile-my-page-btn-show, .header-mobile-log-out-btn-show {
		display: block;
	}
	.header-mobile-user-context-top {
		font-size: 18px;
		display: none;
	}
	.header-mobile-user-context-bottom {
		display: none;
		font-size: 14px;
		font-weight: 300;
	}
	.header-mobile-user-context-top-show, .header-mobile-user-context-bottom-show {
		display: block;
	}
	.mobile-profile-img {
		width: 46px;
		height: 46px;
		object-fit: cover; /* 이미지가 잘리지 않도록 설정 */
		border-radius: 50%;
	}
	.header-mobile-top-container {
		display: flex;
		flex-direction: column;
		gap: 10px;
	}
	.header-mobile-user-container {
		display: none;
	}
	.header-mobile-user-container-show {
		display: flex;
		align-items: center;
		gap: 10px;
		padding: 10px 0px;
	}
	.mobile-my-page-btn, .mobile-log-out-btn {
		font-size: 16px;
		border: 1px solid #D3D8E0;
		padding: 10px 0px;
		display: flex;
		justify-content: center;
		align-items: center;
		width: 100%;
		font-weight: 300;
		cursor: pointer;
	}
	.mobile-consulation-histrory-nav {
		position: absolute;
		top: 25%;
		left: 80px;
		width: 6px;
		height: 6px;
		background-color: #FF6450;
		border-radius: 50%;
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.3s ease, visibility 0.3s ease;
	}
	.mobile-consulation-histrory-nav.show {
		opacity: 1;
		visibility: visible;
	}
}