@charset "UTF-8";

/* ========================================
   Company
======================================== */

.p-company {
  position: relative;
  overflow: hidden;
  background: #efefef;
  color: #111;
}

.p-company__body {
  position: relative;
  width: min(100%, 996px);
  margin-inline: auto;
}

.p-company__section {
  width: min(calc(100% - 180px), 600px);
  margin-inline: auto;
}

.p-company__section--message {
  width: min(calc(100% - 144px), 800px);
  margin-top: 100px;
}

.p-company__profile {
}

.p-company__profile-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid #777;
}

.p-company__profile-row:first-child {
  border-top: 1px solid #777;
}

.p-company__profile-row dt,
.p-company__profile-row dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
}

.p-company__profile-row dt {
  font-weight: 700;
}

.p-company__profile-row dd {
  font-weight: 500;
}

.p-company__address-block + .p-company__address-block {
  margin-top: 17px;
}

.p-company__address-title {
  font-weight: 700;
}

.p-company__address-block address {
  margin: 3px 0 0;
  font-style: normal;
}

.p-company__map-link {
  position: relative;
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  padding-right: 16px;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 0 1px;
  transition: background-size 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.p-company__map-link::after {
  content: "↗";
  position: absolute;
  right: 0;
  top: 0;
}

@media (hover: hover) and (pointer: fine) {
  .p-company__map-link:hover {
    background-size: calc(100% - 16px) 1px;
  }
}

.p-company__map-link:focus-visible {
  background-size: calc(100% - 16px) 1px;
}

.p-company__profile-row--departments {
  padding-bottom: 4px;
}

.p-company__department {
  margin-bottom: 22px;
}

.p-company__department h2 {
  margin: 0 0 5px;
  font-size: 12px;
  line-height: 1.6;
}

.p-company__department p {
  margin: 0;
}

.p-company__message {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  align-items: start;
  gap: 70px;
}

.p-company__message--text-only {
  display: block;
}

.p-company__message--text-only .p-company__message-content {
  width: min(100%, 600px);
  margin-inline: auto;
}

.p-company__message-image {
  margin: 0;
}

.p-company__message-image-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1.16;
  background: #d9d9d9;
  color: #555;
  font-size: 12px;
}

.p-company__message-content {
  font-size: 15px;
  font-weight: 500;
  line-height: 2;
}

.p-company__message-content p + p {
  margin-top: 50px;
}

.p-company__message-motto {
  font-weight: 700;
}

.p-company__message-signature {
  margin-top: 50px !important;
  font-size: 14px;
  font-weight: 700;
}

.p-company__message-signature-name {
  margin-left: 12px;
  font-size: 16px;
}

@media (max-width: 767px) {
  .p-company__body {
    width: 100%;
    padding: 0;
  }

  .p-company__section,
  .p-company__section--message {
    width: calc(100% - 40px);
    max-width: none;
  }

  .p-company__section--message {
    margin-top: 88px;
  }

  .p-company__profile {
    margin-top: 0;
  }

  .p-company__profile-row {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 18px;
    padding: 18px 0;
  }

  .p-company__profile-row dt,
  .p-company__profile-row dd {
    font-size: 14px;
    line-height: 1.65;
  }

  .p-company__address-block + .p-company__address-block {
    margin-top: 16px;
  }

  .p-company__address-block address {
    margin-top: 2px;
    font-size: 14px;
  }

  .p-company__map-link {
    margin-top: 2px;
    font-size: 12px;
  }

  .p-company__profile-row--departments {
    padding-bottom: 2px;
  }

  .p-company__department {
    margin-bottom: 20px;
  }

  .p-company__department h2 {
    margin-bottom: 4px;
    font-size: 12px;
  }

  .p-company__message {
    grid-template-columns: 1fr;
    gap: 34px;
    margin-top: 40px;
  }

  .p-company__message-image {
    width: clamp(280px, 71.7949vw, 420px);
    max-width: 100%;
    margin-inline: auto;
  }

  .p-company__message-content {
    font-size: 14px;
    line-height: 1.9;
  }

  .p-company__message-content p + p {
    margin-top: 32px;
  }

  .p-company__message-signature {
    margin-top: 36px !important;
    font-size: 12px;
  }

  .p-company__message-signature-name {
    margin-left: 10px;
    font-size: 14px;
  }
}
