@charset "utf-8";

/* direction — Figma 1484:5651 @ 1920
   fullpage: 1 frame → scroll → footer (organization pattern) */

body.direction-page-body {
  background: #fff;
  font-family: Pretendard, "Noto Sans KR", sans-serif;
}

#fullpage > .section.direction-section {
  position: relative;
  overflow: hidden;
  height: 100%;
  background: #fff;
}

.direction-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #fff;
}

.direction-frame .page-hero {
  position: relative;
  z-index: 2;
  flex: 0 0 275px;
  background: #004e8f;
}

.direction-frame .page-hero__bg {
  inset: 0;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  opacity: 1;
}

.direction-frame .page-hero__dim {
  background-color: transparent;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  background-size: 650px 100%;
  background-position: left top;
  background-repeat: no-repeat;
}

.direction-page-body .footer-section .main-footer,
#fullpage .main-footer {
  position: relative;
  bottom: auto;
  left: auto;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  height: 350px;
  background: #0a1c31;
  color: #fff;
}

.direction-main {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  width: 100%;
  min-height: 0;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  overflow: hidden;
  background: #fff;
}

/* —— Left panel (Figma ~662px white) —— */
.direction-panel {
  position: relative;
  z-index: 3;
  flex: 0 0 clamp(300px, 34.5vw, 662px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 50px 60px 40px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.direction-headline {
  margin: 0 0 40px;
  font-size: clamp(28px, 2.5vw, 48px);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -1.2px;
  color: #111;
}

.direction-contacts-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
  margin-bottom: 16px;
}

.direction-contacts-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.direction-contacts-title__ko {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.55px;
  color: #111;
}

.direction-contacts-title__en {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.4px;
  color: #94a0b2;
}

.direction-naver {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  box-sizing: border-box;
  width: 167px;
  height: 42px;
  padding: 0 20px;
  border: 1px solid #0077d9;
  border-radius: 999px;
  background: #fff;
  color: #0077d9;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.45px;
  text-decoration: none;
}

.direction-naver:hover,
.direction-naver:focus-visible {
  outline: none;
}

.direction-naver:hover .direction-naver__arrow,
.direction-naver:focus-visible .direction-naver__arrow {
  animation: directionNaverArrowNudge 0.45s ease;
}

.direction-naver__arrow {
  display: block;
  width: 7px;
  height: 11px;
  flex: 0 0 7px;
}

@keyframes directionNaverArrowNudge {
  0%,
  100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

.direction-contacts-rule {
  flex-shrink: 0;
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 1px;
  min-height: 1px;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  background: rgba(148, 160, 178, 0.3);
}

.direction-card {
  position: relative;
  box-sizing: border-box;
  overflow: visible;
  border: 1px solid rgba(0, 119, 217, 0.3);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
}

.direction-card--address {
  margin-bottom: 10px;
}

.direction-card-row {
  display: flex;
  gap: 10px;
}

.direction-card-row .direction-card {
  flex: 1 1 0;
  min-width: 0;
}

.direction-card__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
  height: 82px;
  margin: -1px -1px 0;
  padding: 0 20px;
  border-radius: 5px 5px 0 0;
  background: #0077d9;
}

.direction-card--address .direction-card__head {
  background:
    linear-gradient(90deg, #0077d9 0%, #0077d9 55%, rgba(0, 119, 217, 0.85) 100%),
    url("../img/direction/addr_header.png") right center / cover no-repeat;
}

.direction-card__ko {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.45px;
  color: #fff;
}

.direction-card__en {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.3px;
  color: rgba(255, 255, 255, 0.7);
}

.direction-card__icon {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.direction-card__body {
  box-sizing: border-box;
  padding: 18px 20px 20px;
}

.direction-card__primary {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.4px;
  color: #111;
}

.direction-card__secondary {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.325px;
  color: rgba(17, 17, 17, 0.7);
  word-break: keep-all;
}

/* —— Map (right) —— */
.direction-map {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  align-self: stretch;
  overflow: hidden;
  background: #e8ecef;
  cursor: none;
  user-select: none;
  -webkit-user-select: none;
  container-type: size;
  container-name: direction-map;
}

/* Figma img frame 2402:2174 @ 1258×760 — always cover the map box */
.direction-map__scene,
.direction-map__lens-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.direction-map__artboard {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1258px;
  height: 760px;
  transform: translate(-50%, -50%) scale(max(calc(100cqw / 1258px), calc(100cqh / 760px)));
  transform-origin: center center;
  will-change: transform;
}

.direction-map__clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.direction-map__img {
  position: absolute;
  left: -0.24%;
  top: -5.66%;
  width: 114.79%;
  height: 106.05%;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
}

.direction-map__road {
  position: absolute;
  left: 82px;
  top: -31.5px;
  width: 730px;
  height: 802.5px;
  z-index: 1;
  pointer-events: none;
}

.direction-map__line-track {
  position: absolute;
  left: -14.6px;
  top: 607.08px;
  width: 199.2px;
  height: 166.84px;
  pointer-events: none;
  z-index: 1;
}

.direction-map__label {
  position: absolute;
  z-index: 2;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.35px;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(-50%);
}

.direction-map__label--park {
  left: 3.5%;
  top: 50.92%;
  color: #2ab400;
}

.direction-map__label--north {
  left: 92px; /* Figma 49 + 86/2 */
  top: 73px;
  color: #cd814c;
  text-transform: none;
  line-height: 1.4;
}

.direction-map__label--road {
  left: 282px; /* Figma 258 + 48/2 */
  top: 287px;
  color: #cd814c;
}

.direction-map__label--south {
  left: 717px; /* Figma 686 + 62/2 */
  top: 659px;
  color: #cd814c;
  text-transform: none;
}

.direction-map__label--line {
  left: 97px; /* Figma 79 + 36/2 */
  top: 659px;
  color: #0077d9;
  text-transform: none;
}

.direction-map__label--river {
  left: 84.5%;
  top: 51.32%;
  color: #005997;
}

.direction-map__spot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  transform: translate(-50%, 0);
}

.direction-map__spot span {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.35px;
  color: rgba(17, 17, 17, 0.5);
  text-align: center;
  white-space: nowrap;
}

.direction-map__spot img {
  display: block;
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
}

.direction-map__company {
  position: absolute;
  left: 648px;
  top: 308px; /* Figma 309 − 3px + 2px */
  z-index: 4;
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.55px;
  color: #0077d9;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(-50%);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
}

/* Figma pin Group 1497 @ 639,345 — 18×18 #0077d9 + pulse */
.direction-map__pin {
  position: absolute;
  left: 639px;
  top: 345px;
  z-index: 4;
  display: block;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.direction-map__pin-core,
.direction-map__pin-pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.direction-map__pin-core {
  width: 16px;
  height: 16px;
  background: #0077d9;
  z-index: 3;
}

.direction-map__pin-pulse {
  width: 74px;
  height: 74px;
  background: rgba(0, 119, 217, 0.45);
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  animation: none;
}

body.is-pin-pulse .direction-map__pin-pulse {
  visibility: visible;
  animation: direction-pin-pulse 4s ease-out infinite;
}

body.is-pin-pulse .direction-map__pin-pulse:nth-child(2) {
  animation-delay: 2s;
}

@keyframes direction-pin-pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.35);
    opacity: 0.7;
  }
  70% {
    opacity: 0.3;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .direction-map__pin-pulse {
    animation: none;
    opacity: 0;
    visibility: hidden;
  }

  body.is-pin-pulse .direction-map__pin-pulse {
    opacity: 0.35;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Magnifier lens — 340px; clones full img-frame scene */
.direction-map__lens {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  width: 340px;
  height: 340px;
  box-sizing: border-box;
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 30px 0 rgba(0, 119, 217, 0.35);
  background-color: #e8ecef;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: scale(0);
  transform-origin: center center;
  will-change: left, top, transform, opacity;
  transition:
    opacity 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.48s;
}

.direction-map__lens-scene {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-origin: 0 0;
  will-change: transform;
}

.direction-map.is-magnifying .direction-map__lens {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition:
    opacity 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
}

.direction-map.is-magnifying {
  cursor: none;
}

/* —— Intro (organization hero pattern) —— */
body.direction-page-body.is-dir-intro:not(.is-dir-entered) .direction-frame .page-hero__bg {
  opacity: 0;
  transform: scale(1.08);
}

body.direction-page-body.is-dir-intro:not(.is-dir-entered) .direction-frame .page-hero__dim {
  opacity: 0;
}

body.direction-page-body.is-dir-intro:not(.is-dir-entered) .direction-frame .page-breadcrumb,
body.direction-page-body.is-dir-intro:not(.is-dir-entered) .direction-frame .page-hero__en,
body.direction-page-body.is-dir-intro:not(.is-dir-entered) .direction-frame .page-hero__divider,
body.direction-page-body.is-dir-intro:not(.is-dir-entered) .direction-frame .page-hero__ko,
body.direction-page-body.is-dir-intro:not(.is-dir-entered) .direction-frame .page-hero__emblem {
  opacity: 0;
  transform: translateY(18px);
}

body.direction-page-body.is-dir-intro:not(.is-dir-entered) .direction-panel {
  opacity: 0;
  transform: translateX(-28px);
}

body.direction-page-body.is-dir-intro:not(.is-dir-entered) .direction-map {
  opacity: 0;
  transform: translateX(28px);
}

body.direction-page-body.is-dir-intro.is-dir-entered .direction-frame .page-hero__bg {
  opacity: 1;
  transform: scale(1);
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1), transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

body.direction-page-body.is-dir-intro.is-dir-entered .direction-frame .page-hero__dim {
  opacity: 1;
  transition: opacity 1s ease 0.15s;
}

body.direction-page-body.is-dir-intro.is-dir-entered .direction-frame .page-breadcrumb,
body.direction-page-body.is-dir-intro.is-dir-entered .direction-frame .page-hero__en,
body.direction-page-body.is-dir-intro.is-dir-entered .direction-frame .page-hero__divider,
body.direction-page-body.is-dir-intro.is-dir-entered .direction-frame .page-hero__ko,
body.direction-page-body.is-dir-intro.is-dir-entered .direction-frame .page-hero__emblem {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

body.direction-page-body.is-dir-intro.is-dir-entered .direction-frame .page-breadcrumb { transition-delay: 0.2s; }
body.direction-page-body.is-dir-intro.is-dir-entered .direction-frame .page-hero__en { transition-delay: 0.32s; }
body.direction-page-body.is-dir-intro.is-dir-entered .direction-frame .page-hero__divider { transition-delay: 0.4s; }
body.direction-page-body.is-dir-intro.is-dir-entered .direction-frame .page-hero__ko { transition-delay: 0.46s; }
body.direction-page-body.is-dir-intro.is-dir-entered .direction-frame .page-hero__emblem { transition-delay: 0.55s; }

body.direction-page-body.is-dir-intro.is-dir-entered .direction-panel {
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.55s,
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.55s;
}

body.direction-page-body.is-dir-intro.is-dir-entered .direction-map {
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.65s,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.65s;
}

@media (prefers-reduced-motion: reduce) {
  body.direction-page-body.is-dir-intro:not(.is-dir-entered) .direction-frame .page-hero__bg,
  body.direction-page-body.is-dir-intro:not(.is-dir-entered) .direction-frame .page-hero__dim,
  body.direction-page-body.is-dir-intro:not(.is-dir-entered) .direction-frame .page-breadcrumb,
  body.direction-page-body.is-dir-intro:not(.is-dir-entered) .direction-frame .page-hero__en,
  body.direction-page-body.is-dir-intro:not(.is-dir-entered) .direction-frame .page-hero__divider,
  body.direction-page-body.is-dir-intro:not(.is-dir-entered) .direction-frame .page-hero__ko,
  body.direction-page-body.is-dir-intro:not(.is-dir-entered) .direction-frame .page-hero__emblem,
  body.direction-page-body.is-dir-intro:not(.is-dir-entered) .direction-panel,
  body.direction-page-body.is-dir-intro:not(.is-dir-entered) .direction-map {
    opacity: 1;
    transform: none;
  }

  .direction-map__lens {
    transition: none;
    transform: none;
  }

  .direction-map.is-magnifying .direction-map__lens {
    transform: none;
  }
}

@media (max-width: 1024px) {
  .direction-panel {
    flex-basis: 42%;
    padding: 36px 32px 28px;
  }

  .direction-headline {
    margin-bottom: 30px;
  }

  .direction-map__company {
    font-size: 18px;
  }

  .direction-map__pin-pulse {
    width: 60px;
    height: 60px;
  }

  .direction-map__lens {
    width: 230px;
    height: 230px;
  }
}

@media (max-width: 900px) {
  .direction-main {
    flex-direction: column;
    overflow: auto;
  }

  .direction-panel {
    flex: 0 0 auto;
    width: 100%;
  }

  .direction-map {
    flex: 0 0 auto;
    width: 100%;
    min-height: 420px;
    aspect-ratio: 1258 / 760;
    cursor: auto;
  }

  .direction-map__lens {
    display: none;
  }

  .direction-headline br {
    display: none;
  }
}

@media (max-width: 640px) {
  .direction-frame .page-hero {
    flex-basis: 200px;
  }

  .direction-panel {
    padding: 28px 20px 24px;
  }

  .direction-contacts-head {
    flex-wrap: wrap;
  }

  .direction-card-row {
    flex-direction: column;
  }

  .direction-map {
    min-height: 320px;
  }

  .direction-map__label,
  .direction-map__spot span {
    font-size: 11px;
  }

  .direction-map__company {
    font-size: 14px;
  }

  .direction-map__pin {
    width: 14px;
    height: 14px;
  }

  .direction-map__pin-core {
    width: 14px;
    height: 14px;
  }

  .direction-map__pin-pulse {
    width: 48px;
    height: 48px;
  }
}

/* ========== Mobile ≤768 — fullpage 미사용, 세로 스택 ========== */
@media (max-width: 768px) {
  html:has(body.is-dir-mobile),
  body.direction-page-body.is-dir-mobile {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .is-dir-mobile #fullpage {
    height: auto !important;
    transform: none !important;
  }

  .is-dir-mobile #fullpage > .section.direction-section,
  .is-dir-mobile #fullpage > .section.footer-section {
    width: 100% !important;
    height: auto !important;
    overflow: visible;
  }

  .direction-frame {
    height: auto;
    overflow: visible;
  }

  .direction-frame .page-hero {
    flex: 0 0 auto;
  }

  .direction-frame .page-hero__dim {
    background-size: 70% 100%;
  }

  .direction-main {
    overflow: visible;
  }

  /* 연락처 패널 */
  .direction-panel {
    padding: 36px 20px 32px;
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .direction-headline {
    margin-bottom: 32px;
    font-size: 24px;
    line-height: 1.45;
    letter-spacing: -0.6px;
    word-break: keep-all;
  }

  .direction-contacts-head {
    flex-wrap: nowrap;
    align-items: center;
  }

  .direction-contacts-title__ko {
    font-size: 20px;
  }

  .direction-contacts-title__en {
    font-size: 13px;
  }

  .direction-naver {
    width: 142px;
    height: 38px;
    gap: 0;
    padding: 0 16px;
    font-size: 15px;
  }

  .direction-contacts-rule {
    margin-bottom: 16px;
  }

  .direction-card__head {
    height: 64px;
    padding: 0 16px;
  }

  .direction-card__ko {
    font-size: 16px;
  }

  .direction-card__en {
    font-size: 11px;
  }

  .direction-card__icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }

  .direction-card__body {
    padding: 14px 16px 16px;
  }

  .direction-card__primary {
    font-size: 15px;
    line-height: 1.4;
  }

  .direction-card__secondary {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.4;
  }

  .direction-card-row {
    flex-direction: row;
  }

  /* 지도 — 높이 고정, 아트보드 cover 축소분만큼 텍스트 확대 */
  .direction-map {
    height: 420px;
    min-height: 0;
    aspect-ratio: auto;
  }

  .direction-map__label,
  .direction-map__spot span {
    font-size: 20px;
  }

  .direction-map__spot img {
    width: 12px;
    height: 12px;
    flex-basis: 12px;
  }

  .direction-map__company {
    font-size: 30px;
  }

  .direction-map__pin,
  .direction-map__pin-core {
    width: 26px;
    height: 26px;
  }

  .direction-map__pin-pulse {
    width: 100px;
    height: 100px;
  }

  /* Footer — vertical stack */
  .direction-page-body .footer-section .main-footer,
  .direction-page-body #fullpage .main-footer {
    height: auto;
    min-height: 0;
  }

  .direction-page-body .main-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 20px 44px;
    gap: 24px;
  }

  .direction-page-body .main-footer__logo {
    width: 220px;
    height: auto;
  }

  .direction-page-body .main-footer__center {
    max-width: none;
    width: 100%;
    flex: none;
    margin-left: 0;
  }

  .direction-page-body .main-footer__links {
    gap: 20px;
    flex-wrap: wrap;
  }

  .direction-page-body .main-footer__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .direction-page-body .main-footer__sep {
    display: none;
  }

  .direction-page-body .main-footer__copy {
    margin-top: 20px;
  }

  .direction-page-body .main-footer__family {
    width: 100%;
    margin-left: 0;
  }

  .direction-page-body .main-footer__family-btn,
  .direction-page-body .main-footer__family-panel {
    width: 100%;
  }
}
