.credit-page {
    min-width: 0;
}

/* ================================
   単位ページ – Excel-like Tables
================================ */

/* Shared variables (page-scoped safe use) */
:root {
  --credit-border: #7a7a7a;
  --credit-header-bg: #FFCCCC;
}

/* ===== Generic Tables ===== */
.info-table,
.credit-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 1rem;

  /* Strong outer frame */
  border: 2px solid var(--credit-border);
}

/* Inner grid */
.info-table th,
.info-table td,
.credit-table th,
.credit-table td {
  border: 1px solid var(--credit-border);
  padding: 14px 16px;
  vertical-align: middle;
  line-height: 1.7;
}

/* Header cells */
.info-table th,
.credit-table th {
  background: var(--credit-header-bg);
  color: #b71c4a;
  font-weight: 700;
  width: 180px;
  white-space: nowrap;
}

/* Program label (rowspan cell) */
.credit-table .program-label {
  vertical-align: middle;
}

/* Lecture formatting */
.credit-table .lecture-title {
  font-weight: 700;
  color: #c62860;
}

.credit-table .lecture-meta {
  margin-top: 6px;
  font-size: 1em;
  color: #333333;
}

/* Wider left column for program table */
.info-table.program-table th {
  width: 220px;
}

/* Mobile safety */
@media (max-width: 768px) {
  .table-wrap {
    overflow-x: auto;
  }

  .info-table {
    min-width: 720px;
  }

  .credit-table {
    min-width: 900px;
  }
}

/* ================================
   単位ページ – Section Title (Wide Block)
================================ */

.credit-page h2.with-line {
  background: #F72C5B;
  color: #ffffff;

  padding: 10px 20px;
  margin: 20px auto 10px;

  width: 100%;
  max-width: 1200px;

  border-radius: 6px;
  border: none;

  font-size: 1.2rem;
  font-weight: 700;
  text-align: left;
}

/* Remove underline bar (credit page only) */
.credit-page h2.with-line::after {
  display: none;
}

/* Mobile tuning */
@media (max-width: 768px) {
  .credit-page h2.with-line {
    width: 94%;
    padding: 12px 18px;
    font-size: 1.3rem;
  }
}

/* ================================
   Credit Page (EN) – Notice Block
================================ */

.credit-page .credit-en-notice {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;

  font-size: 1.05rem;
  line-height: 1.8;
  color: #333333;
}

.credit-page .credit-en-notice p {
  margin-bottom: 10px;
}

.credit-page .credit-en-notice strong {
  color: #c62860;
}

/* ================================
   Credit Page – JP Link Button
================================ */

.credit-page .credit-jp-link {
  margin-top: 30px;
  text-align: center;
}

.credit-page .credit-jp-link .btn {
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
}
