/**
 * レクチャラーページ用CSS
 */

/* セクション */
.lecturer-section {
  padding: 60px 0;
}

.hero-image-lecturer {
  background-image: url("https://tokyo-rinri.net/wp-content/uploads/2025/08/page_mv_bandicoot_114_tokyorinri.webp");
}

/* 検索結果件数 */
.lecturer-result-count {
  margin-bottom: 30px;
  color: #666;
  font-size: 14px;
}

/* グリッドレイアウト */
.lecturer-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* カード */
.lecturer-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 15px;
}

.lecturer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* 0105上田追加 */
.lecturer-card-inner {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.lecturer-left {
  width: 300px;
  flex-shrink: 0;
}

.lecturer-left-content {
  margin-top: 5px;
  margin-left: 25px;
}

.lecturer-card-content {
  flex: 1;
}

.lecturer-card-profile {
  margin-bottom: 50px;
}

/* カード写真 */
.lecturer-card-photo {
  width: 100%;
  /* aspect-ratio: 1 / 1; */
  overflow: hidden;
  /* background: #f5f5f5; */
}

.lecturer-card-photo img {
  /* width: 100%;
  height: 100%; */
  margin-top: 25px;
  margin-left: 25px;
  object-fit: cover;
}

.lecturer-card-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8f4f8 0%, #d0e8f0 100%);
  color: #a0c4d0;
  font-size: 64px;
}

/* カードコンテンツ */
.lecturer-card-content {
  padding: 20px;
}

/* 種別バッジ */
.lecturer-card-type {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 10px;
}

.lecturer-type-lecturer {
  background-color: #e3f2fd;
  color: #1565c0;
}

.lecturer-type-supervisor {
  background-color: #fff3e0;
  color: #ef6c00;
}

.lecturer-type-advisor {
  background-color: #e8f5e9;
  color: #2e7d32;
}

/* 名前 */
.lecturer-card-name {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin: 0 0 4px;
  line-height: 1.4;
}

.lecturer-card-name-en {
  font-size: 13px;
  color: #888;
  margin: 0 0 12px;
  font-style: italic;
}

/* 単会 */
.lecturer-card-tankai {
  font-size: 13px;
  color: #666;
  margin: 0 0 15px;
  /* display: flex; */
  align-items: center;
  gap: 6px;
}

.lecturer-card-tankai i {
  color: #4a7ba7;
}

/* 職業 */
.lecturer-card-occupation {
  font-size: 14px;
  color: #555;
  margin: 0 0 15px;
}

/* 講話テーマ */
.lecturer-card-theme {
  font-size: 13px;
  color: #666;
  margin: 0;
  /* padding-top: 8px; */
  /* border-top: 1px solid #eee; */
}

/* .lecturer-card-theme .theme-label {
  font-weight: bold;
  color: #4a7ba7;
} */

.lecturer-card-tankai .theme-label {
  background: #0e3a58;
  color: #ffffff;
  padding: 0.35rem 0.75rem;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
  width: 100px;
  text-align: center;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
}

.lecturer-card-occupation .theme-label {
  background: #0e3a58;
  color: #ffffff;
  padding: 0.35rem 0.75rem;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
  width: 100px;
  text-align: center;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
}

.lecturer-card-theme .theme-label {
  background: #0e3a58;
  color: #ffffff;
  padding: 0.35rem 0.75rem;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
  width: 100px;
  text-align: center;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
}

.lecturer-card-tankai,
.lecturer-card-occupation,
.lecturer-card-theme {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 検索結果なし */
.lecturer-not-found {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #f9f9f9;
  border-radius: 12px;
  color: #666;
}

/* ヒーロー画像 */
.hero-image-lecturer {
  /* background-image: url("../images/hero-lecturer.jpg"); */
  background-size: cover;
  background-position: center;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .lecturer-section {
    padding: 40px 0;
  }

  .lecturer-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }

  .lecturer-card-photo-placeholder {
    font-size: 48px;
  }

  .lecturer-card-content {
    padding: 16px;
  }

  .lecturer-card-name {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .lecturer-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   SP対応（検索フォーム縦・カード縦）
   ========================= */
@media (max-width: 768px) {
  /* --- 検索フォーム：グリッド解除して縦並び --- */
  .search-grid {
    display: flex; /* grid解除 */
    flex-direction: column; /* 縦並び */
    gap: 12px;
  }

  .search-button-wrapper-lecturer {
    width: 100%;
    display: flex;
    flex-direction: column; /* ボタンも縦 */
    gap: 10px;
    margin-top: 12px;
  }

  .search-button-wrapper-lecturer .search-button,
  .search-button-wrapper-lecturer .reset-button {
    width: 100%; /* ボタン横幅いっぱい */
    justify-content: center;
  }

  /* --- カード一覧：グリッド解除（1列） --- */
  .lecturer-grid {
    display: block; /* grid解除 */
  }

  .lecturer-card {
    margin-bottom: 16px; /* カード間余白 */
  }

  /* --- カード内部：横並び解除して縦配置（プロフィールを右に置かない） --- */
  .lecturer-card-inner {
    display: block; /* flex解除 */
  }

  .lecturer-left {
    width: 100%;
  }

  /* 左側の余計な左マージンをSPでは消す（崩れ防止） */
  .lecturer-left-content {
    margin-left: 0;
    padding: 12px 16px 0;
  }

  /* 画像の余計なマージンを消して中央寄せ */
  .lecturer-card-photo img {
    margin: 0;
    width: 100%;
    height: auto;
    display: block;
  }

  /* カード本文は通常どおり下に */
  .lecturer-card-content {
    padding: 12px 16px 16px;
  }

  /* ラベル行：SPでは折り返しやすくする（必要なら） */
  .lecturer-card-tankai,
  .lecturer-card-occupation,
  .lecturer-card-theme {
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  /* さらに小さい端末向け：ラベル幅を少し縮める（任意） */
  .lecturer-card-tankai .theme-label,
  .lecturer-card-occupation .theme-label,
  .lecturer-card-theme .theme-label {
    width: 88px;
    padding: 0.35rem 0.5rem;
  }
}
