* {margin: 0; padding: 0; box-sizing: border-box;}
body { max-width:1920px; margin: 0 auto; font-family: sans-serif;position:relative;}

.site-header {
  max-width: 1920px;
  min-width:1200px;
  width:100%;
  margin: 0 auto;
  position: relative;
  z-index: 1000;
  box-sizing:border-box;
  background:rgba(0,0,0,0.4);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px;
  height:80px;
}

.header-left,
.header-nav,
.header-right {
  flex: 1;
  line-height:40px;
}
.header-left a{
	display:block;
	height:40px;
}
.header-left img{
	height:40px;
}
.header-nav {
  display: flex;
  justify-content: center;
}

.menu {
  display: flex;
  gap: 30px;
  list-style: none;
  justify-content: flex-start;
  width:698px;
}

.menu > li {
	position: relative;
	cursor: pointer;
	color:#fff;
	padding:0;
	width:152px;
	height:80px;
	line-height:80px;
	text-align:center;
}
.menu > li.active {
  background-color: #08213f;
  color: #fff !important;
  font-weight: bold;
}
.menu-bg-inner ul.active{
  background-color: #08213f;
  color: #fff !important;
}
.menu-bg-inner ul.active li a{
	color:#fff;
}
.sub-menu{
	margin:0 auto;
	padding:0;
	list-style:none;
}
.sub-menu li a{
	display:block;
	width:152px;
	text-decoration:none;
	color:#000;
	padding:5px 0;
}
.sub-menu li a:hover{
	text-decoration:underline;
}
.site-header.scrolled,
.site-header.hovered {
	background-color: #fff;
}
.site-header.hovered{
	transition: background-color 0.3s ease;
}
.site-header.scrolled {
	transition: background-color 0.3s ease;
}

.site-header.scrolled .menu > li a,
.site-header.hovered .menu > li a,
.site-header.scrolled .menu > li,
.site-header.scrolled .menu a,
.site-header.scrolled .phone,
.site-header.hovered .phone,
.site-header.scrolled .phone span,
.site-header.scrolled .fa-phone-volume {
	color: #000;
}

.site-header .menu a {
	color: #fff; /* 기본 상태에서 흰색 텍스트 */
	text-decoration: none;
}

.site-header .phone,
.site-header .phone span {
	color: #fff;
}

.sub-menu {
  display: none;
}

.menu-bg {
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	height: 0;
	background: #fff;
	overflow: hidden;
	transition: height 0.1s ease;
	z-index: 999;
	border-top:1px solid #ccc;
}

.menu-bg.open {
	height: 200px;
	transition: height 0.6s ease;
	border-bottom:1px solid #000;
	background:rgba(255,255,255,1);
}

.menu-bg-inner {
	max-width: 698px;
	margin: 0 auto;
	padding: 0;
	display: flex;
	gap: 30px;
	justify-content: space-between;
}

.menu-bg-inner ul {
	display: block;
	padding-top:20px;
	height:200px;
}

.menu-bg-inner li {
	text-align:center;
	padding-top:10px
}
.header-right{
	text-align:right;
}
.header-right .phone span{
	font-size:24px;
}
.phone {
	text-decoration: none;
	color: #333;
	font-weight: bold;
}
a.phone{
	color:#fff;
}
a.phone i{
	display:none;
}
.menu-toggle {
	background: none;
	border: none;
	font-size: 24px;
	display: none;
}

.mobile-overlay,
.mobile-menu {
	display: none;
}
a.phone span > i{
	display:inline-block;
}
.sub_title{
	position: relative;
	width:100%;
	height:300px;
	margin:0 auto;
}
.sub_title_img{
	max-width:1920px;
	height:300px;
	margin:0 auto;
	background:url('/upload/img/sub_img_01.jpg') center center;
}
.sub_title > .txt{
	position:absolute;
	left:50%;
	top:50%;
	line-height:40px;
	width:200px;
	font-size:40px;
	text-align:center;
	color:#fff;
	text-shadow:3px 3px 3px rgba(0,0,0,1);
	margin:-20px 0 0 -100px;
	font-weight:bold;
}
.sub_title_img::before {
	content: "";
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 100%;
	background-color: rgba(255, 255, 255, 0); /* 흰색 반투명 레이어 */
	z-index: 1;
}
.floating-menu {
	position: fixed;
	bottom: 50px;
	right: 20px;
	z-index: 1000;
	display: none; /* 초기에는 보이지 않음 */
}

.floating-menu .menu-button {
	width: 45px;
	height: 45px;
	background-color: #000;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	color: white;
	font-size: 24px;
	border:1px solid #fff;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.floating-menu .menu-items button {
	width:45px;
	height:45px;
	background-color: #ffffff;
	margin-bottom:10px;
	border: 1px solid #ddd;
	border-radius: 50%;
	cursor: pointer;
	color: #333;
	font-size: 14px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	transition: all 0.3s;
}
.floating-menu .menu-items {
	display: none;
	position: absolute;
	width:200px;
	bottom: 50px;
	right: 0;
	text-align: right;
	flex-direction: column;
	gap: 10px;
}
span.touch-cl {
    padding: 5px;
	margin-right:5px;
    border-radius: 5px;
    background-color: #000;
	color:#fff;
    text-align: center;
    font-size: 0.8em;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-all;
    position: relative; /* 가상 요소 위치 기준 */
}

span.touch-cl::after {
    content: ''; /* 가상 요소 내용 없음 */
    position: absolute;
    top: 50%; /* 세로 가운데 정렬 */
    right: -5px; /* 화살표를 span 오른쪽으로 이동 */
    transform: translateY(-50%); /* 세로 정렬 보정 */
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 6px; /* 위-오른쪽-아래-왼쪽 */
    border-color: transparent transparent transparent #000; /* 오른쪽 빗면을 #ccc로 설정 */
}
.menu-button .icon-close {
	display: none;
}
.menu-button.active .icon-open {
	display: none;
}
.menu-button.active .icon-close {
	display: inline;
}
.contact-call{
	display:none;
}
.site-footer{
	width:100%;
	min-width: 1200px;
	margin:0 auto;
	background:#ddd;
	font-size:13px;
}
.footer-inner{
	width:1200px;
	margin:0 auto;
	padding:20px 10px;
	box-sizing:border-box;
	display:flex;
}
.footer-logo{
	width:190px;
}
.footer-info{
	width:990px;
	text-align:right;
}
.footer-info p{
	line-height:25px;
}
.footer-info a{
	text-decoration:none;
	color:#000;
}
.footer-info a.admin{
	font-size:12px;
	display:inline-block;
	padding:5px 12px;
	background:#0056b3;
	color:#fff;
	text-align:center;
	margin-top:20px;
	border-radius:20px;
}
.scroll-hidden {
  overflow: auto; /* 또는 scroll */
  -ms-overflow-style: none;  /* IE/Edge */
  scrollbar-width: none;     /* Firefox */
}

.scroll-hidden::-webkit-scrollbar {
  display: none;             /* Chrome/Safari */
}
@media (max-width: 768px) {
	.site-header{
		height:50px;
		width:100%;
		min-width:100%;
		padding:5px 10px;
		box-sizing:border-box;
	}
	.container {
		max-width: 100%;
		width:100%;
		margin: 5px auto;
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding:0;
		height: 30px;
		box-sizing:border-box;
	}
	.header-left,
	.header-right{
		height:30px;
		line-height: 30px;
	}
	.header-left a{
		display:inline-block;
		height:30px;
	}
	.header-left img{
		height:30px;
	}
	.header-nav {
		display: none;
	}
    .header-left a.logo{
        padding: 0;
		height:30px;
		display:inline-block;
    }
	.menu-toggle {
		display: inline-block;
		color:#fff;
		line-height:30px;
		height:30px;
	}

	.menu-toggle i {
		color: white;
		transition: color 0.3s ease;
		font-size:30px;
		line-height:30px;
	}
	.close-btn{
		background:none;
		border:none;
		height:50px;
	}
	.close-btn i{
		color:#fff;
		font-size:24px;
		line-height:30px;
		width:30px;
		text-align:center;
		margin-right:10px;
	}
	.site-header.scrolled .menu-toggle i {
		color: black; /* 헤더가 흰색일 때 햄버거 메뉴 아이콘도 검정색으로 변경 */
	}
	.menu-header .menu-toggle i{
		font-size:20px;
	}
	.mobile-overlay.open {
		display: block;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(0,0,0,0.5);
		z-index: 998;
	}

	.mobile-menu {
		display: block;
		position: fixed;
		top: 0;
		right: -80%;
		width: 80%;
		height: 100%;
		background: #fff;
		transition: right 0.3s ease;
		z-index: 999;
		padding: 0;
		text-align:right;
	}
	.contact-call{
		display:inline-block;
	}
	.mobile-menu.open {
		right: 0;
	}
	
	a.phone span{
		display:none;
	}
	a.phone{
		display:inline-block;
	}
	a.phone i{
		display:inline-block;
		width:30px;
		height:30px;
		line-height:30px;
		font-size:24px;
		margin-right:20px;
	}
	.site-header .phone,
	.site-header .phone span {
		color: #fff;
	}
	.m-menu-head{
		border-bottom:1px solid #ccc;
		background:#0e2c53;
	}
	.m-menu-head a.phone i{
		color:#fff !important;
	}
	.mobile-main-menu {
	  list-style: none;
	  padding: 0;
	  margin: 0;
	  width:100%;
	  text-align:left;
	  font-size:1.2em;
	}
	.mobile-main-menu > li {
	  position: relative;
	  padding: 15px 10px;
	  border-bottom: 1px solid #eee;
	  font-size: 18px;
	  color: #333;
	  display: flex;
	  justify-content: space-between;
	  align-items: center;
	  cursor: pointer;
	  flex-direction: column; /* ✅ 세로로 쌓기 */
	}
	.menu-header {
	  display: flex;
	  justify-content: space-between;
	  align-items: center;
	  width: 100%;
	}
	.menu-title {
	  flex: 1;
	}
	.menu-toggle i {
	  transition: transform 0.2s ease;
	}
	/* submenu는 항상 block으로, li 내부에서 하단에 위치 */
	.mobile-sub-menu {
	  list-style: none;
	  overflow: hidden;
	  max-height: 0;
	  transition: max-height 0.4s ease;
	  background: #0e2c53;
	  width: 100%;
	}
	.mobile-sub-menu.open {
		margin-top:20px;
	  max-height: 300px; /* 충분한 값으로 설정 (하위 메뉴 길이에 따라 조정 가능) */
	}
	.mobile-sub-menu li a {
	  display: block;
	  padding: 10px 15px 10px 0;
	  font-size: 16px;
	  color: #fff;
	  text-decoration: none;
	  display:inline-block;
	  width:100%;
	}
	ul.mobile-sub-menu li{
		color:#fff;
		padding-left: 10px;
		border-bottom:1px solid #0e1f35;
	}
	ul.mobile-sub-menu li:last-child{
		border-bottom:none;
	}
	.mobile-sub-menu li a:hover {
	  color: #007bff;
	}
	
	.site-footer{
		min-width: 100%;
	}
	.footer-inner{
		width:100%;
		margin:0 auto;
		padding:20px;
		box-sizing:border-box;
		display:flex;
		flex-direction:column;
	}
	.footer-logo{
		width:100%;
		text-align:center;
		margin-bottom:20px;
	}
	.footer-info{
		width:100%;
		text-align:center;
	}
	.sub_title {
		position: relative;
		width: 100%;
		height: 200px;
		margin: 0 auto;
	}
	.sub_title_img{
		max-width:100%;
		width:100%;
		height:200px;
		margin:0 auto;
		background:url('/upload/img/sub_img_01.jpg') center center no-repeat;
		background-size: cover;  /* ✅ 세로는 꽉 차고, 가로는 비율 유지해 전부 표시 */
		background-position: left center;
		background-repeat: no-repeat;
		
	}
}
