p {
  font-size: 16px;
  line-height: 27px;
}

.page-cover {
  background-size: auto 104%;
  background-image: url(../images/about/cover-about.webp);
  background-position: center;
}

.cover-title::before {
  content: "";
  display: block;
  background-image: url(../images/about/title-about.png);
  width: 156px;
}

.message .shadow-title::before {
  width: 241px;
  background-image: url(../images/about/about-title-1.png);
}

.philosophy .shadow-title::before {
  width: 87.7vw;
  max-width: 329px;
  background-image: url(../images/about/about-title-2.png);
}

.history .shadow-title::before {
  width: 224px;
  background-image: url(../images/about/about-title-3.png);
}

.company-info .shadow-title::before {
  width: 261px;
  height: 90px;
  background-image: url(../images/about/about-title-4.png);
}

.message-container {
  margin-top: 60px;
}

.message-image {
  width: 100%;
  aspect-ratio: 335 / 412;
  background-color: #959595;
}

.message-image img {
  width: 100%;
  height: 100%;
}

.message-text {
  margin-top: 30px;
}

.message-sign {
  display: block;
  margin: 30px 0 0 auto;
  width: fit-content;
  font-size: 19px;
  line-height: 1;
  text-align: right;
}

.message-sign::before {
  display: block;
  content: "代表取締役";
  font-size: 14px;
  line-height: 19px;
  width: fit-content;
  margin-bottom: 5px;
}

.philosophy {
  overflow: hidden;
}

.philosophy-container {
  margin-top: 20px;
}

.philosophy-image {
  width: calc(100% + 40px);
  aspect-ratio: 375 / 515;
  position: relative;
  left: -20px;
  background-image: url(../images/about/philosophy-sp.webp);
  background-size: auto 100%;
  background-position: left;
  background-repeat: no-repeat;
}

@media (min-width: 543px) {
  .philosophy-image {
    background-image: url(../images/about/philosophy-pc.webp);
    aspect-ratio: 959 / 563;
  }
}

.philosophy-text {
  margin-top: 20px;
}

.philosophy p {
  margin-top: 16px;
}

.philosophy-title {
  font-size: 18px;
  line-height: 27px;
}

.philosophy-title span {
  font-size: 24px;
  line-height: 1;
  font-weight: 500;
  margin: 0 -10px;
}

html[lang="en"] .philosophy-title span {
  margin: 0;
}

.history-container {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.history-item {
  width: 100%;
  margin-left: auto;
  display: flex;
  flex-direction: row;
  gap: 7px;
}

.history-item__step {
  display: flex;
  position: relative;
  padding-top: 6px;
}

.history-item__step span {
  display: inline-block;
  width: 10px;
  height: 10px;
  min-height: 10px;
  border-radius: 50%;
  background-color: #a52c34;
}

.history-item:not(:last-child) .history-item__step::after {
  content: "";
  position: absolute;
  display: block;
  width: 1px;
  height: calc(100% + 40px);
  background-color: #d9d9d9;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
}

.history-item__year {
  color: #a52c34;
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
}

.history-item__text {
  margin-top: 15px;
}

.history-item__content span {
  font-size: 16px;
  line-height: 27px;
  margin-right: 10px;
}

.history-item__content p {
  display: inline-block;
}

.company-info-container {
  margin: 88px auto 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.company-info__row {
  display: flex;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(185, 166, 141, 0.65);
  position: relative;
}

.company-info__row * {
  font-size: 16px;
  line-height: 27px;
}

.company-info__label {
  width: 108px;
  min-width: 108px;
  font-weight: 600;
}
.company-info__row:first-child .company-info__value span {
  display: block;
  width: calc(100% - 40px);
}

.company-info iframe {
  margin: 30px -20px 0;
  width: calc(100% + 40px);
  aspect-ratio: 375 / 150;
}

@media (min-width: 768px) {
  .page-cover {
    background-size: 100% auto;
    background-position: center;
  }

  .cover-title::before {
    background-size: auto 100%;
    background-image: url(../images/about/title-about-pc.png);
    width: 312px;
  }

  .message .shadow-title::before {
    width: 482px;
    max-width: none;
    background-image: url(../images/about/about-title-1-pc.png);
  }

  .message-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 50px;
    max-width: 1000px;
    margin: 88px auto 0;
  }

  .message-image {
    width: 44.5%;
  }

  .message-text {
    width: 50.4%;
    margin-top: 0;
  }

  .philosophy .shadow-title::before {
    width: 657px;
    max-width: none;
    background-image: url(../images/about/about-title-2-pc.png);
  }

  .philosophy-container {
    margin: 108px auto 0 0;
  }

  @media (min-width: 983px) {
    .philosophy {
      padding-left: 0;
      padding-right: 0;
    }

    .philosophy-container {
      position: relative;
      max-width: 1200px;

      width: 100%;
    }

    @media (min-width: 1367px) {
      .philosophy-container {
        margin-left: auto;
      }
    }

    .philosophy-image {
      width: 90%;
      background-image: url(../images/about/philosophy-pc.webp);
      aspect-ratio: 959 / 563;
    }

    @media (max-width: 1200px) {
      .philosophy-image {
        width: 100%;
        min-height: 547px;
        aspect-ratio: unset;
        left: 0;
      }
    }

    .philosophy-text {
      position: absolute;
      width: 43.3%;
      min-width: 450px;
      right: 0px;
      top: 50%;
      transform: translateY(-50%);
      z-index: 2;
    }

    @media (max-width: 1230px) {
      .philosophy-text {
        right: 20px;
      }
    }

    .philosophy-title {
      font-size: 25px;
      line-height: 37px;
      text-shadow: 0px 0px 11px #ffffff;
    }

    .philosophy-title span {
      font-size: 38px;
      margin: 0 -20px;
    }

    html[lang="en"] .philosophy-title span {
      margin: 0;
    }

    .philosophy-text p {
      font-size: 18px;
      line-height: 30px;
      margin-top: 7px;
      text-shadow: 0px 0px 11px #ffffff;
    }
  }

  .history .shadow-title::before {
    width: 447px;
    max-width: none;
    background-image: url(../images/about/about-title-3-pc.png);
  }

  .history-container {
    max-width: 640px;
    margin: 117px auto 0;
  }

  .history-item {
    gap: 10px;
  }

  .history-item__text {
    margin-top: 20px;
  }

  .company-info {
    padding-bottom: 200px;
  }

  .company-info .shadow-title::before {
    width: 78vw;
    max-width: 783px;
    background-image: url(../images/about/about-title-4-pc.png);
  }

  .company-info-container {
    margin: 118px auto 0;
    max-width: 693px;
    gap: 40px;
  }

  .company-info__label {
    width: 253px;
    min-width: 253px;
    font-weight: 700;
  }

  .company-info iframe {
    width: calc(100% + 60px);
    margin: 100px -30px 0;
    max-width: 1000px;
    aspect-ratio: 1000 / 485;
  }

  @media (min-width: 1000px) {
    .company-info iframe {
      display: block;
      width: 100%;
      margin: 100px auto 0;
    }
  }
}
