:root{
	--headerH: 90px;
	--logoH: 40px;
	--quickH: 40px;
	--headerStackH: calc(var(--quickH) + var(--headerH));
	--mainColor: #eaeaea;
}

/* quick banner (헤더 위) */
#quickBanner{
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 960;
	height: var(--quickH);
	background: rgba(245, 245, 247, 0.98);
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	display: flex;
	align-items: stretch;
	justify-content: center;
	transform: translateY(0);
	transition: transform 0.35s ease, opacity 0.35s ease;
}
body.quick-hidden #quickBanner{
	transform: translateY(-100%);
	pointer-events: none;
}
#quickBanner .quickBanner__inner{
	width: 100%;
	max-width: 1800px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: clamp(10px, 4vw, 20px);
	padding-left: max(12px, env(safe-area-inset-left, 0px));
	padding-right: max(12px, env(safe-area-inset-right, 0px));
	box-sizing: border-box;
}
#quickBanner a{
	display: flex;
	align-items: center;
	justify-content: center;
	/* width: 32px; */
	height: 100%;
	min-height: var(--quickH);
	color: rgba(0, 0, 0, 0.55);
	transition: color 0.2s, transform 0.2s, opacity 0.2s;
}
#quickBanner a .bi{
	font-size: 18px;
	line-height: 1;
	display: block;
}
@media (hover: hover){
	#quickBanner a:hover{
		color: #111;
		/* transform: scale(1.08); */
	}
}
@media screen and (max-width: 600px){
	#quickBanner a .bi{
		font-size: 16px;
	}
}

/* header */
#header{ width: 100%; background: transparent; position: fixed; top: var(--quickH); left: 0; z-index: 950; text-align: left; transform: translateY(0); transition: background 0.4s, backdrop-filter 0.4s, transform 0.4s, top 0.35s ease; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); box-sizing: border-box; }
body.quick-hidden #header{ top: 0; }
.w1800{
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding-left: clamp(12px, 3.5vw, 40px);
    padding-right: clamp(12px, 3.5vw, 40px);
    box-sizing: border-box;
}
#header nav,
#header .logo,
#header .right > div,
#header .right .link{ opacity: 1; transition: opacity 0.4s; }
#header .flex-box{ height: var(--headerH); display: flex; justify-content: space-between; align-items: center; gap: 24px; }
#header .header-left{ display: flex; align-items: center; gap: 100px; flex: 1; min-width: 0; }
#header .logo{ display: flex; position: relative; top: 0; left: 0; transform: none; opacity: 1; flex-shrink: 0; width: 180px; height: auto;}
#header .logo img{ width: 100%; height: auto; }

#header .depth01{ display: flex; margin: 0 -22px; }
#header .depth01 > li{ position: relative; }
#header .depth01 > li > a{ height: var(--headerH); display: flex; justify-content: center; align-items: center; font-size: 18px; font-weight: 400; color: #111; letter-spacing: -0.02em; padding: 0 30px; }

#header .depthBox{ width: 150px; padding-top: calc(var(--headerH) - 20px); position: absolute; top: 0; left: 50%; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity 0.5s, transform 0.5s; }
#header .depth02{ background: #fff; border-radius: 5px; box-shadow: 0 8px 28px rgba(0,0,0,0.12); border: 1px solid rgba(0,0,0,0.08); }
#header .depth02 > li:not(:last-of-type){ border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
#header .depth02 > li > a,
#header .depth02 > li > button{ display: block; width: 100%; font-family: var(--baseFont); font-size: 16px; font-weight: 400; color: rgba(0, 0, 0, 0.75); letter-spacing: -0.02em; padding: 17px; text-align: center; transition: color 0.3s; }


#header .right{ height: 100%; display: flex; align-items: center; }
#header .right > div{ position: relative; }
#header .right button{ background: none; border: none; }
#header .right > button{ height: 40px; background: rgba(0, 0, 0, 0.04); border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 5px; font-size: 16px; font-weight: 400; color: #111; letter-spacing: -0.02em; margin-left: 15px; transition: background 0.4s, border-color 0.4s, color 0.4s, opacity 0.4s !important; cursor: pointer; }
#header .right div > button{ height: var(--headerH); padding: 15px; cursor: pointer; }
#header .right div > button .bi{ font-size: 26px; line-height: 1; color: #111; vertical-align: middle; }

#header .search > button{
	min-width: 44px;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

#header .link{ padding: 0 20px; }

/* 햄버거: 터치 영역·아이콘 */
#header .menu{
	background: transparent !important;
	border: none !important;
	padding: 0 10px;
	min-width: 44px;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	overflow: visible;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}
#header .menu span{
	display: inline-block;
	width: 24px;
	height: 4px;
	background: #111;
	border-radius: 10px;
	vertical-align: middle;
	position: relative;
	transition: background 0.4s, top 0.4s, transform 0.4s;
}
#header .menu span::before,
#header .menu span::after{
	content: "";
	width: 100%;
	height: 100%;
	background: #111;
	border-radius: inherit;
	position: absolute;
	left: 0;
	transition: background 0.4s;
}
#header .menu span::before{ top: -10px; }
#header .menu span::after{ top: 10px; }

#header .login:hover .depthBox{ transform: translate(-50%, 0); opacity: 1; }
#header .login:hover .depth02{ pointer-events: auto; }

/* header - up */
#header.up{ transform: translateY(-100%); }

/* header - scroll */
#header.scroll{ background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(8px); }

/* header - intro */
#header.intro .logo{ opacity: 0; }

@media screen and (hover: hover){
	#header .depth01 > li:hover .depthBox{ transform: translate(-50%, 0); opacity: 1; }
	#header .depth01 > li:hover .depth02{ pointer-events: auto; }
	#header .depth02 > li:hover > a,
	#header .depth02 > li:hover > button{ color : #000; }

	#header .right > button:hover{ background: #111; border-color: #111; color: #fff; }
	#header .menu:hover span,
	#header .menu:hover span::before,
	#header .menu:hover span::after{ background: #111; }
 }

 @media screen and (max-width: 1900px){
	#header .depthBox{ width: 120px; }
	#header .depth02 > li > a,
	#header .depth02 > li > button{ padding: 14px; }
 }

 @media screen and (max-width: 1280px){
	#header .depth02 > li > a,
	#header .depth02 > li > button{ padding: 12px; }

	#header .right div button{ padding: 10px; }
 }

 @media screen and (max-width: 1280px) and (hover: hover){
	#header .login:hover .depthBox{ transform: translate(-50%, 10px); }
 }

  @media screen and (max-width: 1200px){
  	#header .logo{ position: relative; left: 0; top: 0; transform: none; }
	#header nav{ display: none; }
	#header .header-left{ gap: 0; flex: 0 1 auto; }

	#header .right > button{ height: 40px; min-height: 40px; padding: 0 14px; margin-left: 10px; }

	.login-item .depthBox{
		left: auto !important;
		right: 0;
		transform: translate(0, 10px);
		width: min(288px, calc(100vw - 24px));
	}
	.login-item.is-active .depthBox{
		transform: translate(0, 0) !important;
	}
  }


 /* search */
#search{
	--height: 80px;
	--select: 240px;
	--button: 180px;
	--padding: 25px;
}
#search{ width: 100%; height: 100%; position: fixed; top: 0; left: 0; z-index: 900; pointer-events: none; }
#search *{ font-size: 24px; font-weight: 400; color: #111; letter-spacing: -0.02em; }
#search .blank{ width: 100%; height: 100%; }
#search .box{ width: 100%; background: linear-gradient(180deg, #fafafa 0%, #f0f0f0 100%); padding: 0 max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px)); padding-top: var(--headerStackH); position: absolute; top: 0; left: 0; display: none; transition: padding-top 0.35s ease; box-sizing: border-box; }
body.quick-hidden #search .box{ padding-top: var(--headerH); }
#search .inner{ max-width: 1180px; padding: 120px 0 180px; margin: 0 auto; }
#search .flex-box{ display: flex; justify-content: space-between; }
#search .flex-box > *{ height: var(--height); padding: 0 var(--padding); }

  /* search box 로고 */
  #search .search-brand{
    margin: 0 0 30px;
    display: flex;
    align-items: center;
  }
  #search .search-brand img{
    height: 42px;
    width: auto;
    display: block;
  }

#search select, 
#search input{ background: none; border: none; border-bottom: 1px solid rgba(0,0,0,0.35); border-radius: 0; -webkit-border-radius: 0; outline: none; }
#search select{ width: var(--select); background: url("https://www.thehouseconcert.com/img/common/select_icon.svg") no-repeat center right var(--padding); appearance: none; }
#search option{ color: #111; }
#search input{ width: calc(100% - var(--select) - var(--button) - 40px); }
#search input::placeholder{ color: rgba(0, 0, 0, 0.35); }
#search button{ width: var(--button); background: rgba(0, 0, 0, 0.04); border: 1px solid #9e9e9e; border-radius: 5px; font-weight: 600; color: #111; transition: background 0.3s, color 0.3s; }
#search button{ display: inline-flex; align-items: center; justify-content: center; }

/* body - search */
body.search{ overflow: hidden; }
body.search #header{ background: transparent; backdrop-filter: unset; transform: translateY(0); box-shadow: none; }
body.search #quickBanner{ opacity: 0; pointer-events: none; }
body.search #header nav,
body.search #header .logo,
body.search #header .right > div,
body.search #header .right .link{ opacity: 0; pointer-events: none; }
/* 검색 열림: 닫기(햄버거→X)만 보이도록 좌측·우측 div는 레이아웃에서 제거 */
body.search #header .header-left{
	flex: 0 0 0;
	width: 0;
	min-width: 0;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}
body.search #header .right > .login-item,
body.search #header .right > .search{
	display: none !important;
}
body.search #header .flex-box{
	justify-content: flex-end;
}
body.search #header .menu{
	opacity: 1 !important;
	pointer-events: auto !important;
	flex-shrink: 0;
}
body.search #header .menu span{
	/* 햄버거와 동일한 레이아웃 박스 → 위치 안 밀림 */
	display: inline-block;
	width: 24px;
	height: 4px;
	background: transparent !important;
	vertical-align: middle;
	position: relative;
	transform: none;
	overflow: visible;
}
body.search #header .menu span::before,
body.search #header .menu span::after{
	width: 100%;
	height: 4px;
	left: 0;
	top: 0;
	margin-top: 0;
	background: #111;
	border-radius: 10px;
	transform-origin: center center;
	transition: transform 0.3s ease, background 0.3s ease, top 0.3s ease;
}
body.search #header .menu span::before{
	transform: rotate(45deg);
}
body.search #header .menu span::after{
	transform: rotate(-45deg);
}

body.search #search{ pointer-events: auto; }
body.search #search .box{ display: block; }

@media screen and (hover: hover){
	#search button:hover{ background: #FFF; color: #111; }
}

@media screen and (max-width: 1800px){
	#search{
		--height: 70px;
		--select: 200px;
		--button: 150px;
	}

	#search *{ font-size: 20px; }
	#search .inner{ padding: 80px 0 140px; }
}

@media screen and (max-width: 1280px){
	#search{
		--height: 60px;
		--select: 160px;
		--button: 120px;
		--padding: 20px;
	}

	#search *{ font-size: 18px; }
	#search .inner{ padding: 50px 0 100px; }
}

@media screen and (max-width: 900px){
	#search{
		--height: 50px;
		--select: 150px;
		--button: 80px;
		--padding: 15px;
	}

	#search *{ font-size: 17px; }
	#search .inner{ padding: 50px 0; }
}

@media screen and (max-width: 650px){
	#search .inner{ padding: 20px 0 50px; }
	#search .flex-box{ flex-wrap: wrap; }
	#search select{ width: 100%; margin-right: 0; margin-bottom: 20px; }
	#search input{ width: calc(100% - var(--button) - 20px); }
}


/* menu (전체 화면 햄버거) — 뷰포트 고정, 패널 자체에는 스크롤 없음(내용은 .nav에서만) */
#menu.site-menu {
	width: 100%;
	height: 100vh;
	height: 100dvh;
	max-height: 100vh;
	max-height: 100dvh;
	background: #fff;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100;
	transform: translateX(-100%);
	transition: transform 0.6s;
	overflow: hidden;
	overscroll-behavior: none;
	box-sizing: border-box;
	padding-left: env(safe-area-inset-left, 0px);
	padding-right: env(safe-area-inset-right, 0px);
}
#menu .pc{
	display: block;
	height: 100%;
	max-height: 100%;
	min-height: 0;
}
#menu > div,
#menu .flex-box{
	height: 100%;
	max-height: 100%;
	min-height: 0;
}
#menu .flex-box > div{
	height: 100%;
	max-height: 100%;
	min-height: 0;
	width: 50%;
	box-sizing: border-box;
}

#menu .flex-box{ display: flex; }
#menu .nav{
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
	overscroll-behavior: none;
	/* background: url("https://www.thehouseconcert.com/img/common/menu_bg.svg") no-repeat top right / auto;  */
}
#menu .nav .text{ padding: 40px 30px; }
#menu .nav .text svg{ max-width: 100%; max-height: 100%; width: auto; height: auto; }
 #menu .nav .text img{ max-width: 100%; max-height: 100px; width: auto; height: auto; }

#menu .depth01 > li{ border-top: 1px solid rgba(0, 0, 0, 0.08); }
#menu .depth01 > li > a{ --after: 28px; height: 90px; font-size: 22px; font-weight: 500; color: rgba(0, 0, 0, 0.35); display: flex; align-items: center; padding: 0 30px; transition: font-size 0.3s, color 0.3s; }
#menu .depth01 > li.on > a{ color: #111; }

#menu .depthBox{ display: none; background: #EBE5DD; padding: 25px 50px; }
#menu .depth01 > li.is-open .depthBox{ display: block; }
#menu .depth02{ display: flex; flex-wrap: wrap; margin: -10px -30px; }
#menu .depth02 > li > a{ display: block; font-size: 20px; font-weight: 500; color: rgba(34, 34, 34, 0.4); padding: 10px 30px; transition: color 0.3s; }

#menu .img{ background: url("/images/main/menu_bn.jpg") no-repeat center center / cover; filter: brightness(0.8); }

/* body - open */
html:has(body.open){
	overflow: hidden;
}
body.open{
	overflow: hidden;
	position: fixed;
	width: 100%;
	inset: 0;
}
body.open #header{ background: transparent; backdrop-filter: unset; transform: translateY(0); box-shadow: none; }
body.open #header nav,
body.open #header .logo,
body.open #header .right > div,
body.open #header .right .link{ opacity: 0; pointer-events: none; }
/* 사이드 메뉴 열림: 닫기 버튼만 우측 끝에 오도록 보이지 않는 영역은 레이아웃에서 제거 */
body.open #header .header-left{
	flex: 0 0 0;
	width: 0;
	min-width: 0;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}
body.open #header .right > .login-item,
body.open #header .right > .search{
	display: none !important;
}
body.open #header .flex-box{
	justify-content: flex-end;
}
body.open #header .menu{
	opacity: 1 !important;
	pointer-events: auto !important;
	flex-shrink: 0;
}
body.open #header .menu span{
	display: inline-block;
	width: 24px;
	height: 4px;
	background: transparent !important;
	vertical-align: middle;
	position: relative;
	transform: none;
	overflow: visible;
}
body.open #header .menu span::before,
body.open #header .menu span::after{
	width: 100%;
	height: 4px;
	left: 0;
	top: 0;
	margin-top: 0;
	background: #111;
	border-radius: 10px;
	transform-origin: center center;
	transition: transform 0.3s ease, background 0.3s ease, top 0.3s ease;
}
body.open #header .menu span::before{
	transform: rotate(45deg);
}
body.open #header .menu span::after{
	transform: rotate(-45deg);
}

/* 사이드 메뉴 열림: 퀵 배너는 그대로 두고(위 레이어), 본문 패널만 슬라이드 */
body.open #quickBanner{
	opacity: 1 !important;
	pointer-events: auto !important;
	transform: translateY(0) !important;
	z-index: 980;
}

body.open #menu{ transform: translateX(0); }

@media screen and (hover: hover){
	#menu .depth01 > li:hover .depthBox{ display: block; }
	#menu .depth01 > li:hover > a{ font-size: var(--after); color: #111; }
	#menu .depth02 > li:hover > a{ color: #222; }
}

#menu .mobile{ display: none; }

@media screen and (max-width: 1800px){
	#menu .depth01 > li > a{ --after: 24px; height: 80px; font-size: 21px; }
	#menu .depth02 > li > a{ font-size: 19px; }
}

@media screen and (max-width: 1280px){
	#menu .nav .text{ padding: 30px; }

	#menu .depth01 > li > a{ --after: 22px; height: 75px; font-size: 19px; }

	#menu .depthBox{ padding: 20px 30px; }
	#menu .depth02{ margin: -10px -20px; }
	#menu .depth02 > li > a{ font-size: 18px; padding: 10px 20px; }
}

@media screen and (max-width: 1200px){
	#menu .flex-box > div{ width: 100%; margin-top: 40px; }
	#menu .img{ display: none; }

	#menu .nav .text{ padding: 20px 30px; }
	#menu .nav .text svg{ height: 45px; }

	/* 좁은 화면: 긴 메뉴도 스크롤 + 노치·홈 인디케이터 */
	#menu .nav{
		justify-content: flex-start;
		overflow-y: auto;
		overflow-x: hidden;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
		padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
	}
}

@media screen and (max-width: 1000px){
	#menu .nav{ background-size: 400px; }
}

@media screen and (max-width: 700px){
	#menu .nav{ background-size: 300px; }
	#menu .depth01 > li > a{ --after: 22px; font-size: 22px; }
	#menu .depth02{ display: block; }
	#menu .depth02 > li > a{ font-size: 20px; }
}

/* 기존 스타일에서 hover 대신 클래스 기반 제어 추가 */
.login-item { position: relative; }

/* 기본 상태: 숨김 */
.login-item .depthBox {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 20px);
    transition: all 0.3s ease;
}

/* 활성화 상태: 보임 (버튼 클릭 시 JS에 의해 추가됨) */
.login-item.is-active .depthBox {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translate(-50%, 0) !important; /* 의도하신 위치로 조정 */
}

/* —— 모바일·터치 최적화 —— */
@media screen and (max-width: 768px){
	#header .flex-box{
		gap: clamp(6px, 2vw, 14px);
	}
	#header .logo{
		width: min(164px, 44vw);
	}
	#header .right > button{
		min-height: 44px;
	}
	#header .right div > button{
		min-width: 44px;
		min-height: 44px;
		height: auto;
		padding: 10px 14px;
	}
	#header .right div > button .bi{
		font-size: 26px;
	}
	#menu .nav .text img {
		max-height: 60px;
	}
}

@media screen and (max-width: 480px){
	#header .logo{
		width: min(142px, 48vw);
	}
	#header .right > button{
		margin-left: 6px;
		padding: 0 10px;
		font-size: 15px;
	}
	#quickBanner .quickBanner__inner{
		gap: clamp(6px, 2vw, 12px);
	}
}