@charset "utf-8";

/* ======================================================================
/* root
====================================================================== */
:root {
  --color-brand: #00a9c8;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-gray: #f0f0f0;
  --color-navy: #1c3054;
  --color-turquoise-blue: #2eb6aa;
  --color-light-green: #effffe;
  --color-yellow: #fdd22b;
}

/* ======================================================================
/* html
====================================================================== */
html {
  scroll-behavior: smooth;
}

/* ======================================================================
/* a
====================================================================== */
a {
  text-decoration: none;
}

/* ======================================================================
/* ul ol
====================================================================== */
ul,
ol {
  list-style: none;
}

/* ======================================================================
/* br
====================================================================== */
.pc {
  display: block;
}

.sp {
  display: none;
}

@media screen and (width <=768px) {
  .pc {
    display: none;
  }

  .sp {
    display: block;
  }
}

/* ======================================================================
/* font-size
====================================================================== */
.fs-12 {
  font-size: 12px;
}

.fs-13 {
  font-size: 13px;
}

.fs-14 {
  font-size: 14px;
}

/* ======================================================================
/* img
====================================================================== */
img {
  display: block;
  margin: 0 auto;
  max-inline-size: 100%;
  vertical-align: bottom;
}

/* ======================================================================
/* section_title
====================================================================== */
.section_title {
  text-align: center;
}

/* ======================================================================
/* section_subTitle
====================================================================== */
.section_subTitle {
  text-align: center;
  margin-block: -10px 0;
}

/* ======================================================================
/* separatorLine
====================================================================== */
.separatorLine {
  border: 1px solid var(--color-navy);
  margin-block: 30px;
}

/* ======================================================================
/* bgColor
====================================================================== */
.bgColor-TurquoiseBlue {
  background: var(--color-turquoise-blue);
}

.bgColor-Navy {
  background: var(--color-navy);
}

.bgColor-white {
  background: var(--color-white);
}

/* ======================================================================
/* Menu
====================================================================== */
.hamburger-fade {
  position: fixed;
  inset-block-start: 0;
  inset-inline-end: calc(50% - 250px);
  z-index: 9999;
  inline-size: 50px;
  block-size: 50px;
  border: none;
  background: var(--color-black);
  cursor: pointer;

  & .wrapper {
    position: relative;
    width: 30px;
    height: 20px;
    margin: 10px auto;

    & .line {
      position: absolute;
      inset-inline-start: 0;
      inline-size: 100%;
      block-size: 1px;
      background-color: var(--color-white);
      transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);

      &:nth-child(1) {
        top: 0;
      }

      &:nth-child(2) {
        top: 9px;
      }

      &:nth-child(3) {
        top: 18px;
      }
    }
  }

  &.active .line {
    background-color: var(--color-white);

    &:nth-child(1) {
      transform: translateY(9px) rotate(45deg);
    }

    &:nth-child(2) {
      opacity: 0;
      transform: translateX(20px);
    }

    &:nth-child(3) {
      transform: translateY(-9px) rotate(-45deg);
    }
  }
}

.nav-fade {
  position: fixed;
  top: 0;
  left: 0;
  inline-size: 100%;
  block-size: 100vh;
  visibility: hidden;
  z-index: 9998;

  &.active {
    visibility: visible;

    & .nav-fade__bg {
      opacity: 1;
    }

    & .item {
      opacity: 1;
      transform: translateY(0);

      &:nth-child(1) {
        transition-delay: 0.2s;
      }

      &:nth-child(2) {
        transition-delay: 0.3s;
      }

      &:nth-child(3) {
        transition-delay: 0.4s;
      }

      &:nth-child(4) {
        transition-delay: 0.5s;
      }

      &:nth-child(5) {
        transition-delay: 0.6s;
      }

      &:nth-child(6) {
        transition-delay: 0.7s;
      }

      &:nth-child(7) {
        transition-delay: 0.8s;
      }

      &:nth-child(8) {
        transition-delay: 0.9s;
      }

      &:nth-child(9) {
        transition-delay: 1s;
      }
    }
  }
}

.nav-fade__bg {
  position: absolute;
  top: 0;
  left: 0;
  inline-size: 100%;
  block-size: 100%;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-fade__wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  padding: 5vh 36vw;
}

.nav-fadeList {
  margin: 0;
  padding: 0;
  list-style: none;

  & .item {
    position: relative;
    margin-block: 2vh;
    padding-inline-start: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
  }
}

.nav-fade__number {
  position: absolute;
  left: 0;
  color: var(--color-white);
  font-size: 14px;
  line-height: 1;
}

.nav-fade__link {
  display: inline-block;
  color: var(--color-white);
  font-size: 18px;
  text-decoration: none;
  transition: color 0.3s ease;
  line-height: 1;
}

.nav-fade__link:hover {
  color: var(--color-brand);
}

@media screen and (width <= 768px) {
  .hamburger-fade {
    inset-inline-end: 0;
  }

  .nav-fade__wrapper {
    padding: 5vh 10vw;
  }

  .nav-fade__link {
    font-size: 20px;
  }

  .nav-fade__item {
    padding-left: 40px;
    margin-bottom: 1.5vh;
  }

  .nav-fade__info {
    padding-left: 40px;
  }
}

/* ======================================================================
/* mv
====================================================================== */
.mv {
  position: relative;
  inline-size: 100%;
  block-size: auto;

  & .bg-video {
    position: absolute;
    inset: 50% 0 0 50%;
    transform: translate(-50%, -50%);
    inline-size: 500px;
    block-size: auto;
    object-fit: cover;
    z-index: 1;
    clip-path: inset(0 1px 1px 0);
  }

  & .mvContent {
    position: relative;
    z-index: 2;
    inset-block-start: 50%;

    & .diagnosisBox {
      margin-block-start: 15%;

      & img {
        inline-size: 100%;
      }
    }
  }
}

@media screen and (width <= 768px) {
  .mv {
    position: relative;

    & .bg-video {
      inline-size: 100vw;
    }
  }
}

/* ======================================================================
/* Swiper
====================================================================== */
.swiper {
  position: relative;
  inline-size: 100%;

  & .swiper-slide {
    height: auto;

    & img {
      inline-size: 100%;
    }
  }

  & .swiper-button-prev {
    position: absolute;
    top: 50%;
    left: 1%;
    content: "";
    display: block;
    inline-size: 40px;
    block-size: 40px;
    background: url(../img/common/slidePrev.svg) center center / cover no-repeat;
  }

  & .swiper-button-next {
    top: 50%;
    right: 1%;
    content: "";
    display: block;
    inline-size: 40px;
    block-size: 40px;
    background: url(../img/common/slideNext.svg) center center / cover no-repeat;
  }
}

@media screen and (width <= 768px) {
  .swiper {
    position: relative;

    & .swiper-button-prev {
      inline-size: 30px;
      block-size: 30px;
    }

    & .swiper-button-next {
      inline-size: 30px;
      block-size: 30px;
    }
  }
}

/* ======================================================================
/* propertyBox
====================================================================== */
.propertyBox {
  inline-size: 100%;
  block-size: auto;
  display: flex;
  flex-direction: column;
  margin-block: 50px 0;
  box-shadow: 0px 0px 4.75px 0.25px rgba(0, 0, 0, 0.25);
  border-radius: 3px;

  & .imgBox {
    position: relative;
    inline-size: 100%;

    &.Bonus {
      position: relative;

      &::after {
        content: "";
        display: block;
        position: absolute;
        inset-block-start: 0;
        inset-inline-end: 0;
        inline-size: 135px;
        block-size: 50px;
        background: url(../img/property/special_contract_bonus.svg) top center / cover no-repeat;
        z-index: 10;
      }
    }

    & img {
      border-radius: 3px 3px 0 0;
      aspect-ratio: 3 / 2;
    }
  }

  & .infoBox {
    max-inline-size: 475px;
    padding: 15px;

    & .infoHeader {
      margin-block-end: 18px;
      min-block-size: 54px;

      & .title {
        font-size: 18px;
        font-weight: bold;
        min-block-size: 54px;
      }

      & .address {
        font-size: 15px;
      }

      & .traffic {
        font-size: 11px;
        padding-block-start: 10px;
        min-block-size: 43px;
      }

      & .district {
        font-size: 11px;
      }
    }

    & .iconList {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: flex-start;
      gap: 20px;
      margin-block-end: 15px;

      & li {
        inline-size: calc(100% / 4 - 15px);
        background: var(--color-green);
        border-radius: 5px;

        & img {
          inline-size: 100%;
          block-size: auto;
        }
      }
    }

    & .infoBody {
      margin-block-end: 20px;

      & .tableList {
        margin-block: 0 20px;

        & .boxTable {
          max-block-size: 100%;
          display: flex;
          flex-wrap: wrap;

          & .tableItem {
            inline-size: 50%;
            border-bottom: solid 1px var(--color-white);
            display: flex;

            &:last-child {
              border-block-end: none;
            }

            & .tableTit {
              inline-size: 40px;
              padding: 10px;
              font-size: 12px;
              text-align: center;
              background: var(--color-black);
              color: var(--color-white);
              display: flex;
              align-items: center;
              justify-content: center;
              block-size: 30px;
            }

            & .tableTxt {
              inline-size: calc(100% - 40px);
              background: var(--color-gray);
              padding: 10px;
              block-size: 30px;
              font-size: 12px;
              display: flex;
              align-items: center;
              line-height: 1.2;

              & .price {
                font-size: 20px;
                font-weight: bold;
                color: var(--color-red);
              }

              & .vertical {
                display: grid;
                place-items: center;
                font-size: 13px;
                margin-inline-start: 5px;
              }

              & .tax {
                font-size: 10px;
              }
            }
          }
        }
      }

      & .drawingBox {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        min-block-size: 160px;

        & .drawingImgBox {
          position: relative;
          background: var(--color-gray);
          padding: 10px;

          &::after {
            position: absolute;
            bottom: 5px;
            right: 5px;
            content: "";
            display: block;
            inline-size: 30px;
            block-size: 30px;
            background: url(../img/common/zoom_in.svg) 100% 100% / cover no-repeat;
          }

          & img {
            display: block;
            margin: 0 auto;
            max-inline-size: 100%;
            block-size: auto;
          }
        }

        & p {
          text-align: center;
        }
      }
    }

    & .infoFooter {
      margin: 0;

      & .conversion {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;

        & .reserve a {
          position: relative;
          color: var(--color-white);
          background: var(--color-navy);
          font-weight: bold;
          display: flex;
          justify-content: space-around;
          align-items: center;
          padding: 10px;
          text-decoration: none;
          transition: 0.3s ease-in-out;
          font-size: 13px;

          &:hover {
            opacity: 0.8;
          }
        }

        & .document a {
          position: relative;
          color: var(--color-white);
          background: var(--color-turquoise-blue);
          font-weight: bold;
          display: flex;
          justify-content: space-around;
          align-items: center;
          padding: 10px;
          text-decoration: none;
          transition: 0.3s ease-in-out;
          font-size: 13px;

          &:hover {
            opacity: 0.8;
          }
        }
      }
    }
  }
}

@media screen and (width <= 768px) {
  .propertyBox {
    position: relative;

    & .iconList {
      flex-direction: row;
      flex-wrap: nowrap;
      overflow-x: scroll;

      & li {
        inline-size: 20%;
        flex-shrink: 0;
      }
    }

    & .infoBox {
      max-inline-size: 100%;

      & .infoBody {
        & .tableList {
          & .boxTable {
            inline-size: 100%;
            display: flex;
            flex-direction: column;

            & .tableItem {
              inline-size: 100%;

              & .tableTxt {
                & .vertical {
                  display: flex;
                  flex-direction: row-reverse;
                  align-items: end;
                  margin-inline-start: 0;
                }

                & .tax {
                  font-size: 13px;
                }
              }
            }
          }
        }

        & .drawingBox {
          grid-template-columns: repeat(2, 1fr);

          & .drawingImgBox {
            position: relative;

            &::after {
              position: absolute;
              bottom: 3px;
              right: 3px;
              content: "";
              display: block;
              inline-size: 20px;
              block-size: 20px;
              background: url(../img/common/zoom_in.svg) 100% 100% / cover no-repeat;
            }

            & img {
              max-inline-size: 100%;
            }
          }
        }
      }

      & .infoFooter {
        margin: 0;

        & .conversion {
          grid-template-columns: repeat(2, 1fr);
        }
      }
    }
  }
}

/* ======================================================================
/* floatMenu
====================================================================== */
.floatMenu {
  position: fixed;
  inline-size: 100%;
  inset-block-end: 0;
  inset-inline-start: 0;
  z-index: 9999;

  & a {
    display: block;
  }

  & ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 60px;
    max-inline-size: 500px;
    margin: auto auto;
    font-size: 18px;
    font-weight: bold;

    & .viewProperty {
      position: relative;
      display: grid;
      place-items: center;
      color: var(--color-white);
      background: var(--color-navy);
      block-size: 100%;
    }

    & .reservation {
      position: relative;
      display: grid;
      place-items: center;
      color: var(--color-white);
      background: var(--color-turquoise-blue);
      block-size: 100%;
    }
  }
}

@media screen and (width <= 768px) {
  .floatMenu {
    & ul {
      inline-size: 100%;
    }
  }
}

/* =====================================================
/* jsAccordion
===================================================== */
.jsAccordion {
  position: relative;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: bold;
  color: var(--color-white);
  margin-block: 30px 0;
  padding-block: 10px;

  &::before,
  &::after {
    content: "";
    position: absolute;
    inset-inline-end: 20px;
    inset-block-start: 50%;
    inline-size: 15px;
    block-size: 2px;
    background: var(--color-white);
    transform: translateY(-50%);
    transition: transform 0.3s ease;
  }

  &::after {
    transform: translateY(-50%) rotate(90deg);
  }

  &.is-open::after {
    transform: translateY(-50%) rotate(0deg);
    opacity: 0;
  }
}

.jsAccordion-details {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease-out;
}

/* =====================================================
/* Search Modal
===================================================== */
#searchOpen,
#searchClose {
  inline-size: 100%;
  color: var(--color-white);
  background: var(--color-turquoise-blue);
  border-radius: 5px;
  padding: 10px 20px;
  cursor: pointer;
}

#searchOpen {
  position: relative;
  font-size: 20px;
  font-weight: bold;

  &::after {
    content: "";
    position: absolute;
    inset-block-start: 30%;
    inset-inline-end: 22%;
    inline-size: 20px;
    block-size: 20px;
    background: url(../img/property/search.svg) center center / cover no-repeat;
  }
}

@media screen and (width <= 768px) {
  #searchOpen {
    position: relative;

    &::after {
      inset-inline-end: 7%;
    }
  }
}

#mask {
  background: rgba(0, 0, 0, 0.6);
  position: fixed;
  inset: 0;
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
}

#searchModal {
  background: var(--color-white);
  inline-size: 500px;
  padding: 15px;
  border-radius: 5px;
  position: absolute;
  inset-block-start: 32%;
  inset-inline-start: 50%;
  transform: translate(-50%, -32%);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;

  & h2 {
    font-size: 20px;
    color: var(--color-white);
    background: var(--color-turquoise-blue);
    display: grid;
    place-items: center;
    padding: 10px 20px;
  }

  & ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-block-start: 30px;
  }

  & #buildings {
    font-size: 24px;
    font-weight: bold;
    color: var(--color-navy);
  }

  & #search {
    inline-size: 100%;
    color: var(--color-white);
    background: var(--color-navy);
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    margin-block-end: 30px;
  }
}

@media screen and (width <= 768px) {
  #searchModal {
    inline-size: 95%;
    padding: 10px;
  }
}

/* =====================================================
/* customCheckBox
===================================================== */
.customCheckBox {
  border: none;
  inline-size: 100%;

  & label {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0 0.5em;
    max-inline-size: 100%;
    block-size: 50px;
    padding: 0.5em 0.7em;
    border: 1px solid var(--color-navy);
    border-radius: 3px;
    cursor: pointer;
    line-height: 1;

    &:has(:checked) {
      color: var(--color-black);
      border: 2px solid var(--color-turquoise-blue);
      background-color: var(--color-light-green);

      &::after {
        position: absolute;
        top: 17px;
        left: 16px;
        transform: rotate(45deg);
        inline-size: 6px;
        block-size: 10px;
        border: solid var(--color-turquoise-blue);
        border-width: 0 2px 2px 0;
        content: "";
      }
    }

    &::before {
      content: "";
      inline-size: 15px;
      block-size: 15px;
      border-radius: 1px;
      background-color: var(--color-light-green);
      border: 1px solid var(--color-turquoise-blue);
    }
  }

  & input {
    display: none;
  }

  & #participation {
    inline-size: 100%;
    margin-block-start: 10px;
  }
}

@media screen and (width <= 768px) {
  .customCheckBox {
    & label {
      &:has(:checked) {
        &::after {
          left: 13.5px;
        }
      }
    }
  }
}

/* =====================================================
/* fixedImg
===================================================== */
.fixedImg {
  display: none;
  position: fixed;
  inset-inline-end: calc(50% - 250px);
  inset-block-end: 60px;
  z-index: 9999;

  & img {
    inline-size: 100px;
  }
}

.fixedImgTooltip {
  position: absolute;
  inset-inline-start: 50%;
  inset-block-end: calc(100% + 10px);
  transform: translateX(-50%);
  inline-size: max-content;
  max-inline-size: 100px;
  padding: 5px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  z-index: 5;
  text-align: left;

  &::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
  }
}

@media screen and (width <= 768px) {
  .fixedImg {
    inset-inline-end: 0;
  }
}

body[data-diagnosis-completed="1"] .fixedImg {
  display: block;
}
