* {
  box-sizing: border-box;
}

:root {
  --main-color: #0f172a;
}

/* =========================================
   HEADER (PC 기본 스타일 - 알약 형태)
   ========================================= */

.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
   position:relative;
}

.logo{
    position:absolute;
    left:-248px;
    top:70%;
    transform:translateY(-50%);
    width:180px;
    height:53px;
    margin:0;
    z-index:100;
    overflow:hidden;
}

.logo a{
    display:block;
    width:100%;
    height:100%;
}

.logo img{
    display:block;
    width:100%;
    height:auto;
}


.gnb {
  position: relative;
  background-color: #ffffff;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 15px 5px 40px;
  margin-top: 5%;
  width: 100%;
  height: 70px;
}

/* 메인 메뉴 리스트 */
.gnb-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
  align-items: center;
}

.gnb-item {
  width: 150px;
  text-align: center;
  position: relative;
}

.gnb-item > a {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #333d4b;
  text-decoration: none;
  padding: 20px 0;
}

.header-btn .btn-inquiry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 48px;
  border-radius: 100px;
  background: linear-gradient(90deg, #86efac, #4ade80);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: 0.3s;
}

.header-btn .btn-inquiry:hover {
  transform: translateY(-2px);
}

.language-selector {
  position: relative;
  flex: 0 0 auto;
}

.language-selector--desktop {
  display: block;
  margin-left: auto;
  padding-right: 16px;
  border-right: 1px solid #e5e7eb;
}

.gnb > .header-btn {
  margin-left: 12px;
}

.language-selector--mobile {
  display: none;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 60px;
  height: 44px;
  padding: 0 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #111827;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  outline: none;
  cursor: pointer;
}

.language-toggle:hover,
.language-selector.is-open .language-toggle {
  background: #f8fafc;
}

.language-toggle:focus-visible {
  outline: 2px solid #4ade80;
  outline-offset: 2px;
}

.language-chevron {
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.language-selector.is-open .language-chevron {
  margin-top: 3px;
  transform: rotate(225deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 84px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid #eef0f4;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 3100;
}

.language-selector.is-open .language-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #374151;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.language-option:hover,
.language-option:focus-visible,
.language-option.is-current {
  background: #ecfdf5;
  color: #16a34a;
  outline: none;
}


/* =========================================
   SUB MENU (PC 버전 드롭다운 스타일)
   ========================================= */


.sub-menu {
  position: absolute;
  top: 74px;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border-radius: 24px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  z-index: 999;
}

/* 개별 서브메뉴 링크 */
.sub-menu > a {
  display: block;
  font-size: 14px;
  color: #666;
  text-decoration: none;
  text-align: center;
  padding: 8px 0;
  width: 100%;
  transition: color 0.2s;
}

.sub-menu > a:hover {
  color: #5ce69e;
  font-weight: 700;
}

.gnb-item:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}


/* =========================
   HAMBURGER (기본 숨김)
   ========================= */

.menu-toggle {
  display: none;
  width: 54px;
  height: 54px;
  border: none;
  background: #fff;
  border-radius: 50%;
  position: fixed;
  top: 20px;
  right: 20px;
  cursor: pointer;
  z-index: 3000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding: 0;
}

.menu-toggle span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 2px;
  background: #111;
  border-radius: 10px;
  transition: 0.35s ease;
  transform-origin: center;
}

.menu-toggle span:nth-child(1) { transform: translate(-50%, -7px); }
.menu-toggle span:nth-child(2) { transform: translate(-50%, 0); }
.menu-toggle span:nth-child(3) { transform: translate(-50%, 7px); }

.menu-toggle.active span:nth-child(1) { transform: translate(-50%, 0) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translate(-50%, 0) rotate(-45deg); }



/* =========================
   MAIN VISUAL & CONTENTS
   ========================= */

.main-visual {
  position: relative;
}

.main-visual__inner { position: relative; }

/* 브라우저 축소 시 메인 비주얼도 콘텐츠와 같은 기준 폭으로 축소 */
.bak-img img {
  width: 100%;
/*  min-height: 100vh;*/
  object-fit: cover;
}

@media (min-width: 1921px) {
  .logo { left: -208px; }
}

.hero-text-section {
  position: absolute;
  top: 58%;
  left: 7%;
  transform: translateY(-50%);
  width: 86%;
  z-index: 10;
}

.hero-content {
  max-width: 850px;
}

.hero-content h1 {
  margin: 0;
  font-size: 96px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -4px;
  color: #0b1640;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.hero-content h1 span {
  color: #6d8dff;
}

.desc {
  margin-top: 34px;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.5;
  color: #1c2648;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.sub-desc {
  margin-top: 18px;
  font-size: 21px;
  line-height: 1.8;
  color: #5c678a;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.hero-btns {
  display: flex;
  gap: 18px;
  margin-top: 48px;
}

.btn {
  height: 62px;
  padding: 0 34px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  transition: 0.3s;
}

.btn.primary {
  background: linear-gradient(135deg, #5f78ff, #6a8dff);
  color: #fff;
  box-shadow: 0 14px 40px rgba(93, 120, 255, 0.25);
}

.btn.primary:hover {
  transform: translateY(-3px);
}

.btn.outline {
  border: 1.5px solid #8ea6ff;
  background: #fff;
  color: #5f78ff;
}

.info-box {
  margin-top: 40px;
  width: 100%;
  max-width: 860px;
  padding: 30px 38px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 10px 40px rgba(148, 167, 255, 0.08);
}

.info-item {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.icon {
  font-size: 28px;
  flex-shrink: 0;
}

.info-item strong {
  display: block;
  font-size: 18px;
  color: #243156;
}

.info-item span {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  color: #7d86a8;
}

.divider {
  width: 1px;
  height: 44px;
  background: #dde4ff;
}

.menu-panel {
  padding: 40px 20px;
}

.menu-panel__content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.menu-section {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.68));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 14px 50px rgba(124, 146, 255, 0.08);
}

.menu-section::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(170, 196, 255, 0.72) 25%, rgba(123, 146, 255, 0.92) 55%, rgba(212, 225, 255, 0.58) 78%, rgba(255, 255, 255, 0.88) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  pointer-events: none;
}

.menu-section__header {
  text-align: center;
  margin-bottom: 40px;
}

.menu-section__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 4px;
}



.menu-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.menu-item img {
  width: 66px;
  margin-bottom: 14px;
}

.menu-item p {
  margin: 0;
  font-size: 16px;
  color: #000;
  text-align: center;
}

.footer {
  background: var(--main-color);
  color: #fff;
}

.footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 20px;
}

.footer__info-box {
  gap: 20px;
}

.footer_img_s {
  width: 120px;
}

.footer__info-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__info-item {
  margin-bottom: 8px;
}

.footer__copyright {
  margin-top: 20px;
  font-size: 13px;
}


/* =========================
   TABLET RESPONSIVE
   ========================= */

@media (max-width: 1600px){
.gnb{width:85%;}
.logo{
  left:-100px;
  width:140px;
  height:41px;
}
}

@media (min-width: 1301px) {
  .gnb {
    width: min(100%, 1020px);
    transform: none;
  }
}

@media (max-width: 1414px){
.logo{left:-60px;}
}

@media (max-width: 1300px){
.logo{left:calc(7vw + 20px);}
}

/* 메인 타이틀(.hero-text-section)의 left: 7% 기준과 동일하게 정렬 */
@media (min-width: 1301px) and (max-width: 1750px){
  .logo{
    left:-80px;
    width:140px;
    height:41px;
  }
  .logo img{
    width:140px;
  }
}

@media (min-width: 1751px){
  .logo{
    left:calc(620px - 43vw);
    width:180px;
    height:53px;
  }
  .logo img{width:180px;}
}

@media (min-width: 1551px) and (max-width: 1750px){
  .logo{left:-110px;}
}

/* 1300px대 초반: 로고가 화면 밖으로 잘리지 않도록 보정 */
@media (min-width: 1301px) and (max-width: 1400px){
  .logo{left:-55px;}
}

/* 중간 데스크톱 폭에서는 헤더와 메인 비주얼을 분리 */
@media (min-width: 1301px) and (max-width: 1750px){
  .gnb{margin-top:20px;}
  .bak-img img{min-height:840px;}
  .hero-text-section{top:60%;}
  .hero-content h1{font-size:88px;}
  .info-box{margin-top:24px;}
}

/* 태블릿 메뉴 구간: 로고 아래에서 메인 타이틀을 시작 */
@media (min-width: 769px) and (max-width: 1300px){
  .bak-img img{min-height:820px;}
  .logo{left:7vw;}
  .hero-text-section{top:60%;}
  .hero-content h1{font-size:72px;}
}
     

@media (max-width: 1200px) {
  .hero-content h1 {
    font-size: 72px;
  }
  .desc {
    font-size: 24px;
  }
  .sub-desc {
    font-size: 18px;
  }
  .menu-panel__content {
    grid-template-columns: 1fr;
    grid-auto-rows: max-content;
    align-items: start;
  }
  .menu-section{height:auto; align-self:start;}
}


/* =========================================
   MOBILE RESPONSIVE (대메뉴 밑 아코디언)
   ========================================= */
 
 @media (max-width: 1300px) {
  .header {
    top: 14px;
    padding: 0 16px;
  }

  .header__inner {
    height: 70px;
    padding: 0 18px;
    position: relative;
    overflow: visible;
    background: none;
    box-shadow: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo{
  top:40px;
        left:calc(7vw + 20px);
        width:140px;
        height:41px;
    }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    position: fixed;
    top: 23px;
    right: 24px;
    cursor: pointer;
    z-index: 3000;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  }

  .menu-toggle span {
    position: static;
    left: auto;
    top: auto;
    width: 22px;
    height: 2px;
    background: #111;
    border-radius: 10px;
    transition: 0.35s;
    transform: none !important;
  }

  .menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg) !important; }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg) !important; }

  .language-selector--desktop {
    display: none;
  }

  .language-selector--mobile {
    display: block;
    position: fixed;
    top: 26px;
    right: 92px;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .menu-toggle.active + .language-selector--mobile {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .language-selector--mobile .language-toggle {
    min-width: 68px;
    height: 48px;
    border-radius: 12px;
    background: transparent;
  }

  .language-selector--mobile .language-menu {
    top: calc(100% + 6px);
  }

  /* 모바일 세로 메뉴판 */
  .gnb {
    position: fixed;
    top: 0;
    right: -100%;
    width: 82%;
    max-width: 300px;
    height: 100vh;
    background: #fff;
    padding: 110px 34px 40px;
    z-index: 2500;
    transition: 0.45s ease;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.08);
    overflow-y: auto;
    display: block;
    border-radius: 0;
    margin-top: 0;
  }

  .gnb.active {
    right: 0;
  }

  .gnb-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    height: auto;
  }

  .gnb-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    text-align: left;
  }

  .gnb-item a {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
  }


  .gnb-item:has(.sub-menu) > a::after {
    content: '›';
    font-size: 24px;
    color: #9ca3af;
    transition: transform 0.3s ease;
  }


  .gnb-item.open > a::after {
    transform: rotate(90deg);
    color: #4ade80;
  }

  .header-btn {
/*    display: none;*/
	margin-top:20px;
  }

  .gnb > .header-btn {
    margin-left: 0;
  }
  
  .header-btn .btn-inquiry {
	width:100%;
  }


  .sub-menu {
    position: relative;
    top: 0;
    width: 100%;
    box-shadow: none;
/*    background-color: #f8fafc;*/
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: max-height 0.35s cubic-bezier(0.25, 1, 0.5, 1), padding 0.35s ease, margin 0.35s ease;
  }


  .gnb-item.open .sub-menu {
    max-height: 480px;
    padding: 10px 0px;
    margin-top: 5px;
    margin-bottom: 15px;
  }


  .sub-menu > a {
    padding: 12px 10px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #4b5563 !important;
    border-bottom: 1px dashed #e5e7eb !important;
    text-align: left;
  }

  .sub-menu > a::after {
    display: none !important;
  }

  .sub-menu > a:last-child {
    border-bottom: none !important;
  }

  .sub-menu > a:hover {
    color: #4ade80 !important;
  }
}  
   
@media (max-width: 955px){
.gnb-item{width:140px;}
}

@media (max-width: 900px){
.gnb-item{width:130px;}
}

@media (max-width: 855px){
.gnb-item{width:120px;}
}

@media (max-width: 800px){
.gnb-item{width:110px;}
}

/* 햄버거 메뉴에서는 항목 폭을 패널에 맞춰 유지해 긴 메뉴명이 줄바꿈되지 않도록 처리 */
@media (max-width:1300px){
  .gnb{width:86%; max-width:340px; padding:110px 24px 40px;}
  .gnb-item{width:100%;}
}



@media (max-width: 768px){
  .logo {
    left:24px;
  }

  /* 비주얼 & 콘텐츠 모바일 최적화 */
  .bak-img img {
    width: 100%;
    height: 900px;
    min-height: 0;
    object-fit: cover;
    object-position: center;
  }

  .hero-text-section {
    top: 52%;
    left: 24px;
    width: calc(100% - 48px);
    transform: translateY(-50%);
  }

  .hero-content h1 {
    font-size: 48px;
    line-height: 1.15;
    letter-spacing: -2px;
  }

  .desc {
    margin-top: 24px;
    font-size: 20px;
  }

  .sub-desc {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.7;
  }

  .hero-btns {
    flex-direction: column;
    gap: 14px;
    margin-top: 34px;
  }

  .btn {
    width: 100%;
    height: 58px;
  }

  .info-box {
    margin-top: 48px;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .divider {
    display: none;
  }


  .menu-section {
    padding: 32px 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }



  .menu-list {
    gap: 24px;
  }

  .menu-item img {
    width: 54px;
  }

  .footer__info-box {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* =========================
   SMALL MOBILE
   ========================= */

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 40px;
  }
  .desc {
    font-size: 18px;
  }
  .sub-desc {
    font-size: 15px;
  }
  .menu-section{
  padding: 20px;
  }
  .menu-section__title{
  font-size:20px;
  }
  .menu-panel{
  padding:20px;
  }
  
  .menu-panel__content{gap:20px;}
  
}

@media (max-width: 360px) {
  .hero-content h1 { font-size: 36px; }
  .menu-item p{font-size:14px; word-break: keep-all;}
}

/* 태블릿: 로고와 메인 타이틀의 왼쪽 기준선 통일 */
@media (min-width: 769px) and (max-width: 1300px){
  .header__inner .logo{
    left:calc(7vw - 20px);
    width:180px;
    height:53px;
  }
  .header__inner .logo img{width:180px;}
}

/* 768px 이하: 헤더 여백을 포함해 메인 타이틀과 왼쪽 기준선 통일 */
@media (max-width: 768px){
  .header__inner .logo{left:16px;}
}

@media (min-width: 1921px){
  .header__inner .logo{left:-208px;}
}
