/* 메인 navbar */
body.fixed {
	position:fixed;
	height: 100vh;
	max-height:100vh;
	overflow:hidden
}

.navbar {
  display: block;
  flex-direction: column;
  background-color: #fff;
  max-width: 1440px;
  padding-bottom:20px;
  margin: 0 auto;
}

.u-menu {
  width: 100%;
  height:55px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-size: 1rem;
  gap:11px;
}

.user-info{
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
}

.user-id{
  color: #555555;
  text-align: center;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

 .nav-menu {
  display: block;
  width: 100%;
  height: 98px;               
}

.nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.u-menu a {
  margin-left: 0.5rem;
  text-decoration: none;
}

.logo img {
  height: 70px;
  object-fit: contain;
  display: block;
}

/* hamburger */
 .menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.menu-toggle img {
  width: 32px; 
  height: auto;
  display: block;
}


/* hamberger mobile */
.mobile-menu.open {
	height: 100vh;
	overflow-y : auto;
	overflow-x : hidden;
}
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  pointer-events: none;
  opacity: 0;
}

.mobile-menu-overlay.open {
  display: flex;
  pointer-events: auto;
  opacity: 1;
  
}

.mobile-menu {
  top: 0;
  left: 0;
  width: 100%;
  /* max-width: 780px; */
  height: auto;
  background-color: #fff;
  z-index: 999;
  display: none;
  flex-direction: column;
  gap: 24px;
  z-index: 4;
}


.menu-corner-decoration {
  width: 154px;
  height: 146px;
  background-image: url('../images/pink_shape.png');
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  right: 16px;
  bottom: 0;
  transform: translate(11%, 0%);
  pointer-events: none;
  z-index: -1;
}


.mobile-menu.open {
  display: flex;
  padding: 0 40px
}

.mobile-menu-top {
  display: flex;
  justify-content: flex-end;
  padding: 68px 0 40px 0
}

.mobile-menu-user {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  /* border-bottom: 2px solid #181412; */
  gap: 24px;
  flex-wrap: wrap; 
}

.mobile-menu-user .user-info {
  display: flex;
  align-items: center;
  gap:10px;
}

.user-info img {
  width: 32px;
  height: 32px;
  /* margin-right: 10px; */
}

.user-m-id{
  font-size: 24px;
  font-weight: 400;
  color: #555555;
  white-space: nowrap;
}

.logout-link {
  font-size: 24px;
  font-weight: 700;
  color: #181412;
}

.menu-close-btn {
  background: none;
  border: none;
  cursor: pointer;
}

.menu-close-btn img {
  width: 40px;
  height: 40px;
}

.mobile-menu-list {
  list-style: none;
  margin: 0;
  padding:0 0 86px 0;
  width: 100%;
  border-top: 2px solid #181412;
}

.menu-parent {
  border-bottom: 1px solid #D1D1D1;
}

.menu-title {
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin: 24px 0;
  line-height: normal;
}

.menu-title::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 36px;
  height: 27px;
  background-image: url('../images/btn_dropdown.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.menu-parent.open .menu-title::after {
  transform: translateY(-50%) rotate(180deg);
}

.menu-parent.open .menu-title {
  color: #29A7E0;
  text-align: center;
  font-size: 24px;
  font-style: normal;
  font-weight: 800;
  line-height: normal;

}

.sub-menu {
  display: none;
  list-style: none;
  padding-left : 4px;
}

.menu-parent.open .sub-menu {
  display: block;
}

.sub-menu li {
  font-size: 18px;
  font-weight: 400;
  color: #555;
  border-bottom: none;
  margin:24px 0;
  line-height: normal;
}

.sub-menu li:first-child {
  margin-top: 32px;
}
.sub-menu li.active {
  color: #181412;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

/* web menu */
.menu-list {
  display: flex;
  justify-content: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}


.menu-list li a {
  line-height: normal;
  font-style: normal;
  font-weight: 700;
  font-size: 20px;
  color: #181412;
  text-decoration: none;
}

header {
	position: relative;
}
.nav-bg {
  position: absolute;
  top: 100%;
  left: 50%;
  transform:translateX(-50%);
  width: 100vw; /* 화면 전체 너비 */
  height: 0;
  background: white;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  pointer-events: none; /* hover 방해 방지 */
}

.menu-item li.active > .menu-dropdown-toggle {
  color: #29A7E0;
}

.menu-item:hover > .menu-dropdown-toggle {
  color: #29A7E0;
}

.menu-item {
  position: relative;
  flex:1;
  text-align: left;
}

.menu-container {
  position: relative;
  display: inline-block;
}

.menu-list-wrap .menu-hover-area {
  display: none;
  position: absolute;
  top: calc(100% + 45px);
  left: 0;
  width: 100%;
  background: white;
  padding: 20px 0;
  z-index: 1000;
  justify-content: space-around;
  gap:40px;
}

.menu-list-wrap { 
	position: relative;
	width: 100%;
	max-width: 70%
}

.submenu  {
	flex:1;
	text-align: left;
}
.submenu ul {
  padding: 0px;
  text-align: center
  
}
.submenu li {
	padding: 15px 0; 
	text-align: left
}
.submenu li a{
  color: #181412;
  text-align: center;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  
}

.submenu li:hover > a {
  color: #29A7E0;
}

/* 서브 navbar */
.sub-nav {
  position: relative;
  display: block;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 52px;
  margin-top: 24px;
  border-top: 1px solid #181412;
  border-bottom: 1px solid #181412;
  display: flex;
  justify-content: center;
  align-items: center;
}


.sub-nav-inner {
  max-width:1360px;
  width: 100%;
}

.navbar,
.nav-menu {
  height: fit-content;
  display: block;
}

/* sub-nav */
.sub-nav-list {
  display: flex;
  justify-content: center;
  gap: 110px;
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 76px;
}

.sub-nav-list.ul {
  margin-bottom: 0;
}


.sub-nav-list li {
  position: relative;
  font-weight: 700;
  color: #999;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
}



.sub-nav-list li:hover {
  color: #181412;
}

.sub-nav-list li.active {
  color: #181412;
  font-weight: 800;
}

.line {
  position: relative;
  width: 1px;
  height: 76px;
  background-color: #181412;
  opacity: 0;
  transform: scaleX(1);
}

.left-line {
  left: -40px
}

.right-line {
  right: -40px
}

.sub-nav-list li.active .line {
  display:none;
}

.line::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 21px;
  height: 21px;
  background-image: url('../images/diamond-icon.png');
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 1;
  z-index: 2;
}

.line::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 21px;
  height: 21px;
  background-image: url('../images/diamond-icon.png');
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 1;
  z-index: 2;
}


#mobile-btn {
  display: none;
}

#web-btn {
  display: inline;
}

#web-btn {
  display: none;
}

#mobile-btn {
  display: inline;
}

/* footer */
.footer-container{
  display: flex;
  height: 200px;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  align-self: stretch;
  margin-top: 24px;
}

.footer-line-container{
  display: flex;
  padding: 8px 0px;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
}


.middle-line{
  position: absolute;
  left: 0;
  width: 100%;
  border-top: 1px solid #D1D1D1;
}

.footer-info{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  align-self: stretch;
  width: 100%;
  height: 100%;
}

.footer-txt{
  color: #181412;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 180%;
  margin: 0;
}

@media screen and (min-width: 1441px) {
  .mobile-menu-overlay {
    display: none !important;
  }
}

/* 반응형 - (min-width: 780px)*/
@media (max-width: 1199px){
	.nav-bg , .menu-list-wrap {display: none;}
  .mobile-menu-top {
  	padding: 30px 0 20px 0;
  }
  
  .u-menu {
    display: none;
  }

  .sub-nav {
    display: none;
  }

  .nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .nav-menu {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  }

  .menu-list {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-left: 0;
  }

  .logo img {
    transform:none;
  }

  .footer-txt{
    font-size: 16px;
    font-weight: 400;
    line-height: 180%;
  }
}

/* 반응형 */
@media (max-width: 780px) {
  .menu-toggle {
    display: block;
  }

  .menu-list {
    display: none;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-top: 1rem;
  }

  .menu-list.active {
    display: flex;
  }

  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-container{
    height: 165px;
    gap: 24px;
  }

  .footer-txt{
    font-size: 12px;
    font-weight: 400;
    line-height: 180%;
  }
}

@media (max-width: 1440px) {
	.navbar {padding-left:20px ;padding-right:20px}
	.navbar {display: flex; align-items:center;justify-content: center;margin:0}
	.logo img {height: 55px;}
	.menu-list-wrap {max-width: 70%}
}
@media (max-width: 1199px) {
	
	
}
@media (max-width: 779px) {
	.navbar {height: 70px; display: flex; align-items:center;justify-content: center;}
	.mobile-menu-top {padding: 0; padding-top:30px}
	.mobile-menu.open {padding: 0 20px}
	.menu-close-btn img {width:32px; height: 32px;}
	.logout-link {font-size: 16px;}
	.mobile-menu {gap:16px}
	.menu-title {margin: 16px 0;}
	.menu-title, .menu-parent.open .menu-title, .sub-menu li {font-size: 16px;}
	.menu-title::after {width: 25px}
	
	.user-m-id {font-size: 16px}
	.footer-logo img {height:41px}
}

@media (max-width: 530px) {
	.navbar {height: 70px; display: flex; align-items:center;justify-content: center;}
	.logo img {height: 40px;} 
	.navbar, .nav-menu {margin:0;}
	.mobile-menu-top {padding: 0; padding-top:30px}
	.mobile-menu.open {padding: 0 20px}
	.menu-close-btn img {width:32px; height: 32px;}
	.logout-link {font-size: 16px;}
	.mobile-menu {gap:16px}
	.menu-title {margin: 16px 0;}
	.menu-title, .menu-parent.open .menu-title, .sub-menu li {font-size: 16px;}
	.menu-title::after {width: 25px}
	
	.user-m-id {font-size: 16px}
}