/* 会社概要ページ: 背景色をページ全体に適用 */
body.page-template-page-company-php,
body.page-template-page-company,
body:has(.company-page),
body.page-slug-company {
  background: var(--brand-white);
}

body.page-template-page-company-php .site-header,
body.page-template-page-company .site-header,
body:has(.company-page) .site-header,
body.page-slug-company .site-header {
  background: var(--brand-white);
}

/* 会社概要ページ: メイン全体の余白 */
.company-page {
  background: var(--brand-white);
  padding: 54px 0 120px;
}

@media (min-width: 768px) {
  .company-page {
    padding: 78px 0 164px;
  }
}

/* 会社概要ページ: 全体幅 */
.company-page__container {
  width: min(1200px, 90vw);
}

/* 会社概要ページ: ヒーロー */
.company-page__hero {
  margin: 0 0 81px;
}

.company-page__title {
  margin: 0;
  font-family: var(--font-gothic);
  font-size: var(--page-title-size);
  font-weight: var(--weight-gothic-medium);
  line-height: 1.2;
}

.company-page__subtitle {
  margin: 16px 0 0;
  font-family: var(--font-gothic);
  font-size: var(--page-sub-title-size);
  font-weight: var(--weight-gothic-regular);
  line-height: 1.2;
}

.company-page__underline {
  display: block;
  width: 120px;
  height: 2px;
  background: var(--color-accent);
  margin-top: 24px;
}

@media (min-width: 768px) {
  .company-page__hero {
    margin-bottom: 102px;
  }

  .company-page__subtitle {
    font-size: 30px;
    font-weight: var(--weight-gothic-demilight);
    margin-top: 30px;
  }

  .company-page__underline {
    margin-top: 30px;
  }
}

/* 会社概要ページ: 各セクションの区切り */
.company-section + .company-section {
  margin-top: 92px;
}

@media (min-width: 768px) {
  .company-section + .company-section {
    margin-top: 122px;
  }

  .company-message + .company-seminar {
    margin-top: 150px;
  }
}

/* 会社概要ページ: セクション見出し */
.company-section__title {
  margin: 0 0 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  font-family: var(--font-gothic);
  font-weight: var(--weight-gothic-medium);
  line-height: 1.4;
}

.company-section__title::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--color-accent);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .company-section__title {
    margin-bottom: 34px;
    font-size: 19px;
  }
}

/* 会社概要ページ: 会社情報カード */
.company-profile__card {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 31px 19px 28px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
}

.company-profile__list {
  margin: 0;
}

.company-profile__row + .company-profile__row {
  margin-top: 30px;
}

.company-profile__label {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: var(--weight-gothic-medium);
  line-height: 1.5;
}

.company-profile__value {
  margin: 0;
  font-size: 15px;
  font-weight: var(--weight-gothic-regular);
  line-height: 1.9;
}

.company-profile__value span {
  display: block;
}

.company-profile__business-list {
  margin: 0;
  padding-left: 1.25em;
}

.company-profile__business-list li {
  margin: 0;
}

.company-profile__value--business {
  display: block;
}

.company-profile__value .company-profile__orizuru-wrap {
  display: none;
}

.company-profile__orizuru {
  display: block;
  width: auto;
  height: 100%;
}

@media (min-width: 768px) {
  .company-profile__card {
    padding: 38px 52px 32px;
  }

  .company-profile__row + .company-profile__row {
    margin-top: 24px;
  }

  .company-profile__value--business {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 24px;
  }

  .company-profile__value .company-profile__orizuru-wrap {
    display: flex;
    align-items: stretch;
    height: 100%;
    align-self: stretch;
  }

  .company-profile__orizuru {
    height: 100%;
    opacity: 0.5;
    pointer-events: none;
  }
}

/* 会社概要ページ: 代表者挨拶 */
.company-message {
  max-width: 915px;
  margin: 0 auto;
}

.company-message__layout {
  display: grid;
  gap: 38px;
}

.company-message__identity {
  text-align: center;
}

.company-message__photo-frame {
  width: min(100%, 200px);
  margin: 0 auto;
  box-shadow: 10px 9px 0 var(--brand-gray-dark);
}

.company-message__photo,
.company-message__photo-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1.2;
}

.company-message__photo {
  object-fit: cover;
}

.company-message__photo-placeholder {
  display: grid;
  place-items: center;
  background: var(--brand-white);
  color: var(--color-muted);
  font-size: 24px;
  letter-spacing: 0.12em;
}

.company-message__name {
  margin: 21px 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  font-weight: var(--weight-gothic-medium);
  line-height: 1.5;
}

.company-message__role {
  font-size: 19px;
}

.company-message__person {
  font-size: 24px;
}

.company-message__card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: min(100%, 370px);
  margin: 0 auto;
  font-size: 15px;
  font-weight: var(--weight-gothic-regular);
  line-height: 1.9;
}

.company-message__card p {
  margin: 0;
}

.company-message__orizuru {
  display: none;
  width: 100%;
  height: auto;
  align-self: stretch;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .company-message__layout {
    grid-template-columns: 287px 370px;
    align-items: stretch;
    justify-content: center;
    gap: 132px;
    height: 460px;
    max-width: 915px;
    margin: 0 auto;
  }

  .company-message__identity {
    align-self: start;
  }

  .company-message__photo-frame {
    width: 100%;
    box-shadow: 12px 10px 0 var(--brand-gray-dark);
  }

  .company-message__name {
    margin-top: 27px;
  }

  .company-message__card {
    width: 370px;
    margin: 0;
    border: 1px solid var(--color-border);
    padding: 41px 29px 34px;
    align-self: end;
    justify-self: stretch;
  }

  .company-message__orizuru {
    display: block;
  }
}

/* 会社概要ページ: 講演・セミナー */
.company-seminar {
  max-width: 920px;
  margin: 0 auto;
}

.company-seminar__layout {
  display: grid;
  gap: 36px;
}

.company-seminar__contact-card {
  padding: 26px 20px 24px;
  border: 1px solid var(--color-border);
}

.company-seminar__contact-card p {
  margin: 0;
  font-size: 15px;
  font-weight: var(--weight-gothic-regular);
  line-height: 1.9;
}

.company-seminar__mail-link {
  margin-top: 23px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--color-accent);
  font-size: 15px;
  font-weight: var(--weight-gothic-regular);
}

.company-seminar__mail-icon {
  width: 30px;
  height: 30px;
  display: block;
  flex-shrink: 0;
  background-color: currentColor;
  mask: url("../../components/footer/mail.svg") no-repeat center / contain;
  -webkit-mask: url("../../components/footer/mail.svg") no-repeat center / contain;
}

.company-seminar__stats-block {
  text-align: center;
}

.company-seminar__stats-lead {
  margin: 0 0 20px;
  font-size: 15px;
  font-weight: var(--weight-gothic-medium);
  line-height: 1.7;
}

.company-seminar__stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 260px;
  margin: 0 auto;
}

.company-stat-card {
  min-height: 165px;
  padding: 17px 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.company-stat-card__label {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.company-stat-card__number {
  margin: 10px 0 0;
  font-family: var(--font-title);
  line-height: 1;
}

.company-stat-card__value {
  font-size: 24px;
}

.company-stat-card__unit {
  font-size: 18px;
}

.company-stat-card__suffix {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: var(--weight-gothic-medium);
  line-height: 1.3;
}

.company-stat-card__icon {
  margin-top: auto;
  width: 56px;
  height: 42px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .company-seminar__layout {
    grid-template-columns: 342px 300px;
    align-items: start;
    justify-content: center;
    gap: 80px;
  }

  .company-seminar__contact-card {
    max-width: 342px;
    padding: 33px 31px 27px;
  }

  .company-seminar__stats-block {
    width: 300px;
    max-width: 300px;
  }

  .company-seminar__stats-lead {
    margin-bottom: 24px;
    font-size: 19px;
  }

  .company-seminar__stats-grid {
    max-width: 330px;
    gap: 12px;
  }

  .company-stat-card {
    min-height: 178px;
    padding: 19px 14px 16px;
  }

  .company-stat-card__value {
    font-size: 30px;
  }

  .company-stat-card__unit {
    font-size: 20px;
  }
}
