/*
 * Responsive adjustments for the standalone top page.
 * This file keeps the top page responsive and contains standalone fixes.
 */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media screen and (min-width: 48em) and (max-width: 67.5em) {
  body:not(.mce-content-body) {
    width: 100%;
    min-width: 0;
  }
}

/* Logo replacement sizing */
.header--logo a,
.header_change .header--logo a,
.footer--logo a {
  display: block;
  line-height: 0;
}

.header--logo img,
.header_change .header--logo img {
  width: 92px !important;
  max-width: 92px !important;
  height: auto !important;
  aspect-ratio: auto !important;
  filter: none !important;
}

.footer--logo img {
  width: 110px !important;
  max-width: 110px !important;
  height: auto !important;
  aspect-ratio: auto !important;
  filter: none !important;
}

.home_about--logo {
  width: 180px !important;
  height: 180px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
}

.home_about--logo img {
  width: 72% !important;
  max-width: none !important;
  height: auto !important;
  aspect-ratio: auto !important;
}

@media screen and (max-width: 67.5em) {
  .header--logo img,
  .header_change .header--logo img {
    width: 84px !important;
    max-width: 84px !important;
  }

  body.menu-open {
    overflow: hidden;
    touch-action: none;
  }

  .gnav {
    z-index: 10001;
  }

  .gnav_btn {
    z-index: 10003;
    cursor: pointer;
    touch-action: manipulation;
  }

  .gnav_overlay {
    z-index: 10000;
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
  }

  .gnav_overlay.active {
    opacity: 1;
  }
}

@media screen and (max-width: 47.9375em) {
  .footer--logo img {
    width: 96px !important;
    max-width: 96px !important;
  }

  .home_about--logo {
    width: 150px !important;
    height: 150px !important;
  }

  .home_about--logo img {
    width: 70% !important;
  }
}

/* Hero eyecatch carousel replacement */
.hero_slides01 {
  display: none !important;
}

.hero_slides-main {
  pointer-events: auto !important;
  background: transparent !important;
  overflow: hidden;
}

.hero_slides-main::before {
  display: none !important;
}

.hero_carousel,
.hero_carousel .slick-list,
.hero_carousel .slick-track,
.hero_carousel .slick-slide,
.hero_carousel .slick-slide > div,
.hero_carousel-item {
  width: 100%;
  height: 100%;
}

.hero_carousel-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero_carousel .slick-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  z-index: 20;
  display: flex !important;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero_carousel .slick-dots li {
  margin: 0;
}

.hero_carousel .slick-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: none;
  border-radius: 9999px;
  background: rgba(255,255,255,0.6);
  font-size: 0;
  line-height: 0;
  cursor: pointer;
}

.hero_carousel .slick-dots .slick-active button {
  background: #7fbea0;
}

@media print, screen and (min-width: 48em) {
  .hero_slides02.hero_slides-main {
    left: calc(50% - 10px);
    right: auto;
    bottom: max(210px, min(11.8229166667vw, 240px));
    width: max(600px, min(49.21875vw, 945px));
    aspect-ratio: 945 / 622;
    -webkit-mask-image: url(../../../../../img/fv-slide-shape.svg);
            mask-image: url(../../../../../img/fv-slide-shape.svg);
    -webkit-mask-size: cover;
            mask-size: cover;
  }
}

@media screen and (max-width: 47.9375em) {
  .hero {
    height: 700px;
  }

  .hero_slides02.hero_slides-main {
    top: 70px;
    right: -20px;
    left: auto;
    bottom: auto;
    width: 94vw;
    aspect-ratio: 4 / 3;
    -webkit-mask-image: url(../../../../../img/fv-slide-shape.svg);
            mask-image: url(../../../../../img/fv-slide-shape.svg);
    -webkit-mask-size: cover;
            mask-size: cover;
  }

  .hero--content {
    top: 51%;
    left: 24px;
    right: 24px;
  }

  .hero_carousel .slick-dots {
    bottom: 14px;
    gap: 8px;
  }

  .hero_carousel .slick-dots button {
    width: 10px;
    height: 10px;
  }
}
