/* =====================================
   人物紹介ブロック
===================================== */

.wp-block-jsip-person-profile.jsip-person-profile {
  --jsip-profile-border: #dddddd;
  --jsip-profile-text: #111111;
  --jsip-profile-subtext: #444444;
  --jsip-profile-accent: #e9833b;

  width: 100%;
  margin-top: 0;
  margin-bottom: 0;
  box-sizing: border-box;

  color: var(--jsip-profile-text);
  font-family:
    "Yu Gothic",
    "YuGothic",
    "Hiragino Kaku Gothic ProN",
    "Meiryo",
    sans-serif;
}

/* 人物紹介ブロックが連続する場合だけ、人物間に区切り線を表示 */
.wp-block-jsip-person-profile.jsip-person-profile
  + .wp-block-jsip-person-profile.jsip-person-profile {
  margin-top: 50px;
  padding-top: 50px;

  border-top: 1px solid var(--jsip-profile-border);
}

.jsip-person-profile *,
.jsip-person-profile *::before,
.jsip-person-profile *::after {
  box-sizing: border-box;
}

/* =====================================
   画像・名前・役職
===================================== */

.jsip-person-profile__summary {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  gap: 30px;
  align-items: start;
}

.jsip-person-profile__image-wrap {
  width: 100%;
}

.jsip-person-profile__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;

  border-radius: 4px;
}

.jsip-person-profile__image-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;

  background-color: #f2f2f2;
  border: 1px solid var(--jsip-profile-border);
  border-radius: 4px;
}

.jsip-person-profile__information {
  min-width: 0;
}

.jsip-person-profile__field {
  display: flex;
  gap: 4px;
  align-items: baseline;
  min-width: 0;
}

.jsip-person-profile__field--position {
  margin-top: 9px;
}

.jsip-person-profile__field-label {
  flex: 0 0 auto;

  color: var(--jsip-profile-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.75;
}

.jsip-person-profile__name {
  min-width: 0;
  margin: 0;

  color: var(--jsip-profile-text);
  font-size: clamp(22px, 2.6vw, 29px);
  font-weight: 700;
  line-height: 1.5;
}

.jsip-person-profile__position {
  min-width: 0;
  margin: 0;

  color: var(--jsip-profile-subtext);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.75;
}

/* =====================================
   略歴
===================================== */

.jsip-person-profile__history {
  margin-top: 24px;
}

.jsip-person-profile__history-label {
  position: relative;
  margin-bottom: 15px;
  padding-bottom: 9px;

  color: var(--jsip-profile-text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;

  border-bottom: 1px solid var(--jsip-profile-border);
}

.jsip-person-profile__history-label::after {
  position: absolute;
  bottom: -1px;
  left: 0;

  width: 52px;
  height: 3px;

  background-color: var(--jsip-profile-accent);

  content: "";
}

.jsip-person-profile__history-list {
  width: 100%;
}

.jsip-person-profile__history-item {
  display: grid;
  grid-template-columns: minmax(130px, 2fr) minmax(0, 8fr);
  gap: 24px;

  border-bottom: 1px solid #eeeeee;
}

.jsip-person-profile__history-item:last-child {
  border-bottom: 0;
}

.jsip-person-profile__history-item--without-year {
  grid-template-columns: minmax(0, 1fr);
  padding: 5px 0;
  border-bottom: 0;
}

.jsip-person-profile__history-item--without-year
  .jsip-person-profile__history-content {
  padding-left: 1em;
}

.jsip-person-profile__history-year {
  color: var(--jsip-profile-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.75;
}

.jsip-person-profile__history-content {
  min-width: 0;

  color: var(--jsip-profile-subtext);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

/* =====================================
   スマートフォン
===================================== */

@media screen and (max-width: 767px) {
  .wp-block-jsip-person-profile.jsip-person-profile {
    margin-bottom: 0;
  }

  .wp-block-jsip-person-profile.jsip-person-profile
    + .wp-block-jsip-person-profile.jsip-person-profile {
    margin-top: 24px;
    padding-top: 24px;
  }

  .jsip-person-profile__summary {
    display: block;
  }

  .jsip-person-profile__image-wrap {
    margin-bottom: 18px;
  }

  .jsip-person-profile__image,
  .jsip-person-profile__image-placeholder {
    aspect-ratio: 4 / 5;
  }

  .jsip-person-profile__name {
    font-size: 23px;
  }

  .jsip-person-profile__position {
    font-size: 15px;
    line-height: 1.7;
  }

  .jsip-person-profile__field-label {
    font-size: 15px;
    line-height: 1.7;
  }

  .jsip-person-profile__field--position {
    margin-top: 5px;
  }

  .jsip-person-profile__history {
    margin-top: 23px;
  }

  .jsip-person-profile__history-label {
    margin-bottom: 10px;

    font-size: 18px;
  }

  .jsip-person-profile__history-item {
    display: block;
    padding: 12px 0;
  }

  .jsip-person-profile__history-year {
    margin-bottom: 3px;

    font-size: 15px;
  }

  .jsip-person-profile__history-content {
    font-size: 15px;
    line-height: 1.7;
  }
}
