.page-content {
  background-color: #2b2b2b;
}

.page-content__title::after {
  content: "事業沿革";
}

.page-content {
  padding: 4rem 1.35rem 13.6rem;
}

.page-content * {
  color: #fff;
}

.history__wrapper {
  margin: 50px auto 0;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.history__item-title {
  font-size: 2.5rem;
  line-height: 3.6rem;
  font-weight: 400;
  max-width: 535px;
  margin: 0 auto;
}

.history__item-image {
  width: 100%;
  max-width: 450px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.history__subitem {
  width: 100%;
  max-width: 535px;
  margin: 0 auto;
}

.history__subitem:not(:first-child) {
  margin-top: 2rem;
}

.history__subitem-date {
  display: block;
  font-family: "Noto Serif JP", sans-serif;
  font-size: 1.6rem;
  line-height: 2.3rem;
  margin-bottom: 1rem;
}

.history__subitem-text {
  font-size: 1.8rem;
  line-height: 2.7rem;
  font-weight: 300;
}

.history__item-div {
  width: 100%;
  max-width: 535px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  overflow: hidden;
  position: relative;
  top: 7px;
  margin: 0 auto;
  color: #fff;
}

.map {
  width: 100%;
  aspect-ratio: 375 / 250;
  max-height: 450px;
}

.history__banner {
  padding: 16rem 0;
  position: relative;
}

.history__banner-video {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.history__title {
  position: relative;
  text-align: left;
  color: #8fc320;
  text-shadow: 0px 3px 6px #fff;
  padding: 25.5px 10px;
  background: rgba(255, 255, 255, 0.8);
  font-size: clamp(2rem, 5.34vw, 2.8rem);
  line-height: 1.45;
  text-align: center;
}

.contact {
  padding: 8rem 1.35rem 10rem;
}

@media (min-width: 768px) {
  .page-content {
    background-color: #fff;
    box-sizing: content-box;
  }

  .page-content * {
    color: #000;
  }

  .history__wrapper {
    margin: 89px auto 0;
    gap: 60px;
  }

  .history__item {
    display: flex;
    flex-direction: row;
    gap: 4rem;
  }

  .history__item-image {
    max-width: 255px;
    max-height: fit-content;
    margin-top: 59px;
  }

  .history__item-title {
    position: relative;
  }

  .history__item-title::after {
    content: "...........................................................................................................................................................................";
    display: block;
    max-width: 535px;
    width: 100%;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: #000;
    position: absolute;
    bottom: -25px;
    overflow: hidden;
  }

  .history__subitem:not(:nth-child(2)) {
    margin-top: 5.7rem;
  }

  .history__item-title {
    margin-top: 0;
  }

  .history__item-content {
    width: calc(100% - 295px);
  }

  .history__item-div {
    display: none;
  }

  .history__item--no-image {
    justify-content: right;
  }

  .map {
    height: 599px;
    max-height: 599px;
  }

  .history__banner {
    padding: 26rem 0;
  }

  .history__title {
    padding: 72px 10px;
    font-size: 4rem;
    line-height: 1.43;
  }

  .contact {
    padding: 12rem 2rem 9.6rem;
  }

  @media (max-width: 910px) {
    .page-content {
      margin: 0 20px;
    }
  }
}