.company-profile {
  padding: 70px 20px;
  background: #fff;
}

.company-inner {
  max-width: 780px;
  margin: 0 auto;
}

.company-inner h2,
.message-inner h2 {
  font-size: 22px;
  color: #757575;
  margin-bottom: 42px;
  font-weight: 500;
}

.company-table div {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-top: 1px solid #ddd;
  padding: 22px 16px;
}

.company-table div:last-child {
  border-bottom: 1px solid #ddd;
}

.company-table dt {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: #757575;
}

.company-table dd {
  font-size: 16px;
  line-height: 1.9;
  color: #757575;
  font-weight: 600;
}

.history {
  padding: 70px 20px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)),
    url("../img/office.avif");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.history-inner {
  max-width: 780px;
  margin: 0 auto;
}

.history h2 {
  font-size: 24px;
  color: #333;
  margin-bottom: 30px;
}

.history-list div {
  display: grid;
  grid-template-columns: 180px 1fr;
  padding: 18px 0;
  border-top: 1px solid #2d4b9b;
}

.history-list div:last-child {
  border-bottom: 1px solid #2d4b9b;
}

.history-list dt,
.history-list dd {
  font-size: 16px;
  line-height: 1.8;
  font-weight: 700;
  color: #333;
}

.message {
  padding: 80px 20px 100px;
  background: #fff;
}

.message-inner {
  max-width: 780px;
  margin: 0 auto;
}

.message-content {
  position: relative;
}

.message-photo {
  width: 230px;

  opacity: 0;
  transform: translateX(-60px);
  transition:
    opacity 2s cubic-bezier(0.22, 1, 0.36, 1),
    transform 2s cubic-bezier(0.22, 1, 0.36, 1);
}

.message-photo.show {
  opacity: 1;
  transform: translateX(0);
}

.message-box {
  width: 620px;
  margin: -60px 0 0 140px;
  padding: 42px 42px;
  background: #e8e4dc;
  position: relative;
  z-index: 1;

  opacity: 0;
  transform: translateX(60px);
  transition:
    opacity 2.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 2.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.message-box.show {
  opacity: 1;
  transform: translateX(0);
}

.message-name {
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: 700;
}

.message-box p {
  font-size: 14px;
  line-height: 1.9;
  color: #757575;
  font-weight: 600;
}

/* SP */
@media (max-width: 430px) {
  .page-hero-copy-company {
    margin: 90px 0 0 120px;
  }

  .company-profile {
    padding: 50px 24px;
  }

  .company-inner h2,
  .message-inner h2 {
    font-size: 20px;
    margin-bottom: 28px;
  }

  .company-table div,
  .history-list div {
    display: block;
    padding: 18px 0;
  }

  .company-table dt,
  .history-list dt {
    margin-bottom: 8px;
    font-size: 14px;
  }

  .company-table dd,
  .history-list dd {
    font-size: 14px;
  }

  .history {
    padding: 50px 24px;
  }

  .history h2 {
    font-size: 22px;
  }

  .message {
    padding: 55px 24px 60px;
  }

  .message-photo {
    width: 180px;
    margin: 0 auto 20px;
  }

  .message-box {
    width: 100%;
    margin: 0;
    padding: 32px 24px;
  }

  .message-box p {
    font-size: 13px;
  }
}
