/* ==========================================================================
  About Page
========================================================================== */

/* 代表挨拶 */
.about-message.section {
  padding-block: 40px 40px;
}

.about-message__body {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.about-message__media {
  flex: 0 0 42.6%;
  max-width: 469px;
}

.about-message__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 469 / 675;
  object-fit: cover;
}

.about-message__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.about-message__text p {
  margin: 0;
  font-size: 16px;
  line-height: 2.12;
  letter-spacing: 0.08em;
}

.about-message__text p+p {
  margin-block-start: 1em;
}

.about-message__sign {
  margin: 0;
  font-size: clamp(16px, 0.8rem + 0.8vw, 20px);
  font-weight: 500;
  line-height: 2.55;
  letter-spacing: 0.09em;
  text-align: right;
}

.about-profile.section {
  padding-block: 100px 40px;
}

.about-profile--legal.section {
  padding-block: 100px 150px;
}

.about-profile__title {
  --font-size--en: clamp(2rem, 1.2571rem + 3.0476vw, 4rem);
  --row-gap: 12px;
  --font-size: clamp(15px, 0.6286rem + 1.5238vw, 32px);

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--row-gap);
  margin: 0 0 2.5em;
  font-size: var(--font-size);
  font-weight: 400;
  line-height: 1.2;

  @media (width <=767px) {
    margin: 0 0 1.5em;
  }
}

.about-profile__title::before {
  font-size: var(--font-size--en);
  font-weight: 700;
  line-height: 1;
  color: #61ca3e;
  text-transform: uppercase;
  letter-spacing: 0.27em;
  content: attr(data-title--en);
}

.about-profile__title span {
  color: #555;
  font-weight: 700;
  letter-spacing: .1em;
}

.about-profile__row {
  display: flex;
  gap: 1.5em;
  padding: 1.25em 0;
  border-bottom: 1px solid #ddd;

  &:last-of-type {
    border-bottom: none;
  }
}

.about-profile__label {
  flex: 0 0 180px;
  font-weight: 700;
}

.about-profile__label p,
.about-profile__value p {
  margin: 0;
  line-height: 2;
}

.about-profile__value {
  flex: 1;
  min-width: 0;

  @media (width <=767px) {
    padding-left: 8px;
  }
}

/* 営業拠点 */
.about-locations {
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-locations__item {
  display: flex;
  margin-bottom: 0.8em;
}

.about-locations__col:first-of-type {
  white-space: nowrap;
  font-weight: bold;
}

.about-locations__col p {
  margin: 0;
}

.about-locations__sep {
  display: inline;
}

/* オフィス写真3列 */
.about-office-photos {
  display: flex;
  padding: 1em 1em 1.5em 0;
  width: 38svw;
}

.about-office-photos__item {
  width: calc(100% / 3);
}

.about-office-photos__item img {
  display: block;
  width: 100%;
  max-width: 100%;
  vertical-align: bottom;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

/* アクセス：パララックス */
.about-access.section {
  padding-block: 0 80px;
}

.about-parallax {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
}

.about-parallax__caption {
  position: absolute;
  inset-block-start: 50%;
  inset-inline: 0;
  z-index: 3;
  width: min(800px, 100%);
  margin-inline: auto;
  padding-inline: 20px;
  color: #fff;
  font-size: 22px;
  line-height: 1.5;
  text-align: center;
  transform: translateY(-50%);
}

.about-parallax__title {
  margin: 0 0 35px;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.5;
}

.about-parallax__desc {
  margin: 0;
  font-size: 16px;
  line-height: 2.5;
  color: #fff;
}

.about-parallax__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgb(0 0 0 / 20%);
}

.about-parallax__bg {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  z-index: 1;
  width: 100%;
  height: 170%;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

/* アクセス：地図 */
.about-access__map {
  position: relative;
  width: 100%;
  height: 520px;
  filter: grayscale(100%);
}

.about-access__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 1050px) {
  .about-access__map {
    height: 0;
    padding-top: 55%;
  }
}

@media (max-width: 950px) {
  .about-parallax {
    height: 300px;
    padding-block: 142px;
  }

  .about-parallax__title {
    font-size: 20px;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .about-parallax__desc {
    font-size: 12px;
  }

  .about-parallax__caption {
    padding-block: 0;
    position: absolute;
    inset-block-start: 50%;
    transform: translateY(-50%);
  }
}

@media (max-width: 850px) {
  .about-message__body {
    flex-direction: column;
    gap: 24px;
  }

  .about-message__media {
    flex: none;
    max-width: none;
    width: 100%;
  }

  .about-profile__row {
    flex-direction: column;
    gap: 0.5em;
  }

  .about-profile__label {
    flex: none;
  }

  .about-locations__sep {
    display: none;
  }

  .about-parallax {
    height: 250px;
  }
}

@media (max-width: 767px) {
  .about-profile__title {
    align-items: center;
    text-align: center;
  }

  .about-message__text p,
  .about-profile__label p,
  .about-profile__value p,
  .about-locations__col p {
    font-size: 14px;
  }

  .about-office-photos {
    width: 100%;
    padding: 12px 8px 8px 0;
  }

  .about-locations {
    padding-inline-start: 8px;
  }

  .about-locations__item {
    line-height: 2;
    margin-block: 0.8em;
  }
}

@media (max-width: 750px) {
  .about-access__map {
    padding-top: 130%;
  }

  .about-parallax {
    height: 150px;
  }

  .about-parallax__caption {
    position: absolute;
    inset-block-start: 50%;
    transform: translateY(-50%);
    padding-inline: 20px;
  }

  .about-parallax__title {
    font-size: 20px;
    margin-bottom: 25px;
  }

  .about-parallax__desc {
    line-height: 2.3;
  }

  .about-profile__title {
    --row-gap: 8px;
  }
}

@media (max-width: 480px) {
  .about-message.section {
    padding-block: 0 20px;
  }

  .about-profile.section {
    padding-block: 70px 0;

    &.about-profile--legal {
      padding-bottom: 80px;
    }
  }
}