@charset "utf-8";
/* スマホ版テーブル */
@media screen and (max-width: 768px) {
    /* 1. 表全体を囲む枠に横スクロールを設定 */
    .fee-pc {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        margin-bottom: 20px; /* スクロールバーの余白 */
    }

    /* 2. 縦並びを解除し、元のグリッド(表の形)を維持して横幅を確保 */
    .fee-grid {
        display: grid !important; /* display: block; を打ち消して表の形に戻す */
        width: max-content !important;
        min-width: 800px !important; /* スマホ画面の幅で押しつぶされないように強制確保 */
    }

    /* 3. セル内の文字の縦長化を防ぐ */
    .fee-cell {
        word-break: keep-all !important;
        overflow-wrap: normal !important;
    }
}



 

 .subject-list {
    margin-top: 10px;
    border-top: 1px solid #ddd;
  }

  .subject-row {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
  }

  .subject-title {
    width: 150px;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.6;
  }

  .subject-text {
    flex: 1;
    font-size: 16px;
    line-height: 1.8;
  }

  @media screen and (max-width: 768px) {
    .subject-row {
      display: block;
      padding: 16px 0;
    }

    .subject-title {
      width: auto;
      margin-bottom: 6px;
      font-size: 16px;
    }

    .subject-text {
      font-size: 14px;
      line-height: 1.8;
    }
  }




 .course-list {
    margin-top: 10px;
    border-top: 1px solid #ddd;
  }

  .course-row {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
  }

  .course-title {
    width: 220px;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.6;
    white-space: pre-line;
  }

  .course-term {
    flex: 1;
    font-size: 16px;
    line-height: 1.8;
    padding-left: 24px;
  }

  @media screen and (max-width: 768px) {
    .course-row {
      display: block;
      padding: 16px 0;
    }

    .course-title {
      width: auto;
      border-right: none;
      padding-right: 0;
      margin-bottom: 6px;
      font-size: 16px;
    }

    .course-term {
      padding-left: 0;
      font-size: 14px;
    }
  }





  .fee-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.1fr 1.1fr 1.4fr 1.2fr 1.2fr 1.1fr 1.1fr;
    border-top: 1px solid #ccc;
    border-left: 1px solid #ccc;
    width: 100%;
    font-size: 15px;
  }

  .fee-cell {
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    padding: 14px 12px;
    box-sizing: border-box;
    line-height: 1.8;
    background: #fff;
  }

  .fee-head {
    font-weight: 700;
    text-align: center;
    background: #f7f7f7;
  }

  .fee-center {
    text-align: center;
  }

  .fee-right {
    text-align: right;
    white-space: nowrap;
  }

  .fee-course {
    font-weight: 700;
    white-space: pre-line;
  }

  .fee-span-3 {
    grid-row: span 3;
  }

  .fee-note {
    white-space: pre-line;
  }

  .fee-total {
    font-weight: 700;
  }

