/* メンター共通カード（オンラインメンタリング・一覧・詳細） */
.page-online-mentoring,
.mentor-archive,
.mentor-single {
  /* メンター一覧 */
  #mentors {
    position: relative;
    isolation: isolate;
  }
  .mentoring-mentors__grid::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: -26px;
    left: -200px;
    width: 914px;
    height: 869px;
    background: url('../image/online-mentoring/mentor-background.svg') center / contain no-repeat;
    pointer-events: none;
  }
  .mentoring-mentors__intro {
    font-size: clamp(16px, 1.4vw, 18px);
    font-weight: 500;
    line-height: 1.5;
  }
  .mentoring-mentors__grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 50px clamp(24px, 4.6875vw, 60px);
    margin-top: 40px;
  }
  .mentoring-mentor-card {
    min-width: 0;
    min-height: 618px;
    padding: 17px 20px 20px;
    border-top: 3px solid #7adff5;
    background: var(--c-white);
  }
  .mentoring-mentor-card__header {
    display: grid;
    grid-template-columns: min(41.333%, 124px) minmax(0, 1fr);
    align-items: start;
    gap: 20px;
  }
  .mentoring-mentor-card__photo {
    width: 100%;
    aspect-ratio: 1;
    background: #d9d9d9;
  }
  .mentoring-mentor-card__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .mentoring-mentor-card__info {
    min-width: 0;
  }
  .mentoring-mentor-card__name {
    margin-bottom: 10px;
    font-size: clamp(15px, 1.2vw, 18px);
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }
  .mentoring-mentor-card__organization {
    font-size: 15px;
    line-height: 22px;
    overflow-wrap: anywhere;
  }
  .mentoring-mentor-card__label {
    margin-top: 8px;
    color: var(--c-blue);
    font-size: 14px;
    font-weight: 600;
    line-height: 18px;
  }
  .mentoring-mentor-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 7px;
  }
  .mentoring-mentor-card__tags li {
    max-width: 100%;
    padding: 5px 10px;
    border-radius: 5px;
    background: #ddf3fb;
    color: var(--c-blue);
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    overflow-wrap: anywhere;
  }
  .mentoring-mentor-card__excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
    margin-top: 14px;
    font-size: 14px;
    line-height: 19px;
    overflow-wrap: anywhere;
  }
  .mentoring-mentor-card__more {
    display: block;
    margin-top: 6px;
    color: var(--c-blue);
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    text-align: right;
    text-decoration: underline;
    text-underline-offset: 2px;
  }


  @media (max-width: 989px) {
    .mentoring-mentors__grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .mentoring-mentor-card {
      padding-inline: 16px;
      min-height: 0;
    }
  }
  @media (max-width: 749px) {
    .mentoring-mentors__grid::before {
      top: 80px;
      left: -100px;
      width: 520px;
      height: 495px;
    }
    .mentoring-mentors__grid {
      grid-template-columns: 1fr;
      gap: 24px;
      margin-top: 28px;
    }
    .mentoring-mentor-card__header {
      grid-template-columns: clamp(88px, 30vw, 124px) minmax(0, 1fr);
      gap: 16px;
    }
    .mentoring-mentor-card__organization {
      font-size: 14px;
    }
  }
}

/* 一覧 */
.mentor-archive__body {
  position: relative;
  z-index: 1;
  isolation: isolate;
}
.mentor-archive__note {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.9;
}
.mentor-empty {
  padding-block: 40px;
  color: var(--c-gray);
  line-height: 1.8;
}
.mentoring-mentor-card__photo {
  display: block;
  overflow: hidden;
}
.mentoring-mentor-card__photo img {
  transition: transform 0.35s ease;
}
.mentoring-mentor-card__photo:hover img {
  transform: scale(1.05);
}
.mentoring-mentor-card__name a:hover,
.mentoring-mentor-card__more:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mentoring-mentors__archive-link {
  margin-top: 32px;
  text-align: center;
}

/* 詳細：写真と基本情報の下に、紹介本文を全幅で配置。 */
.mentor-single__body {
  position: relative;
  z-index: 1;
}
.mentor-single__article {
  position: relative;
  isolation: isolate;
}
.mentor-single__article::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -260px;
  right: -200px;
  width: 914px;
  height: 869px;
  background: url('../image/online-mentoring/mentor-background.svg') center / contain no-repeat;
  pointer-events: none;
}
.mentor-single__profile {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 4.43vw, 85px);
}
.mentor-single__photo {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}
.mentor-single__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mentor-single__info {
  min-width: 0;
  overflow-wrap: anywhere;
}
.mentor-single__name {
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 500;
  line-height: 1.5;
}
.mentor-single__company {
  margin-top: 16px;
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.75;
}
.mentor-single .mentoring-mentor-card__label {
  margin-top: 30px;
  font-size: 16px;
}
.mentor-single .mentoring-mentor-card__tags {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
}
.mentor-single__content {
  margin-top: 30px;
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.875;
  overflow-wrap: anywhere;
}
.mentor-single__content > * + * {
  margin-top: 1em;
}
.mentor-single__content :is(h2, h3, h4) {
  margin-top: 1.5em;
  line-height: 1.5;
}
.mentor-single__content h2 { font-size: 1.5em; }
.mentor-single__content h3 { font-size: 1.25em; }
.mentor-single__content ul,
.mentor-single__content ol {
  padding-left: 1.5em;
}
.mentor-single__content ul { list-style: disc; }
.mentor-single__content ol { list-style: decimal; }
.mentor-single__content a {
  color: var(--c-blue);
  text-decoration: underline;
}
.mentor-single__content img { height: auto; }
.mentor-single__content blockquote {
  border-left: 3px solid var(--c-blue);
  padding-left: 1em;
}
.mentor-single__content .wp-block-table { overflow-x: auto; }
.mentor-single__others .sec-head__en-text {
  font-size: clamp(28px, 4vw, 43px);
}
.mentor-other-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 80px) clamp(24px, 4.17vw, 80px);
}
.mentor-other-grid .adv-card { min-width: 0; overflow-wrap: anywhere; }
.mentor-other-grid .adv-card__photo-link {
  width: 100%;
  aspect-ratio: 1;
  flex-shrink: 0;
  overflow: hidden;
}
.mentor-other-grid .adv-card__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mentor-other-grid .btn-sm {
  margin-top: auto;
  background: var(--c-blue);
}
.mentor-single__back {
  margin-top: clamp(40px, 5vw, 80px);
  text-align: center;
}
.mentor-single__back img { transform: scaleX(-1); }

@media (max-width: 989px) {
  .mentor-single__profile {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  }
  .mentor-other-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 749px) {
  .mentor-single__profile { grid-template-columns: 1fr; gap: 24px; }
  .mentor-single__photo { width: 100%; max-width: 320px; }
  .mentor-single__article::before {
    top: -100px;
    right: -160px;
    width: 520px;
    height: 495px;
  }
  .mentor-other-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .mentoring-mentor-card__photo img { transition: none; }
}
