/* Title Section */
/* .title-section, .title-component, .main-title は common.css で定義済み */

/* カリキュラムページ専用の title-component の gap 調整 */
.title-component {
    gap: 24px;
}

/* カリキュラムページ専用の main-title::after の margin 調整 */
.main-title::after {
    margin: 24px auto 0;
}

/* カリキュラムセクション */
.curriculum {
    background-color: #EDEDEA;
    min-height: 100vh;
}

/* イントロセクション */
.intro-section {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    gap: 8px;
}

/* .intro-title は .title24 ユーティリティクラスを使用 */
.intro-title {
    text-align: center;

}

/* .intro-text は .body16 ユーティリティクラスを使用 */

/* コースセクション */
.courses-section {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    gap: 16px;
}

/* コースカード */
.course-card {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    border: 1px solid #B10100;
    overflow: hidden;
}

.course-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    align-self: stretch;
    padding: 16px 0;
    background-color: #B10100;
}

/* .course-name は .title20 ユーティリティクラスを使用 */
.course-name {
    color: #FFFFFF; /* .title20 の色を上書き */
    text-align: center;
    flex: 1;
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.05em !important;
}

.course-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
    gap: 24px;
    padding: 24px;
    background-color: #FFFFFF;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    position: relative;
}

.course-details {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    gap: 24px;
    position: relative;
    z-index: 0;
    pointer-events: none;
}

.course-details * {
    pointer-events: auto;
}

/* .course-tagline は .title20 ユーティリティクラスを使用 */
.course-tagline {
    font-family: 'YuMincho', serif;
    font-weight: 800;
    font-size: 20px;
    line-height: 1.7;
    color: #333333;
    margin: 0;
    text-align: center;
}

.course-image-wrapper {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.course-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* .course-description は .body16 ユーティリティクラスを使用 */
.course-description {
    position: relative;
    z-index: 0;
    font-weight: 400;
    font-size: 0.96rem;
    letter-spacing: 0.05rem;
}

.course-button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    gap: 12px;
    padding: 12px 32px;
    background-color: #B10100;
    border-radius: 40px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.course-button:hover {
    background-color: #8B0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(177, 1, 0, 0.3);
}

.course-button:active {
    transform: translateY(0);
}

.course-button .button-text {
    font-family: 'YuGothic', sans-serif;
    font-weight: 200;
    font-size: 16px;
    line-height: 1.5;
    color: #FFFFFF;
}

.course-button .button-arrow {
    width: 10px;
    height: 14px;
    flex-shrink: 0;
}

/* 20回コースボタン専用スタイル */
.course-button-20 {
    z-index: 20 !important;
    pointer-events: auto !important;
    position: relative !important;
}

/* 10回コースボタン専用スタイル */
.course-button-10 {
    z-index: 10;
}

/* 比較セクション */
.comparison-section {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    gap: 16px;
}

.comparison-title-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    gap: 24px;
}

.comparison-title-line {
    flex: 1;
    height: 1px;
    background-color: #B10100;
}

/* .comparison-title は .title24 ユーティリティクラスを使用 */
.comparison-title {
    line-height: 1.3; /* .title24 の line-height: 1.7 を上書き */
    color: #B10100; /* .title24 の色を上書き */
    white-space: nowrap;
}



/* 比較テーブル */
.comparison-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 540px;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #EDEDEA;
}

.table-corner {
    width: 120px;
    padding: 8px;
    background-color: #EDEDEA;
    border-right: 1px solid #CCCCCC;
    border-bottom: 1px solid #CCCCCC;
    
}

.table-header-course {
    width: 210px;
    padding: 8px;
    font-family: 'YuMincho', serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.7;
    text-align: center;
    color: #FFFFFF;
    background-color: #B10100;
    border-top: 1px solid #CCCCCC;
    border-right: 1px solid #CCCCCC;
    border-bottom: 1px solid #CCCCCC;
}

.table-header-row {
    width: 120px;
    padding: 8px;
    font-family: 'YuGothic', sans-serif;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
    color: #333333;
    background-color: #EDEDEA;
    border-right: 1px solid #CCCCCC;
    border-left: 1px solid #CCCCCC;
    border-bottom: 1px solid #CCCCCC;
    font-weight: 400;
    /* 横スクロール時に左固定 */
    position: sticky;
    left: 0;
    z-index: 2;
    /* 左ボーダーをbox-shadowで描画（position: stickyのずれを防ぐ） */
    box-shadow: -1px 0 0 0 #CCCCCC;
}

.table-cell {
    width: 210px;
    padding: 8px;
    font-family: 'YuGothic', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    color: #333333;
    background-color: #FFFFFF;
    border-right: 1px solid #CCCCCC;
    border-bottom: 1px solid #CCCCCC;
}

.table-cell p{
    font-size: 12px !important;
}

.table-cell-button {
    padding: 8px;
}

.table-button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background-color: transparent;
    border-radius: 40px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.table-button:hover {
    background-color: #F5F5F5;
}

.table-button .button-text {
    font-family: 'YuGothic', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    color: #B10100;
}

.table-button .button-arrow {
    width: 7px;
    height: 14px;
    flex-shrink: 0;
}

/* タブレット表示 */
@media (min-width: 768px) {
    /* コンテンツ幅は390px固定を維持 */
    /* フォントサイズはユーティリティクラス（.title24, .title20, .body16）で設定済みのため、個別指定は不要 */
    .course-image-wrapper {
        height: 160px;
    }
}

/* デスクトップ表示 */
@media (min-width: 1024px) {
    /* コンテンツ幅は390px固定を維持 */
    .course-image-wrapper {
        height: 160px;
    }

    .comparison-table-wrapper {
        overflow-x: auto;
    }

    .comparison-table {
        width: 540px;
    }
}

/* アクセシビリティ */
@media (prefers-reduced-motion: reduce) {
    .course-button,
    .table-button {
        transition: none;
    }
}

/* 高コントラストモード対応 */
@media (prefers-contrast: high) {
    .intro-title,
    .intro-text,
    .course-tagline,
    .course-description,
    .comparison-notice,
    .table-cell {
        color: #000000;
    }

    .course-card {
        border: 2px solid #B10100;
    }
}

