.philosophy__hero-title {
  background-color: #2b2b2b;
  padding: 4rem 2rem 2.7rem;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  justify-content: center;
  align-items: center;
}

.philosophy__hero-title-en {
  font-family: "Capellina Caps", serif;
  font-size: 3.2rem;
  line-height: 1;
  font-weight: bold;
  color: #8fc320;
  text-align: center;
}

.philosophy__hero-title-ja {
  font-size: 2.4rem;
  line-height: 3.5rem;
  text-align: center;
  color: #fff;
}

.philosophy__item {
  position: relative;
  padding: 5.4rem 1.35rem 4rem;
  background-image: url(../images/common/textile.webp);
  background-size: 400px 400px;
  background-repeat: repeat;
}

.philosophy__item:nth-child(2)::before {
  position: absolute;
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background-color: #e4f1f7;
  mix-blend-mode: multiply;
}

.philosophy__title {
  display: flex;
  gap: 2rem;
  align-items: flex-end;
  margin-bottom: 4rem;
}

.philosophy__title-en {
  font-size: 4.8rem;
  line-height: 6.9rem;
}

.philosophy__title-ja {
  font-size: 1.6rem;
  line-height: 2.3rem;
  position: relative;
  top: -1.5rem;
}

@media (max-width: 354px) {
  .philosophy__item:last-child .philosophy__title-ja {
    top: -1rem;
  }
}

.philosophy__text {
  font-size: 1.6rem;
  line-height: 2;
  letter-spacing: 0.03em;
}

.philosophy__legend {
  font-size: 2rem;
  line-height: 1.45;
  text-align: center;
  margin-top: 2rem;
}

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

@media (min-width: 768px) {
  .page-intro {
    position: relative;
    padding: 81px 0 min(55vw, 522px);
    overflow: hidden;
    max-width: 1366px;
    margin: 0 auto;
  }

  .page-intro__title {
    text-shadow: 0px 0px 20px #fff;
    text-align: left;
    padding-left: min(300px, calc(300px + 50vw - 600px));
    position: relative;
    z-index: 1;
  }

  .page-intro__image {
    position: absolute;
    left: 0;
    top: min(200px, max(0px, calc(1200px - 100vw)));
    display: block;
    margin: 0;
    width: fit-content;
  }

  .page-intro__image img {
    max-width: clamp(600px, 78vw, 936px);
  }

  .page-intro__text {
    font-size: 1.6rem;
    line-height: 2;
    max-width: 456px;
    margin-left: min(588px, calc(588px + 50vw - 600px));
    margin-top: 61px;
    position: relative;
  }

  .philosophy__hero-title {
    background-color: #fff;
    padding: 14rem 2rem 9.5rem;
    gap: 8px;
    flex-direction: row;
    align-items: center;
  }

  .philosophy__hero-title-en {
    font-size: 6.4rem;
  }

  .philosophy__hero-title-ja {
    font-size: 4rem;
    line-height: 5.7rem;
    text-align: left;
    color: #000;
    position: relative;
    top: 0.35em;
  }

  .philosophy__wrapper {
    position: relative;
  }

  .philosophy__item {
    padding: 16rem 2rem;
  }

  .philosophy__title-ja {
    font-size: 4rem;
    line-height: 5.7rem;
    display: block;
    margin: 0 auto;
  }

  .philosophy__title-en {
    position: absolute;
    font-size: min(120px, 10vw);
    line-height: 1.44;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    transform-origin: center center;
    right: -0.9em;
  }

  .philosophy__item:nth-child(2) .philosophy__title-en {
    right: auto;
    left: -1.5em;
  }

  .philosophy__item:last-child .philosophy__title-en {
    right: -1.05em;
  }

  .philosophy__text {
    width: fit-content;
    display: block;
    margin: 0 auto;
    letter-spacing: 0;
  }

  .philosophy__item:first-child .philosophy__text {
    text-align: center;
  }

  .philosophy__item:nth-child(2) .philosophy__text {
    max-width: 640px;
  }

  .philosophy__item:last-child .philosophy__text {
    max-width: 592px;
  }

  .philosophy__text .pc {
    display: inline-block;
  }

  @media (max-width: 940px) {
    .philosophy__item:nth-child(2) .philosophy__text {
      padding-left: max(0px, calc(470px - 50vw));
    }

    .philosophy__item:last-child .philosophy__text {
      padding-right: max(0px, calc(470px - 50vw));
    }

    .philosophy__text:last-child span.pc {
      display: none;
    }
  }
}
