:root {
  --color-white: #fff;
  --color-grey: #9FADBD;
  --color-shade-grey: #313741;
  --color-black: #0e1111;
  --color-basic: #e5dfdd;

  --font-medium: 28px;
  --font-regular: 20px;
  --font-small: 16px;

  --weight-bold: 700;
  --weight-semi-bold: 600;

  --navbar-height: 4.25rem;
  --navbar-menu-font-size: 0.875rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-padding-top: var(--navbar-height);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: "Open Sans", sans-serif;
  padding-top: var(--navbar-height);
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: transparent;
}

h2 {
  font-size: var(--font-medium);
  font-weight: var(--weight-semi-bold);
  margin: 8px 0;
}

h3 {
  font-size: var(--font-regular);
  font-weight: var(--weight-semi-bold);
  margin: 8px 0;
}

p {
  font-size: var(--font-small);
}

.section {
  padding: 0 50px;
  text-align: center;
  margin: auto;
}

.section__container {
  max-width: 1200px;
  margin: auto;
}

#navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  padding-inline: 1rem;
  background-color: var(--color-shade-grey);
  color: var(--color-white);
  position: fixed;
  inset: 0 0 auto;
  height: var(--navbar-height);
  z-index: 30;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
  margin-inline-end: clamp(2rem, 4vw, 5rem);
}

.navbar__title {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.navbar__toggle {
  display: none;
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
  overflow-x: auto;
}

.navbar__menu a {
  padding: 0.625rem 0.75rem;
  border-radius: 0.25rem;
  font-size: var(--navbar-menu-font-size);
  line-height: 1.25rem;
  white-space: nowrap;
}

.navbar__menu a:hover {
  background-color: rgb(255 255 255 / 12%);
}

.navbar__phone {
  flex-shrink: 0;
  font-size: calc(var(--navbar-menu-font-size) * 1.5);
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.navbar__phone:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

#navbar a:focus-visible,
#navbar button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}

#home {
  position: relative;
  top: 0;
  left: 0;
  height: 100vh;
  max-height: 720px;
}

.fade__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.fade__img.active {
  opacity: 1;
}

.home__copy {
  position: absolute;
  z-index: 1;
  top: clamp(1.25rem, 4vw, 3.5rem);
  right: clamp(1rem, 5vw, 5rem);
  left: 1rem;
  color: var(--color-white);
  text-align: right;
  text-shadow: 0 2px 5px rgb(0 0 0 / 85%), 0 0 16px rgb(0 0 0 / 60%);
  word-break: keep-all;
}

.home__copy h1 {
  font-size: clamp(2rem, 4.4vw, 4rem);
  font-weight: var(--weight-bold);
  letter-spacing: -0.055em;
  line-height: 1.12;
}

.home__copy h1 span {
  display: block;
  margin-bottom: 0.4em;
  font-size: clamp(0.875rem, 1.5vw, 1.25rem);
  font-weight: var(--weight-semi-bold);
  letter-spacing: 0.06em;
}

.home__copy p {
  margin-top: clamp(0.625rem, 1.5vw, 1.125rem);
  color: #f5e9d8;
  font-size: clamp(0.9375rem, 1.9vw, 1.5rem);
  font-weight: var(--weight-semi-bold);
  letter-spacing: -0.035em;
  line-height: 1.45;
}

.visit-offer {
  width: 19rem;
  max-width: calc(100% - 2rem);
  max-height: calc(100dvh - 1rem);
  margin: auto;
  padding: 0.75rem 0.75rem 0.375rem;
  overflow: auto;
  border: 0;
  background: #29303a;
  color: var(--color-white);
}

.visit-offer::backdrop {
  background: rgb(0 0 0 / 90%);
}

html:has(.visit-offer[open]) {
  overflow: hidden;
}

.visit-offer__poster {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 17.5rem);
  max-height: calc(100dvh - 6rem);
  margin-inline: auto;
  border: 1px solid var(--color-white);
}

.visit-offer__actions {
  display: flex;
  justify-content: center;
  padding-top: 0.375rem;
}

.visit-offer__close {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding-inline: 0.5rem;
  color: var(--color-white);
  font: inherit;
  font-weight: var(--weight-semi-bold);
  white-space: nowrap;
}

.visit-offer__close span {
  font-size: 1.5rem;
  line-height: 1;
}

.visit-offer__close:focus-visible {
  outline: none;
  font-weight: var(--weight-bold);
}

.section-intro {
  padding: clamp(1.5rem, 4vw, 3rem) 1rem;
  background: #f3f5ef;
  color: #24382f;
  text-align: center;
  word-break: keep-all;
}

.section-intro h2 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

.section-intro p {
  max-width: 42rem;
  margin: 0.5rem auto 0;
  line-height: 1.6;
}

.section-intro a {
  text-decoration: underline;
}

.location-shell {
  --location-ink: #24382f;
  --location-muted: #52635a;
  --location-line: #cfd7cc;
  background: #f3f5ef;
  color: var(--location-ink);
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 5vw, 4rem);
}

.location-shell__inner {
  max-width: 1280px;
  margin-inline: auto;
}

.location-shell__overview {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.location-shell__label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--location-muted);
}

.location-shell__intro h2 {
  margin: 0.75rem 0 1rem;
  font-size: clamp(1.9rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.location-shell__summary,
.location-shell__highlights p {
  color: var(--location-muted);
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.location-shell__transit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.5rem;
  padding: 1rem 0;
  border-block: 1px solid var(--location-line);
}

.location-shell__transit div + div {
  padding-left: 1rem;
  border-left: 1px solid var(--location-line);
}

.location-shell__transit dt,
.location-shell__transfer {
  font-size: 0.875rem;
  color: var(--location-muted);
}

.location-shell__transit dd {
  font-weight: 600;
}

.location-shell__transit strong {
  margin-right: 0.25rem;
  font-size: 1.75rem;
}

.location-shell__transfer {
  margin-top: 0.65rem;
}

.location-shell__map {
  background: var(--color-white);
  border: 1px solid var(--location-line);
}

.location-shell__map img {
  display: block;
  width: 100%;
  height: auto;
}

.location-shell__map figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.375rem 1rem;
  padding: 0.375rem 1rem;
  border-top: 1px solid var(--location-line);
  color: var(--location-muted);
  font-size: 0.875rem;
}

.location-shell__enlarge {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--location-ink);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.location-shell__enlarge:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.location-shell__highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 2rem;
  list-style: none;
  margin-top: clamp(2rem, 5vw, 4rem);
}

.location-shell__highlights li {
  padding: 1rem 0 1.25rem;
  border-top: 1px solid var(--location-line);
}

.location-shell__highlights h3 {
  margin: 0 0 0.4rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.location-shell__note {
  margin-top: 0.75rem;
  color: var(--location-muted);
  font-size: 0.8125rem;
  line-height: 1.6;
}

#Feature {
  --carousel-columns: 1fr 1fr;
  --carousel-background: var(--color-shade-grey);
}

#comercial {
  --carousel-columns: 1.5fr 1fr;
  --carousel-background: #16332c;
}

.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel:not(.is-ready) .carousel__nav {
  display: none;
}

.carousel__track {
  display: grid;
  transition: transform 0.8s cubic-bezier(0.45, 0, 0.2, 1);
  will-change: transform;
}

.carousel.is-ready .carousel__track {
  display: flex;
}

.carousel__slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: var(--carousel-columns);
  min-height: 620px;
  background: var(--carousel-background);
}

.carousel__visual {
  position: relative;
  overflow: hidden;
}

.carousel__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s cubic-bezier(0.45, 0, 0.2, 1);
}

.carousel__slide.is-active .carousel__visual img {
  transform: scale(1.04);
}

.carousel__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, rgba(22, 51, 44, 0.4) 100%);
  pointer-events: none;
}

.carousel__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 56px;
}

.carousel__label {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: #8fb9a8;
  margin-bottom: 28px;
  font-weight: 500;
}

.carousel__label strong {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}

.carousel__lead {
  font-size: 15px;
  color: #a8cfc0;
  margin-bottom: 16px;
  line-height: 1.5;
}

.carousel__headline {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  margin-bottom: 24px;
  word-break: keep-all;
}

.carousel__headline span {
  display: block;
}

.carousel__desc {
  font-size: 15px;
  line-height: 1.7;
  color: #b8d4c8;
  max-width: 360px;
}

.carousel__nav {
  position: absolute;
  bottom: 32px;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 20;
  background: rgba(15, 31, 28, 0.75);
  backdrop-filter: blur(8px);
  padding: 10px 16px;
  border-radius: 40px;
}

.nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background 0.25s, transform 0.2s;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.06);
}

.nav-btn:active {
  transform: scale(0.96);
}

.carousel__count {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  min-width: 64px;
  text-align: center;
}

.carousel__count .divider {
  opacity: 0.4;
  margin: 0 4px;
}

.carousel__current {
  color: #7dcea0;
}

.layout__plan {
  margin-top: 40px;
  font-size: var(--font-regular);
  font-weight: var(--weight-semi-bold);
}

.slide-view {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 20px 0 10px;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  flex: 0 0 100%;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
}

.layout__enlarge,
.layout__preview-actions button {
  min-height: 44px;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--color-shade-grey);
  color: var(--color-white);
  font: inherit;
  font-weight: 600;
}

.layout__enlarge {
  display: none;
}

.layout__controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem auto;
}

.layoutBtn {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgb(0 0 0 / 18%);
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-shade-grey);
}

.layoutBtn::before {
  content: "";
  width: 9px;
  height: 9px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translateX(-2px) rotate(-45deg);
}

.layoutBtn.prev::before {
  transform: translateX(2px) rotate(135deg);
}

.layoutBtn:hover {
  background: var(--color-shade-grey);
  color: var(--color-white);
}

.dots {
  display: flex;
}

.dot {
  display: grid;
  width: 32px;
  height: 44px;
  place-items: center;
}

.dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--color-shade-grey);
}

.dot.active::before {
  background: var(--color-shade-grey);
}

.layout__preview {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  overflow: hidden;
  border: 0;
}

.layout__preview[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.layout__preview::backdrop {
  background: rgb(0 0 0 / 76%);
}

.layout__preview-actions {
  display: flex;
  justify-content: flex-end;
  padding: calc(0.375rem + env(safe-area-inset-top)) 0.75rem 0.375rem;
}

.layout__preview-scroll {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  touch-action: pan-x pinch-zoom;
  padding-bottom: env(safe-area-inset-bottom);
}

.layout__preview-scroll img {
  display: block;
  flex: none;
  width: auto;
  height: 100%;
  max-width: none;
  margin-inline: auto;
}

.unit__gallery {
  height: 830px;
  background: var(--color-basic) url("img/unit_bgc.png") no-repeat;
  overflow: hidden;
}

.unit__plan {
  display: flex;
  width: min(1260px, 100%);
  overflow: hidden;
  margin: 100px auto 0;
  padding: 50px 0;
}

.slide__wrap {
  display: flex;
  gap: 25px;
  will-change: transform;
  padding: 80px 0 0;
}

.slideItem {
  flex: 0 0 397px;
  height: 455px;
  display: flex;
  border: 5px solid var(--color-grey);
  border-bottom: 30px solid var(--color-grey);
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  transform: scale(0.9);
}

.slideItem.active {
  transform: scale(1.15);
  opacity: 1;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.unit-btn {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--color-grey);
  z-index: 20;
}

.preBtn {
  left: -20px;
}

.nextBtn {
  right: -20px;
}

.site-footer {
  background-color: oklch(0.28 0.045 245);
  color: oklch(0.97 0.01 85);
  font-family: "Pretendard", system-ui, sans-serif;
}

.site-footer__inner,
.site-footer__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.site-footer__inner {
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 72rem;
  margin-inline: auto;
  padding: 2.5rem 1.5rem;
}

.site-footer__brand {
  min-width: 0;
}

.site-footer img {
  display: block;
  width: auto;
  height: 2rem;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.site-footer__details {
  margin-top: 0.5rem;
  opacity: 0.85;
  word-break: keep-all;
}

.site-footer__name {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
}

.site-footer__notice {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  line-height: 1rem;
  opacity: 0.75;
}

.site-footer__contact {
  gap: 0.75rem 1.5rem;
}

.site-footer__phone {
  font-family: "Bahnschrift", sans-serif;
  font-size: 1.5rem;
  line-height: 1.25;
  white-space: nowrap;
}

.site-footer__phone:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

@media (max-width: 1080px) {
  :root {
    --navbar-height: 6rem;
    --navbar-menu-font-size: 0.8125rem;
  }

  #navbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 1fr auto;
    column-gap: 0.75rem;
    row-gap: 0;
    padding-inline: 0.75rem;
  }

  .navbar__logo {
    justify-self: start;
    min-width: 0;
    max-width: 100%;
    margin-inline-end: 0;
  }

  .navbar__logo img {
    max-width: 100%;
    height: auto;
  }

  .navbar__phone {
    grid-area: 1 / 2;
    justify-self: end;
  }

  .navbar__menu {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-content: safe center;
    border-top: 1px solid rgb(255 255 255 / 16%);
  }

  .navbar__menu a {
    padding-inline: 0.625rem;
  }
}

@media (max-width: 900px) {
  .location-shell__overview {
    grid-template-columns: 1fr;
  }

  .location-shell__highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.25rem;
  }

  .carousel__slide {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .carousel__visual {
    height: 280px;
  }

  .carousel__content {
    padding: 32px 28px 80px;
  }

  .carousel__headline {
    font-size: 24px;
  }

  .carousel__nav {
    bottom: 20px;
    right: 20px;
    left: 20px;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  :root {
    --navbar-height: 4.25rem;
    --mobile-inquiry-height: 3.5rem;
    scroll-padding-bottom: calc(var(--mobile-inquiry-height) + env(safe-area-inset-bottom));
  }

  body {
    padding-bottom: calc(var(--mobile-inquiry-height) + env(safe-area-inset-bottom));
  }

  #navbar {
    grid-template-rows: 1fr;
  }

  .navbar__toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 0.25rem;
    color: inherit;
  }

  .navbar__toggle span {
    width: 22px;
    height: 2px;
    background-color: currentColor;
    box-shadow: 0 -6px currentColor, 0 6px currentColor;
  }

  .navbar__menu {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    grid-area: auto;
    max-height: calc(100dvh - var(--navbar-height) - var(--mobile-inquiry-height) - env(safe-area-inset-bottom));
    overflow-y: auto;
    padding: 0.5rem 0.75rem;
    background-color: var(--color-shade-grey);
  }

  .navbar__toggle[aria-expanded="true"] + .navbar__menu {
    display: grid;
    justify-content: stretch;
  }

  .navbar__phone {
    position: fixed;
    inset: auto 0 0;
    grid-area: auto;
    justify-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(var(--mobile-inquiry-height) + env(safe-area-inset-bottom));
    padding: 0.5rem 1rem calc(0.5rem + env(safe-area-inset-bottom));
    background-color: var(--color-shade-grey);
    border-top: 1px solid rgb(255 255 255 / 24%);
  }

  h2 {
    font-size: 18px;
  }

  html,
  body {
    overflow-x: hidden;
    width: 100%;
  }

  #home {
    height: 50vh;
  }

  #layout {
    padding-inline: 16px;
  }

  .layout__enlarge {
    display: inline-block;
    margin-top: 1rem;
  }

  .unit__gallery {
    height: auto;
    padding: 0 16px 24px;
    background-position: 36% top;
  }

  .unit__plan {
    position: relative;
    margin: 0 auto;
    padding: 130px 0 20px;
  }

  .slide__wrap {
    flex: 0 0 100%;
    min-width: 0;
    padding-top: 0;
  }

  .slideItem {
    flex: none;
    width: min(397px, calc(100% - 32px));
    height: auto;
    aspect-ratio: 397 / 455;
    object-fit: contain;
  }

  .slideItem.active {
    transform: scale(1);
  }
}

@media (max-width: 480px) {
  .navbar__title {
    display: none;
  }

  .location-shell__highlights {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  :root {
    --navbar-menu-font-size: 0.75rem;
  }
}
