@import url("./basic.css");

.hero-title__active {
  letter-spacing: 0.48em;
  padding-left: 0.18em;
}

.active-hero-main {
  position: relative;
  padding-bottom: 36px;
}

.active-hero-main .universal-hero-intoro {
  padding-left: 0;
  padding-top: 50px;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  row-gap: 12px;
}

.active-hero-main .universal-hero-intoro > img {
  grid-area: auto;
  grid-row: 2;
  width: min(82.578125%, 1057px);
  justify-self: end;
  margin-top: 0;
  z-index: 1;
}

.active-hero-main .fitit3-universal-hero-title {
  grid-area: 1 / 1;
  grid-row: 1;
  align-self: start;
  justify-self: end;
  width: min(82.578125%, 1057px);
  margin: 0;
  padding-left: 12px;
  font-size: 40.5px;
  font-weight: 400;
  line-height: 1;
  color: #434853;
  display: flex;
  align-items: baseline;
  gap: 0.24em;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .active-hero-main .fitit3-universal-hero-title {
    font-size: clamp(24px, calc(2.23vw + 16.86px), 34px);
    margin-top: -10px;
    width: min(90%, 980px);
  }
}

.active-hero__Image {
  --active-hero-section-width: min(100vw, var(--wrap-max));
  --active-hero-image-width: min(calc(var(--active-hero-section-width) * 0.53125), 680px);
  --active-card-top-ratio: 0.7058823529;
  position: relative;
  width: min(100vw, var(--wrap-max));
  margin-left: calc(50% - (min(100vw, var(--wrap-max)) / 2));
  margin-top: 16px;
  padding-bottom: 60px;
  z-index: 4;
}

.active-hero__Image-main {
  display: block;
  width: var(--active-hero-image-width);
  height: auto;
  margin: 0 auto 0 5.859375%;
}

.active-story__Card {
  left: auto;
  right: 81px;
  top: calc(var(--active-hero-image-width) * var(--active-card-top-ratio));
  width: min(56%, 700px);
  max-width: 700px;
}

.active-story {
  --active-story-section-width: min(100vw, var(--wrap-max));
  --active-story-main-width: min(calc(var(--active-story-section-width) * 0.7546875), 966px);
  --active-story-sub-width: min(calc(var(--active-story-section-width) * 0.5125), 656px);
  --active-story-sub-overlap: calc(var(--active-story-section-width) * 0.1171875);
  --active-story-bg-top: calc(var(--active-story-section-width) * 0.46875);
  position: relative;
  width: min(100vw, var(--wrap-max));
  margin-left: calc(50% - (min(100vw, var(--wrap-max)) / 2));
  margin-top: 10px;
  padding-bottom: 22px;
  min-height: 0;
}

.active-story::after {
  content: "";
  position: absolute;
  top: var(--active-story-bg-top);
  right: 0;
  bottom: 0;
  left: 0;
  background: #edebeb;
  z-index: 0;
}

.active-story__main,
.active-story__sub {
  display: block;
  position: relative;
  height: auto;
}

.active-story__main {
  z-index: 1;
  width: var(--active-story-main-width);
  margin: 0 auto 0 0;
}

.active-story__sub {
  z-index: 2;
  width: var(--active-story-sub-width);
  margin: calc(var(--active-story-sub-overlap) * -1) 7.03125% 0 auto;
}

@media (max-width: 1024px) {
  .active-hero-main .fitit3-universal-hero-title {
    width: min(90%, 980px);
  }

  .active-hero-main .universal-hero-intoro > img {
    width: min(90%, 980px);
  }

  .active-hero__Image {
    margin-top: 20px;
    padding-bottom: 168px;
  }

}

@media (min-width: 870px) and (max-width: 1024px) {
  .active-story {
    margin-top: -75px;
  }
}

@media (min-width: 768px) and (max-width: 869px) {
  .active-story {
    margin-top: -50px;
  }
}

@media (min-width: 700px) and (max-width: 767px) {
  .active-story {
    margin-top: -90px;
  }
}

@media (min-width: 600px) and (max-width: 699px) {
  .active-story {
    margin-top: -75px;
  }
}

@media (min-width: 486px) and (max-width: 599px) {
  .active-story {
    margin-top: -60px;
  }
}

@media (min-width: 400px) and (max-width: 485px) {
  .active-story {
    margin-top: -45px;
  }
}

@media (max-width: 399px) {
  .active-story {
    margin-top: -30px;
  }
}

@media (max-width: 767px) {
  .active-hero-main .fitit3-universal-hero-title {
    width: 100%;
    justify-self: stretch;
    margin-left: 0;
    padding-left: 20px;
    text-align: left;
  }

  .active-hero-main {
    width: 100%;
    margin-left: 0;
    padding-bottom: 32px;
  }

  .active-hero-main .universal-hero-intoro {
    padding-left: 0;
    padding-top: 30px;
    row-gap: 8px;
  }

  .active-hero-main .universal-hero-intoro > img {
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }

  .active-hero__Image {
    margin-top: 12px;
    padding-bottom: 0;
  }

  .active-story__Card {
    position: relative;
    right: auto;
    top: auto;
    width: 90%;
    max-width: none;
    margin: -24px auto 0;
    padding: 34px 4% 32px;
  }

}

@media (max-width: 485px) {
  .active-story__Card {
    width: 90%;
  }
}

@media (max-width: 360px) {
  .active-hero-main .fitit3-universal-hero-title {
    font-size: 22px;
  }
}
