#btn-menu-m,
#btn-menu-m span {
  box-sizing: border-box;
}

#btn-menu-m {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 52px;
  height: 56px;
  z-index: 220;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

#btn-menu-m span {
  display: block;
  position: absolute;
  left: 50%;
  width: 22px;
  height: 2px;
  margin-left: -11px;
  background-color: #222;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease, width 0.3s ease;
}

#btn-menu-m span:nth-of-type(1) {
  top: 19px;
}

#btn-menu-m span:nth-of-type(2) {
  top: 27px;
  width: 18px;
  margin-left: -9px;
}

#btn-menu-m span:nth-of-type(3) {
  top: 35px;
}

#btn-menu-m.active span {
  background-color: #222;
}

#btn-menu-m.active span:nth-of-type(1) {
  top: 27px;
  transform: rotate(45deg);
}

#btn-menu-m.active span:nth-of-type(2) {
  opacity: 0;
}

#btn-menu-m.active span:nth-of-type(3) {
  top: 27px;
  transform: rotate(-45deg);
}

/*#logo-line {
  width: 1200px;
  max-width: 100%;
  margin: 20px auto;
  height: 50px;
  overflow: hidden;
}



/*	#btn-menu-m .navicon-line{position:absolute;width:20px;height:2px;border-radius:1px;background:#fff;-webkit-transition:all .7s ease-out;-moz-transition:all .7s ease-out;-o-transition:all .7s ease-out;transition:all .7s ease-out}
	#btn-menu-m .nl1 {top: 11px;right: 10px; width:30px;}
	#btn-menu-m .nl2 {top: 19px;right: 10px; width:24px;}
	#btn-menu-m .nl3 {top: 27px;right: 10px; width:30px;}



	#open-button{position:fixed;z-index:10000;right:15px;padding-top:18px;width:75px; height:80px;-webkit-transition:all .3s ease-out;-moz-transition:all .3s ease-out;-o-transition:all .3s ease-out;transition:all .3s ease-out;cursor:pointer;display:block; }
	#open-button .navicon-line{position:absolute;width:20px;height:2px;border-radius:1px;background:#fff;-webkit-transition:all .7s ease-out;-moz-transition:all .7s ease-out;-o-transition:all .7s ease-out;transition:all .7s ease-out}
	#open-button .nl1 {top: 11px;right: 10px; width:30px;}
	#open-button .nl2 {top: 19px;right: 10px; width:24px;}
	#open-button .nl3 {top: 27px;right: 10px; width:30px;}
	#open-button.on>div>div{transform:rotate(225deg);-ms-transform:rotate(225deg);-webkit-transform:rotate(225deg);width:25px;position:absolute;top:15px;right:10px;margin:0;padding:0;background-color:#fff;}
	#open-button.on>div>div:first-child{transform:rotate(135deg);-ms-transform:rotate(135deg);-webkit-transform:rotate(135deg)}
	#open-button.scrolled .navicon-line {background-color: #333;}
	#open-button.on.scrolled >div>div{background-color:#fff;}
*/

.logo {
  width: 190px;
  margin-left: 30px;
  text-align: center;
  position: relative;
  flex-shrink: 0;
  align-self: center;
}

.logo a { 
  display: block; 
  width: 190px; 
  height: 48px; 
  background-image: url(../img/logo.png); 
  background-position: center left; 
  background-repeat: no-repeat;
  background-size: contain;
}

#logo-line .contact {
  height: 100%;
  background-color: yellowgreen;
  float: right;
}

#logo-line .contact ul {
  overflow: hidden;
  height: 100%;
  width: 200px;
}

#logo-line .contact ul li {
  float: left;
  width: 50%;
  height: 100%;
}

#header-wrap {
  position: relative;
  z-index: 100;
  width: 100%;
  max-width: 1400px;
  height: 70px;
  margin: 20px auto 0;
  background-color: #fff;
  padding: 0 40px;
  border-radius: 10px;
  box-sizing: border-box;
}

/* layout.css 레거시 #header(absolute/fixed) 무력화 */
#header-wrap #header {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  width: 100%;
  height: 100%;
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 스크롤 시 상단 고정 — 회색 배경만 full, 콘텐츠는 max 1400px 유지 */
#header-wrap #header.is-fixed {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  height: 70px;
  margin: 0;
  padding: 0 max(40px, calc((100vw - 1400px) / 2));
  box-sizing: border-box;
  z-index: 200;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#header-wrap #header.is-fixed::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: #f3f4f6;
  box-shadow: 0 1px 0 rgba(15, 39, 68, 0.08);
  z-index: -1;
}

#header .lnb-line {
  position: relative;
  right: auto;
  display: flex;
  align-items: stretch;
  align-self: stretch;
  justify-content: flex-end;
  flex: 1;
  min-width: 0;
  height: 100%;
}

#lnb {
  flex-shrink: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: stretch;
}

#lnb > ul {
  display: flex;
  align-items: stretch;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lnb-line #menu-ctl {
  display:none;
  position: absolute;
  top:0px;
  right:0px;
  z-index:10;
}



#lnb * {
  box-sizing: border-box;
}

#lnb > ul:after {
  content: " ";
  visibility: hidden;
  display: block;
  height: 0;
  clear: both;
}

#lnb > ul > li {
  position: relative;
  display: flex;
  align-items: stretch;
  padding: 0 15px;
  margin-left: -1px;
  transition: all 0.5s;
  white-space: nowrap;
  height: 100%;
}





@media screen and (max-width: 960px) {
  #header-wrap {
    margin-top: 0;
    padding: 0 20px;
    border-radius: 0;
  }

  .logo {
    margin-left: 0;
  }

  .logo a {
    height: 44px;
    background-size: contain;
  }

  .lnb-line #menu-ctl {
    display: block;
  }

  #lnb > ul > li.hide {
    width: 10px;
    overflow: hidden;
    opacity: 0.5;
  }

  #menu-ctl > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 44px;
    background-color: #fff;
    font-size: 20px;
    text-align: center;
  }
}

#lnb > ul > li > a {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  min-height: 70px;
  padding: 0 10px;
  text-align: center;
  font-family: 'Paperlogy-7Bold', 'Pretendard', sans-serif;
  font-size: 17px;
  font-weight: normal;
  color: #222;
  opacity: 0.8;
  line-height: 1.2;
}

#lnb > ul > li > a:hover {
	opacity:1
}

#lnb > ul > li > ul {
  position: absolute;
  top: 100%;
  left: 0;
  width: 220px;
  margin: 0;
  padding: 0;
  display: none;
  box-sizing: border-box;
  border: 1px solid #0a1f3d;
  box-shadow: 0 8px 24px rgba(15, 39, 68, 0.25);
  z-index: 210;
}

/* 헤더 하단 → 서브메뉴 이동 시 hover 유지 */
#lnb > ul > li > ul::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

#lnb > ul > li > ul ul {
  position: absolute;
  width: 100%;
  display: none;
  border: 1px solid #0a1f3d;
  box-sizing: border-box;
  margin-top: 0;
  top: 0;
  left: 100%;
  margin-left: 0;
  z-index: 211;
}

#lnb > ul li.on > ul {
  position: absolute;
  display: block;
}

#lnb li {
  position: relative;
}

#lnb > ul > li li {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 48px;
  height: 50px;
  background-color: #0f2744;
  padding: 0;
  margin-top: 0;
}

#lnb > ul > li li:first-child {
	border-top:0
}


#lnb > ul > li li:nth-last-child(1) {
  height: 50px;
  line-height: 50px;
}

#lnb > ul > li li > a {
  width: 100%;
  height: 100%;
  display: block;
  padding: 0 20px;
  color: #fff;
  font-family: 'Paperlogy-5Medium', 'Pretendard', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

#lnb > ul > li li > a:hover {
  padding-right: 50px;
  background-color: #1e3a8a;
  color: #fff;
}

#lnb .arrow {
  position: absolute;
  width: 30px;
  height: 30px;
  font-size: 14px;
  color: #fff;
  display: inline-block;
  right: 0px;
  top: 50%;
  margin-top: -15px;
  text-align: center;
  line-height: 30px;
  z-index:1;
/*  display: none;*/
}
#lnb .depth1 > li > .arrow {
	display: none;
}

#lnb ul ul .arrow {
  transform: rotate(-90deg);
}

#login-box, #login-box2 {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding-left: 50px;
  margin-right: 40px;
}
#login-box3 {
  height: 50px;
  text-align:center;
  margin-bottom:10px;
}

#login-box a, #login-box2 a, #login-box3 a {
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  height: 48px;
  text-align: center;
  color: #000;
  opacity: 0.8;
  font-size: 12px;
  line-height: 1.2;
}

#login-box2 {
  display:none;
}

#top-bg-wrapper {
  position: relative;
  z-index: 10;
  border-bottom:1px solid #ddd;
}

#top-bg-wrapper .bg {
  width: 100%;
  height: 100%;
}

#container-box {
  width: 100%;
  position:relative;
  border-bottom:1px solid #ddd


}

@media screen and (max-width: 960px) {
  #header-wrap #header:not(.is-fixed) {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
  }
}

@media screen and (max-width: 768px) {
  html,
  body {
    min-width: 0;
    width: 100%;
    overflow-x: hidden;
  }

  body {
    padding-top: 56px;
  }

  #header .lnb-line {
    display: none;
  }

  #header-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    height: 56px;
    margin: 0;
    padding: 0 52px 0 16px;
    border-radius: 0;
    z-index: 200;
    box-shadow: 0 1px 8px rgba(15, 39, 68, 0.08);
  }

  #header-wrap #header {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    height: 56px;
  }

  .logo {
    width: auto;
    margin-left: 0;
    flex: 1;
    min-width: 0;
  }

  .logo a {
    width: 100%;
    max-width: 168px;
    height: 36px;
    background-size: contain;
  }

  #btn-menu-m {
    display: block;
    z-index: 310;
  }

  #m-lnb-dim {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 290;
    background: rgba(15, 39, 68, 0.45);
    pointer-events: none;
  }

  body.mobile-menu-open {
    overflow: hidden;
  }

  body.mobile-menu-open #m-lnb-dim {
    display: block;
    pointer-events: auto;
  }

  #m-lnb-wrapper {
    z-index: 300;
    padding-top: 56px;
  }

  #header-wrap #logo-line {
    margin: 0;
  }

  #logo-line .logo {
    display: inline-block;
    float: none;
  }

  #logo-line .contact {
    display: none;
  }
}

#m-lnb-wrapper {
  position: fixed;
  top: 0;
  right: -400px;
  z-index: 300;
  max-width: 400px;
  width: 100%;
  height: 100vh;
  overflow: auto;
  background-color: #000;
  opacity: 0.9;
  box-sizing: border-box;
  padding-top: 70px;
  padding-left: 2em;
  padding-right: 1em;
  transition: all 0.5s;
}
#m-lnb-wrapper.on {
  right: 0px;
}
#m-lnb > ul {
  border-bottom: 1px solid #333;
  font-size: 14px;
}
#m-lnb > ul li > a {
  color: #fff;
}
#m-lnb > ul > li > span.arrow,
#m-lnb > ul > li li > span.arrow {
  position: absolute;
  right: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  font-size: 0;
  line-height: 1;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

#m-lnb > ul > li > span.arrow {
  height: 55px;
}

#m-lnb > ul > li li > span.arrow {
  height: 40px;
}

#m-lnb .arrow i {
  font-size: 18px;
  line-height: 1;
}

#m-lnb > ul > li.on > span.arrow,
#m-lnb > ul > li li.on > span.arrow {
  transform: rotate(180deg);
  color: #38bdf8;
}

#m-lnb > ul li {
  position: relative;
}
#m-lnb > ul > li > a {
  display: block;
  padding: 0 52px 0 20px;
  font-size: 16px;
}
#m-lnb > ul > li {
  line-height: 55px;
  border-bottom: 1px solid #333;
}
#m-lnb > ul > li:nth-last-child(1) {
  border-bottom: 0;
}
#m-lnb > ul > li ul {
  display: none;
  line-height: 40px;
}
#m-lnb > ul > li li {
  border-top: 1px solid #474747;
  background-color: #222;
}
#m-lnb > ul > li li li {
  border-top: 1px solid #959595;
  background-color: #777;
}
#m-lnb > ul > li li > a {
  display: block;
  padding: 3px 48px 3px 30px;
  width: 100%;
  box-sizing: border-box;
}
#m-lnb > ul > li li li > a {
  display: inline-block;
  padding: 0 10px 0 40px;
}

.select-nav {
  background-color: #fee;
  display: inline-block;
  float: left;
}

.select-nav:after {
  content: " ";
  visibility: hidden;
  display: block;
  height: 0;
  clear: both;
}

.select-nav .select {
  float: left;
  width: 220px;
  height: 70px;
  position: relative;
  box-sizing: border-box;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  margin-left: -1px;
}

.select-nav .select:first-child { border:0}
.select-nav .select .down {
  position: absolute;
  width: 25px;
  height: 25px;
  display: inline-block;
  top: 25px;
  right: 10px;
  line-height: 25px;
  text-align: center;
  color: #333;
  font-size: 14px;
  transition: all 0.5s;
  cursor: pointer;
}
.select-nav .select.on .down {
  transform: rotate(180deg);
}

.select-nav .select.d1 {
  margin-left: 0;
}

.select-nav .select button {
  width: 100%;
  height: 100%;
  background-color: #fff;
  border: 0;
  text-align: left;
  padding-left: 25px;
  outline: none;
  font-size:15px;

}

.select-nav .select button .t1 { font-weight:500}
.select-nav .d3 button { font-weight:bold}



.select-nav .select > ul {
  display: none;
  position: absolute;
  top: 100%;
  left: -1px;
  width: 100%;
  border: 1px solid #ddd;
  background-color: #fff;
  box-sizing: content-box;
}

.select-nav .select ul li {
  min-height: 55px;
  line-height: 55px;
  padding-left: 25px;
  border-bottom: 1px solid #ddd;
  
}


.select-nav .select ul li a {
	color:#555;
	display:block;
	font-size:14px
}

.select-nav .select ul li a:hover {
	color:#000
}


.select-nav .select ul ul {
  display:none;
}

.select-nav .select ul li li {
  border-top: 1px solid #ddd;
  border-bottom: 0;

}



.select-nav .select ul li:nth-last-child(1) {
  border-bottom: 0;
}
.select-nav-wrapper {
  position: relative;
  z-index:2;
  background-color:#fff;
  max-width:1400px;
  margin: 0 auto;

}
.select-nav-wrapper:after {
  content: " ";
  visibility: hidden;
  display: block;
  height: 0;
  clear: both;
}
.select-nav-wrapper .home {
  width: 60px;
  height: 70px;
  text-align: center;
  font-size: 30px;
  display: inline-block;
  line-height: 65px;
  border-right:1px solid #ddd;
  float: left;
}
.select-nav-wrapper .link {
  background-color: lightcoral;
  width: 50px;
  height: 50px;
  text-align: center;
  font-size: 30px;
  display: inline-block;
  line-height: 50px;
  float: right;
}
.d2 .t2 {display:none;}
@media screen and (max-width: 1120px) {
  #login-box {
    display:none;
  }
  #login-box2 {
    display:inline-block;
  }
}
@media screen and (max-width: 768px) {
  .select-nav-wrapper .home {
    display: none;
  }
  .select-nav-wrapper .link {
    display: none;
  }
  .select-nav .select.d3 {
    display: none;
  }
  .select-nav {
    width: 100%;
  }
  .select-nav .select {
    width: 50%;
	border-right: 0
  }

  .select-nav .select ul ul {
    display:block;
  }
  .d2 .t2 {display: inline;}
  .d2 .t2 .fa { color: #555; font-weight:bold;}
}
