* {margin: 0;    padding: 0;   box-sizing: border-box;}
ol, ul {list-style: none;}
a {text-decoration: none;    color: inherit;    cursor: url('../image/mousepointer.png') 16 16, auto;}
body, html{scrollbar-width: none; cursor: url('../image/mouse.png') 16 16, auto; background: #f6f6f6;   font-family: "Pretendard", sans-serif;}

/* -셋팅 코드- */

header{
    background: #000;
    width: 100%;
    height: 70px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
}

header main{
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    justify-content: space-between;
}

header main .headerTitle{
    display: flex;
    align-items: center;
}

header main .headerTitle img{height: 25px;}

header main .menu_btn{display: none;}

header main .headerMenu{
    display: flex;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translate(-50%);
    list-style: none;
}

header main .headerMenu li{
    color: #808080;
    font-weight: 400;
    font-size: 18px;

    margin-left: 70px;
}

header main .headerMenu li:first-child{
    margin-left: 0;
}

header main .gsdd{
    margin-left: auto;
    display: flex;
    align-items: center;
}

header main .gsdd img{
    height: 22px;
}

/* 현재 페이지 강조(후행 선언 유지) */
header main .headerMenu .category4{
  color: #fff;
}

/* 이 구간에선 햄버거 버튼 숨김 */
.menu-toggle{ display:none; }

.click{
    position: fixed;
    bottom: 50px;
    right: 40px;
}

.click a{
    display: inline-block;
}

.click a img{
    width: 150px;
    height: auto;
}

/* -header- */


main .mainheader{
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    top: 110px;
    margin-bottom: 150px;
}

main .mainheader ul{
    display: flex;
    align-items: center;
    color: #000;
    font-size: 20px;
    font-weight: 400;
    gap: 50px;
    list-style: none;
    padding: 0;
    margin: 0;
    position: fixed;
}

main .mainheader ul li{
    position: relative;
    padding: 5px 0;
}

main .mainheader ul li a{
    color: inherit;
    text-decoration: none;
    display: inline-block;
    padding: 2px 4px;
}

main .mainheader ul li::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #000;
    transition: width 0.3s ease;
}

main .mainheader ul li.active::after{
    width: 100%;
}

main section{
    margin: 0 auto;
    width: 100%;

    display: flex;
}

main section .gsdd{
    display: none;
    justify-content: center;
    position: fixed;
    top: 55%;
    left: 50%;
    transform: translate(-50%,-50%);
}

main section .gsdd.active{
    display: flex;
}

main section div a{
    position: relative;
    display: inline-block;
    overflow: hidden;
    flex-shrink: 0;
}

main section div a>img{
    height: 650px;
}

main section div a .overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 650px;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 0 10px 20px;
    flex: 1;
    text-align: right;
}

main section div a .overlay p{
    font-size: 23px;
    color: #fff;
}

main section div a .overlay img{
    width: 150px;
    margin: 0 25px 5px;
    height: auto;
}

main section .gsdd2021 a .overlay img{margin: 0 10px 5px;}

main section div a:hover .overlay{
    opacity: 1;
}

main section div .text{
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* 텍스트를 위쪽에서부터 배치 */
    color: #000;

    width: 680px;
    height: 650px;

    position: relative;
    bottom: 0;
    right: 0;
    margin-left: 40px;
}

main section div .text .title{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

main section div .text .title p{
    font-size: 25px;
    font-weight: 600;
}

main section div .text>p{
    width: 100%;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    text-align: left;
}

/* -footer- */
footer{
    width: 100%;
    height: 70px;
    background: #808080;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 40px;

    position: fixed;
    bottom: 0;
    left: 0;

    margin-top: 800px;

    transform: translateY(100%);
    transition: transform 1s ease;
}

footer.show{
    transform: translateY(0);
}

footer p{
    color: #fff;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
}

footer .logo .footertitle{
    margin-right: 15px;
}

footer .logo img{height: 40px;}



/* -반응형--------------------- */

/*  햄버거 드롭다운 */

.menu-toggle {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 40px; /* 높이 조금 여유 */
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 0;
  z-index: 110;
  overflow: visible; /* 혹시 모를 클리핑 방지 */
  display: none;
}

.menu-toggle .bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px; /* 가독성↑ */
  margin: 0;
  background: #f6f6f6;
  top: 50%;
  transform: translateY(-50%); /* 기본은 중앙선 */
  transition: transform 0.18s ease, top 0.18s ease, opacity 0.12s ease;
}

/* 세 줄의 정렬 위치(비활성) — 위/중앙/아래 */
.menu-toggle .bar:nth-child(1) {
  top: 10px;
}
.menu-toggle .bar:nth-child(2) {
  top: 50%;
}
.menu-toggle .bar:nth-child(3) {
  top: calc(100% - 10px);
}

/* 활성(X) — 세 줄 모두 중앙으로 모은 뒤 회전 */
.menu-toggle.active .bar:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

header main .menu_btn{
    display: none;
}

@media (max-width: 1500px){
    main section div .text{width: 550px; height: 650px;}
}

@media (max-width: 1200px){
    main section div a>img{height: 600px;}
    main section div a .overlay{height: 600px;}
    main section div a .overlay p{font-size: 20px;}
    main section div a .overlay img{width: 150px; margin: 0 20px 5px;}
    main section div .text{width: 400px; height: 600px;}
    main section div .text .title p{font-size: 20px;}
    main section div .text>p{font-size: 14px;}
}

@media (max-width: 1000px) and (min-width: 801px){
    header{height: 60px;}
    header main .headerMenu {display:flex !important;}
    header main .headerTitle img{height: 20px;}
    header main .headerMenu li{font-size: 15px; margin-left: 40px;}
    header main .gsdd img{height: 17px;}
    header main .mainheader.floating {height: 130px;    padding-bottom: 30px;}
    main section .gsdd{top: 56%;}
    main section div a>img{height: 600px;}
    main section div a .overlay{height: 600px;}
    main section div a .overlay p{font-size: 20px;}
    main section div a .overlay img{width: 150px; margin: 0 20px 5px;}
}

@media (max-width: 900px){
    main section div a>img{height: 500px;}
    main section div .text{height: 500px;}
    main section div a .overlay{display: none;}
    main section div a .overlay img{width: 100px; margin: 0 20px 7px;}
}

@media (max-width: 800px){
  /*드롭다운 관련 내용들*/

    header{height: 60px;}

    header main .headerMenu.is-open {display: block;}

    .edge-nav {display: none;}

    header main{position: relative;}
    
    header main .headerTitle img{height: 20px;}

  /* 기본: 숨김 (햄버거 클릭 시 JS로 열림) */
    header main .headerMenu{
        top: 60px; /* header 높이에 맞게 조정 */
        transform: translateX(0%);
        left: 0%;
        right: 0;
        width: 100%; /* 원하는 폭으로 조절 */
        max-height: auto;
        background: #000;
        flex-direction: column; /* 가로 → 세로 */
        gap: 0;
        z-index: 105;
        text-align: right;
    }

    header main .headerMenu li{display: block; font-size: 15px; margin-left: 40px;}

    header main .headerMenu li:first-child{border-top: none;}

    header main .headerMenu a{
        display: block;
        padding: 10px 16px;
        color: #fff;
    }

    header main .headerMenu a:hover {
        background: #000;
        color: #fff;
    }

  /* 데스크톱 가로 메뉴 숨기기 + 햄버거 표시 + gsdd 숨김 */

    header main .menu-toggle{display: block;}

    header main .gsdd{display: none;}

    header main .mainheader {top: 90px; margin-bottom: 130px;}
    
    header main .mainheader ul {width: 200px;   font-size: 15px;}

    header main .headerTitle img {height: 20px;}

    .click{
        bottom: 40px;
        right: 20px;
    }

    .click a img{
        width: 120px;
        height: auto;
    }


    main section .gsdd{
        flex-direction: column;
        top: 58%;
        left: 53%;
    }

    main section .gsdd2021{
        left: 55%;
    }

    main section .gsdd2021 .text{
        right: 35px;
    }

    main section div a>img{
        height: 500px;
    }

    main section div .text{
        width: 400px;
        margin-left: 0;
        margin-top: 20px;
        right: 20px;
    }
    
    main section div .text>p{
        font-size: 12px;
    }
    
    footer{
        height: 50px;
        padding: 10px;
    }

    footer p{
        font-size: 8px;
        line-height: 1.8;
    }

    footer .logo .footertitle{
        margin-right: 5px;
    }
    
    footer .logo img{height: 20px;}
}

@media (max-width: 700px){
    main .mainheader ul{gap: 30px;}
    main section .gsdd{left: 54%;}
    main section .gsdd2021{left: 56%;}
}

@media (max-width: 500px){
    .click{
        bottom: 40px;
        right: 20px;
    }

    .click a img{
        width: 120px;
        height: auto;
    }

    main .mainheader{
        top: 90px;
        margin-bottom: 130px;
    }
    
    main .mainheader ul{
        gap: 15px;
        font-size: 15px;
    }

    main section .gsdd{
        top: 55%;
    }

    main section .gsdd2021{
        left: 57%;
    }

    main section div a>img{
        height: 500px;
    }

    main section div a .overlay{
        display: none;
    }

    main section div .text{
        width: 390px;
    }
    
    footer{
        height: 50px;
        padding: 10px;
    }

    footer p{
        font-size: 8px;
        line-height: 1.8;
    }

    footer .logo .footertitle{
        margin-right: 5px;
    }
    
    footer .logo img{height: 20px;}
}

@media (max-width: 400px){
    main .mainheader ul{
        gap: 10px;
    }

    main section div a>img{height: 400px;}

    main section .gsdd{
        top: 55%;
        left: 53%;
    }

    main section .gsdd2021{left: 56%;}

    main section div .text{
        width: 300px;
        right: 10px;
    }

    main section .gsdd2021 .text{
        right: 20px;
    }
}

@media (max-width: 360px){

    main .mainheader{
        top: 90px;
    }

    main .mainheader ul{
        font-size: 15px;
    }

    main section .gsdd{
        left: 53%;
    }

    main section div a>img{
        height: 400px;
    }

    main section div .text{
        width: 300px;
        right: 10px;
    }

    main section div.gsdd2021 .text{
        right: 25px;
    }
}

@media (max-width: 800px),(max-height: 800px){
    main section .gsdd{
        left: 56%;
    }

    main section div a>img{
        height: 350px;
    }

    main section div .text{
        width: 300px;
        right: 25px;
    }

    main section div.gsdd2021{
        left: 58%;
    }
    
    main section div.gsdd2021 .text{
        right: 35px;
    }
}

@media (max-height: 700px){
    main section .gsdd{
        left: 65%;
    }
    main section div a>img{
        height: 250px;
    }
    main section div .text{
        width: 300px;
        right: 60px;
    }
    main section div .text .title p{font-size: 18px;}
    main section div.gsdd2021{left: 68%;}
    main section div.gsdd2021 .text{
        right: 65px;
    }
}