.instructor-section {
  display: block;
  overflow: hidden;
  width: 100%;
  padding: 0 30px;
}

.instructor__grid {
  padding: var(--space--4) 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(2, auto);
  grid-template-areas:
    "instructor-header"
    "instructor-list";
  width: 100%;
}
.instructor-header {
  grid-area: instructor-header;
  text-align: center;
  margin-bottom: var(--space--4);
}

.instructor-title {
  display: inline-block;
  font-size: var(--font-size--2xl);
  font-weight: bold;
  position: relative;

  background-image: var(--gradation--text-marker--1);
  background-position: left bottom;
  background-size: 100% 0.6em;
  background-repeat: no-repeat;
}


/* =============================
  カルーセル外枠
============================= */
.instructor-carousel {
  display: flex;
  align-items: center;
  gap: var(--space--4);
  margin: 0 auto;
  width: 100%;
  min-width: 0;
}

/* =============================
  トラックラッパー（overflow hidden）
============================= */
.instructor-track-wrapper {
  overflow: hidden;
  width: 100%;
  min-width: 0;
}

/* =============================
  トラック（カードを横並びにする）
============================= */
.instructor-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: var(--space--6);
  min-width: 0;
}


/* =============================
  各講師カード
============================= */
.instructor-card {
  background-color: #ffffff;
  border-radius: var(--radius--md);
  box-shadow: var(--shadow--md);
  padding: var(--space--6) var(--space--4);
  text-align: center;
  flex-shrink: 0;
}

/* =============================
  講師写真
============================= */
.instructor-photo {
  border-radius: var(--radius--md);
  overflow: hidden;
}
.instructor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 3 / 2;
}

/* =============================
  講師情報エリア
============================= */
.instructor-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space--2);
}

/* =============================
  講師名
============================= */
.instructor-name {
  font-size: var(--font-size--md);
  font-weight: bold;
  color: #222;
  margin: 0;
  letter-spacing: 0.05em;
}

/* =============================
  担当科目バッジ
============================= */
.instructor-subjects {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--space--2);
  justify-content: center;
  flex-wrap: wrap;
}

.instructor-subject {
  background-color: #4a90d9;
  color: #ffffff;
  font-size: var(--font-size--sm);
  font-weight: bold;
  padding: var(--space--1) var(--space--4);
  border-radius: var(--radius--lg);
}

/* =============================
  メッセージ
============================= */
.instructor-message {
  font-size: var(--font-size--sm);
  color: #555;
  line-height: 1.8;
  margin: 0;
}

/* =============================
  矢印ボタン
============================= */
.instructor-arrow {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background-color: #4a90d9;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  font-size: var(--font-size--sm);
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.instructor-arrow:hover {
  background-color: #2f72b8;
}

/* =============================
  ドット
============================= */
.instructor-dots {
  display: flex;
  justify-content: center;
  gap: var(--space--2);
  margin-top: var(--space--6);
}

.instructor-dot {
  width: 10px;
  height: 10px;
  background-color: #4a90d9;
  opacity: 0.4;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s ease;
}

.instructor-dot.is-active {
  opacity: 1;
}

/* =============================
  レスポンシブ
============================= */
@media (width <= 768px) {
  .instructor-arrow {
    display: none;
  }
}

@media (width <= 668px) {
  .instructor-title {
    font-size: var(--font-size--xl);
  }
}
