/* =======================================
   ABOUT NAVIGATION
======================================= */

.p-about-nav {
  background-color: #eaf5fa;
}

.p-about-nav__list {
  align-items: center;
  display: flex;
  gap: 74px;
  min-height: 105px;
}

.p-about-nav__item {
  font-family: var(--font-mincho);
  font-size: 1.8rem;
}

.p-about-nav__item a {
  transition: opacity 0.3s;
}

.p-about-nav__item a:hover {
  opacity: 0.65;
}

/* =======================================
   SHARED SECTION TITLE
======================================= */

.c-section-title {
  border: 2px solid #078bd2;
  border-radius: 30px 0 30px 0;
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 1.4;
  margin-inline: auto;
  padding: 14px 30px;
  text-align: center;
  width: 368px;
}

/* =======================================
   GREETING
======================================= */

.p-about-greeting {
  background-color: #EDF6FA;
  padding: 0 0 105px;
}

.p-about-theme {
  align-items: center;
  border-bottom: 1px solid #999;
  border-top: 1px solid #999;
  display: grid;
  gap: 40px;
  grid-template-columns: 335px 1fr;
  margin-top: 62px;
  min-height: 122px;
  padding: 20px 43px;
}

.p-about-theme__title {
  font-size: 2.1rem;
  font-weight: bold;
  line-height: 1.7;
}

.p-about-theme__text {
  font-size: 2.8rem;
  line-height: 1.5;
}

.p-about-theme__text span {
  font-family: "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
  font-size: 2.4rem;
}

.p-about-message {
  display: grid;
  gap: 68px;
  grid-template-columns: 276px minmax(0, 1fr);
  margin-top: 62px;
  padding-inline: 80px;
}

.p-about-message + .p-about-message {
  margin-top: 66px;
}

.p-about-message__heading {
  font-size: 2.4rem;
  font-weight: bold;
  line-height: 1.5;
  margin-bottom: 30px;
  padding-bottom: 13px;
  position: relative;
}

.p-about-message__heading::after {
  bottom: 0;
  content: "";
  height: 12px;
  left: -80px;
  position: absolute;
  width: 175px;
}

.p-about-message__heading--president::after {
  background-color: #393EC3;
}

.p-about-message__heading--secretary::after {
  background-color: #39BEC3;
}

.p-about-message__portrait {
  width: 276px;
}

.p-about-message__position {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.6;
  margin-top: 6px;
}

.p-about-message__name {
  font-size: 2.1rem;
  font-weight: 700;
  margin-top: 2px;
}

.p-about-message__body {
  font-family: "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
  font-size: 1.6rem;
  line-height: 2;
  padding-top: 72px;
}

.p-about-message__body p + p {
  margin-top: 35px;
}

/* =======================================
   OVERVIEW
======================================= */

.p-about-overview {
  background-color: #fff;
  padding: 84px 0 73px;
}

.p-about-overview__intro {
  display: grid;
  grid-template-columns: 375px minmax(0, 1fr);
  margin-top: 62px;
}

.p-about-overview__intro-title {
  font-size: 2.1rem;
  font-weight: bold;
  line-height: 1.7;
}

.p-about-overview__intro-text {
  font-size: 1.6rem;
  line-height: 2;
}

.p-about-overview__list {
  margin-top: 52px;
}

.p-about-overview__row {
  border-top: 1px dashed #707070;
  display: grid;
  font-size: 1.8rem;
  grid-template-columns: 225px minmax(0, 1fr);
  line-height: 1.8;
  min-height: 80px;
  padding: 24px 45px;
}

.p-about-overview__row:last-child {
  border-bottom: 1px dashed #707070;
}

.p-about-overview__row dt {
  font-weight: 700;
}

.p-about-overview__row a {
  color: #3155ff;
  text-decoration: underline;
}

/* =======================================
   HISTORY
======================================= */

.p-about-history {
  background-color: #EDF6FA;
  padding: 84px 0 57px;
}

.p-about-history__list {
  margin-top: 60px;
}

.p-about-history__row {
  border-top: 1px solid #888;
  display: grid;
  font-size: 1.8rem;
  grid-template-columns: 250px minmax(0, 1fr);
  line-height: 1.7;
  min-height: 81px;
  padding: 26px 45px;
}

.p-about-history__row:last-child {
  border-bottom: 1px solid #888;
}

.p-about-history__row dt {
  font-weight: 700;
}

.p-about-history__row--featured {
  padding-bottom: 30px;
}

.p-about-history__images {
  display: grid;
  gap: 34px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

.p-about-history__images img {
  height: auto;
  width: 100%;
}

@media (max-width: 767px) {
  /* ABOUT NAVIGATION */

  .p-about-nav__list {
    align-items: flex-start;
    gap: 14px;
    min-height: 0;
    padding-block: 25px;
  }

  .p-about-nav__item {
    font-size: 1.4rem;
  }

  .p-about-nav__item + .p-about-nav__item {
    margin-left: 20px;
  }

  /* SHARED SECTION TITLE */

  .c-section-title {
    border-radius: 20px 0 20px 0;
    font-size: 2.2rem;
    max-width: 100%;
    padding: 10px 20px;
    width: 280px;
  }

  /* GREETING */

  .p-about-greeting {
    padding-bottom: 60px;
  }

  .p-about-theme {
    display: block;
    margin-top: 40px;
    min-height: 0;
    padding: 22px 0;
  }

  .p-about-theme__title {
    font-size: 1.4rem;
  }

  .p-about-theme__text {
    font-size: 1.7rem;
    margin-top: 18px;
    text-align: center;
  }

  .p-about-theme__text span {
    font-size: 1.6rem;
  }

  .p-about-message {
    display: block;
    margin-top: 45px;
    padding-inline: 0;
  }

  .p-about-message + .p-about-message {
    margin-top: 60px;
  }

  .p-about-message__heading {
    font-size: 1.8rem;
    margin-bottom: 25px;
  }

  .p-about-message__heading::after {
    height: 8px;
    left: -30px;
    width: 130px;
  }

  .p-about-message__profile-content {
    margin-inline: auto;
    max-width: 200px;
    width: 100%;
  }

  .p-about-message__portrait {
    margin-left: 0;
    width: 100%;
  }

  .p-about-message__position {
    font-size: 1.4rem;
    margin-left: 0;
    margin-top: 10px;
  }

  .p-about-message__name {
    font-size: 1.6rem;
    margin-left: 0;
  }

  .p-about-message__body {
    font-size: 1.4rem;
    line-height: 1.9;
    padding-top: 30px;
  }

  .p-about-message__body p + p {
    margin-top: 25px;
  }

  /* OVERVIEW */

  .p-about-overview {
    padding: 60px 0;
  }

  .p-about-overview__intro {
    display: block;
    margin-top: 40px;
  }

  .p-about-overview__intro-title {
    font-size: 1.6rem;
  }

  .p-about-overview__intro-text {
    font-size: 1.4rem;
    line-height: 1.9;
    margin-top: 20px;
  }

  .p-about-overview__list {
    margin-top: 35px;
  }

  .p-about-overview__row {
    display: block;
    font-size: 1.4rem;
    min-height: 0;
    padding: 18px 0;
  }

  .p-about-overview__row dd {
    margin-top: 8px;
  }

  /* HISTORY */

  .p-about-history {
    padding: 60px 0;
  }

  .p-about-history__list {
    margin-top: 40px;
  }

  .p-about-history__row {
    display: block;
    font-size: 1.5rem;
    min-height: 0;
    padding: 20px 0;
  }

  .p-about-history__row dd {
    margin-top: 8px;
  }

  .p-about-history__images {
    gap: 15px;
    grid-template-columns: 1fr;
    margin-top: 18px;
  }
}
