/* 講師紹介モーダル用スタイル */
html {
  scrollbar-gutter: stable;
}

.lecturer-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  align-items: center;
  justify-content: center;
}

.lecturer-modal.is-open {
  display: flex;
}

/* 背景オーバーレイ */
.lecturer-modal__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

/* モーダル本体 */
.lecturer-modal__inner {
  position: relative;
  z-index: 1;
  background-color: #fff;
  border-radius: 16px;
  width: calc(100% - 32px);
  max-width: 800px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  animation: modalFadeIn 0.25s ease;
  border: 3px solid #aad9d7;
  overflow: visible;
}

/* スクロールエリア */
.lecturer-modal__scroll {
  max-height: calc(90vh - 6px);
  overflow-y: auto;
  padding: 60px 20px 28px;
  border-radius: 13px;
  scrollbar-width: thin;
  scrollbar-color: #aad9d7 #f0f0f0;
}

.lecturer-modal__scroll::-webkit-scrollbar {
  width: 4px;
}
.lecturer-modal__scroll::-webkit-scrollbar-track {
  background: #f0f0f0;
}
.lecturer-modal__scroll::-webkit-scrollbar-thumb {
  background: #aad9d7;
  border-radius: 4px;
}

@media screen and (min-width: 1000px) {
  .lecturer-modal__scroll {
    padding: 70px 50px 50px;
    max-height: calc(85vh - 6px);
  }
}

/* ラベル「講師紹介」 */
.lecturer-modal__label {
  display: inline-block;
  background-color: #01ab9f;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 40px;
  border-radius: 15px 0 15px 0;
  letter-spacing: 0.08em;
  position: absolute;
  top: -3px;
  left: -3px;
  z-index: 2;
}

/* 写真 + 名前・役職のプロフィール行 */
.lecturer-modal__profile {
  margin-bottom: 30px;
}

@media screen and (min-width: 1000px) {
  .lecturer-modal__profile {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 28px;
  }
}

.lecturer-modal__img-wrap {
  flex-shrink: 0;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

@media screen and (min-width: 1000px) {
  .lecturer-modal__img-wrap {
    max-width: 300px;
    max-height: 187px;
  }
}

.lecturer-modal__img {
  width: 100%;
  height: auto;
  display: block;
}

.lecturer-modal__profile-text {
  flex: 1;
  padding-top: 4px;
}

.lecturer-modal__name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #222;
  margin: 25px 0 5px;
}

@media screen and (min-width: 1000px) {
  .lecturer-modal__name {
    margin: 0 0 5px;
  }
}

.lecturer-modal__position {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin: 0;
  padding-bottom: 15px;
  border-bottom: 1px dashed #b4b4b4;
}

@media screen and (min-width: 1000px) {
  .lecturer-modal__position {
    display: inline-block;
  }
}

/* プロフィール本文 */
.lecturer-modal__text {
  font-size: 13px;
  line-height: 1.9;
  color: #333;
  margin: 0 0 28px;
  white-space: pre-wrap;
}

@media screen and (min-width: 1000px) {
  .lecturer-modal__text {
    font-size: 14px;
    margin-bottom: 36px;
  }
}

/* 閉じるボタン */
.lecturer-modal__close {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  padding: 14px 20px;
  border-radius: 8px;
  border: none;
  background-color: #01ab9f;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 0.25s ease;
  font-family: inherit;
}

.lecturer-modal__close:hover {
  background-color: #019088;
}

/* モーダル表示用ボタン（既存のデザインを継承） */
.lecture-more-btn {
  margin-top: 10px;
  border: none;
  outline: none;
  cursor: pointer;
  color: #fff;
  width: auto;
  border: 1px solid #fff;
  border-radius: 15px;
  font-weight: 700;
  text-align: left;
  padding: 5px 15px;
  box-sizing: border-box;
  background-color: #8898a7;
  transition: all 0.2s linear;
  font-family: inherit;
  font-size: 1.3rem;
  display: inline-block;
}

.lecture-more-btn:hover {
  background-color: #93a7ba;
  opacity: 1;
}

/* モーダルアニメーション */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
