.p-company {
  background: #fff;
}

.p-company .l-container,
.company-container {
  max-width: 1240px;
}

.p-company-hero {
  --sub-hero-image: url("../images/company-hero.jpg");
  --sub-hero-panel-left: 0;
  --sub-hero-panel-width: clamp(620px, 65vw, 1000px);
  --sub-hero-panel-wide-width: 1280px;
}

.p-company-head {
  text-align: center;
}

.p-company-head__sub {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 16px;
  font-weight: 700;
  color: #165e83;
  line-height: 1;
  margin: 0 0 9px;
}

.p-company-head__main {
  font-size: 42px;
  line-height: 1.35;
  color: #000;
  font-weight: 700;
  margin: 0;
}

.p-company-profile {
  padding: 104px 0 38px;
}

.p-company-profile__grid {
  display: grid;
  grid-template-columns: 388px minmax(0, 534px);
  gap: 94px;
  justify-content: center;
  align-items: start;
  margin-top: 60px;
  transform: translateX(25px);
}

.p-company-profile__photo {
  margin: 0;
  width: 388px;
  height: 258px;
  overflow: hidden;
}

.p-company-profile__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-company-profile__role {
  font-family: "Noto Serif JP", serif;
  font-size: 20px;
  line-height: 1.5;
  margin: 0 0 2px;
}

.p-company-profile__name {
  font-family: "Noto Serif JP", serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 29px;
}

.p-company-profile__text {
  font-size: 14px;
  line-height: 24px;
}

.p-company-profile__text p {
  margin: 0;
}

.p-company-history {
  padding: 103px 0 0;
}

.p-company-history__list {
  width: 100%;
  margin: 79px auto 0;
  padding: 0;
  list-style: none;
}

.p-company-history__item {
  position: relative;
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 10px;
  padding-left: 56px;
  min-height: 48px;
  font-size: 20px;
  line-height: 1.5;
  padding-bottom: 50px;
}

.p-company-history__item::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 15px;
  bottom: -15px;
  width: 1px;
  background: #165e83;
}

.p-company-history__item:last-child::before {
  display: none;
}

.p-company-history__dot {
  position: absolute;
  left: 0;
  top: 7px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #165e83;
}

.p-company-history__year {
  color: #165e83;
}
.p-company-history__text {
  font-size: 14px;
  line-height: 1.8;
  width: 100%;
  grid-column: 1 / -1;
}
.p-company-philosophy {
  padding: 132px 0 0;
  text-align: center;
}

.p-company-philosophy__lead {
  color: #3c7899;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.7;
  margin: 85px 0 25px;
}

.p-company-philosophy__text {
  max-width: 1058px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.9;
}

.p-company-philosophy__text p {
  margin: 0 0 8px;
}

.p-company-values {
  padding: 112px 0 104px;
}

.p-company-values__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 373px));
  gap: 41px;
  margin: 95px 0 0;
  padding: 0;
  list-style: none;
}

.p-company-values__media {
  margin: 0 0 26px;
  width: 100%;
  aspect-ratio: 373 / 248;
  overflow: hidden;
}

.p-company-values__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-company-values__title {
  color: #3c7899;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  margin: 0 0 28px;
}

.p-company-values__text {
  font-size: 14px;
  line-height: 24px;
  margin: 0;
}

@media (max-width: 1023.98px) {
  .p-company-profile__grid {
    grid-template-columns: minmax(0, 388px) minmax(0, 1fr);
    gap: 48px;
  }

  .p-company-values__list {
    gap: 24px;
  }
}

@media (max-width: 767.98px) {
  .p-company-hero {
    --sub-hero-sp-image-right: -180px;
    --sub-hero-sp-image-width: 720px;
    --sub-hero-sp-panel-left: -240px;
    --sub-hero-sp-panel-width: 560px;
  }

  .p-company-head__main {
    font-size: 30px;
  }

  .p-company-profile {
    padding: 48px 0 24px;
  }

  .p-company-profile__grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 48px;
    transform: none;
  }

  .p-company-profile__photo {
    width: 100%;
    height: auto;
    aspect-ratio: 388 / 258;
  }

  .p-company-history {
    padding-top: 56px;
  }

  .p-company-history__list {
    width: 100%;
    max-width: 390px;
    margin-top: 48px;
  }

  .p-company-history__item {
    grid-template-columns: 70px 1fr;
    padding-left: 32px;
    font-size: 16px;
  }

  .p-company-philosophy {
    padding-top: 56px;
  }

  .p-company-philosophy__lead {
    font-size: 19px;
    margin: 48px 0 25px;
  }

  .p-company-philosophy__text {
    text-align: left;
    font-size: 15px;
  }

  .p-company-values {
    padding: 56px 0 64px;
  }

  .p-company-values__list {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 48px;
  }
}
