/* 
- 18px = 1rem 
- 콘텐츠 최대 너비 1280px
- 모바일 기준 375px
- 모바일: max-width: 767px
- 데스크톱: min-width: 768px
*/
:root {
  font-size: 18px;
  --grid-margin: 16px;
  --grid-gutter: 16px;
  --grid-columns: 4;
  --container-width-mobile: calc(100% - (var(--grid-margin) * 2));
  --container-width-desktop: 1280px;
}

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

.container {
  display: flex;
  width: 1280px;
  margin: 0 auto;
  flex-wrap: wrap;
  position: relative;
  gap: 40px;
  width: var(--container-width-desktop);
  max-width: 100%;
  margin: 0 auto;
  padding: 0 var(--grid-margin);
  display: flex;
  width: 1280px;
  margin: 0 auto;
  flex-wrap: wrap;
  position: relative;
  gap: 40px;
}

.grid {
  display: grid;
  gap: var(--grid-gutter);
  grid-template-columns: repeat(var(--grid-columns), 1fr);
}

/* 메인 비주얼 */
.main-visual .main-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 7, 7, 0.8);
}

.main-title-line {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.subtitle {
  font-family: "Pretendard";
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.8rem;
  letter-spacing: -0.01em;
  text-align: left;
  /* width: calc(100% - 320px); */
  color: #fff;
  margin-top: 24px;
}

.mobile-br {
  display: none;
}

/* 공통 섹션 스타일 */
.section-container {
  position: relative;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  height: 100%;
}
/* .main-content .main-title-line {
  align-items: center;
}
.main-content .align-left .main-title-line {
  align-items: flex-start;
} */

/* .main-content .align-left .subtitle {
  text-align: left;
  align-items: flex-start;
} */

.section-title {
  font-size: 1.111rem;
  font-weight: 600;
  letter-spacing: 0px;
  color: #26a4bc; /* 메인컬러 */
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 2rem;
  font-weight: 700;
  line-height: 2.444rem;
  letter-spacing: 0px;
  margin-bottom: 40px;
  color: #111111; /* 진한 텍스트 */
}

.solutions-title-line {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  position: relative;
  align-self: stretch;
  width: 100%;
}

.contact-form .form-group:not(:first-of-type) {
  margin-top: 16px;
}

.contact-form .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5rem;
  color: #111;
}

.contact-form .form-group input,
.contact-form .form-group textarea,
.contact-form .form-group select {
  width: 100%;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  font-size: 16px;
  box-sizing: border-box;
  background: #fff;
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus,
.contact-form .form-group select:focus {
  border: 2px solid #0073e6 !important;
  padding: 9px 19px;
}

.contact-form .form-group textarea {
  height: 160px;
  resize: vertical;
}

.contact-form .form-select {
  position: relative;
}

.contact-form .form-select select {
  -webkit-appearance: none; /* Safari, Chrome */
  -moz-appearance: none; /* Firefox */
  appearance: none; /* 표준 */
  position: relative;
  padding: 12px 20px;
  font-size: 16px;
  color: #777;
  background: #fff;
}

.contact-form .form-select::after {
  content: "⌵";
  display: block;
  font-size: 20px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 15px;
  text-align: center;
  color: #666;
}

.contact-form .form-select select {
  -webkit-appearance: none; /* Safari, Chrome */
  -moz-appearance: none; /* Firefox */
  appearance: none; /* 표준 */
  position: relative;
  padding: 12px 20px;
  font-size: 16px;
  color: #777;
  background: #fff;
}

.contact-form .form-check {
  margin: 8px 0;
  display: flex;
  align-items: center;
}
.contact-form .form-check a {
  color: #0073e6; /* 메인컬러 */
  font-weight: 600;
  margin-left: 8px; /* 텍스트와 전문보기 사이 약간 띄우기 */
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.778rem;
}

.contact-form .form-check input {
  margin-right: 8px;
}
.contact-form input[type="checkbox"] {
  width: 16px;
  height: 16px;
}
.contact-form .form-notice {
  font-size: 0.778rem;
  color: #888;
  margin-left: 28px;
  margin-bottom: 40px;
}

.form-select::after {
  content: "⌵";
  display: block;
  font-size: 20px;
  font-weight: bold;
  position: absolute;
  top: 55%;
  right: 10px;
  width: 20px;
  height: 15px;
  text-align: center;
  color: #666;
}

.form-select select {
  -webkit-appearance: none; /* Safari, Chrome */
  -moz-appearance: none; /* Firefox */
  appearance: none; /* 표준 */
  position: relative;
  padding: 12px 20px;
  font-size: 16px;
  color: #777;
  background: #fff;
}

.contact-form .wpforms-submit-container {
  text-align: center;
}

.wpforms-submit-container {
}

/* 문의 폼 입력 후 */
.wpforms-confirmation-container {
}

.wpforms-submit-container .wpforms-submit-spinner {
  margin-left: 12px;
  vertical-align: text-bottom !important;
}

.contact-form .contact-submit {
  width: fit-content;
  padding: 16px 50px;
  color: #fff;
  border: none;
  border-radius: 40px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4rem;
  margin: 0 auto;
  display: block;
  /* cursor: not-allowed;
  background: rgb(166, 166, 166); */
  background:linear-gradient(2.81deg, #205b8c -67.06%, #25c2e2 68.02%);;
  cursor: pointer;
}

.contact-form .wpforms-error + .wpforms-error {
  line-height: 2;
  font-size: 14px;
  color: red;
}

.contact-form .error {
  border-color: red;
}

.contact-form .contact-submit.active {
  background: #0073e6;
  cursor: pointer;
}

.wpforms-forms textarea {
  resize: none;
}

/* 모바일 기준 (375px) */
@media screen and (max-width: 767px) {
  :root {
    font-size: 16px;
  }

  .container {
    width: var(--container-width-mobile);
    padding: 0 var(--grid-margin);
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-full {
    grid-column: span 2;
  }

  .mobile-block {
    display: block;
  }
  .pc-block {
    display: inline-block;
  }
}

/* 데스크톱 (768px 이상) */
@media screen and (min-width: 768px) {
  .container {
    padding: 0;
  }

  .grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .grid-full {
    grid-column: span 4;
  }
}

.inner {
  max-width: 1280px;
  margin: 0 auto;
}

.mobile-only {
  display: none;
}

@media screen and (max-width: 767px) {
  :root {
    font-size: 16px;
  }
  .inner {
    max-width: 100%;
    padding: 0 1rem;
  }
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: block;
  }
}

/* 헤더 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  background-color: transparent;
  height: 90px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  /* backdrop-filter: blur(12px); */
  transition: background-color 0.3s ease;
}

.header .gnb {
  width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* 헤더 - 로고 */
.header .logo-img {
  height: 28px;
  width: auto;
  margin-left: 16px;
  display: none;
}

.header .logo-white {
  display: block;
}

/* 헤더 - 데스크톱 메뉴 */
.header .desktop-only {
  display: flex;
}

.header .desktop-only .menu-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  padding: 0 40px;
  font-family: "Pretendard", sans-serif;
  font-weight: 700;
  font-size: 1.111rem;
  color: #ffffff; /* ✅ 기본은 흰색 */
  text-decoration: none;
  transition: background-color 0.2s, color 0.3s;
}

.header .desktop-only .menu-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.header .mobile-menu {
  display: none;
}

/* 헤더 - 모바일 메뉴 */
@media (max-width: 767px) {
  .header {
    height: clamp(62px, 10vw, 90px) !important;
  }

  .header .gnb {
    max-width: 100%;
    padding: 0;
    box-sizing: border-box; /* ✅ 패딩 포함해서 너비 계산 */
    overflow: hidden; /* ✅ 요소가 넘칠 경우 잘라냄 */
  }

  .header .logo-img {
    height: clamp(24px, 4vw, 32px) !important;
    margin-left: 4px;
  }

  .header .desktop-only {
    display: none !important;
  }

  .header .mobile-only {
    display: inline-block;
    cursor: pointer;
    background-color: transparent;
  }

  .menu-open-btn .menu-open-white {
    display: block;
    width: 28px;
    height: 28px;
    background-color: transparent;
  }

  .header .menu-open-btn {
    display: none;
    max-width: 100%;
    background-color: transparent;
    border: none;
  }

  .header .menu-open-white {
    display: block;
  }

  .header.scrolled .menu-open-white {
    display: none;
  }

  .header.scrolled .menu-open-black {
    display: block;
  }

  .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.93);
    color: #fff;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
  }

  .mobile-menu.show {
    display: flex;
  }

  .mobile-menu-header {
    width: 100%;
    height: 62px;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    position: relative;
  }

  .mobile-menu-header .logo-img {
    display: block !important;
    height: clamp(24px, 4vw, 32px) !important;
    margin-left: 0;
    margin-right: auto;
  }

  .mobile-menu-header .logo-white {
    display: block !important;
  }

  .mobile-menu-header .logo-color {
    display: none !important;
  }

  .mobile-menu-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: none;
    z-index: 2;
  }

  .mobile-menu-list {
    font-family: "Pretendard";
    flex: 1;
    /* overflow-y: auto; */
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }

  .mobile-menu-list a {
    font-family: "Pretendard";
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
  }

  .mobile-menu-list .submenu {
    font-family: "Pretendard";
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .mobile-menu-list .submenu a {
    font-family: "Pretendard";
    font-size: 1.2rem;
    font-weight: 400;
    color: #b8b7bd;
  }
}

/* 헤더 스크롤 색상 변경  -> 여기 각 페이지마다 색상이 변경되어야 하는 지점이 달라 따로 가야하는 지 확인 필요합니다*/
.header.scrolled {
  background-color: #ffffff; /* ✅ 스크롤 시 흰 배경 */
}

.header.scrolled .logo-white {
  display: none;
}

.header.scrolled .logo-color {
  display: block;
}

.header.scrolled .menu-item {
  color: #111111; /* ✅ 스크롤 시 검정색 */
}

.header.scrolled .menu-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* flaot btn 영역 */
.floating-top-btn {
  position: fixed;
  right: 40px;
  bottom: 40px;
  width: 60px;
  height: 60px;
  background-color: rgba(17, 17, 17, 0.5);
  border: 1px solid rgba(225, 240, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 100;
  transition: background-color 0.3s, filter 0.3s;
}

.top-icon-img {
  width: 24px;
  height: 24px;
  filter: brightness(0) saturate(100%) invert(100%) opacity(0.8);
  transition: filter 0.3s;
}

.floating-top-btn:hover {
  background-color: rgba(17, 17, 17, 0.25);
}

.floating-top-btn:hover .top-icon-img {
  filter: brightness(0) saturate(100%) invert(1) opacity(1); /* ✅ 흰색 아이콘 */
}

@media (max-width: 767px) {
  .floating-top-btn {
    width: 40px;
    height: 40px;
    right: 20px;
    bottom: 44px;
  }
  .top-icon-img {
    width: 18px;
    height: 18px;
  }
}

/* 메인 비주얼 */
.main-visual {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.main-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: flex;
  overflow: hidden;
}

.main-bg img,
.main-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-content {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  padding: 0;
}

.main-title {
  font-family: "Pretendard";
  font-size: 4rem; /* 72px*/
  /* font-size: 2.89rem;  52px*/
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -1.24px;
  padding-left: var(--grid-margin);
  /* text-align: left; */
  text-align: center;
  width: var(--container-width-desktop);
  max-width: calc(100% - (var(--grid-margin) * 2));
  margin: 0 auto;
  color: #fff;
}

.gradient-text {
  background: linear-gradient(to right, #0073e6, #ccf54b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #fff;
  font-family: "Pretendard";
  font-size: 0.667rem;
  font-weight: 500;
  line-height: 1rem;
  letter-spacing: 0.05rem;
  z-index: 2;
  animation: scrollIndicatorBounce 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes scrollIndicatorBounce {
  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  30% {
    transform: translateX(-50%) translateY(8px);
    opacity: 0.7;
  }
  60% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

.scroll-icon-img {
  width: 24px;
  height: 24px;
  display: block; /* 이미지 들어가면 alt 사라짐 */
}

/* 모바일 공통 (375px - 767px) */
@media screen and (max-width: 767px) {
  .main-visual .main-content {
    padding: 0;
    justify-content: center;
  }

  .main-title {
    padding-left: var(--grid-margin);
    width: var(--container-width-mobile);
    text-align: left;
    font-size: 4rem;
    word-break: keep-all;
    line-height: 1.2;
  }
}

/* 375px 기준 스타일 */
@media screen and (max-width: 375px) {
  .main-title {
    font-size: 2.5rem;
  }
}

/* 스크롤 섹션 */
.scroll-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
}

/* 푸터 */
.site-footer {
  background-color: #111;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: #b0b0b0;
}

.footer-container .footer-top {
  display: flex;
  align-items: center;
}

.footer-top .divider {
  margin: 0 20px;
}

.footer-top .privacy-link {
  color: #e5e5e5;
  cursor: pointer;
  text-decoration: none;
}

.footer-container .footer-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.778rem;
  line-height: 1rem;
  font-weight: 400;
}

.footer-info .divider {
  margin: 0 8px;
}

.footer-container .footer-copyright {
  font-size: 14px;
  line-height: 22px;
  font-weight: 400;
}

@media (max-width: 767px) {
  .site-footer {
    padding: 40px 16px;
  }
  .footer-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;
  }
  .footer-container .footer-top {
    align-items: normal;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 22px;
  }
  .footer-container .footer-info {
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .footer-container .footer-info .divider {
    display: none;
  }
  .footer-container .footer-info span {
    display: block;
    margin-bottom: 12px;
  }

  .footer-container .footer-info span i {
    color: #b0b0b0 !important;
    font-style: normal !important;
  }

  .footer-container .footer-copyright {
    font-size: 12px;
    line-height: 18px;
    margin: 0;
  }
}

/* 팝업 */
/* 팝업 */
.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  color: #000;
  width: 80%;
  max-width: 850px;
  padding: 24px;
  border-radius: 8px;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  max-height: 90%;
  overflow: auto;
}

.popup pre {
  white-space: pre-wrap;
}

.popup-inner {
  overflow: auto;
  scrollbar-width: auto;
}

/* Webkit 기반 브라우저 (Chrome, Edge, Safari) */
.popup-inner::-webkit-scrollbar {
  width: 5px; /* 스크롤바 너비 */
}

.popup-inner::-webkit-scrollbar-thumb {
  background-color: #888; /* 스크롤바 색상 */
  border-radius: 3px; /* 둥근 모서리 */
}

.popup-inner h3 {
  margin-top: 10px;
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 18px;
}

.popup-inner h4 {
  margin-top: 40px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
  font-size: 16px;
}

.popup-inner p {
  color: #333;
  font-size: 14px;
  line-height: 20px;
}
.popup-inner p + p {
  margin-top: 4px;
}
.popup-inner ol {
  margin-top: 10px;
  padding-left: 13px;
}
.popup-inner ol li {
  font-size: 14px;
  text-indent: -13px;
  color: #666;
  margin-bottom: 8px;
  line-height: 20px;
}

.popup-inner ol li p {
  text-indent: 0;
}
.popup-inner .table_area {
  width: 100%;
  margin-top: 10px;
  border-top: 1px solid #ccc;
  border-left: 1px solid #ccc;
}
.popup-inner .table_area table th {
  padding: 5px 10px;
  font-weight: 700;
  font-size: 14px;
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  vertical-align: middle;
  text-align: center;
  background: #efefef;
}
.popup-inner .table_area table td {
  padding: 5px 10px;
  font-weight: 400;
  font-size: 14px;
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  text-align: center;
  vertical-align: middle;
  color: #333;
}

.popup .close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 0.889rem;
  cursor: pointer;
}

.color_red {
  color: red;
}
.mobile-br {
  display: none;
}
.pc_tb {
  display: block;
}
.mo_tb {
  display: none;
}

@media (max-width: 600px) {
  .pc_tb {
    display: none;
  }
  .mo_tb {
    display: block;
  }
  .mo_tb p {
    margin-top: 20px;
  }
  .mo_tb p strong {
    font-weight: 700;
  }
}

@media (max-width: 375px) {
  .mobile-br {
    display: inline;
  }
  .mobile-br br {
    display: block;
  }
}
