/* ============================================================
   courses-ippan.html — 一般入試対策の一覧ページ。

   The shared information-page hero introduces each catalogue. Course cards
   use the site's standard white card surface. University identity is carried
   by the same quiet classification-badge colours used for blog content.
   ============================================================ */
@import url("./course-label-style.css?v=20260722a");

.course-list-wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px) var(--space-content); }
.course-list-group { margin-top: var(--space-content); }
.course-list-group + .course-list-group { margin-top: var(--space-section); }
.course-list-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: var(--space-component);
  padding-bottom: var(--space-tight);
  border-bottom: 1px solid var(--border);
}
.course-list-group-head h2 {
  /* Matches the shared course-page section heading scale. */
  font-family: var(--font-heading);
  font-size: clamp(30px, 4.4vw, 50px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--fg);
  word-break: keep-all;
}
.course-list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.course-list-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
  text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.course-list-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.course-list-body {
  padding: clamp(24px, 3vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.course-list-body :is(h3, h4) {
  /* Card titles use the shared H4 scale. */
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--fg);
  margin-top: 2px;
  word-break: keep-all;
}
.course-list-body p {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: 0;
  color: var(--muted);
  flex: 1;
}
.course-list-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: 12px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  transition: background .2s, transform .15s;
}
.course-list-card:hover .course-list-cta { background: transparent; transform: translateX(2px); }

@media (max-width: 900px) {
  .course-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .course-list-grid { grid-template-columns: 1fr; }
}

.course-list-cta-band {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px) clamp(64px, 10vh, 96px);
  text-align: center;
}
.course-list-cta-band p {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 20px;
}
