.detail-teacher-card.detail-card-v2 {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}
.detail-teacher-hero-row {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
}
.detail-teacher-hero-row .gallery-main-view {
  background: #ffffff !important;
}
.detail-profile-grid img {
  display: inline-block !important;
  vertical-align: middle !important;
}
.detail-profile-grid .profile-grid-td {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
button.thumb-item {
  padding: 0 !important;
  appearance: none;
  -webkit-appearance: none;
}
.detail-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid #cbd5e1;
  border-left: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}
.detail-profile-grid .profile-grid-item {
  display: flex;
  border-right: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
  min-width: 0;
}
.detail-profile-grid .profile-grid-item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.detail-profile-grid .profile-grid-th {
  width: 145px;
  flex-shrink: 0;
  background: #f8fafc;
  color: #1e293b;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 12px;
  border-right: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
  box-sizing: border-box;
}
.detail-profile-grid .profile-grid-td {
  flex: 1;
  min-width: 0;
  color: #0f172a;
  font-size: 15px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  line-height: 1.5;
  box-sizing: border-box;
  word-break: break-word;
}
.step1-detail-fv-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
}
.step1-detail-fv-cta .fv-cta-copy {
  flex: 1;
  min-width: 0;
}
.step1-detail-fv-cta .fv-cta-btn {
  flex-shrink: 0;
}
@media screen and (max-width: 768px) {
  .detail-teacher-card.detail-card-v2 {
    gap: 14px !important;
  }
  .detail-teacher-hero-row {
    flex-direction: column;
    gap: 14px;
  }
  .detail-profile-grid {
    grid-template-columns: 1fr;
  }
  .detail-profile-grid .profile-grid-th {
    width: 134px;
    font-size: 13px;
    padding: 9px 8px;
  }
  .detail-profile-grid .profile-grid-td {
    font-size: 14.5px;
    padding: 9px 10px;
  }
}
@media screen and (max-width: 640px) {
  .detail-spec-pill-table {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }
  .detail-spec-pill-table .pill-cell-header {
    white-space: normal !important;
  }
  .ai-teacher-highlights-card {
    padding: 13px 12px !important;
  }
  .ai-teacher-highlights-card .highlights-header-title {
    font-size: 1.05rem !important;
  }
  .ai-teacher-highlights-card .highlights-point-row {
    flex-direction: column !important;
    gap: 6px !important;
    padding: 10px 12px !important;
  }
  .step1-detail-fv-cta {
    flex-wrap: wrap !important;
  }
  .step1-detail-fv-cta .fv-cta-btn {
    width: 100% !important;
    min-height: 50px !important;
    justify-content: center !important;
    padding: 12px 14px !important;
    font-size: 0.9375rem !important;
    white-space: normal !important;
    line-height: 1.35 !important;
    box-sizing: border-box !important;
  }
}
/* ===== 💎 プラチナ認定（特別推薦）詳細ページ専用スタイル ===== */
.detail-teacher-card.is-platinum-detail {
  border: 2.5px solid #d4af37 !important;
  background: linear-gradient(180deg, #fffdf4 0%, #ffffff 28%) !important;
  box-shadow: 0 6px 22px rgba(180, 134, 8, 0.16) !important;
}
.platinum-detail-hero-banner {
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 55%, #0f172a 100%);
  border: 2px solid #d4af37;
  border-radius: 10px;
  padding: 11px 16px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
  box-sizing: border-box;
}
.platinum-detail-banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.platinum-detail-emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fde047 0%, #ca8a04 100%);
  color: #0f172a;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(234, 179, 8, 0.4);
}
.platinum-detail-title {
  font-size: 15.5px;
  font-weight: 900;
  color: rgb(253, 224, 71);
  line-height: 1.3;
  letter-spacing: 0.02em;
}
.platinum-detail-desc {
  font-size: 12px;
  color: rgb(248, 250, 252);
  font-weight: 700;
  line-height: 1.35;
}
.platinum-detail-pill {
  background: rgba(254, 240, 138, 0.15);
  color: rgb(254, 240, 138);
  border: 1px solid #eab308;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.detail-teacher-card.is-platinum-detail .gallery-main-view {
  border: 2.5px solid #d4af37 !important;
  border-bottom: none !important;
  border-radius: 10px 10px 0 0 !important;
  box-shadow: 0 4px 14px rgba(180, 134, 8, 0.22) !important;
  position: relative !important;
  margin-bottom: 0 !important;
}
.platinum-detail-photo-badge {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
  color: rgb(253, 224, 71);
  border: 2.5px solid #d4af37;
  border-top: 1.5px solid #d4af37;
  border-radius: 0 0 10px 10px;
  font-size: 11.5px;
  font-weight: 900;
  text-align: center;
  padding: 4px 8px;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(180, 134, 8, 0.18);
  margin-top: -12px;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}
.detail-teacher-card.is-super-rec-detail .gallery-main-view {
  border: 2px solid #d97706 !important;
  border-bottom: none !important;
  border-radius: 10px 10px 0 0 !important;
  box-shadow: 0 4px 14px rgba(185, 28, 28, 0.16) !important;
  position: relative !important;
  margin-bottom: 0 !important;
}
.super-rec-detail-photo-badge {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(90deg, #9a3412 0%, #b91c1c 100%);
  color: #ffffff;
  border: 2px solid #d97706;
  border-top: 1.5px solid #fcd34d;
  border-radius: 0 0 10px 10px;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  padding: 5px 8px;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.15);
  margin-top: -12px;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}
.detail-teacher-card.is-rec-detail .gallery-main-view {
  border: 2px solid #0284c7 !important;
  border-bottom: none !important;
  border-radius: 10px 10px 0 0 !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15) !important;
  position: relative !important;
  margin-bottom: 0 !important;
}
.rec-detail-photo-badge {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(90deg, #1e40af 0%, #0369a1 100%);
  color: #ffffff;
  border: 2px solid #0284c7;
  border-top: 1.5px solid #CBD5E1;
  border-radius: 0 0 10px 10px;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  padding: 5px 8px;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.14);
  margin-top: -12px;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}
@media screen and (max-width: 640px) {
  .platinum-detail-hero-banner {
    padding: 9px 12px;
    gap: 6px;
  }
  .platinum-detail-emblem {
    width: 28px;
    height: 28px;
    font-size: 15px;
  }
  .platinum-detail-title {
    font-size: 13.5px;
  }
  .platinum-detail-desc {
    font-size: 11px;
  }
  .platinum-detail-pill {
    display: none;
  }
}
@media screen and (max-width: 640px) { .highlights-rank-pill { white-space: normal !important; flex-shrink: 1 !important; } }

/* == WAVE3_DETAIL_SP == */
@media screen and (max-width: 640px) {
  .detail-teacher-hero-row .gallery-main-view {
    height: 215px !important;
  }
  .gallery-thumbs-grid {
    padding-right: 12px !important;
  }
  .feature-pill-tags {
    padding-right: 12px !important;
  }
}
/* ===== A+B Hybrid: Detail 4-Tier Hierarchy ===== */
.detail-teacher-card.is-super-rec-detail {
  border: 1.5px solid #f59e0b !important;
  border-left: 5px solid #b45309 !important;
  box-shadow: 0 6px 20px rgba(180, 83, 9, 0.12) !important;
}
.detail-teacher-card.is-super-rec-detail .gallery-main-view {
  border-color: #d97706 !important;
}
.super-rec-detail-photo-badge {
  background: linear-gradient(90deg, #92400e 0%, #b45309 100%) !important;
  border-color: #d97706 !important;
}
.super-rec-detail-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 9px 16px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: linear-gradient(90deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fcd34d;
  color: #78350f;
  font-size: 13.5px;
  font-weight: 800;
}
.detail-teacher-card.is-rec-detail {
  border: 1.5px solid #99f6e4 !important;
  border-left: 5px solid #0f766e !important;
  box-shadow: 0 5px 16px rgba(15, 118, 110, 0.10) !important;
}
.detail-teacher-card.is-rec-detail .gallery-main-view {
  border-color: #0d9488 !important;
}
.rec-detail-photo-badge {
  background: linear-gradient(90deg, #115e59 0%, #0f766e 100%) !important;
  border-color: #0d9488 !important;
}
.rec-detail-detail-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 9px 16px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: linear-gradient(90deg, #f0fdfa 0%, #ccfbf1 100%);
  border: 1px solid #99f6e4;
  color: #115e59;
  font-size: 13.5px;
  font-weight: 800;
}
.detail-teacher-card.is-super-rec-detail .ai-teacher-highlights-card {
  background: #fffbf2 !important;
  border: 1.5px solid #fcd34d !important;
  border-left: 4px solid #b45309 !important;
}
.detail-teacher-card.is-super-rec-detail .ai-teacher-highlights-card .highlights-header-title {
  color: #92400e !important;
}
.detail-teacher-card.is-super-rec-detail .ai-teacher-highlights-card .highlights-rank-pill {
  background: #b45309 !important;
  color: #ffffff !important;
  border-color: #92400e !important;
}
.detail-teacher-card.is-rec-detail .ai-teacher-highlights-card {
  background: #f4fbf9 !important;
  border: 1.5px solid #99f6e4 !important;
  border-left: 4px solid #0f766e !important;
}
.detail-teacher-card.is-rec-detail .ai-teacher-highlights-card .highlights-header-title {
  color: #115e59 !important;
}
.detail-teacher-card.is-rec-detail .ai-teacher-highlights-card .highlights-rank-pill {
  background: #0f766e !important;
  color: #ffffff !important;
  border-color: #115e59 !important;
}

h2.box-ttl { margin-top: 0; }
h2.area-card-ttl { margin: 0 0 8px 0; }
h2.wdd-detail-cluster-title { margin: 0; }
