:root {
  --basic-width: calc(100vw / 1280);
  --primary-color: #23443E;
  --p: 1920 * 100;
  --s: 1080 * 100; 
}
@media screen and (max-width: 767px) {
  :root {
    --basic-width: calc(100vw / 390);
  }
}


html {
  scroll-behavior: smooth;
  scroll-padding-top: 62.46px;
}
@media screen and (max-width: 767px) {
  html {
    scroll-padding-top: calc(19.45vw / var(--s) * 3);
  }
}

body {
  opacity: 0;
  transition: opacity 800ms ease-in;
  background-color: #FFFDF1;
  font-feature-settings: "palt";
  color: var(--primary-color);
}

.about-title,
.gallery-title,
.floorplans-title,
.faq-title,
.map-title,
.heading-title,
.sidebar-menu-item > a.link {
  font-family: 'ivyjournal', serif;
  font-style: italic;
}

body.fade-in {
  opacity: 1;
}

body.fade-out {
  opacity: 0;
}

.hover-effect {
  opacity: 1 !important;
  transition: opacity 800ms ease !important;
}

.hover-effect:hover {
  opacity: .6 !important;
}

.-sp-i {
  display: none;
}
.-pc-i {
  display: inline;
}
br {
    &.-pc-br {
      display: inline;
    }
  &.-sp-br {
    display: none;
  }
}
@media screen and (max-width: 767px) {
  .-sp-i {
    display: inline;
  }
  .-pc-i {
    display: none;
  }
  br {
    &.-pc-br {
      display: none;
    }
    &.-sp-br {
      display: inline;
    }
  }
}

.main-content {
  position: relative;
  background-color: #FFFDF1;

  .main-content-before {
    position: absolute;
    max-width: 1858.61px;
    width: calc(100vw - 60px);
    height: calc(100% - 22.46px);
    pointer-events: none;
    top: 22.46px;
    left: 0;
    right: 0;
    margin: 0 auto;
    &::before {
      content: "";
      display: block;
      position: sticky;
      width: 100%;
      height: 20px;
      z-index: 2;
      background-color: var(--primary-color);
      margin: 0 auto;
      left: 0;
      right: 0;
      top: 22.46px;
    }

  }

  .main-content-inner {
    position: relative;
    width: calc(100vw - 60px);
    max-width: 1858.61px;
    margin: 0 auto;
    padding-top: 22.46px;
    padding-left: min(400px, calc(400vw / var(--p)));
    padding-right: min(182px, calc(182vw / var(--p)));

    /* padding-left: 400px;
    padding-right: 182px; */
  }
  .main-content-content {
    position: relative;
    z-index: 1;
    max-width: 1310px;
    width: 100%;
    /* margin-left: auto; */
  }
}
@media screen and (max-width: 767px) { 
  .main-content {
    width: 100%;

    .main-content-before {
      width: calc(100% - 32vw / var(--s) * 2);
      top: calc(19.45vw / var(--s));
      &::before {
        width: 100%;
        transform: translateX(0);
        top: calc(10vw / var(--s));
        height: calc(19.45vw / var(--s));
        margin: 0;
      }
    }
    .main-content-inner {
      padding: calc(19.45vw / var(--s)) 0 0 0;
      width: 100%;
      padding-inline: calc(30vw / var(--s));
    }
    .main-content-content {
      padding-left: calc(100vw / var(--s));
      padding-right: calc(100vw / var(--s));
    }
  }
}

.sidebar {
  position: absolute;
  top: 0;
  left: 0;
  width: min(205px, calc(205vw / var(--p)));
  height: 100%;
}
.sidebar-inner {
  position: sticky;
  top: 0;
  padding-top: calc(200vw / var(--p));
}
.sidebar-menu-item {
  height: min( 54.32px, calc(54.32vw / var(--p)));
  border-bottom: 1px solid var(--primary-color);
  &:first-child {
    border-top: 1px solid var(--primary-color);
  }
  a {
    display: flex;
    align-items: center;
    font-size: min(25px, calc(25vw / var(--p)));
    height: 100%;
    color: var(--primary-color);
    &:hover {
      text-decoration: underline;
    }
  }
}
.sidebar-menu-item > a.link {
  line-height: 1;
}
.sidebar-illustration {
  margin-top: min(73.5px, calc(73.5vw / var(--p)));
  width: 100%;
  max-width: min(123.07px, calc(123.07vw / var(--p)));
  aspect-ratio: 123.07/110.17;
}
.sidebar-reservation {
  margin-top: min(30px, calc(30vw / var(--p)));

  &.-sp {
    display: none;
  }
}
.sidebar-reservation a {
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 180/36.16;
  width: 100%;
  background: url(../img/top/modal-reservation-bg.svg) no-repeat center center;
  background-size: contain;
  font-family: 'ivyjournal', serif;
  font-size: min(20px, calc(20vw / var(--p)));
  font-style: italic;
}
.sidebar-close {
  display: none;
}

@media screen and (max-width: 767px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 2000;
    background-color: #FFFDF1;

    transition: all 0.3s ease;
    transform: translateX(-100%);
    pointer-events: none;

    &.is-open {
      transform: translateX(0);
      pointer-events: auto;
    }
  }
  .sidebar-close {
    display: block;
    width: calc(67.88vw / var(--s));
    cursor: pointer;

    position: absolute;
    top: calc(80vw / var(--s));
    right: calc(64vw / var(--s));

    img {
      width: 100%;
    }
  }
  .sidebar-inner {
    display: flex;
    gap: calc(191vw / var(--s));
    padding: calc(180vw / var(--s)) calc(80vw / var(--s)) 0 calc(55vw / var(--s));
  }
  .sidebar-menu {
    position: relative;
    padding: 0;
    width: calc(503.87vw / var(--s));
  }
  .sidebar-menu-item {
    display: flex;
    align-items: center;
    height: calc(135vw / var(--s));

    &.-with-child {
      height: calc(272vw / var(--s));
    }

    &:last-child {
      display: none;
    }

    a {
      font-size: calc(50vw / var(--s));
      white-space: nowrap;
    }
  }
  .sidebar-illustration {
    margin-top: auto;
    margin-bottom: 0;
    width: auto;
    max-width: none;
    img {
      width: 100%;
    }
  }

  .sidebar-language {
    display: flex;
    width: calc(236.37vw / var(--s));
    height: calc(67.67vw / var(--s));

    img {
      width: 100%;
    }
  }
  .sidebar-reservation {
    margin-top: 0;

    &.-sp {
      display: block;
    }
    &.-pc {
      display: none;
    }
  }
  .sidebar-reservation a {
    width: calc(435vw / var(--s));
    font-size: calc(40vw / var(--s));
  }
}

.actions {
  position: absolute;
  height: 100%;
  top: 0;
  right: 30px;
  width: 106px;
  margin-left: auto;
}
.actions-inner {
  position: sticky;
  top: 0;
  padding-top: 62.46px;
}
.actions-language {
  width: 100%;
}
.actions-come-in {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 328px;
}
.actions-open-menu {
  display: none;
}
@media screen and (max-width: 767px) {
  .actions {
    left: calc(30vw / var(--s));
    right: auto;
    width: calc(66.13vw / var(--s));
    z-index: 1000;
  }
  .actions-inner {
    padding-top: calc(80vw / var(--s));
  }
  .actions-language {
    display: none;
  }
  .actions-open-menu {
    display: flex;
    position: relative;
    width: 100%;
    height: calc(51.79vw / var(--s));
    cursor: pointer;

    i {
      display: block;
      width: 100%;
      height: 1px;
      background-color: var(--primary-color);
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      margin: auto;

      &:first-child {
        top: 0;
        margin-top: 0;
      }
      &:last-child {
        bottom: 0;
        margin-bottom: 0;
      }
    }
  }
  .actions-come-in{
    width: 100%;
    margin-top: calc(36.58vw / var(--s));

    .come-in {
      width: 100%;

      img {
        width: 100%;
      }
    }
   }
}


.footer-illustration {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 450px 0;

  .illustration {
    width: 100%;
    max-width: 141.355px;
  }
}

@media screen and (max-width: 767px) {
  .footer-illustration {
    height: auto;
    padding: calc(455vw / var(--s)) 0 calc(565vw / var(--s));
    gap: 0;
    .illustration {
      max-width: calc(280.34vw / var(--s));
      width: 100%;
    }
    .keytext {
      display: none;
    }
  }
}