@charset "utf-8";

/* ============================================================================
   layout.css - 사이트 레이아웃
   헤더 / 푸터 / 서브 비주얼(.sv) / 서브 2차메뉴(.sm)
   ========================================================================= */

/* header */
#w_header {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   z-index: 1000;
   height: 80px;
   background-color: transparent;
   overflow: hidden;
   transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 헤더 항상 고정 : 아래로 스크롤 시 숨기던 .up 규칙은 제거.
   (되돌리려면 아래 주석을 풀고 script.js 의 .up 토글도 복원)
#w_header.up { top: -80px; } */

#w_header.down,
#w_header.fix {
   background-color: rgba(53, 113, 64, 0.8);
   border-bottom: 1px solid #357140;
   border-bottom: 1px solid rgba(255, 255, 255, 0.2);
   backdrop-filter: blur(10px);
}

#w_header.down {
   height: 300px;
}

#w_header h1 img {
   height: 40px;
   width: auto;
   transition: 0.3s;
}

#w_header.down h1 img,
#w_header.fix h1 img {
   filter: brightness(0) invert(1);
}
#w_header .language {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   border-radius: 2rem;
   padding: 0.4rem 1rem 0.4rem 1.5rem;
   color: #fff;
   font-family: var(--fs_point);
   transition: all 0.3s;
   background: #357140;
   font-size: 0.875rem !important;
   font-weight: 500;
   font-variation-settings: 'opsz' 24, 'wght' 300, 'FILL' 0, 'GRAD' 0;
}
#w_header .language:hover,
#w_header .language:active {
   background: var(--txt-point02);
}






#w_header #w_gnb>li {
   height: 100%;
   display: flex;
   flex-direction: column;
   justify-content: flex-start;
   margin: 0 2.5rem;
   position: relative;
}

#w_header #w_gnb>li>a {
   height: 80px;
   display: flex;
   align-items: center;
   font-size: 16px;
   font-weight: 500;
   color: #fff;
   text-transform: uppercase;
}

/* 외부 링크(Store) 아이콘은 모바일 햄버거 메뉴에서만 보인다
   (푸터는 script.js 가 #w_gnb 를 복제해 쓰므로 함께 숨긴다) */
#w_gnb>li.ext .material-symbols-outlined {
   display: none;
}

#w_header #w_gnb ul {
   position: absolute;
   opacity: 0;
   visibility: hidden;
   transform: translateY(-10px);
   transition: 0.3s 0.1s;
   padding-top: 10px;
   top: 60px;
}

#w_header.down #w_gnb ul {
   opacity: 1;
   visibility: visible;
   transform: translateY(0);
}

#w_header #w_gnb ul li a {
   display: block;
   padding: 8px 0;
   font-size: 14px;
   color: rgba(255, 255, 255, 0.7);
   transition: 0.2s;
}

#w_header #w_gnb ul li a:hover,
#w_header #w_gnb ul li.on a {
   color: #fff;
   text-decoration: underline;
}

a.contact {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   border-radius: 30px;
   padding: 8px 30px;
   color: #fff;
   font-size: 14px;
   transition: all 0.3s;
}

#w_header.down a.contact {
   background-color: #fff;
   border-color: #fff;
   color: #357140;
   font-weight: 700;
}

/* footer */
#w_footer {
   background: #000;
   color: #666;
}

/* 푸터 안쪽 컨테이너.
   #w_footer #w_gnb (left:450px) 와 .copy (right:0; bottom:0) 가 position:absolute 라
   기준이 되는 상자가 필요하다. 예전에는 .wrap 이 그 역할을 했다. */
#w_footer .footer_inner {
   position: relative;
   max-width: 1400px;
   margin: 0 auto;
}

#w_footer address {
   font-style: normal;
}

#w_footer address strong {
   display: block;
}

#w_footer #w_gnb {
   position: absolute;
   top: 0;
   left: 450px;
   align-items: start;
}

#w_footer #w_gnb>li {
   margin-right: 70px;
}

#w_footer #w_gnb>li>a {
   font: 18px ptb;
   color: #fff;
}

#w_footer #w_gnb ul {
   position: absolute;
   line-height: 2;
   font: 16px/2 ptsb;
   padding-top: 14px;
}

#w_footer .copy {
   position: absolute;
   right: 0;
   bottom: 0;
}

/* 하위메뉴를 흐름 안에 두어 칸 너비가 가장 긴 메뉴명에 맞춰지게 한다 (국문·영문 공통) */
#w_footer #w_gnb>li {
   margin-right: 50px;
}

#w_footer #w_gnb ul {
   position: static;
   white-space: nowrap;
}

/* PC 푸터 배치 (국문·영문 공통) : 메뉴와 Copyright 를 absolute 로 띄우지 않고 흐름 안에 둔다.
   - 회사정보(.footer_info) 왼쪽 / 메뉴(#w_gnb) 오른쪽, 푸터 높이는 둘 중 긴 쪽에 맞춰진다.
   - Copyright 는 그 아래 줄 오른쪽 → 메뉴가 길어져도 겹치지 않는다.
   - 좌우 여백 40px 로 화면 끝에 붙지 않게 한다. */
@media (min-width: 992px) {
   #w_footer .footer_inner {
      padding: 0 40px;
   }

   #w_footer address {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 40px;
   }

   #w_footer .footer_info {
      flex-shrink: 0;
   }

   #w_footer #w_gnb {
      position: static;
      flex-shrink: 0;
   }

   #w_footer #w_gnb>li:last-child {
      margin-right: 0;
   }

   #w_footer .copy {
      position: static;
      margin-top: 40px;
      text-align: right;
   }
}

/* 좁은 PC(992~1199px) : 한 줄에 들어가도록 좌우 여백·칸 간격을 줄인다 */
@media (min-width: 992px) and (max-width: 1199px) {
   #w_footer .footer_inner {
      padding: 0 20px;
   }

   #w_footer address {
      gap: 30px;
   }

   #w_footer #w_gnb>li {
      margin-right: 30px;
   }

   #w_footer #w_gnb>li:last-child {
      margin-right: 0;
   }
}

/* 부트스트랩 a:hover(#0056b3) 를 포인트 컬러로 덮어씀.
   푸터 메뉴와 Tel / Email 링크 모두에 적용된다. */
#w_footer a:hover {
   color: var(--txt-point);
}

/* sub layout */
.sv {
   height: 460px;
}

#sv1 {
   background: url(/images/bg_sub1.png) no-repeat center/cover;
}

#sv2 {
   background: url(/images/bg_sub2.png) no-repeat center/cover;
}

#sv3 {
   background: url(/images/bg_sub3.png) no-repeat center/cover;
}

#sv4 {
   background: url(/images/bg_sub4.png) no-repeat center/cover;
}

#sv5 {
   background: url(/images/bg_sub5.png) no-repeat center/cover;
}

#sv6 {
   background: url(/images/bg_sub6.png) no-repeat center/cover;
}

/* 서브 2차메뉴 : 고정 헤더(80px) 바로 아래에 붙어 스크롤을 따라다닌다.
   z-index 는 헤더(1000)보다 낮고 본문보다 높게 둔다. */
.sm {
   position: sticky;
   top: 80px;
   z-index: 900;
   background: #000;
}

.sm ul {
   display: flex;
   align-items: center;
   justify-content: center;
}

.sm ul li {
   background: #000;
}

.sm ul li a {
   padding: 0 50px;
   height: 60px;
   display: flex;
   align-items: center;
   justify-content: center;
}

/* 부트스트랩 a:hover(#0056b3) 를 브랜드 녹색으로 덮어씀 */
.sm ul li a:hover {
   color: #357140;
}

.sm ul li.select a {
   color: #357140;
   font-weight: 700;
}

.pic>.wrap>img {
   margin-left: -260px;
}

/* 모바일 (991px 이하) : .mob 은 min-width:992px 에서 숨으므로 경계를 991 로 맞춘다 */
@media (max-width:991px) {

   /* Header */
   #w_header {
      height: 60px;
   }

   #w_header.down {
      height: 100vh;
   }

   /* header.php 의 안쪽 상자. 예전에는 .wrap 이었다. */
   #w_header .header_inner {
      display: block;
   }

   #w_header h1 {
      padding-top: 15px;
   }

   #w_header h1 img {
      height: 30px;
   }

   /* 햄버거 메뉴 : 1차메뉴 좌측정렬, 1차메뉴를 누르면 2차메뉴 펼침(script.js).
      메뉴가 화면보다 길어지면 메뉴 영역만 세로 스크롤한다.
      (로고 / X / ENG 버튼은 제자리에 고정) */
   #w_header #w_gnb {
      position: static;
      width: 100%;
      display: block;
      text-align: left;
      margin: 30px 0 0;
      max-height: calc(100vh - 100px);
      overflow-y: auto;
   }

   #w_header #w_gnb>li {
      display: block;
      border-bottom: 1px solid rgba(255, 255, 255, 0.3);
      margin: 0;
   }

   #w_header #w_gnb>li:last-child {
      border-bottom: none;
   }

   #w_header #w_gnb>li>a {
      display: block;
      line-height: 50px;
      height: auto;
      font-size: 18px;
   }

   /* 2차메뉴가 있는 1차메뉴 오른쪽 끝 + / - 표시 (.open 이면 -) */
   #w_header #w_gnb>li.has-sub>a {
      position: relative;
      padding-right: 30px;
   }

   #w_header #w_gnb>li.has-sub>a::before,
   #w_header #w_gnb>li.has-sub>a::after {
      content: '';
      position: absolute;
      right: 4px;
      top: 50%;
      width: 14px;
      height: 1px;
      background: #fff;
      transition: transform 0.3s;
   }

   #w_header #w_gnb>li.has-sub>a::after {
      transform: rotate(90deg);
   }

   #w_header #w_gnb>li.open>a::after {
      transform: rotate(0);
   }

   /* 외부 링크(Store) : + 자리에 새 창 아이콘 */
   #w_header #w_gnb>li.ext>a {
      position: relative;
      padding-right: 30px;
   }

   #w_header #w_gnb>li.ext .material-symbols-outlined {
      display: block;
      position: absolute;
      right: 0;
      top: 50%;
      transform: translateY(-50%);
      font-size: 20px;
      line-height: 1;
      font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 20;
   }

   #w_header #w_gnb ul {
      position: static;
      padding: 0 0 12px 2px;
      transform: none;
      transition: none;
      display: none;
   }

   #w_header #w_gnb>li.open>ul {
      display: block;
   }

   #w_header #w_gnb ul li a {
      padding: 0;
      line-height: 34px;
      font-size: 15px;
   }

   /* ENG 버튼 : X(햄버거) 버튼 왼쪽에 붙이고, 메뉴가 열렸을 때만 보인다 */
   #w_header .language {
      position: absolute;
      top: 30px;
      right: 55px;
      transform: translateY(-50%);
   }

   #w_header:not(.down) .language {
      display: none;
   }

   #w_header a.contact {
      position: static;
      margin: 0 auto;
      display: block;
      width: 70%;
      text-align: center;
      line-height: 44px;
      padding: 0;
   }

   #nav_btn {
      position: absolute;
      right: 15px;
      top: 15px;
      margin-left: 0;
   }

   #nav_btn .line {
      width: 24px;
      height: 2px;
      background-color: #fff;
      display: block;
      margin: 6px auto;
      transition: all 0.3s ease-in-out;
   }

   #nav_btn:hover {
      cursor: pointer;
   }

   #nav_btn.act .line:nth-child(2) {
      opacity: 0;
   }

   #nav_btn.act .line:nth-child(1) {
      transform: translateY(8px) rotate(45deg);
   }

   #nav_btn.act .line:nth-child(3) {
      transform: translateY(-8px) rotate(-45deg);
   }

   /* Footer */
   #w_footer {
      padding: 40px 0;
      text-align: center;
   }

   #w_footer .footer_inner {
      width: 94%;          /* 예전 .wrap 의 모바일 폭과 동일 */
   }

   #w_footer address img {
      margin: 0 auto;
   }

   #w_footer #w_gnb {
      display: none;
   }

   /* Simplify footer for mobile */
   #w_footer .copy {
      position: static;
      margin-top: 20px;
      font-size: 14px;
   }

   /* sub layout */
   .sv {
      height: 200px;
      padding-top: 40px;
   }

   /* 모바일 헤더는 60px 이므로 그 아래에 붙인다.
      sticky 도 위치 지정 요소라 .sm i 의 absolute 기준이 그대로 유지된다. */
   .sm {
      position: sticky;
      top: 60px;
   }

   .sm ul {
      display: none;
   }

   .sm select {
      width: 100%;
      height: 44px;
      border: none;
      padding: 0 3%;
      background: #000;
      color: #fff;
      font-size: 16px;
      font-weight: 500;
      appearance: none;
   }

   .sm i {
      position: absolute;
      right: 3%;
      top: 50%;
      transform: translateY(-50%);
      z-index: 1;
   }
}