.m_only{
    display: none;
}

header{
    display: flex;
    width: 100%;
    height: 126px;
    position: fixed;
    top: 0;
    z-index: 100;
    background: white;
    border-bottom: 1px solid #ededed;
}
header .header-inner{
    width: 100%;
    display: flex;
    align-items: center;
}
header .header-inner a{
  color: inherit;
  font-size: 32px;
  text-decoration: inherit;
}
header .header-inner .logo-area{
    padding-left: 165px;
}
header .gnb{
    display: flex;
    margin-left: 220px;
    gap: 60px;
}
header .gnb li a{
    height: 126px;
    display: flex;
    align-items: center;
    transition: .2s;
}
header .gnb li a:hover{
    color: #E60012;
    font-weight: bold;
    
    
}
header .gnb li a.active{
    position: relative;
    color: #E60012;
    font-weight: bold;
    
}
header .gnb li a.active::after{
    content: "";
    position: absolute;
    left:0;
    width: 100%;
    bottom: 0;
    height: 5px;
    background-color: #E60012;
}

header .action-area{
    display: flex;
    flex: 1;
    justify-content: flex-end;
    margin-right: 110px;
}
header .action-area a{
    font-weight: bold;
    color: #0068B7;
}
header .gnb .has-dropdown .dropdown{
    display: none;
}
header .action-area a.active{
    background-color: #0068B7;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #fff;
    font-size: 32px;
    width: 152px;
    height: 125px;
}

main{
    padding-top:126px;
}
main > section{
    height: 100%;
}
/* 드롭다운 기본 스타일 */
header .gnb li.has-dropdown {
  position: relative; /* 드롭다운 absolute 기준 */
}

header .gnb li.has-dropdown .dropdown {
  display: none;
  position: absolute;
  top: 126px; /* 헤더 높이만큼 아래 */
  left: 0;
  background: #fff;
  min-width: 220px;
  border-top: 3px solid #E60012;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 200;
}

/* 드롭다운 항목 */
header .gnb li.has-dropdown .dropdown li a {
  display: block;
  padding: 14px 20px;
  font-size: 18px;
  color: #333;
  height: auto;
  transition: background 0.2s, color 0.2s;
}
/* 
header .gnb li.has-dropdown .dropdown li a:hover {
  background: #f5f5f5;
  color: #E60012;
  font-weight: bold;
}

header .gnb li.has-dropdown:hover > .dropdown {
    display: block;
    } 
    */
    
    .header-inner:hover + .header-details{
        display: flex;
    }
    .header-details:hover{
        display: flex;
    }
    .header-details{
        display: none;
        position: absolute;
        top:126px;
        background-color: white;
        width: 100%;
        
    }
    .header-details ul{
        display: flex;
        flex-direction: column;
        width: 16.6666666667%;
        padding: 48px;
        padding-right: 0;
        box-sizing: border-box;
        border-right: 1px solid #EDEDED;
    }

    .header-details ul:first-child{
        display: none;
    }
    .header-details ul li{
        width: fit-content;
        font-size: 28px;
        line-height: 60px;
        position: relative;
        display: inline-block;          /* 여러 줄 깨짐 대비 */
        text-decoration: none;
        color: inherit;
    }


    .header-details ul li a{
        color: #121212;
    }
    .header-details ul li a,
    .header-details ul li a:link,
    .header-details ul li a:visited,
    .header-details ul li a:active,
    .header-details ul li a:hover{
        text-decoration: none;
        cursor: pointer;
    }

    .header-details ul li a::after{
        content: "";
        position: absolute;
        left: 0;
        right: 0;                      
        bottom: 8px;                   
        height: 2px;                   
        background: #d0021b;          
        transform: scaleX(0);
        transform-origin: left center; 
        transition: transform .28s ease;
    }

    .header-details ul li:hover a,
    .header-details ul li:focus-visible a{
        color: #E60012;
    }
    
    
    .header-details ul li:hover a::after,
    .header-details ul li:focus-visible a::after{
        transform: scaleX(1);
    }

    .header-details ul li:first-child{
        font-size: 32px;
        font-weight: bold;
        margin-bottom: 64px;
    }
    .header-details ul:hover li:first-child a{
        color: #E60012;
    }
    .header-details ul:last-child{
        border-right: 0;
    }


    header .hamberger{
        display: none;
    }


    


@media screen and (max-width: 1920px){
header{
    display: flex;
    width: 100%;
    height: 6.5625vw;
    position: fixed;
    top: 0;
    z-index: 100;
    background: white;
    border-bottom: 0.0521vw solid #ededed;
}
header .header-inner{
    width: 100%;
    display: flex;
    align-items: center;
}
header .header-inner a{
  color: inherit;
  font-size: 1.6667vw;
  text-decoration: inherit;
}
header .header-inner .logo-area{
    padding-left: 8.5938vw;
}
header .header-inner .logo img{
    max-height: 6.5625vw;
}
header .gnb{
    display: flex;
    margin-left: 11.4583vw;
    gap: 3.1250vw;
}
header .gnb li a{
    height: 6.5625vw;
    display: flex;
    align-items: center;
    transition: .2s;
}
header .gnb li a:hover{
    color: #E60012;
    font-weight: bold;
    
    
}
header .gnb li a.active{
    position: relative;
    color: #E60012;
    font-weight: bold;
    
}
header .gnb li a.active::after{
    content: "";
    position: absolute;
    left:0;
    width: 100%;
    bottom: 0;
    height: 0.2604vw;
    background-color: #E60012;
}

header .action-area{
    display: flex;
    flex: 1;
    justify-content: flex-end;
    margin-right: 5.7292vw;
    
}
header .action-area a{
    font-weight: bold;
    color: #0068B7;
}
header .gnb .has-dropdown .dropdown{
    display: none;
}
header .action-area a.active{
    background-color: #0068B7;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #fff;
    font-size: 1.6667vw;
    width: 7.9167vw;
    height: 6.5104vw;
}

main{
    padding-top:6.5625vw;
}
main > section{
    height: 100%;
}
/* 드롭다운 기본 스타일 */
header .gnb li.has-dropdown {
  position: relative; /* 드롭다운 absolute 기준 */
}

header .gnb li.has-dropdown .dropdown {
  display: none;
  position: absolute;
  top: 6.5625vw; /* 헤더 높이만큼 아래 */
  left: 0;
  background: #fff;
  min-width: 11.4583vw;
  border-top: 0.1563vw solid #E60012;
  box-shadow: 0 0.2083vw 0.6250vw rgba(0,0,0,0.1);
  z-index: 200;
}

/* 드롭다운 항목 */
header .gnb li.has-dropdown .dropdown li a {
  display: block;
  padding: 0.7292vw 1.0417vw;
  font-size: 0.9375vw;
  color: #333;
  height: auto;
  transition: background 0.2s, color 0.2s;
}
/* 
header .gnb li.has-dropdown .dropdown li a:hover {
  background: #f5f5f5;
  color: #E60012;
  font-weight: bold;
}

header .gnb li.has-dropdown:hover > .dropdown {
    display: block;
    } 
    */
    
    .header-inner:hover + .header-details{
        display: flex;
    }
    .header-details:hover{
        display: flex;
    }
    .header-details{
        display: none;
        position: absolute;
        top:6.5625vw;
        background-color: white;
        width: 100%;
        
    }
    .header-details ul{
        display: flex;
        flex-direction: column;
        width: 16.6666666667%;
        padding: 2.5000vw;
        padding-right: 0;
        box-sizing: border-box;
        border-right: 0.0521vw solid #EDEDED;
    }
    .header-details ul:first-child{
        display: none;
    }
    .header-details ul li{
        width: fit-content;
        font-size: 1.4583vw;
        line-height: 3.1250vw;
        position: relative;
        display: inline-block;          /* 여러 줄 깨짐 대비 */
        text-decoration: none;
        color: inherit;
    }


    .header-details ul li a{
        color: #121212;
    }
    .header-details ul li a,
    .header-details ul li a:link,
    .header-details ul li a:visited,
    .header-details ul li a:active,
    .header-details ul li a:hover{
        text-decoration: none;
    }

    .header-details ul li a::after{
        content: "";
        position: absolute;
        left: 0;
        right: 0;                      
        bottom: 0.4167vw;                   
        height: 0.1042vw;                   
        background: #d0021b;          
        transform: scaleX(0);
        transform-origin: left center; 
        transition: transform .28s ease;
    }

    .header-details ul li:hover a,
    .header-details ul li:focus-visible a{
        color: #E60012;
    }
    
    
    .header-details ul li:hover a::after,
    .header-details ul li:focus-visible a::after{
        transform: scaleX(1);
    }

    .header-details ul li:first-child{
        font-size: 1.6667vw;
        font-weight: bold;
        margin-bottom: 3.3333vw;
    }
    .header-details ul:hover li:first-child a{
        color: #E60012;
    }
    .header-details ul:last-child{
        border-right: 0;
    }

}

@media screen and (max-width: 768px){
    .pc_only{
        display: none;
    }
    .m_only{
        display: block;
    }
    header{
        height: 11.6667vw;
    }

    main{
        padding-top:11.6667vw;
    }
    header .nav-area,
    header .action-area a,
    header .action-area a.active
    {
        display: none;
    }
    header .hamberger{
        width: 4.5370vw;
        display: block;
    }
    header .hamberger img{
        width: 4.5370vw;
        height:auto;
    }
    header .action-area{
        margin-right: 6vw;
    }

    .header-details,
    .header-details:hover,
    .header-inner:hover + .header-details{
        
        display: none;
        left: 0;
        top: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(18, 18, 18, 0.85);
        flex-direction: column;
        align-items: flex-end;
    
    }
    .header-details:hover{
        
        display: none;
        left: 0;
        top: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(18, 18, 18, 0.85);
        flex-direction: column;
        align-items: flex-end;
    
    }
    .header-details.active{
        display: flex !important;
    }

    .header-details ul{
        background-color: white;
        width: 86.6667vw;
        border-bottom: 1px solid #EDEDED;
    }
    .header-details ul li {
        width: 100%;
    }
    .header-details ul li:first-child{
        margin-bottom: 0;
    }
    .header-details ul li a{
        font-size: 2.9630vw;
    }
    .header-details ul li.accordion-title a{
        font-size: 3.7037vw;
        
    }

    .header-details ul li:hover a::after, .header-details ul li:focus-visible a::after{
        display: none;
    }

    .header-details.active::after{
        content: "";
        display: block;
        width: 86.6667vw;
        height: 100vh;
        top: 0;
        right: 0;
        background-color: white;
    }
    .header-details ul:first-child{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
    .header-details ul:first-child .logo,
    .header-details ul:first-child .logo img{
        height: 7.2222vw;
    }
    
    .header-details .close{
        width: 6.3333vw;
        height: 6.3333vw;
        margin-right: 4vw;
        

    }


    
}

@media (max-width: 768px) {
  .accordion-menu li:not(.accordion-title) {
    display: none;
  }
  
  .accordion-menu.active li:not(.accordion-title) {
    display: block;
    margin-top: 4vw;
  }
  
  .accordion-title {
    cursor: pointer;
    position: relative;
  }
  
  .accordion-title::after {
      content: '';
      position: absolute;
      right: 4vw;
      width: 2.9630vw;
      height: 1.4815vw;
      top: 1.4815vw;
      
      background-image: url('../images/arrow_up.png');
      background-size: contain;
      background-repeat: no-repeat;
      background-position: center;
      transform: rotate(180deg);
      transition: transform 0.3s;
    }
    .accordion-menu:nth-child(7) .accordion-title::after,
    .accordion-menu:nth-child(8) .accordion-title::after{
        content: none;
    }

  .accordion-menu .accordion-title a{
      color: #121212 !important;
    
  }
  .accordion-menu.active .accordion-title a{
    color: #E60012 !important;
  }
  
  .accordion-menu.active .accordion-title::after {
    transform: rotate(0deg);
  }
}



.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s, visibility 0.3s;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

/* PC - 고정 px */
.spinner {
  width: 80px;
  height: 80px;
  animation: rotate 2s linear infinite;
}

.spinner .path {
  stroke: #0068B7;
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

/* 모바일 (768px 기준) - vw */
@media (max-width: 768px) {
  .spinner {
    width: 10.4167vw; /* 80px / 768px * 100 */
    height: 10.4167vw;
  }
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}