/* =====================================================================
 * 공통 레이아웃 (모든 페이지): 헤더 정렬 + 푸터
 * 블랙 & 화이트 + 포인트 컬러 #008be4, 콘텐츠 폭 최대 1560px
 * ===================================================================== */

/* ---------- 헤더 ---------- */
.sp-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

html.sp-lock,
html.sp-lock body {
  overflow: hidden;
}

.sp-header {
  --sp-accent: #008be4;
  --sp-ink: #111;
  --sp-muted: #6e6e73;
  --sp-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --sp-h: 88px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  color: #fff;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.01em;
  transition: color 0.3s, transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 아래로 스크롤하면 숨김, 위로 올리면 다시 표시 */
.sp-header.is-hidden {
  transform: translateY(-100%);
}

.sp-header *,
.sp-header *::before,
.sp-header *::after {
  box-sizing: border-box;
}

.sp-header ul,
.sp-header p {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sp-header a,
.sp-header a:link,
.sp-header a:visited {
  color: inherit;
  text-decoration: none;
}

/* 배경 막: 처음엔 투명, 스크롤·메뉴 열림 시 흰색 */
.sp-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0);
  transition: background-color 0.3s, box-shadow 0.3s;
}

.sp-header.is-scrolled,
.sp-header.is-open,
.sp-header.is-menu {
  color: var(--sp-ink);
}

.sp-header.is-scrolled {
  --sp-h: 68px;
}

.sp-header.is-scrolled::before {
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.sp-header.is-open::before,
.sp-header.is-menu::before {
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.sp-header__bar {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: 1640px;
  height: var(--sp-h);
  margin: 0 auto;
  padding: 0 40px;
  transition: height 0.3s var(--sp-ease);
}

.sp-header__logo {
  flex: none;
  display: block;
  width: 180px;
}

.sp-header__logo img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.3s;
}

.sp-header.is-scrolled .sp-header__logo img,
.sp-header.is-open .sp-header__logo img,
.sp-header.is-menu .sp-header__logo img {
  filter: none;
}

/* 메뉴 */
.sp-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  height: 100%;
}

.sp-nav__list {
  display: flex;
  height: 100%;
}

.sp-nav__row {
  height: 100%;
}

.sp-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 20px;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0.9;
  transition: opacity 0.2s, color 0.2s;
}

.sp-nav__link::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  height: 2px;
  background: var(--sp-accent);
  transform: scaleX(0);
  transition: transform 0.3s var(--sp-ease);
}

.sp-nav__item.is-active .sp-nav__link {
  opacity: 1;
  color: var(--sp-accent);
}

.sp-nav__item.is-active .sp-nav__link::after {
  transform: scaleX(1);
}

.sp-nav__toggle,
.sp-nav__cta,
.sp-header__burger {
  display: none;
}

/* 오른쪽 Contact 버튼 */
.sp-header a.sp-header__cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px 0 22px;
  border-radius: 999px;
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  color: var(--sp-ink);
  transition: background-color 0.2s, color 0.2s;
}

.sp-header__cta span {
  transition: transform 0.3s var(--sp-ease);
}

.sp-header.is-scrolled a.sp-header__cta,
.sp-header.is-open a.sp-header__cta {
  background: var(--sp-ink);
  color: #fff;
}

.sp-header a.sp-header__cta:hover,
.sp-header a.sp-header__cta:focus-visible {
  background: var(--sp-accent);
  color: #fff;
}

.sp-header__cta:hover span {
  transform: translateX(3px);
}

/* 드롭다운 패널 */
.sp-mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  color: var(--sp-ink);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s, transform 0.3s var(--sp-ease), visibility 0s 0.25s;
}

.sp-mega::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
}

.sp-nav__item.is-active .sp-mega {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.25s, transform 0.3s var(--sp-ease), visibility 0s;
}

.sp-mega__inner {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 64px;
  max-width: 1640px;
  margin: 0 auto;
  padding: 40px 40px 48px;
}

.sp-header .sp-mega__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sp-accent);
}

.sp-mega__eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--sp-accent);
}

.sp-mega__lead {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.sp-header a.sp-mega__all {
  display: inline-flex;
  gap: 6px;
  margin-top: 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--sp-muted);
  transition: color 0.2s;
}

.sp-header a.sp-mega__all:hover {
  color: var(--sp-accent);
}

.sp-mega__links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
}

.sp-mega__links a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 20px 44px 20px 20px;
  border-radius: 14px;
  transition: background-color 0.2s;
}

.sp-mega__links a::after {
  content: "→";
  position: absolute;
  top: 20px;
  right: 18px;
  font-size: 16px;
  color: var(--sp-accent);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s, transform 0.2s var(--sp-ease);
}

.sp-mega__links strong {
  font-size: 17px;
  font-weight: 600;
  transition: color 0.2s;
}

.sp-mega__links span {
  font-size: 14px;
  color: var(--sp-muted);
}

.sp-mega__links a:hover,
.sp-mega__links a:focus-visible {
  background: #f5f5f7;
}

.sp-mega__links a:hover strong,
.sp-mega__links a:focus-visible strong {
  color: var(--sp-accent);
}

.sp-mega__links a:hover::after,
.sp-mega__links a:focus-visible::after {
  opacity: 1;
  transform: none;
}

/* 모바일 */
@media (max-width: 1024px) {
  .sp-header,
  .sp-header.is-scrolled {
    --sp-h: 64px;
  }

  .sp-header__bar {
    justify-content: space-between;
    padding: 0 20px;
  }

  .sp-header__logo {
    width: 150px;
  }

  .sp-header a.sp-header__cta {
    display: none;
  }

  .sp-header__burger {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
  }

  .sp-header__burger i,
  .sp-header__burger i::before,
  .sp-header__burger i::after {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.3s var(--sp-ease), background-color 0.2s;
  }

  .sp-header__burger i {
    position: relative;
  }

  .sp-header__burger i::before,
  .sp-header__burger i::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .sp-header__burger i::before {
    top: -7px;
  }

  .sp-header__burger i::after {
    top: 7px;
  }

  .sp-header.is-menu .sp-header__burger i {
    background: transparent;
  }

  .sp-header.is-menu .sp-header__burger i::before {
    transform: translateY(7px) rotate(45deg);
  }

  .sp-header.is-menu .sp-header__burger i::after {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* 메뉴 화면 */
  .sp-nav {
    position: fixed;
    top: var(--sp-h);
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    height: auto;
    padding: 8px 20px 32px;
    background: #fff;
    color: var(--sp-ink);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.3s var(--sp-ease), visibility 0s 0.25s;
  }

  .sp-header.is-menu .sp-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s, transform 0.3s var(--sp-ease), visibility 0s;
  }

  .sp-nav__list {
    display: block;
    height: auto;
  }

  .sp-nav__item {
    border-bottom: 1px solid #ececef;
  }

  .sp-nav__row {
    display: flex;
    align-items: center;
    height: auto;
  }

  .sp-nav__link {
    flex: 1;
    height: 64px;
    padding: 0;
    font-size: 22px;
    opacity: 1;
  }

  .sp-nav__link::after {
    display: none;
  }

  .sp-nav__item.is-active .sp-nav__link {
    color: inherit;
  }

  .sp-nav__toggle {
    position: relative;
    display: block;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }

  .sp-nav__toggle::before,
  .sp-nav__toggle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    margin: -1px 0 0 -7px;
    border-radius: 2px;
    background: var(--sp-ink);
    transition: transform 0.3s var(--sp-ease);
  }

  .sp-nav__toggle::after {
    transform: rotate(90deg);
  }

  .sp-nav__item.is-expanded .sp-nav__toggle::after {
    transform: rotate(0deg);
  }

  .sp-mega,
  .sp-nav__item.is-active .sp-mega {
    position: static;
    display: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .sp-mega::before,
  .sp-mega__lead,
  .sp-header .sp-mega__eyebrow {
    display: none;
  }

  .sp-nav__item.is-expanded .sp-mega {
    display: block;
  }

  .sp-mega__inner {
    display: flex;
    flex-direction: column-reverse;
    gap: 4px;
    padding: 0 0 20px;
  }

  .sp-mega__links {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .sp-mega__links a {
    padding: 10px 0;
    border-radius: 0;
  }

  .sp-mega__links a::after {
    display: none;
  }

  .sp-mega__links a:hover,
  .sp-mega__links a:focus-visible {
    background: none;
  }

  .sp-mega__links strong {
    font-size: 16px;
  }

  .sp-mega__links span {
    font-size: 13px;
  }

  .sp-header a.sp-mega__all {
    margin-top: 4px;
    font-size: 14px;
    color: var(--sp-accent);
  }

  .sp-header a.sp-nav__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: none;
    height: 54px;
    margin-top: 28px;
    border-radius: 999px;
    background: var(--sp-ink);
    font-size: 16px;
    font-weight: 600;
    color: #fff;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sp-header *,
  .sp-header::before {
    transition: none !important;
  }
}

/* ---------- 푸터 ---------- */
#ft.sp-footer {
  --sp-accent: #008be4;
  display: block;
  background: #0b0b0b;
  color: rgba(255, 255, 255, 0.6);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

.sp-footer *,
.sp-footer *::before,
.sp-footer *::after {
  box-sizing: border-box;
}

.sp-footer p,
.sp-footer dl,
.sp-footer dt,
.sp-footer dd {
  margin: 0;
  padding: 0;
}

.sp-footer a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.sp-footer a[href]:hover,
.sp-footer a[href]:focus-visible {
  color: #fff;
}

.sp-footer__inner {
  width: 100%;
  max-width: 1640px;
  margin: 0 auto;
  padding: 96px 40px 40px;
}

.sp-footer__top {
  display: flex;
  justify-content: space-between;
  gap: 64px;
  padding-bottom: 64px;
}

.sp-footer__logo img {
  display: block;
  width: 220px;
  height: auto;
  filter: invert(100%);
}

.sp-footer__company {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-style: normal;
}

.sp-footer__line {
  display: flex;
  flex-wrap: wrap;
  row-gap: 4px;
}

.sp-footer__line span {
  display: inline-flex;
  align-items: center;
}

.sp-footer__line span + span::before {
  content: "";
  width: 1px;
  height: 11px;
  margin: 0 14px;
  background: rgba(255, 255, 255, 0.2);
}

.sp-footer__line a {
  margin-left: 6px;
}

.sp-footer__copy {
  margin-top: 12px !important;
  color: rgba(255, 255, 255, 0.35);
}

.sp-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, auto));
  gap: 64px;
}

.sp-footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sp-footer__head {
  margin-bottom: 8px !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}

.sp-footer__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
}

.sp-footer__bottom b {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.sp-footer__legal {
  display: flex;
  gap: 24px;
}

.sp-footer__legal a {
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 1024px) {
  .sp-footer__top {
    flex-direction: column;
    gap: 48px;
  }

  .sp-footer__nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .sp-footer__inner {
    padding: 64px 20px 32px;
  }

  .sp-footer__logo img {
    width: 180px;
  }

  .sp-footer__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 20px;
  }

  .sp-footer__col:last-child {
    grid-column: 1 / -1;
  }

  .sp-footer__top {
    padding-bottom: 48px;
  }

  .sp-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .sp-footer__line {
    flex-direction: column;
  }

  .sp-footer__line span + span::before {
    display: none;
  }
}

/* ---------- 서브 페이지 타이틀 ---------- */
.sp-subhero {
  --sp-accent: #008be4;
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 560px;
  padding: 96px 0 64px;
  background: #0b0b0b;
  color: #fff;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.01em;
  overflow: hidden;
  isolation: isolate;
}

.sp-subhero *,
.sp-subhero *::before,
.sp-subhero *::after {
  box-sizing: border-box;
}

.sp-subhero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
  transform: scale(1.08);
  animation: sp-subhero-zoom 2.4s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

/* 글자가 잘 보이도록 아래·왼쪽을 어둡게 */
.sp-subhero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, rgba(8, 8, 10, 0.82) 0%, rgba(8, 8, 10, 0.35) 55%, rgba(8, 8, 10, 0.45) 100%),
    linear-gradient(90deg, rgba(8, 8, 10, 0.55) 0%, rgba(8, 8, 10, 0) 60%);
}

.sp-subhero__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  max-width: 1640px;
  margin: 0 auto;
  padding: 0 40px;
}

.sp-subhero__text {
  min-width: 0;
  animation: sp-subhero-rise 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) 0.1s both;
}

.sp-subhero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.sp-subhero__eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--sp-accent);
}

.sp-subhero .sp-subhero__title {
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: 80px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #fff;
  text-align: left;
}

.sp-subhero__crumb {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  animation: sp-subhero-rise 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) 0.25s both;
}

.sp-subhero__crumb li {
  display: inline-flex;
  align-items: center;
}

.sp-subhero__crumb li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  margin: 0 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.sp-subhero__crumb a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.sp-subhero__crumb a:hover,
.sp-subhero__crumb a:focus-visible {
  color: #fff;
}

.sp-subhero__crumb [aria-current] {
  color: #fff;
}

@keyframes sp-subhero-zoom {
  to {
    transform: scale(1);
  }
}

@keyframes sp-subhero-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1024px) {
  .sp-subhero {
    min-height: 440px;
    padding: 60px 0 48px;
  }

  .sp-subhero .sp-subhero__title {
    font-size: 60px;
  }
}

@media (max-width: 768px) {
  .sp-subhero {
    min-height: 340px;
    padding-bottom: 36px;
  }

  .sp-subhero__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 0 20px;
  }

  .sp-subhero__eyebrow {
    margin-bottom: 14px;
    font-size: 12px;
  }

  .sp-subhero .sp-subhero__title {
    font-size: 40px;
  }

  .sp-subhero__crumb {
    margin: 0;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sp-subhero__bg,
  .sp-subhero__text,
  .sp-subhero__crumb {
    animation: none;
    transform: none;
  }
}
