@import url('fonts.css');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}
/* Webkit 기반 브라우저에서 스크롤바 숨기기 */
/* 스크롤바 전체 */
::-webkit-scrollbar {
    width: 4px; /* 스크롤바 너비 */
    height: 12px; /* 가로 스크롤바 높이 */
}

/* 스크롤바 트랙 */
::-webkit-scrollbar-track {
    background: #f1f1f1; /* 트랙 배경색 */
    border-radius: 10px; /* 모서리 둥글게 */
}

/* 스크롤바 핸들 */
::-webkit-scrollbar-thumb {
    background: #5A7247; /* 핸들 배경색 */
    border-radius: 10px; /* 모서리 둥글게 */
}
a{
    color: inherit; /* 링크 색상 상속 */
    text-decoration: none; /* 링크 밑줄 제거 */
}
header {
    position: absolute; /* fixed → absolute로 변경 */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    padding: 25px 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family : noto_nav;
}

.logo img{
    width:15vw;
    max-width: 150px;
    height: auto;
}


header .container{
    display: flex; /* 플렉스 박스 사용 */
    justify-content: space-between; /* 양쪽 정렬 */
    align-items: center; /* 수직 중앙 정렬 */
    width: calc(100% - 40px); /* 양쪽 20px 여유 공간 */
    margin: auto; /* 중앙 정렬 */
}

header .nav-menu{
    display: flex;
    justify-content: space-between;
}



header .nav-container{
    display:flex;
    width:600px;
    flex-wrap:wrap;
    justify-content: center;
    align-items: center;
    text-transform:uppercase; /* 대문자 변환 */
    cursor:pointer;
    margin-right : 40px;
}

.nav-item {
    width: 220px;
    text-align: center; /* Centers the text within each item */
    
}
header .nav-container ul.nav-menu{
    margin-bottom:0px;
    padding-left:0px;
    display: flex; /* 가로 정렬 */
}

header .nav-container ul.nav-menu li{
    margin-bottom:0px;
    color:#000;
    text-align: center;
    position: relative; /* 서브메뉴 위치 기준 */
}

header .nav-container ul.nav-menu li a{
    box-sizing: border-box;
    display:block;
    transition:.8s ease; /* 호버 효과 */
    text-transform:uppercase; /* 대문자 변환 */
    padding:0px 40px;
}

/*데스크탑 메뉴 스타일*/
@media(min-width:1024px){

    header .nav-container ul.nav-menu li a{
        box-sizing: border-box;
        display:block;
        transition:.8s ease; /* 호버 효과 */
        text-transform:uppercase; /* 대문자 변환 */
        padding: 40px 0px;
    }
    /*서브메뉴 스타일*/
    header .nav-container ul.nav-menu li ul.sub-menu{
        position:absolute; /* 절대 위치 */
        padding-left:0px;
        opacity:0; /* 기본적으로 투명 */
        visibility: hidden; /* 기본적으로 숨김 */
        padding-top:10px;
        z-index: 3; /* 레이어 우선순위 */
        width: 100%
    }

    
    header .nav-container ul.nav-menu li ul.sub-menu li{
        display: block;
        position: relative;
    }
    header .nav-container ul.nav-menu li ul.sub-menu li a{
        padding:10px; /* 서브메뉴 패딩 */
        text-align: center;
    }
    header .nav-container ul.nav-menu:hover li ul.sub-menu{
        visibility:visible;
        opacity:1;
        transform:translateY(0px);
    }
    header .nav-container ul.nav-menu li:hover{
        display:inline-block;
        margin-bottom:0px;
        
    }
    header .nav-container .active {
        position: relative
    }
    header .nav-container .nav-item .sub-menu a {
        font-family: noto_nav;
        color: rgba(0, 0, 0, 0.7); /* Change the text color of sub-menu items */
    }
    header .nav-container .nav-item .sub-menu a:hover {
        font-family: noto_nav;
        color: rgba(34, 85, 51, 1); /* Change the text color of sub-menu items */
    }
    header .nav-container .nav-item:hover:after {
        content: '';
        display: block;
        width: 100%;
        height: 2px;
        background: #000;
        position: absolute;
        left: 0;
        bottom: 0;
    }
    .header-bg {
        background: rgba(255, 255, 255, 0.4); /* Black with 50% transparency */
        width: 100%;
        left: 0;
        z-index: -1;
        position: absolute;
        top: 0;
        transition: height 0.3s ease;
        opacity: 0.9;
        height : 0;
    }

    .header-bg::after {
        content: '';
        display: none;
        width: calc(100% - 40px); /* Adjust width based on padding */
        height: 1px; /* Thickness of the line */
        background-color: #fff; /* Color of the line */
        position: absolute;
        top: 128px; /* Position the line in the middle */
        left: 20px; /* Adjust left position based on padding */
        transform: translateY(-50%); /* Center the line vertically */
    }
    .header-bg.show-line::after {
        display: block; /* Show the line when the class is added */
    }
}


/* Add margin-top to main content to account for fixed header */
main {
    margin-top: 100px;
}
body{
    min-height: 100vh; /* 최소 높이를 뷰포트 높이로 설정 */
    display: flex;
    flex-direction: column;
}
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    margin: 5px 0;
    transition: 0.3s;

}

/* 모바일 메뉴 스타일 */
@media (max-width: 1024px) {
    header {
        padding: 15px 20px;
        position: absolute; /* 모바일에서도 absolute 유지 */
    }

    header .logo {
        position: static;
        transform: none;
        text-align: left;
        margin-left: 10px;
    }

    .hamburger {
        display: block;
    }

    .nav-container {
        position: fixed;
        top: 0;
        width: 100%;
        left: -200%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.80);
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
        transition: 0.5s;
        z-index: 999;
        padding-top: 80px;
        overflow-y: auto;
    }

    .nav-container.active {
        left: 0;
        width: 100%;
        height: 100vh;
    }

    .nav-menu {
        flex-direction: column;
        gap: 15px !important;
    }

    .sub-menu {
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        transition: max-height 0.3s ease-out; /* ease-out으로 부드러운 닫힘 */
        will-change: max-height; /* 하드웨어 가속 활성화 */
    }

    .nav-item.active .sub-menu {
        max-height: 500px; /* 고정 높이 대신 충분한 값 설정 */
        transition-timing-function: ease-in; /* 열릴 때 다른 타이밍 */
    }

    .sub-menu li {
        padding: 8px 0;
        transition: transform 0.3s ease;
        color:white;
    }
    .sub-menu li a{
        color:white;
    }
    .nav-item > a {
        font-size: 20px;
        padding: 0 0;
        display: block;
        color: white;
        position: relative;
        z-index: 1;
    }

    header .nav-container ul.nav-menu > li > a {
        padding: 20px 30px; 
        font-size: 18px;
    }
    header .nav-container ul.nav-menu:hover li ul.sub-menu{
        visibility:visible;
        opacity:1;
        transform:translateY(0px);
    }


    .nav-item {
        transition: all 0.3s ease;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        background:black;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
        background:black;

    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
        background:black;
    }

    .slider-section {
        height: 100vh;
    }

    .slider-btn {
        display: none !important;
    }

    .sub-menu {
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        transition: max-height 0.3s ease, visibility 0.3s ease;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 45px;
    }

    .nav-menu {
        gap: 10px;
    }

    .nav-item > a {
        font-size: 14px;
    }
}

/* Slider Section */
.slider-section {
    position: relative;
    width: 100%;
    height: 100vh;
}

.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1; /* 헤더보다 아래 레이어 */
}

.slider-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100vh; /* 뷰포트 높이 100% 강제 지정 */
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.8;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.arrow {
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(245, 245, 220, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: rgba(245, 245, 220, 1);
}


/* 푸터 스타일 */
.footer {
    font-family: noto_nav;
    background-color: #141414; /* 검정색 배경 */
    color: #ffffff; /* 흰색 글자 */
    padding: 40px 0 20px; /* 위 40px, 좌우 0, 아래 20px 패딩 */
    width: 100%;
}

.footer-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column; /* 세로 배치로 변경 */
    padding: 0 20px;
}

.company-info{
    margin-bottom: 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* 가운데 정렬 */
    text-align: center; /* 텍스트 중앙 정렬 */
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333333;
    font-size: 14px;
    width: 100%;
}

.business-info {
    display: flex;
    flex-wrap: nowrap; /* 줄바꿈 방지 */
    gap: 15px; /* p 태그 사이의 간격 */
    justify-content: center; /* 가로 방향 중앙 정렬 */
    max-width: 800px; /* 최대 너비 설정하여 지나치게 넓어지지 않도록 */
}
.business-info p {
    margin: 5px 0;
    font-size: 14px;
    white-space: nowrap;
}

/* 푸터 로고 스타일 */
.footer-logo {
    margin-bottom: 15px;
}

.footer-logo img {
    max-width: 150px;
    height: auto;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
    }
    
    .company-info{
        width: 100%;
        margin-bottom: 20px;
    }
    .footer-logo {
        text-align: left; /* 왼쪽 정렬로 변경 */
        align-self: flex-start; /* flex 컨테이너 내에서 왼쪽 정렬 */
        margin-left: 0; /* 왼쪽 마진 제거 */
    }
    .business-info {
        justify-content: flex-start; /* 모바일에서는 왼쪽 정렬로 변경 */
        flex-wrap: wrap;
        padding-left: 10px; /* 왼쪽 여백 추가 */
    }

    .copyright p {
        text-align: left;
        margin: 0; /* 기본 마진 제거 */
    }
}