@charset "UTF-8";

/* PC 会社概要。会社情報は画像にせず、本文・組織図を HTML で保持する。 */
.p-company-overview {
  padding-top: var(--space-md);
  padding-bottom: 85px;
}

.p-company-overview__table {
  margin-top: -23px;
}

.p-company-information {
  font-size: var(--fs-md);
  line-height: 24px;
}

.p-company-information__row {
  display: grid;
  grid-template-columns: 141px minmax(0, 1fr);
  border-bottom: 1px solid var(--color-main);
}

.p-company-information__row > dt,
.p-company-information__row > dd {
  padding-block: 28px;
}

.p-company-information__row > dt {
  font-weight: 500;
}

.p-company-information__location + .p-company-information__location {
  margin-top: 17px;
}

.p-company-information__place {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 5px;
  font-weight: 400;
}

.p-company-information__map {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-main);
  font-size: var(--fs-xs);
}

.p-company-information__map::before {
  width: 12px;
  height: 17px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 17'%3E%3Cpath d='M5.977 0C2.676 0 0 2.676 0 5.977 0 11.486 5.977 17 5.977 17S11.955 11.486 11.955 5.977C11.955 2.676 9.278 0 5.977 0M5.977 9.342A3.365 3.365 0 1 1 5.977 2.612A3.365 3.365 0 0 1 5.977 9.342'/%3E%3C/svg%3E") center / contain no-repeat;
  content: "";
}

.p-company-information ul {
  list-style: none;
}

/* XD の PC の組織図を書き出した SVG。取締役会の基準線を「組織図」の基準線にそろえ、図の下端から区切り線まで 50px */
.p-company-organization {
  display: block;
  max-width: 100%;
  height: auto;
  margin-block: 5px 22px;
}

.p-company-message {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-top: var(--space-3xl);
  padding-bottom: 138px;
  background: var(--color-main);
}

.p-company-message::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("../img/corporate/company-message-background.webp") center bottom / calc(2238 * var(--design-px)) calc(1628 * var(--design-px)) no-repeat;
  mix-blend-mode: color-burn;
  content: "";
}

.p-company-message__inner {
  position: relative;
}

.p-company-message .p-corporate-section-head__en,
.p-company-message .p-corporate-section-head__title {
  color: var(--color-white);
}

.p-company-message__portrait {
  position: absolute;
  top: 4px;
  right: 108px;
  z-index: 1;
  width: 382px;
  height: 241px;
}

.p-company-message__portrait img {
  display: block;
  width: 382px;
  height: 241px;
  border-radius: 31px;
  object-fit: cover;
}

.p-company-message__card {
  margin-top: 38px;
  padding: var(--space-3xl) 108px 99px;
  border-radius: 100px;
  background: var(--color-white);
}

.p-company-message__section + .p-company-message__section {
  margin-top: var(--space-xl);
}

.p-company-message__section h3 {
  margin-bottom: 18px;
  color: var(--color-main);
  font-size: var(--fs-xl);
  font-weight: 500;
  line-height: 30px;
}

.p-company-message__section p {
  font-size: var(--fs-md);
  line-height: 24px;
}

.p-company-message__name {
  margin-top: 49px;
  font-size: var(--fs-md);
  line-height: 24px;
  text-align: right;
}

.p-company-philosophy {
  padding-block: var(--space-3xl);
}

.p-company-philosophy__table {
  margin-top: -20px;
  font-weight: 500;
}

.p-company-philosophy__principles li + li {
  margin-top: var(--space-xs);
}

.p-company-philosophy__principles li,
.p-company-philosophy__precepts li {
  padding-left: 2em;
  text-indent: -2em;
}

.p-company-philosophy__precepts {
  line-height: 30px;
}

.p-company-philosophy__table .p-company-information__row:last-child > dd {
  padding-block: 25px;
}

.p-company-sustainability {
  position: relative;
  isolation: isolate;
  padding-top: 103px;
  padding-bottom: 101px;
  overflow: clip;
  min-height: 450px;
  /* トップと同じ作り：円弧はマスクではなく帯の画像の透明部分で出す。透けて見える背景は、XD どおり下の「あゆみ」と同じ色 */
  background: var(--color-bg);
  color: var(--color-white);
}

/* トップのサステナビリティの帯と同じ画像（緑の色まで入った完成形）。1380px では帯の高さ 450px に合う 2248px 幅。
   それより広い画面では、円弧が深くならないよう画面幅と同じ比率で広げ、上を切る */
.p-company-sustainability::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("../img/sustainability.webp") center bottom / calc(2248 * var(--design-px)) auto no-repeat;
  content: "";
}

.p-company-sustainability__inner {
  width: 748px;
  margin-inline: auto;
  text-align: center;
}

.p-company-sustainability .p-corporate-section-head__en {
  margin-bottom: 1px;
  color: var(--color-white);
  font-size: var(--fs-xs);
  line-height: 17px;
}

.p-company-sustainability .p-corporate-section-head__title {
  margin-bottom: 19px;
  font-weight: 600;
}

.p-company-sustainability__text {
  font-size: var(--fs-md);
  line-height: 24px;
}

.p-company-sustainability__break {
  display: none;
}

.p-company-sustainability__link {
  display: flex;
  justify-content: flex-end;
  margin-top: 19px;
}

.p-company-history {
  position: relative;
  overflow: clip;
  min-height: 838px;
  padding-top: var(--space-3xl);
  padding-bottom: 97px;
  background: var(--color-bg);
}

.p-company-history__inner {
  position: relative;
}

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

.p-company-history__list {
  position: relative;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0 39px;
  width: 700px;
  margin: 28px 0 0 242px;
  font-size: var(--fs-md);
  line-height: 30px;
}

.p-company-history__list dt {
  color: var(--color-main);
  font-weight: 500;
  text-align: right;
}

@media (width <= 767px) {
  .p-company-overview {
    padding-top: 60px;
    padding-bottom: 70px;
  }

  .p-company-overview__table,
  .p-company-philosophy__table {
    margin-top: var(--space-md);
    box-shadow: inset 0 1px var(--color-main);
  }

  .p-company-information {
    font-size: 1.4rem;
    line-height: 24px;
  }

  .p-company-information__row {
    display: block;
    padding-block: var(--space-sm) 13px;
  }

  .p-company-information__row > dt,
  .p-company-information__row > dd {
    padding: 0;
  }

  .p-company-information__row > dt {
    line-height: 22px;
  }

  .p-company-information__row > dd {
    margin-top: 2px;
  }

  .p-company-information__place {
    gap: 14px;
    margin-bottom: 0;
  }

  .p-company-information__location + .p-company-information__location {
    margin-top: 10px;
  }

  /* PC 用の図を幅いっぱいに縮めて使う。取締役会の基準線は XD どおり「組織図」から 30px 下 */
  .p-company-organization {
    margin-block: 11px 0;
  }

  .p-company-message {
    padding-top: 60px;
    padding-bottom: 98px;
  }

  .p-company-message::before {
    background-image: url("../img/corporate/company-message-background-sp.webp");
    background-position: center;
    background-size: 100% 100%;
  }

  .p-company-message__portrait {
    top: 110px;
    right: 20px;
    width: calc(100% - 40px);
    height: 200px;
  }

  .p-company-message__portrait img {
    width: 100%;
    height: 200px;
    border-radius: 20px;
  }

  .p-company-message__card {
    margin-top: var(--space-lg);
    padding: 250px 20px var(--space-sm);
    border-radius: 30px;
  }

  .p-company-message__section + .p-company-message__section {
    margin-top: 36px;
  }

  .p-company-message__section h3 {
    margin-bottom: var(--space-xs);
    font-size: 1.8rem;
    line-height: 28px;
  }

  .p-company-message__section h3 br,
  .p-company-philosophy__principles br {
    display: none;
  }

  .p-company-message__section p {
    font-size: 1.4rem;
    line-height: 25px;
  }

  .p-company-message__name {
    margin-top: 26px;
    font-size: 1.4rem;
    line-height: 24px;
  }

  .p-company-philosophy {
    padding-top: 34px;
    padding-bottom: 80px;
  }

  .p-company-philosophy__table .p-company-information__row {
    padding-block: var(--space-sm) 15px;
  }

  .p-company-philosophy__table .p-company-information__row > dd {
    margin-top: 6px;
  }

  .p-company-philosophy__principles li + li,
  .p-company-philosophy__precepts li + li {
    margin-top: var(--space-2xs);
  }

  .p-company-philosophy__precepts {
    line-height: 24px;
  }

  .p-company-philosophy__table .p-company-information__row:last-child > dd {
    padding: 0;
  }

  .p-company-sustainability {
    min-height: 0;
    padding-top: 53px;
    padding-bottom: 56px;
  }

  /* トップの SP と同じ大きさ・位置 */
  .p-company-sustainability::before {
    background-image: url("../img/sustainability-sp.webp");
    background-size: auto max(100%, 100vw);
  }

  .p-company-sustainability__inner {
    width: calc(100% - 48px);
  }

  .p-company-sustainability .p-corporate-section-head__en {
    margin-bottom: 14px;
  }

  .p-company-sustainability .p-corporate-section-head__title {
    max-width: 300px;
    margin: 0 auto var(--space-xs);
    font-size: 3rem;
    line-height: 40px;
  }

  .p-company-sustainability__text {
    font-size: 1.5rem;
    line-height: 24px;
    text-align: left;
  }

  .p-company-sustainability__break {
    display: initial;
  }

  .p-company-sustainability__link {
    justify-content: center;
    margin-top: 26px;
  }

  .p-company-history {
    min-height: 0;
    padding-top: 80px;
    padding-bottom: 70px;
  }

  .p-company-history .p-corporate-section-head {
    text-align: left;
  }

  .p-company-history__list {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 10px var(--space-sm);
    width: 100%;
    margin: 37px 0 0;
    font-size: 1.4rem;
    line-height: 24px;
  }

  .p-company-history__list dt {
    text-align: left;
  }
}
