/* ============================================================
 * 講師詳細ページ CSS (clever テーマ用)
 * Figma: weMbv5Gyjtk9YIJKwOcv1Q / node 1567:11165
 * ============================================================ */

/* ページ背景は shared.css の .single-instructor ルール (装飾 + 204deg gradient) に統合済み。 */

/* ============================================================
 * コンテンツ幅制御 (Figma 基準 832px)
 * ============================================================ */
.instructor-wrap {
  max-width: 832px;
  margin-inline: auto;
  padding-block: 48px 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ============================================================
 * ブレッドクラム
 * ============================================================ */
.instructor-breadcrumb__list {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #797979;
}

.instructor-breadcrumb__list li + li::before {
  content: '/';
  margin-right: 4px;
  color: #797979;
}

.instructor-breadcrumb__list li:last-child {
  color: var(--clever-color-primary);
}

.instructor-breadcrumb__list a {
  color: #797979;
}

/* ============================================================
 * ページタイトル
 * ============================================================ */
.instructor-page-title {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.instructor-page-title__ja {
  font-size: 26px;
  font-weight: 700;
  color: var(--clever-color-primary);
  letter-spacing: 0.1em;
  line-height: 1.4;
  margin: 0;
}

.instructor-page-title__en {
  font-family: 'Oooh Baby', cursive;
  font-size: 24px;
  color: #17bfbd;
  line-height: 1;
  margin: 0;
}

/* ============================================================
 * メインビジュアル
 * ============================================================ */
.instructor-hero {
  position: relative;
  aspect-ratio: 832 / 372;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.02);
}

.instructor-hero__img {
  width: 100%;
  height: 100%;
}

.instructor-hero__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* object-position はインライン focal point (aoi_render_cpt_photo_img) を尊重するため指定しない */
  display: block;
}

/* 写真ヘルパー (背景画像方式) — cover ベースライン × zoom (calc) */
.aoi-photo-cover {
  display: block;
  background-color: #f2f2f2; /* zoom<50 時の letterbox 部分 */
  background-size:
    calc(max(100%, 100% * var(--img-w) / var(--img-h) / var(--cont-ratio, 1)) * var(--photo-zoom, 1))
    calc(max(100%, 100% * var(--img-h) / var(--img-w) * var(--cont-ratio, 1)) * var(--photo-zoom, 1));
}
.instructor-hero__img .aoi-photo-cover {
  --cont-ratio: calc(832 / 372);
}
@media (max-width: 599px) {
  .instructor-hero__img .aoi-photo-cover {
    --cont-ratio: calc(4 / 3);
  }
}

.instructor-hero__overlay {
  position: absolute;
  bottom: 32px;
  left: 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.instructor-hero__course {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  margin: 0;
  line-height: 1.4;
}

.instructor-hero__name {
  font-family: 'Noto Serif JP', serif;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 599px) {
  .instructor-hero {
    aspect-ratio: 4 / 3;
  }
  .instructor-hero__overlay {
    bottom: 16px;
    left: 16px;
  }
  .instructor-hero__name {
    font-size: 18px;
  }
}

/* ============================================================
 * カード共通
 * ============================================================ */
.instructor-card {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.02);
  padding: 40px;
  position: relative;
}

.instructor-card__heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--clever-color-primary);
  letter-spacing: 0.1em;
  border-bottom: 1px solid #17bfbd;
  padding-bottom: 17px;
  margin: 0 0 32px;
  line-height: 1.8;
}

.instructor-card__heading i {
  color: #17bfbd;
  font-size: 24px;
}

@media (max-width: 599px) {
  .instructor-card {
    padding: 24px 20px;
  }
}

/* ============================================================
 * プロフィール DL
 * ============================================================ */
.instructor-profile-dl {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.instructor-profile-dl__row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.instructor-profile-dl__row--top {
  align-items: flex-start;
}

.instructor-profile-dl dt {
  flex-shrink: 0;
  width: 200px;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  letter-spacing: 0.1em;
  line-height: 1.4;
  margin: 0;
}

.instructor-profile-dl dd {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--clever-color-primary);
  letter-spacing: 0.1em;
  line-height: 1.6;
  margin: 0;
}

.instructor-profile-dl__name {
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em;
}

.instructor-profile-dl__courses {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.instructor-course-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 12px;
  font-weight: 500;
  border-radius: 9999px;
  padding: 4px 12px;
  height: 23px;
  white-space: nowrap;
}

@media (max-width: 599px) {
  .instructor-profile-dl__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .instructor-profile-dl dt {
    width: auto;
    font-size: 12px;
  }
}

/* ============================================================
 * メッセージカード
 * ============================================================ */
.instructor-card--message {
  padding-top: 57px;
}

.instructor-card__quote {
  position: absolute;
  top: 72px;
  left: 16px;
  font-family: 'Noto Serif JP', serif;
  font-size: 128px;
  line-height: 1;
  color: #e5f5f9;
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
  transform: translateY(-50%);
}

.instructor-message {
  font-size: 16px;
  font-weight: 500;
  color: var(--clever-color-primary);
  letter-spacing: 0.1em;
  line-height: 1.76;
  position: relative;
  z-index: 1;
}

/* ============================================================
 * 動画エリア
 * ============================================================ */
.instructor-video-wrap {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.instructor-video-wrap iframe,
.instructor-video-wrap video {
  width: 100%;
  height: 100%;
  display: block;
}

/* ============================================================
 * 関連コンテンツ
 * ============================================================ */
.instructor-related {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 16px;
}

.instructor-related__heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--clever-color-primary);
  letter-spacing: 0.1em;
  text-align: center;
  margin: 0;
  line-height: 1.4;
}

.instructor-related__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.instructor-related__card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: 16px;
  padding: 20px 30px;
  margin-bottom: 0;
  transition: background 0.2s;
  text-decoration: none;
  color: var(--clever-color-primary);
}

.instructor-related__card:hover {
  background: #f1f8fa;
}

.instructor-related__card + .instructor-related__card {
  margin-top: 4px;
}

.instructor-related__date {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--clever-color-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.instructor-related__cat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--clever-color-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  border-radius: 24px;
  padding: 6px 15px;
  white-space: nowrap;
  flex-shrink: 0;
}

.instructor-related__title {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.76;
}

.instructor-related__arrow {
  flex-shrink: 0;
  color: var(--clever-color-primary);
  font-size: 16px;
}

.instructor-related__links {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding-top: 12px;
}

.instructor-related__link {
  font-size: 14px;
  color: var(--clever-color-primary);
  text-decoration: underline;
}

@media (max-width: 599px) {
  .instructor-related__card {
    padding: 16px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .instructor-related__title {
    font-size: 14px;
    order: 3;
    width: 100%;
  }
  .instructor-related__links {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
}
