@import "reset.css";
@import "common.css";
@import "header.css";
@import "footer.css";
@import "footer-contact.css";

.p-page-content {
  position: relative;
}

.p-page-content__inner {
  display: flex;
  gap: 7%;
}

.company__aside {
  width: 200px;
  flex-shrink: 0;
}
.company__titles {
  position: sticky;
  top: 130px;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 14px;
  z-index: 10;
}

.company__title.is-active {
  color: #00407e;
  position: relative;
}

.company__title.is-active::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 0;
  width: 6px;
  height: 6px;
  background-color: #00a0ca;
}

.message {
  scroll-margin-top: 90px;
  position: relative;
}

.message::before {
  content: "";
  position: absolute;
  bottom: -210px;
  right: 0;
  transform: translateX(max(64px, calc((100vw - 1152px) / 2)));
  width: 204px;
  aspect-ratio: 204 / 530;
  background: url("../img/common/logo_bg_right.svg") no-repeat center/cover;
  mix-blend-mode: multiply;
}

.message__inner {
  display: flex;
  margin-top: 80px;
  gap: 7%;
}

.message__text {
  font-size: 16px;
  line-height: 2.2;
  letter-spacing: 0.64px;
}

.message__person {
  width: 20.6%;
  flex-shrink: 0;
}

.message__name {
  font-size: 20px;
  font-weight: 500;
  margin-top: 20px;
  letter-spacing: 0.64px;
}

.message__name span {
  font-size: 14px;
  font-weight: 400;
  display: block;
  line-height: 1;
}

.outline {
  position: relative;
  margin-top: 200px;
  scroll-margin-top: 90px;
}

.outline::before {
  content: "";
  position: absolute;
  top: 280px;
  left: 0;
  transform: translateX(min(calc(-260px - (100vw - 64px * 2) * 0.07), calc((-100vw + 1152px) / 2 - 260px - 7%)));
  width: 194px;
  aspect-ratio: 204 / 530;
  background: url("../img/common/logo_bg_left.svg") no-repeat center/cover;
  mix-blend-mode: multiply;
}

.outline__table {
  margin-top: 80px;
  line-height: 1.6;
}

.outline__table dl {
  display: flex;
  align-items: flex-start;
  padding: 32px 0;
  border-bottom: 1px solid #ededed;
}
.outline__table dl:first-of-type {
  border-top: 1px solid #ededed;
}

.outline__table dt {
  font-weight: 500;
  width: 28%;
  flex-shrink: 0;
}

.outline__map {
  margin-top: 40px;
  width: 100%;
  height: 480px;
}

.outline__map iframe {
  width: 100%;
  height: 100%;
}

.group {
  margin-top: 200px;
  scroll-margin-top: 90px;
}

.group__logos {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 80px;
}

.group__logo--1 {
  margin: 0;
  width: 19%;
}

.group__logo--2 {
  margin: 0;
  width: 20%;
}

.group__logo--3 {
  margin: 0;
  width: 11%;
}

.group__logo--4 {
  margin: 0;
  width: 10%;
}

.group__logo--5 {
  margin: 0;
  width: 14%;
}

@media only screen and (max-width: 767.9px) {
  .company__aside {
    display: none;
  }

  .message::before {
    bottom: -48px;
    transform: translateX(24px);
    width: 140px;
  }

  .message__inner {
    flex-direction: column;
    margin-top: 70px;
    position: relative;
    z-index: 1;
  }

  .message__person {
    width: 180px;
    margin: 30px auto;
  }

  .message__name {
    text-align: center;
    font-size: 20px;
    line-height: 2;
  }

  .message__name span {
    font-size: 14px;
    display: block;
  }

  .outline {
    margin-top: 90px;
  }

  .outline::before {
    top: auto;
    bottom: -62px;
    transform: translateX(-24px);
    width: 140px;
  }

  .outline__table {
    margin-top: 70px;
    position: relative;
    z-index: 1;
  }

  .outline__table dt {
    width: 35%;
  }

  .outline__map {
    height: 200px;
    position: relative;
    z-index: 1;
  }

  .group {
    margin-top: 120px;
  }

  .group__logos {
    margin-top: 65px;
    flex-wrap: wrap;
    gap: 44px 0;
  }

  .group__logo:nth-child(2n-1) {
    width: 36.5%;
  }

  .group__logo:nth-child(2n) {
    width: 50%;
  }

  .group__logo--1 img {
    width: 100%;
  }

  .group__logo--2 img {
    width: 100%;
  }

  .group__logo--3 img {
    display: block;
    margin: 0 auto;
    width: 75%;
  }

  .group__logo--4 img {
    width: 50%;
  }

  .group__logo--5 img {
    width: 100%;
  }
}
