@charset "utf-8";
/* ==========================================================================
    layout.css — 헤더/GNB/사이트맵·모바일 드로어/서브비주얼/푸터/플로팅/팝업
    브레이크포인트: 1280 / 1024 / 768 / 560 (common.css 표준 — 다른 값 사용 금지)
    1280 전환값은 common.js(사이트맵 강제닫힘)와 반드시 일치해야 한다.
   ========================================================================== */

:root {
    --green: #7bb52b;
    --green-dk: #6aa021;
    --color-w: #fff;
    --black: #111;
    --gray: #666;
    --line: #e5e5e5;
    --inner: 1600px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* =========================================================
   HEADER
========================================================= */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    color: #fff;
    padding: 0 45px;
    transition: background .3s, color .3s;
}

.inner {
    width: 100%;
    max-width: var(--inner);
    margin: 0 auto;
    padding: 0 40px;
}

address {
    font-style: normal;
}

/* 첫 번째 섹션을 벗어나면 헤더 검정 반투명 배경 (PC) */
@media (min-width: 1025px) {

    #header.scrolled,
    #header.scrolled.dark {
        background: rgba(0, 0, 0, .7);
        color: #fff;
    }

    /* 메뉴 오버 시 하위메뉴 전체 펼침
	   대분류 영역(로고~메뉴 줄)과 하위분류 영역의 배경 불투명도를 다르게 */
    #header::before,
    #header::after {
        content: '';
        position: absolute;
        left: 0;
        width: 100%;
        z-index: -1;
        opacity: 0;
        transition: opacity .3s;
        pointer-events: none;
    }

    #header::before {
        top: 0;
        height: 130px;
        background: rgba(0, 0, 0, .85);
    }

    /* 대분류 영역 */
    #header::after {
        top: 130px;
        bottom: 0;
        background: rgba(0, 0, 0, .7);
    }

    /* 하위분류 영역 */
    #header.menu-open,
    #header.menu-open.dark {
        background: transparent;
        color: #fff;
    }

    #header.menu-open::before,
    #header.menu-open::after {
        opacity: 1;
    }
}

#header .header-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 90px;
}

#header .logo {
    justify-self: center;
}

#header .logo a {
    display: block;
}

#header .logo img {
    display: block;
    height: 30px;
    width: auto;
}

/* 상단 언어 링크 */
.lang-link {
    display: flex;
    align-items: center;
}

.lang-link a {
    display: block;
    padding: 0 20px;
    font-size: 17px;
    font-weight: 500;
    transition: color .2s;
}

.lang-link li:first-child a {
    padding-left: 0;
}

.lang-link a:hover,
.lang-link a.active {
    color: var(--green);
}

#header.dark {
    color: var(--black);
}

.yt-logo .o {
    position: relative;
    display: inline-block;
    color: transparent;
    width: .78em;
    height: .78em;
    border-radius: 50%;
    border: .16em solid var(--green);
    vertical-align: -.02em;
    margin: 0 .02em;
    overflow: hidden;
}

/* gnb */
.gnb {
    margin-top: -20px;
}

.gnb>ul {
    display: flex;
    justify-content: center;
}

.gnb>ul>li {
    position: relative;
}

.gnb>ul>li>a {
    display: block;
    width: 170px;
    line-height: 60px;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
}

.gnb>ul>li:hover>a {
    color: var(--green);
}

.gnb .depth2 {
    max-height: 0;
    overflow: hidden;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: max-height .4s var(--ease), padding .4s var(--ease), opacity .3s, visibility .3s;
}

.gnb .depth2 a {
    display: block;
    padding: 3px 10px;
    font-size: 16px;
    color: var(--color-w);
    white-space: nowrap;
    transition: color .2s;
}

.gnb .depth2 a:hover {
    color: var(--green);
}

#header.menu-open .gnb .depth2 {
    max-height: 300px;
    padding: 20px 0 36px;
    opacity: 1;
    visibility: visible;
}

/* util */
.util {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 40px;
}

.util .util-link {
    font-size: 17px;
    font-weight: 500;
    transition: color .2s;
}

.util .util-link:hover {
    color: var(--green);
}

/* 모바일 헤더 아이콘 (언어 선택 / 쇼핑몰) : PC 숨김 */
.h-lang,
.h-shop {
    display: none;
}

.m-menu-btn {
    display: none;
    width: 28px;
    height: 20px;
    position: relative;
}

.m-menu-btn span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
}

.m-menu-btn span:nth-child(1) {
    top: 0;
}

.m-menu-btn span:nth-child(2) {
    top: 9px;
}

.m-menu-btn span:nth-child(3) {
    top: 18px;
}

/* 모바일 메뉴 : 우측 → 좌측 슬라이드 */
.m-menu-dim {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(0, 0, 0, .55);
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s, visibility .4s;
}

body.m-open .m-menu-dim {
    opacity: 1;
    visibility: visible;
}

.m-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 151;
    display: flex;
    flex-direction: column;
    width: min(86vw, 420px);
    background: #fff;
    color: var(--black);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .45s var(--ease), visibility .45s;
}

body.m-open .m-menu {
    transform: none;
    visibility: visible;
}

body.m-open {
    overflow: hidden;
}

/* 상단 : 로고 + 언어·쇼핑몰 아이콘 + 닫기 */
.m-menu-head {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 20px;
    border-bottom: 1px solid var(--line);
}

/* 로고 : 흰색 로고 이미지를 어두운 색으로 반전 (O 는 초록 유지) */
.m-menu-logo {
    margin-right: auto;
}

.m-menu-logo a:last-child {
    display: none;
}

.m-menu-logo img {
    display: block;
    height: 22px;
    width: auto;
    /*filter: invert(1) hue-rotate(180deg);*/
}

/* 언어 선택 · 쇼핑몰 아이콘 (헤더 아이콘 복사) */
.m-menu-icons {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-right: 20px;
}

.m-menu-close {
    position: relative;
    width: 28px;
    height: 28px;
}

.m-menu-close span {
    position: absolute;
    left: 2px;
    top: 13px;
    width: 24px;
    height: 2px;
    background: var(--black);
    transform: rotate(45deg);
}

.m-menu-close span+span {
    transform: rotate(-45deg);
}

/* 본문 : 좌측 대분류 / 우측 전체 카테고리 */
.m-menu-body {
    flex: 1;
    min-height: 0;
    display: flex;
}

.m-cate {
    flex: none;
    width: 110px;
    overflow-y: auto;
    background: #f4f6f1;
}

.m-cate button {
    position: relative;
    display: block;
    width: 100%;
    padding: 20px 18px;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: #888;
    transition: color .3s, background .3s;
}

.m-cate button::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 0;
    background: var(--green);
    transform: translateY(-50%);
    transition: height .3s var(--ease);
}

.m-cate button.on {
    background: #fff;
    color: var(--green-dk);
    font-weight: 700;
}

.m-cate button.on::before {
    height: 24px;
}

/* 해외지사 · 자회사 */
.m-cate li:not(.m-cate-link)+.m-cate-link {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e3e7dd;
}

.m-cate-link a {
    display: block;
    padding: 12px 18px;
    font-size: 16px;
    font-weight: 500;
    color: #888;
}

.m-all {
    position: relative;
    flex: 1;
    overflow-y: auto;
    padding: 0 20px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.m-group {
    padding: 20px 0 16px;
    border-bottom: 1px solid var(--line);
}

/* 마지막 대분류도 맨 위까지 스크롤되도록 */
.m-group:last-child {
    min-height: 100%;
    border-bottom: 0;
}

/* 좌측 버튼(padding-top 20px · 16px)과 같은 높이에 오도록 */
.m-group-tit {
    display: block;
    padding-bottom: 8px;
    font-size: 16px;
    font-weight: 700;
}

.m-all .depth2 a {
    display: block;
    padding: 9px 0;
    font-size: 15px;
    color: #555;
}

.m-all .depth2 a:active {
    color: var(--green-dk);
}



/* 공통 등장 애니메이션 */
.ani {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.section.active .ani {
    opacity: 1;
    transform: none;
}



@media (max-width: 1024px) {

    /* 모바일 헤더 : 기본 투명, 스크롤 시·메뉴 열림 시 반투명 블랙 */
    #header,
    #header.dark {
        padding: 0 20px;
        color: #fff;
    }

    #header.scrolled {
        background: rgba(0, 0, 0, .85);
    }

    #header .header-top {
        display: flex;
        justify-content: space-between;
        height: 70px;
    }

    #header .logo img {
        height: 24px;
    }

    .lang-link {
        display: none;
    }

    .gnb {
        display: none;
    }

    .m-menu-btn {
        display: block;
    }

    .util {
        gap: 20px;
    }

    .util .util-link {
        display: none;
    }

    /* 헤더 아이콘 : 언어 선택 / 쇼핑몰 */
    .h-lang {
        position: relative;
        display: block;
    }

    .h-icon {
        display: block;
        width: 24px;
        height: 24px;
    }

    .h-icon svg {
        display: block;
        width: 100%;
        height: 100%;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.6;
        stroke-linejoin: round;
    }

    .h-lang-list {
        position: absolute;
        top: calc(100% + 14px);
        left: 50%;
        z-index: 5;
        min-width: 76px;
        padding: 6px 0;
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
        opacity: 0;
        visibility: hidden;
        transform: translate(-50%, -6px);
        transition: opacity .25s, transform .25s var(--ease), visibility .25s;
    }

    .h-lang.open .h-lang-list {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 0);
    }

    .h-lang-list a {
        display: block;
        padding: 8px 0;
        text-align: center;
        font-size: 14px;
        font-weight: 600;
        color: var(--black);
    }

    .h-lang-list a:active,
    .h-lang-list a.active {
        color: var(--green-dk);
    }

    #footer .inner {
        flex-direction: column;
        gap: 40px;
    }

    .fp-responsive .section {
        height: auto !important;
        min-height: 0;
    }

    .fp-responsive .fp-tableCell {
        height: auto !important;
        display: block;
    }
}



/* =========================================================
   FOOTER
========================================================= */
#footer {
    background: #1d1d1d;
    color: #999;
    padding: 90px 0 80px;
}

#footer .inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1400px;
}

/* 푸터 로고 이미지를 흑백으로 */
.f-logo {
    margin-bottom: 30px;
    height: 30px;
    width: auto;
    filter: grayscale(0.6);
}

#footer address {
    font-size: 18px;
    line-height: 1.9;
}

#footer .copy {
    margin-top: 40px;
    font-size: 15px;
    color: #666;
}

.f-link {
    display: flex;
    gap: 30px;
}

.f-link a {
    font-size: 14px;
    color: #ddd;
    font-weight: 500;
}

.f-link a:hover {
    color: var(--green);
}

@media (max-width: 640px) {
    #footer address {
        font-size: 14px;
        line-height: 1.9;
    }
}