:root {
  --white: #fff;
  --black: #151515;
  --button-height: 62px;
  --button-radius: 17px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
}

body {
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #252620;
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.page {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background-image: url("assets/pc-bg.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.34) 0%, rgba(0,0,0,.20) 36%, rgba(0,0,0,.12) 61%, rgba(0,0,0,.20) 100%);
}

.content {
  position: relative;
  z-index: 1;
  width: min(520px, 39vw);
  min-height: 100svh;
  margin-left: clamp(72px, 10.8vw, 208px);
  padding: clamp(70px, 10vh, 118px) 0 clamp(54px, 7vh, 86px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header {
  text-align: center;
}

.brand-logo {
  width: clamp(143px, 9.83vw, 189px);
  height: auto;
  margin: 0 auto clamp(32px, 4.5vh, 52px);
}

h1 {
  margin: 0;
  font-size: clamp(34px, 2.7vw, 52px);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.subtitle {
  margin: 14px 0 0;
  font-size: clamp(22px, 1.7vw, 32px);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.map-links {
  margin-top: clamp(34px, 5vh, 54px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.map-button {
  position: relative;
  isolation: isolate;
  min-height: var(--button-height);
  border-radius: var(--button-radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  background: rgba(255,255,255,.96);
  color: var(--black);
  text-decoration: none;
  font-size: clamp(15px, 1.05vw, 19px);
  font-weight: 600;
  letter-spacing: -0.02em;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  transition: color .35s ease, transform .15s ease;
  -webkit-tap-highlight-color: transparent;
}

.map-button::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: 22px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #1b1b1b 0 58%, #272727 74%, #151515 100%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform .46s cubic-bezier(.2,.75,.2,1);
}

.map-button:focus-visible {
  color: #fff;
  outline: none;
}

.map-button:focus-visible::before {
  transform: translate(-50%, -50%) scale(34);
}

@media (hover: hover) and (pointer: fine) {
  .map-button:hover {
    color: #fff;
  }

  .map-button:hover::before {
    transform: translate(-50%, -50%) scale(34);
  }
}

.map-button:active {
  transform: scale(.975);
  color: #fff;
}

.map-button:active::before {
  transform: translate(-50%, -50%) scale(34);
}

.showroom-info {
  margin-top: clamp(34px, 5vh, 54px);
  text-align: center;
}

.divider {
  height: 1px;
  background: rgba(255,255,255,.38);
  margin-bottom: 26px;
}

.info-row {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: #fff;
  font-size: clamp(14px, .98vw, 18px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.018em;
}

.info-row + .info-row {
  margin-top: 12px;
}

.info-row img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 18px;
}

.phone-link,
.phone-link:link,
.phone-link:visited,
.phone-link:hover,
.phone-link:active {
  color: #fff;
  text-decoration: none;
}


@media (max-width: 767px) {
  :root {
    --button-height: 49px;
    --button-radius: 17px;
  }

  html,
  body {
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    background: #37372f;
  }

  .page {
    width: 100%;
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    background-image: url("assets/mobile-bg.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #383830;
  }

  .shade {
    background: linear-gradient(
      180deg,
      rgba(0,0,0,.22) 0%,
      rgba(0,0,0,.12) 52%,
      rgba(0,0,0,.34) 100%
    );
  }

  .content {
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding:
      max(43px, calc(env(safe-area-inset-top) + 25px))
      7vw
      max(22px, calc(env(safe-area-inset-bottom) + 12px));
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
  }

  .header {
    flex: 0 0 auto;
  }

  .brand-logo {
    width: 148px;
    margin: 0 auto 23px;
  }

  h1 {
    font-size: clamp(24px, 6.5vw, 31px);
    line-height: 1.18;
    font-weight: 600;
  }

  .subtitle {
    margin-top: 11px;
    font-size: clamp(18px, 4.7vw, 22px);
    line-height: 1.18;
  }

  .map-links {
    flex: 0 0 auto;
    margin-top: 26px;
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .map-button {
    min-height: var(--button-height);
    height: var(--button-height);
    border-radius: var(--button-radius);
    padding: 0 14px;
    font-size: clamp(15px, 4.05vw, 18px);
    font-weight: 500;
  }

  /* The remaining flexible space between these blocks exposes the product. */
  .showroom-info {
    flex: 0 0 auto;
    margin-top: auto;
    padding: 0 0 2px;
  }

  .divider {
    margin-bottom: 24px;
  }

  .info-row {
    min-height: 0;
    gap: 11px;
    font-size: clamp(13px, 3.4vw, 15px);
    line-height: 1.18;
    white-space: nowrap;
  }

  .info-row + .info-row {
    margin-top: 8px;
  }

  .info-row img {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
  }
}

/* Only very short displays receive a mild reduction, capped near 7–8%. */
@media (max-width: 767px) and (max-height: 700px) {
  .content {
    padding-top: max(30px, calc(env(safe-area-inset-top) + 16px));
    padding-bottom: max(14px, calc(env(safe-area-inset-bottom) + 7px));
  }

  .brand-logo {
    width: 138px;
    margin-bottom: 26px;
  }

  h1 {
    font-size: clamp(23px, 6.05vw, 29px);
  }

  .subtitle {
    margin-top: 10px;
    font-size: clamp(17px, 4.4vw, 20px);
  }

  .map-links {
    margin-top: 27px;
    gap: 11px;
  }

  .map-button {
    min-height: 46px;
    height: 46px;
    font-size: clamp(14px, 3.75vw, 17px);
  }

  .divider {
    margin-bottom: 20px;
  }

  .info-row {
    font-size: clamp(12px, 3.15vw, 14px);
  }

  .info-row + .info-row {
    margin-top: 7px;
  }

  .info-row img {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }
}

@media (max-width: 374px) {
  .content {
    padding-left: 6vw;
    padding-right: 6vw;
  }

  .brand-logo {
    width: 138px;
    margin-bottom: 27px;
  }

  h1 {
    font-size: 23px;
  }

  .subtitle {
    font-size: 17px;
  }

  .map-links {
    margin-top: 28px;
    gap: 11px;
  }

  .map-button {
    min-height: 46px;
    height: 46px;
    font-size: 14px;
  }

  .info-row {
    font-size: 12px;
  }
}


@media (max-width: 767px) {
  .content {
    padding-top: max(48px, calc(env(safe-area-inset-top) + 30px));
  }

  .brand-logo {
    margin-bottom: 28px;
  }

  .subtitle {
    margin-top: 16px;
  }

  .map-links {
    margin-top: 31px;
    gap: 13px;
  }
}



@media (max-width: 767px) {
  .brand-logo {
    margin-bottom: 25px;
  }

  .map-links {
    margin-top: 28px;
  }
}









@media (hover: none), (pointer: coarse) {
  .map-button {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition:
      transform 120ms ease,
      color 120ms ease;
  }

  /* 리틀리처럼 버튼 정중앙의 작은 원이 빠르게 확대 */
  .map-button::before {
    left: 50%;
    top: 50%;
    width: 26px;
    height: 26px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(
      circle,
      #181818 0%,
      #111 64%,
      #050505 100%
    );
    transform: translate(-50%, -50%) scale(0);
    transform-origin: center;
    transition:
      transform 180ms cubic-bezier(.2,.72,.2,1);
    will-change: transform;
  }

  .map-button:focus,
  .map-button:focus-visible {
    outline: none;
  }

  .map-button.circle-fill-active {
    color: #fff;
    transform: scale(.985);
  }

  .map-button.circle-fill-active::before {
    transform: translate(-50%, -50%) scale(38);
  }

  /* 복귀할 때 축소 애니메이션 없이 즉시 초기화 */
  .map-button.circle-fill-reset,
  .map-button.circle-fill-reset::before {
    transition: none !important;
  }

  .map-button.circle-fill-reset {
    color: var(--black) !important;
    transform: none !important;
  }

  .map-button.circle-fill-reset::before {
    transform: translate(-50%, -50%) scale(0) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-button,
  .map-button::before {
    transition: none;
  }
}

/* ===== 홈 버튼 (좌측 상단) — 그라디언트 링 드로잉(SVG stroke-dashoffset) 애니메이션 ===== */
.btn_home {
  position: absolute;
  top: clamp(22px, 3.4vh, 40px);
  left: clamp(22px, 2.6vw, 40px);
  z-index: 3;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.btn_home__ico {
  position: relative;
  z-index: 1;
  width: 23px;
  height: 23px;
}
.btn_home__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
@media (max-width: 767px) {
  .btn_home {
    top: max(16px, calc(env(safe-area-inset-top) + 8px));
    left: 16px;
    width: 50px;
    height: 50px;
  }
  .btn_home__ico { width: 20px; height: 20px; }
}
