/* ========================================
   教室詳細ページ 固有CSS
   v1 - 2026.03.20
======================================== */

/* ========================================
   ページヒーロー（全教室共通）
======================================== */
.page-hero--science,
.page-hero--creatures,
.page-hero--programming {
  padding: 120px 2rem 60px;
  background: var(--bg-light);
  text-align: center;
}

.page-hero--science .page-hero-inner,
.page-hero--creatures .page-hero-inner,
.page-hero--programming .page-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.page-hero--science .section-label,
.page-hero--creatures .section-label,
.page-hero--programming .section-label { margin-bottom: 1rem; }

.page-hero--science h1,
.page-hero--creatures h1,
.page-hero--programming h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0.03em;
  margin-bottom: 1.5rem;
}

.page-hero--science h1 .highlight,
.page-hero--creatures h1 .highlight,
.page-hero--programming h1 .highlight { color: var(--primary-blue); }

.page-hero--science .page-hero-lead,
.page-hero--creatures .page-hero-lead,
.page-hero--programming .page-hero-lead {
  font-size: 1.1rem;
  color: var(--text-gray);
  line-height: 2;
  font-weight: 500;
}

/* ========================================
   メイン写真
======================================== */
.class-photo-section {
  padding: 0 2rem;
  background: var(--bg-white);
  margin-top: -20px;
  position: relative;
  z-index: 1;
}

.class-photo-inner {
  max-width: 900px;
  margin: 0 auto;
}

.class-photo-wrapper {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 4px solid var(--primary-blue);
}

.class-photo-wrapper img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

/* ========================================
   教室の紹介
======================================== */
.class-intro {
  padding: 80px 2rem;
  background: var(--bg-white);
}

.class-intro-inner {
  max-width: 900px;
  margin: 0 auto;
}

.class-intro-message {
  background: var(--bg-blue-light);
  border-radius: 24px;
  padding: 3rem;
  border: 3px solid var(--primary-blue);
}

.class-intro-message p {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 2.2;
  color: #333;
  margin-bottom: 1.5rem;
}

.class-intro-message p:last-child { margin-bottom: 0; }
.class-intro-message strong { color: var(--primary-blue); font-weight: 800; }

/* ========================================
   教室の特徴
======================================== */
.class-features {
  padding: 80px 2rem;
  background: var(--bg-light);
}

.class-features-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--white);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 3px solid var(--primary-blue);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--primary-blue);
  border-radius: 24px 24px 0 0;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.feature-card-number {
  font-family: var(--font-accent);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(0,151,211,0.15);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

.feature-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.feature-card-desc {
  color: var(--text-gray);
  font-weight: 500;
  line-height: 1.9;
  font-size: 0.95rem;
}

/* ========================================
   基本情報
======================================== */
.class-info-section {
  padding: 80px 2rem;
  background: var(--bg-white);
}

.class-info-inner {
  max-width: 750px;
  margin: 0 auto;
}

.info-table-card {
  background: var(--bg-blue-light);
  border-radius: 24px;
  padding: 2.5rem;
  border: 3px solid var(--primary-blue);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table tr {
  border-bottom: 1px solid rgba(0,151,211,0.15);
}

.info-table tr:last-child { border-bottom: none; }

.info-table th {
  font-weight: 800;
  color: var(--primary-blue);
  padding: 1rem 1rem 1rem 0;
  text-align: left;
  white-space: nowrap;
  width: 120px;
  vertical-align: top;
  font-size: 0.95rem;
}

.info-table td {
  padding: 1rem 0;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.8;
  font-size: 0.95rem;
}

.info-note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-gray);
  font-weight: 500;
  line-height: 1.8;
}

/* ========================================
   次回の教室
======================================== */
.next-event-section {
  padding: 80px 2rem;
  background: var(--bg-light);
}

.next-event-inner {
  max-width: 750px;
  margin: 0 auto;
}

/* 開催未定バージョン */
.next-event-pending {
  background: var(--white);
  border-radius: 24px;
  padding: 3rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 3px dashed rgba(0,151,211,0.3);
}

.pending-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.next-event-pending h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.next-event-pending p {
  color: var(--text-gray);
  font-weight: 500;
  line-height: 1.9;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* 開催決定バージョン */
.next-event-card {
  background: var(--white);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  border: 3px solid var(--primary-blue);
  display: flex;
  gap: 2rem;
  align-items: center;
}

.next-event-date {
  background: var(--primary-blue);
  border-radius: 16px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  color: var(--white);
  min-width: 90px;
  flex-shrink: 0;
}

.next-event-month {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.8;
}

.next-event-day {
  font-family: var(--font-accent);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.1;
}

.next-event-dow {
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0.8;
}

.next-event-body { flex: 1; }

.next-event-type {
  display: inline-block;
  background: var(--primary-orange);
  color: var(--white);
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.next-event-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1.5;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.next-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-gray);
  font-weight: 500;
}

/* ========================================
   過去のレポート
======================================== */
.past-reports-section {
  padding: 80px 2rem;
  background: var(--bg-white);
}

.past-reports-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.past-reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.past-report-card {
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 3px solid var(--primary-blue);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.past-report-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.past-report-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.past-report-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.past-report-cat {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(4px);
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
}

.past-report-body {
  padding: 1.5rem;
}

.past-report-label {
  font-family: var(--font-accent);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.past-report-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.past-report-date {
  font-family: var(--font-accent);
  font-size: 0.8rem;
  color: var(--text-gray);
}

/* ========================================
   講師紹介
======================================== */
.instructor-section {
  padding: 80px 2rem;
  background: var(--bg-light);
}

.instructor-inner {
  max-width: 750px;
  margin: 0 auto;
}

.instructor-card {
  background: var(--white);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  border: 3px solid var(--primary-blue);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.instructor-photo {
  flex-shrink: 0;
}

.instructor-photo-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--bg-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border: 3px solid var(--primary-blue);
}

.instructor-photo img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-blue);
}

.instructor-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 0.3rem;
  color: var(--text-dark);
}

.instructor-role {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.instructor-desc {
  color: var(--text-gray);
  font-weight: 500;
  line-height: 1.9;
  font-size: 0.95rem;
}

/* 複数講師カード */
.instructor-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* レポート準備中の表示 */
.past-reports-coming {
  background: var(--bg-light);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  border: 2px dashed rgba(0,151,211,0.2);
}

.past-reports-coming p {
  color: var(--text-gray);
  font-weight: 500;
  font-size: 0.95rem;
}

/* ========================================
   レスポンシブ
======================================== */
@media (max-width: 768px) {
  .page-hero--science,
  .page-hero--creatures,
  .page-hero--programming {
    padding: 100px 1.5rem 40px;
  }

  .page-hero--science h1,
  .page-hero--creatures h1,
  .page-hero--programming h1 {
    font-size: 1.5rem;
  }

  .class-photo-wrapper img {
    height: 250px;
  }

  .class-intro-message {
    padding: 2rem 1.5rem;
  }

  .class-intro-message p {
    font-size: 1rem;
    line-height: 2;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .info-table-card {
    padding: 1.5rem;
  }

  .info-table th {
    display: block;
    padding: 0.75rem 0 0;
    width: 100%;
  }

  .info-table td {
    display: block;
    padding: 0.25rem 0 0.75rem;
  }

  .next-event-card {
    flex-direction: column;
    text-align: center;
  }

  .next-event-meta {
    justify-content: center;
  }

  .past-reports-grid {
    grid-template-columns: 1fr;
  }

  .instructor-card {
    flex-direction: column;
    text-align: center;
  }
}
