@import url("https://cdn.jsdelivr.net/npm/@kfonts/nanum-square-otf@0.2.0/index.css");

/* =========================================================
   base
========================================================= */

* {
  box-sizing: border-box;
}

:root {
  --black: #18171c;
  --text: #101010;
  --blue: #1081f9;
  --blue2: #2a8dff;
  --mint: #21ffe5;
  --soft: #effcff;
  --inner: min(1280px, calc(100vw - 80px));
  --gutter: calc((100vw - var(--inner)) / 2);
}

html,
body {
  margin: 0;
  min-width: 0;
  color: var(--text);
  font-family: "Paperlogy", Pretendard, "Noto Sans KR", Arial, sans-serif;
  background: #fff;
  overflow-x: hidden;
}

body {
  overflow-y: auto;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
}

.mobile-only {
  display: none;
}

/* =========================================================
   layout
========================================================= */

.wrap {
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

/* =========================================================
   header
========================================================= */

.gnb {
  position: fixed;
  z-index: 30;
  left: 50%;
  top: 0;
  display: flex;
  align-items: center;
  width: min(1918px, calc(100vw - 2px));
  height: 120px;
  padding: 30px 40px;
  transform: translateX(-50%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 406.5px;
  color: var(--blue2);
  font-size: 20px;
  font-weight: 700;
}

.brand img:not(.brand-logo) {
  width: 192px;
  height: 35px;
  object-fit: contain;
  object-position: left center;
}

.brand span {
  width: 1px;
  height: 16px;
  background: var(--blue2);
}

.brand-logo {
  width: 112px;
  height: auto;
  object-fit: contain;
}

.nav {
  position: absolute;
  left: calc(50% + 22.5px);
  top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 492px;
  height: 60px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 60px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  transform: translateX(-50%);
}

.nav > a,
.nav-item > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 119px;
  height: 44px;
  color: var(--black);
  font-family: "Paperlogy", Pretendard, "Noto Sans KR", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
}

.nav-item {
  position: relative;
}

.nav-item::after {
  position: absolute;
  left: 0;
  top: 44px;
  width: 119px;
  height: 18px;
  content: "";
}

.nav-sub {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 61px;
  display: flex;
  flex-direction: column;
  width: 137px;
  border-radius: 20px;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

.nav-item:hover > a,
.nav-item:focus-within > a {
  border-radius: 60px;
  background: rgba(128, 207, 253, 0.5);
  color: #2a8dff;
}

.nav-item:hover .nav-sub,
.nav-item:focus-within .nav-sub {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-sub a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 137px;
  height: 50px;
  color: rgba(24, 23, 28, 0.6);
  font-family: "Paperlogy", Pretendard, "Noto Sans KR", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 700;
  letter-spacing: -0.32px;
  white-space: nowrap;
}

.nav-sub a:hover,
.nav-sub a:focus-visible {
  color: var(--blue2);
}

.menu-btn {
  position: relative;
  margin-left: auto;
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 80px;
  background: var(--blue2);
}

.menu-btn::before,
.menu-btn::after {
  display: none;
}

.menu-btn i {
  position: absolute;
  left: 19px;
  top: 21px;
  width: 22px;
  height: 4px;
  content: "";
  border-radius: 999px;
  background: #fff;
  box-shadow:
    0 8px 0 #fff,
    0 16px 0 #fff;
}

/* =========================================================
   sitemap
========================================================= */

.sitemap {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 62px 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.sitemap.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sitemap-dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.sitemap-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 47px;
  width: min(1298px, calc(100vw - 40px));
  min-height: min(857px, calc(100vh - 124px));
  padding: 120px 160px;
  overflow: hidden;
  border-radius: 70px;
  color: #fff;
  background: linear-gradient(130deg, #2a8dff 35%, #80cffd 87%);
  transform: translateY(24px);
  transition: transform 0.25s ease;
}

.sitemap.open .sitemap-panel {
  transform: translateY(0);
}

.sitemap-bg {
  position: absolute;
  left: -182px;
  top: 246px;
  width: 849px;
  height: 849px;
  object-fit: cover;
  filter: blur(60px);
  opacity: 0.4;
  pointer-events: none;
  transform: scaleX(-1);
}

.sitemap-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sitemap-head h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -1.05px;
}

.sitemap-brand {
  display: none;
}

.sitemap-close {
  position: relative;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
}

.sitemap-close::before,
.sitemap-close::after {
  position: absolute;
  left: 8px;
  top: 20px;
  width: 27px;
  height: 2px;
  content: "";
  background: #fff;
  transform: rotate(45deg);
}

.sitemap-close::after {
  transform: rotate(-45deg);
}

.sitemap-nav {
  position: relative;
  display: flex;
  flex-direction: column;
}

.sitemap-row {
  display: flex;
  align-items: center;
  gap: 118px;
  min-height: 132px;
  border-bottom: 1px solid rgba(190, 245, 255, 0.8);
  white-space: nowrap;
}

.sitemap-row:last-child {
  border-bottom: 0;
}

.sitemap-row strong {
  width: 97px;
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.7px;
}

.sitemap-row div {
  display: flex;
  align-items: center;
  gap: 80px;
}

.sitemap-row a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.sitemap-row a:hover,
.sitemap-row a:focus-visible {
  color: #fff;
}

/* =========================================================
   buttons
========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 66px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.36px;
  white-space: nowrap;
}

.btn::after {
  content: "";
  width: 20px;
  height: 20px;
  border: 0;
  background: url("/knda/img/common-icon-arrow-right-black.svg") center / 20px 20px no-repeat;
  transform: none;
}

.quick em::after {
  content: "";
  width: 11px;
  height: 11px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.blue::after {
  background-image: url("/knda/img/common-icon-arrow-right-mint.png");
}

.blue {
  color: #fff;
  background: linear-gradient(90deg, var(--blue), var(--mint));
}

.green {
  color: var(--black);
  background: linear-gradient(90deg, #6ee9ff, #80f6b1);
}

.white {
  color: var(--black);
  background: #fff;
}

/* =========================================================
   footer
========================================================= */

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 432px;
  margin-top: 0;
  padding-top: 80px;
  border-radius: 160px 160px 0 0;
  background: #2a8dff;
  color: #fff;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-brand img:not(.footer-logo) {
  width: 242px;
  height: 44px;
}

.footer-brand span {
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-family: "Paperlogy", Pretendard, "Noto Sans KR", sans-serif;
  font-size: 28px;
  font-style: normal;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.07px;
}

.footer-logo {
  width: 113px;
  height: auto;
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  object-fit: contain;
}

.footer address {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 35px;
  width: 820px;
  margin: 42px 0 0;
  color: #fff;
  font-family: Pretendard;
  font-style: normal;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.045px;
}

.footer address span {
  position: relative;
}

.footer address span:not(:first-child)::before {
  position: absolute;
  left: -18px;
  top: 2px;
  width: 1px;
  height: 18px;
  content: "";
  background: rgba(255, 255, 255, 0.2);
}

.footer address span:nth-child(4)::before {
  display: none;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  width: var(--inner);
  margin-top: 117px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-family: Pretendard, "Noto Sans KR", sans-serif;
  font-size: 18px;
  font-style: normal;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.045px;
}

@media (max-width: 1024px) {
  .mobile-only {
    display: inline;
  }

  :root {
    --inner: calc(100vw - 40px);
    --gutter: 20px;
  }

  .gnb {
    width: 100%;
    height: 108px;
    padding: 24px 20px;
  }

  .brand {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: 235px;
    height: 18px;
  }

  .brand img:not(.brand-logo) {
    width: 120px;
    height: 22px;
    object-fit: contain;
    object-position: left center;
  }

  .brand span {
    display: block;
    width: 1px;
    height: 9px;
  }

  .brand-logo {
    width: 60px;
    height: auto;
  }

  @media (min-width: 768px) {
    .brand {
      gap: 10px;
      width: 310px;
      height: auto;
    }

    .brand img:not(.brand-logo) {
      width: 155px;
      height: 28px;
    }

    .brand span {
      height: 12px;
    }

    .brand-logo {
      width: 85px;
    }
  }

  .nav {
    display: none;
  }

  .menu-btn {
    width: 60px;
    height: 60px;
  }

  .menu-btn i {
    left: 19px;
    top: 21px;
    width: 22px;
    height: 4px;
    box-shadow:
      0 8px 0 #fff,
      0 16px 0 #fff;
  }

  .sitemap {
    display: block;
    align-items: flex-start;
    padding: 0;
    overflow-y: auto;
    background: linear-gradient(180deg, #80cffd 0%, #2a8dff 100%);
  }

  .sitemap-dim {
    display: none;
  }

  .sitemap-panel {
    position: relative;
    gap: 0;
    width: 100%;
    min-height: 100dvh;
    padding: 36px 20px 80px;
    border-radius: 0;
    background: transparent;
    transform: none;
  }

  .sitemap.open .sitemap-panel {
    transform: none;
  }

  .sitemap-bg {
    left: -105px;
    top: 496px;
    width: 427px;
    height: 427px;
    filter: blur(45px);
    opacity: 0.4;
  }

  .sitemap-head {
    height: 68px;
    margin: 0;
  }

  .sitemap-head h2 {
    display: none;
  }

  .sitemap-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    top: -16px;
    left: 1px;
  }

  .sitemap-brand img:not(.sitemap-brand-logo) {
    width: 120px;
    height: 22px;
    object-fit: contain;
  }

  .sitemap-brand span {
    width: 1px;
    height: 9px;
    background: #fff;
  }

  .sitemap-brand-logo {
    width: 60px;
    height: auto;
    object-fit: contain;
  }

  @media (min-width: 768px) {
    .sitemap-brand {
      gap: 10px;
    }

    .sitemap-brand img:not(.sitemap-brand-logo) {
      width: 155px;
      height: 28px;
    }

    .sitemap-brand span {
      height: 12px;
    }

    .sitemap-brand-logo {
      width: 85px;
    }
  }

  .sitemap-close {
    position: absolute;
    right: 0;
    top: 0;
    width: 32px;
    height: 32px;
  }

  .sitemap-close::before,
  .sitemap-close::after {
    left: 1px;
    top: 15px;
    width: 32px;
    height: 3px;
    border-radius: 3px;
  }

  .sitemap-nav {
    margin-top: 18px;
  }

  .sitemap-row {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    min-height: 0;
    padding: 0;
    border-bottom: 0;
    white-space: normal;
  }

  .sitemap-row strong {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 76px;
    padding-right: 44px;
    color: #fff;
    font-family: "Paperlogy", Pretendard, "Noto Sans KR", sans-serif;
    font-size: 20px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.4px;
    cursor: pointer;
  }

  .sitemap-row strong::before {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 0.5px;
    content: "";
    background: rgba(190, 245, 255, 0.8);
  }

  .sitemap-row:last-child strong::before {
    display: none;
  }

  .sitemap-row strong::after {
    position: absolute;
    right: -2px;
    top: 24px;
    width: 28px;
    height: 28px;
    content: "";
    background: url("/knda/img/common-icon-menu-chevron.png") center / 28px 28px no-repeat;
    pointer-events: none;
    transform: rotate(90deg);
  }

  .sitemap-row.is-open strong::after {
    top: 24px;
    transform: rotate(-90deg);
  }

  .sitemap-row strong:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 4px;
  }

  .sitemap-row div {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    padding: 0 0 0;
  }

  .sitemap-row.is-open div {
    display: flex;
  }

  .sitemap-row a {
    display: flex;
    align-items: center;
    height: 46px;
    color: rgba(255, 255, 255, 0.6);
    font-family: "Paperlogy", Pretendard, "Noto Sans KR", sans-serif;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.28px;
  }

  .sitemap-row.is-open a:first-child {
    color: #fff;
  }

  .btn {
    height: 52px;
    padding: 0 22px;
    font-size: 12px;
    letter-spacing: -0.24px;
  }

  .btn::after {
    width: 15px;
    height: 15px;
    background-size: 15px 15px;
  }

  .footer {
    align-items: center;
    justify-content: flex-start;
    height: 278px;
    min-height: 0;
    margin-top: 0;
    padding: 30px 20px 10px;
    overflow: hidden;
    border-radius: 50px 50px 0 0;
    background: #2a8dff;
  }

  .footer-brand {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 12px;
    width: 244px;
    margin: 0 auto;
  }

  .footer-brand img:not(.footer-logo) {
    width: 124px;
    height: 22px;
  }

  .footer-brand span {
    padding-left: 12px;
    border-left-color: rgba(255, 255, 255, 0.4);
    font-family: NanumSquareOTF, "Paperlogy", Pretendard, "Noto Sans KR", sans-serif;
    font-size: 14px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.035px;
    white-space: nowrap;
  }

  .footer-logo {
    width: 60px;
    padding-left: 12px;
    border-left-color: rgba(255, 255, 255, 0.4);
  }

  .footer address {
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 171px;
    gap: 4px;
    margin: 10px auto 0;
    font-family: Pretendard, "Noto Sans KR", sans-serif;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 500;
    letter-spacing: -0.03px;
  }

  .footer address span {
    width: 171px;
  }

  .footer address span:nth-child(1) {
    order: 3;
  }

  .footer address span:nth-child(2) {
    order: 1;
  }

  .footer address span:nth-child(3) {
    order: 6;
  }

  .footer address span:nth-child(4) {
    order: 5;
  }

  .footer address span:nth-child(5) {
    order: 2;
  }

  .footer address span:nth-child(6) {
    order: 4;
  }

  .footer address span::before {
    display: none;
  }

  .footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    width: 100%;
    margin-top: 32px;
    padding: 20px 0 0;
    border-top-width: 0.5px;
    border-top-color: rgba(255, 255, 255, 0.4);
    font-family: Pretendard, "Noto Sans KR", sans-serif;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.035px;
    white-space: nowrap;
  }
}

/* 카테고리 전체 패널 */
.category-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.category-overlay.open {
  display: flex;
}

.category-overlay::before {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(0, 0, 0, 0.7);
}

.category-overlay-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 47px;
  width: min(1298px, calc(100vw - 40px));
  padding: 100px 120px;
  overflow: hidden;
  border-radius: 70px;
  color: #fff;
  background: linear-gradient(130deg, #2a8dff 35%, #80cffd 87%);
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.category-overlay.open .category-overlay-panel {
  transform: translateY(0);
  opacity: 1;
}

.category-overlay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-overlay-head h3 {
  margin: 0;
  color: #fff;
  font-family: Pretendard, "Noto Sans KR", sans-serif;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1.05px;
}

.category-overlay-close {
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.category-overlay-close::before,
.category-overlay-close::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 20px;
  width: 27px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

.category-overlay-close::before {
  transform: rotate(45deg);
}

.category-overlay-close::after {
  transform: rotate(-45deg);
}

.category-overlay-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.category-overlay-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: calc(14.285% - 18px);
  padding: 28px 12px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.category-overlay-item:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.18);
}

.category-overlay-item.active {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.25);
}

.category-overlay-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.category-overlay-item b {
  color: #fff;
  font-family: Pretendard, "Noto Sans KR", sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  word-break: keep-all;
  letter-spacing: -0.45px;
}

@media (max-width: 1460px) {
  .category-overlay-panel {
    padding: 80px 80px;
    border-radius: 50px;
  }

  .category-overlay-item {
    width: calc(14.285% - 18px);
    gap: 10px;
    padding: 22px 10px;
  }

  .category-overlay-item img {
    width: 60px;
    height: 60px;
  }

  .category-overlay-item b {
    font-size: 16px;
  }
}

@media (max-width: 1024px) {
  .category-overlay {
    align-items: stretch;
    justify-content: stretch;
  }

  .category-overlay::before {
    display: none;
  }

  .category-overlay-panel {
    width: 100%;
    height: 100%;
    gap: 40px;
    padding: 36px 20px 80px;
    border-radius: 0;
    background: linear-gradient(180deg, #80cffd 0%, #2a8dff 100%);
    overflow-y: auto;
    transform: none;
    opacity: 1;
  }

  .category-overlay-head h3 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0;
  }

  .category-overlay-close {
    width: 32px;
    height: 32px;
  }

  .category-overlay-close::before,
  .category-overlay-close::after {
    left: 50%;
    top: 50%;
    width: 22px;
  }

  .category-overlay-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .category-overlay-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .category-overlay-list {
    gap: 16px;
  }

  .category-overlay-item {
    width: calc(33.333% - 11px);
    gap: 8px;
    padding: 16px 8px;
    border-width: 2px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
  }

  .category-overlay-item img {
    width: 48px;
    height: 48px;
  }

  .category-overlay-item b {
    font-size: 13px;
    font-weight: 600;
  }
}
