/* =========================================
   tuition アコーディオン内コンテンツ
   ========================================= */

/* テーブルブロック2列レイアウト（納付金） */
.tuition-table-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 940px) {
  .tuition-table-wrap {
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
  }

  .tuition-table-wrap .tuition-table-block {
    flex: 1;
  }
}

/* テーブルブロック */
.tuition-table-block {
  width: 100%;
}

/* テーブル小見出し */
.tuition-table-subtitle {
  font-size: 1.6rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 6px;
}

.tuition-table-subtitle::before {
  content: "■";
  color: #5ebc88;
  margin-right: 6px;
}

/* テーブルスクロールラッパー（SP横スクロール対応） */
.tuition-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 8px;
}

/* テーブル本体 */
.tuition-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.3rem;
  line-height: 1.5;
  white-space: nowrap;
}

.tuition-table--full {
  white-space: normal;
}

.tuition-table th,
.tuition-table td {
  border: 1px solid #a6abba;
  padding: 8px 12px;
  vertical-align: middle;
}

.tuition-table thead tr {
  background-color: #5ebc88;
  color: #fff;
}

.tuition-table thead th {
  font-weight: 700;
  text-align: center;
}

.tuition-table tbody tr {
  background-color: #f7fcf9;
}

.tuition-table tbody td {
  color: #2c364b;
}

/* 合計セル */
.tuition-table-total {
  text-align: center;
  color: #333;
}

/* 小計行（初年度納入額）*/
.tuition-table-row--subtotal td:first-child {
  background-color: #d3efde;
}

.tuition-table-row--subtotal td:not(:first-child) {
  background-color: #e8f7ed;
}

/* テーブル下の注記 */
.tuition-table-note {
  font-size: 1.3rem;
  margin-top: 8px;
  line-height: 1.6;
}

@media (min-width: 940px) {
  .tuition-table th,
  .tuition-table td {
    padding: 10px 8px;
  }
}

/* tbody内のth（行ラベル）スタイル */
.tuition-table tbody th[scope="row"] {
  background-color: #f7fcf9;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}
