/* ==================== COMMON VARIABLES / BASE ==================== */
:root {
  --navy-950: #071626;
  --navy-900: #0b2035;
  --navy-800: #12334f;
  --brand-blue: #1597c4;
  --brand-red: #d44b43;
  --ink: #15202b;
  --muted: #66727e;
  --line: #dce2e7;
  --paper: #ffffff;
  --soft: #f3f6f8;
}

html {
  scroll-behavior: smooth;
}

html.has-smooth-wheel {
  scroll-behavior: auto;
}

body {
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  font-size: 18px;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

body.menu-open {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
}

/* ==================== COMMON CONTENT WIDTH / ACCESSIBILITY ==================== */
.content-inner {
  width: min(1440px, calc(100% - 80px));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 2000;
  padding: 13px 18px;
  color: #fff;
  background: var(--brand-blue);
}

.skip-link:focus {
  top: 12px;
}

/* ==================== HEADER ==================== */
.site-header {
  position: relative;
  z-index: 100;
  height: 92px;
  color: #fff;
  background: var(--navy-950);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.site-header.is-sticky {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 76px;
  animation: header-down .25s ease;
}

.site-header.is-sticky + .site-map + main {
  padding-top: 92px;
}

@keyframes header-down {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(255px, 1fr) auto minmax(255px, 1fr);
  align-items: center;
  width: min(1640px, calc(100% - 64px));
  height: 100%;
  margin: 0 auto;
}

.header-logo {
  width: 294px;
}

.header-logo a,
.header-logo img {
  display: block;
  width: 100%;
}

.main-nav,
.main-menu {
  display: flex;
  height: 100%;
}

.main-menu-item {
  position: relative;
  min-width: 180px;
  height: 100%;
}

.main-menu-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}

.main-menu-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--brand-blue);
  transform: translateX(-50%);
  transition: width .25s ease;
}

.main-menu-item:hover .main-menu-link::after,
.main-menu-item:focus-within .main-menu-link::after {
  width: 100%;
}

.sub-menu-panel {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  min-width: 180px;
  padding: 14px 0;
  visibility: hidden;
  background: #fff;
  border-top: 2px solid var(--brand-blue);
  box-shadow: 0 12px 24px rgba(5, 19, 32, .12);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.sub-menu-panel-wide {
  width: 100%;
}

.main-menu-item:hover .sub-menu-panel,
.main-menu-item:focus-within .sub-menu-panel {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.sub-menu a {
  display: block;
  padding: 10px 24px;
  color: #4c5863;
  font-size: 18px;
  transition: color .2s ease, background .2s ease;
}

.sub-menu a:hover,
.sub-menu a:focus {
  color: var(--navy-900);
  background: #f1f5f7;
}

.menu-toggle {
  position: relative;
  justify-self: end;
  width: 50px;
  height: 50px;
  padding: 12px 9px;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  margin: 6px auto;
  background: #fff;
  transition: transform .2s ease;
}

.menu-toggle:hover span:nth-child(1) {
  transform: translateX(4px);
}

.menu-toggle:hover span:nth-child(3) {
  transform: translateX(-4px);
}

/* ==================== ALL MENU / SITE MAP ==================== */
.site-map {
  position: fixed;
  z-index: 1000;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity .25s ease, visibility .25s;
}

.site-map.is-open {
  visibility: visible;
  opacity: 1;
}

.site-map-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 10, 18, .72);
}

.site-map-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(850px, 100%);
  height: 100%;
  overflow-y: auto;
  color: #fff;
  background: var(--navy-950);
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.22, .61, .36, 1);
}

.site-map.is-open .site-map-panel {
  transform: translateX(0);
}

.site-map-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
  padding: 0 64px;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.site-map-logo {
  width: 270px;
}

.site-map-close {
  position: relative;
  width: 46px;
  height: 46px;
}

.site-map-close span {
  position: absolute;
  top: 22px;
  left: 8px;
  width: 30px;
  height: 2px;
  background: #fff;
}

.site-map-close span:first-child {
  transform: rotate(45deg);
}

.site-map-close span:last-child {
  transform: rotate(-45deg);
}

.site-map-body {
  padding: 70px 64px;
}

.site-map-title {
  padding-bottom: 24px;
  color: var(--brand-blue);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .08em;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
}

.site-map-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 60px;
}

.site-map-group {
  min-height: 260px;
  padding: 34px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.site-map-group h2 a {
  color: #fff;
  font-size: 25px;
  font-weight: 700;
}

.site-map-group ul {
  margin-top: 23px;
}

.site-map-group li + li {
  margin-top: 12px;
}

.site-map-group li a {
  color: #aebbc7;
  font-size: 18px;
}

.site-map-group a:hover,
.site-map-group a:focus {
  color: var(--brand-blue);
}

.site-map-channels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 42px;
  margin-bottom: 0;
  border: 1px solid rgba(255, 255, 255, .2);
}

.site-map-channels a {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  min-height: 110px;
  padding: 24px 30px;
  color: #fff;
  transition: background .2s ease;
}

.site-map-channels a + a {
  border-left: 1px solid rgba(255, 255, 255, .2);
}

.site-map-channels a:hover,
.site-map-channels a:focus {
  background: #103552;
}

.site-map-channels svg {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
}

.site-map-channels .channel-youtube-bg {
  fill: #ff0000;
}

.site-map-channels .channel-youtube-play {
  fill: #fff;
}

.site-map-channels .channel-kakao-bg {
  fill: #fee500;
}

.site-map-channels .channel-kakao-text {
  fill: #3c1e1e;
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: -.04em;
}

.site-map-channels span {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.site-map-channels small {
  color: #92a1ad;
  font-size: 18px;
  letter-spacing: .1em;
}

.site-map-channels strong {
  font-size: 20px;
}

/* ==================== FOOTER ==================== */
.site-footer {
  padding: 70px 0 62px;
  color: #a8b4bf;
  background: #07131f;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  width: 300px;
  margin-bottom: 28px;
}

.footer-info {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 0;
}

.footer-info span {
  padding: 0 18px;
  font-size: 18px;
}

.footer-info span + span {
  border-left: 1px solid rgba(255, 255, 255, .2);
}

.footer-copyright {
  margin-top: 17px;
  color: #667582;
  font-size: 18px;
  letter-spacing: .04em;
}

/* ==================== TOP BUTTON ==================== */
.top-button {
  --scroll-progress: 0;
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  color: #fff;
  background: var(--navy-900);
  border: 0;
  border-radius: 50%;
  font-size: 14px;
  letter-spacing: .08em;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: .2s ease;
}

.top-progress {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(-90deg);
  pointer-events: none;
}

.top-progress-track,
.top-progress-value {
  fill: none;
  stroke-width: 2;
}

.top-progress-track {
  stroke: rgba(255, 255, 255, .26);
}

.top-progress-value {
  stroke: var(--brand-blue);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - var(--scroll-progress));
  transition: stroke-dashoffset .08s linear;
}

.top-button-arrow {
  position: relative;
  margin-bottom: 1px;
  font-size: 16px;
  line-height: 1;
}

.top-button-label {
  position: relative;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.top-button.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ==================== RESPONSIVE : LAPTOP ==================== */
@media (max-width: 1280px) {
  .content-inner {
    width: min(1180px, calc(100% - 56px));
  }

  .header-inner {
    grid-template-columns: 250px auto 80px;
    width: calc(100% - 48px);
  }

  .header-logo {
    width: 240px;
  }

  .main-menu-item {
    min-width: 140px;
  }

  .main-menu-link {
    font-size: 18px;
  }
}

/* ==================== RESPONSIVE : TABLET ==================== */
@media (max-width: 980px) {
  .site-header,
  .site-header.is-sticky {
    position: relative;
    height: 74px;
    animation: none;
  }

  .site-header.is-sticky + .site-map + main {
    padding-top: 0;
  }

  .header-inner {
    display: flex;
    justify-content: space-between;
    width: calc(100% - 40px);
  }

  .header-logo {
    width: 230px;
  }

  .main-nav {
    display: none;
  }

  .site-map-top {
    height: 74px;
    padding: 0 36px;
  }

  .site-map-body {
    padding: 52px 36px;
  }
}

/* ==================== RESPONSIVE : MOBILE ==================== */
@media (max-width: 640px) {
  .content-inner {
    width: calc(100% - 36px);
  }

  .site-header,
  .site-header.is-sticky {
    height: 66px;
  }

  .header-inner {
    position: relative;
    width: calc(100% - 28px);
  }

  .header-logo {
    width: min(230px, calc(100% - 64px));
  }

  .menu-toggle {
    position: absolute;
    top: 50%;
    right: 0;
    width: 44px;
    height: 44px;
    padding: 10px 7px;
    transform: translateY(-50%);
  }

  .menu-toggle span {
    width: 26px;
    margin: 5px auto;
  }

  .site-map-top {
    height: 66px;
    padding: 0 20px;
  }

  .site-map-logo {
    width: min(230px, calc(100% - 60px));
  }

  .site-map-body {
    padding: 36px 20px 50px;
  }

  .site-map-grid {
    display: block;
  }

  .site-map-group {
    min-height: 0;
    padding: 24px 0;
  }

  .site-map-group h2 a {
    font-size: 21px;
  }

  .site-map-group ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 16px;
    margin-top: 18px;
  }

  .site-map-group li + li {
    margin-top: 0;
  }

  .site-map-group li a {
    font-size: 16px;
  }

  .site-map-channels {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }

  .site-map-channels a + a {
    border-top: 1px solid rgba(255, 255, 255, .2);
    border-left: 0;
  }

  .site-map-channels small {
    font-size: 14px;
  }

  .site-map-channels strong {
    font-size: 18px;
  }

  .site-footer {
    padding: 54px 0 45px;
  }

  .footer-logo {
    width: min(280px, 90%);
    margin-bottom: 24px;
  }

  .footer-info {
    flex-direction: column;
    gap: 7px;
  }

  .footer-info span {
    padding: 0;
    font-size: 15px;
  }

  .footer-info span + span {
    border-left: 0;
  }

  .footer-copyright {
    font-size: 14px;
  }

  .top-button {
    right: 14px;
    bottom: 14px;
    width: 54px;
    height: 54px;
  }
}
