/* schedule-cmp-replacement.css */

.price-box .cmp {
	padding-top: 20px;
}

.price-box .cmp > .flex {
	justify-content: center;
	margin: 50px 0 55px;
	display: flex;
}

.price-box .cmp .box {
	width: calc( ( 100% - 80px ) / 3 );
	background: #fff8cc;
	text-align: center;
	padding: 0 30px 40px;
	margin-right: 40px;
}

.price-box .cmp .box:last-child,
.price-box .cmp .box:nth-child( 3n ) {
	margin-right: 0;
}

.price-box .cmp figure {
	width: 150px;
	height: 150px;
	background: #fff;
	line-height: .5;
	border: solid 3px #fff8cc;
	border-radius: 50%;
	margin: -10px auto 25px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.price-box .cmp h4 {
	font-size: 2rem;
	font-weight: normal;
	line-height: 1.5;
}

.price-box .cmp .price {
	font-size: 2.6rem;
	line-height: 1.4;
	font-weight: bold;
	color: #ff9100;
	margin-bottom: 15px;
}

.price-box .cmp .box:nth-child( 3 ) .price {
	margin-top: 10px;
}

.price-box .cmp .price .num {
	font-size: 3.8rem;
}

@media screen and ( max-width: 1200px ) {
	.price-box .cmp .box {
		width: calc( ( 100% - 30px ) / 3 );
		margin-right: 15px;
		padding: 0 10px 40px;
		font-size: 1.4rem;
	}

	.price-box .cmp h4 {
		font-size: 1.5rem;
	}

	.price-box .cmp .price {
		font-size: 2rem;
	}

	.price-box .cmp .price .num {
		font-size: 2.4rem;
	}

	.price-box .cmp .txt .sp {
		display: inline;
	}
}

@media screen and ( max-width: 768px ) {
	.price-box .cmp > .flex {
		margin: 30px 0 10px;
		flex-direction: column;
	}

	.price-box .cmp .box {
		width: auto;
		padding: 0 10px 25px;
		margin: 0 15px 30px;
	}

	.price-box .cmp .box:last-child,
	.price-box .cmp .box:nth-child( 3n ) {
		margin-right: 15px;
	}

	.price-box .cmp figure {
		margin: -10px auto 15px;
	}

	.price-box .cmp .price {
		margin-bottom: 10px;
	}

	.price-box .cmp .txt .sp {
		display: none;
	}

	.price-box .cmp .box:nth-child( 3 ) .price {
		margin: 0;
	}
}

/* --- 試験日程スケジュール表 --- */
.test-table table td:first-child,
.test-table table th:first-child {
    width: 20% !important;
    max-width: 20% !important;
    box-sizing: border-box;
}

.test-table table td:first-child,
.test-table table th:first-child {
    width: 20% !important;
    box-sizing: border-box;
}

.exam-flex-container {
    display: flex;
    width: 100% !important;
    border: 1px solid #ccc;
    align-items: stretch;
    box-sizing: border-box;
    background-color: #fff;
    margin: 0 !important;
}

.exam-sidebar {
    background-color: #666;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    padding: 20px 10px;
    flex: 0 0 20% !important;
    max-width: 20% !important;
    width: 20% !important;
    box-sizing: border-box;
    border-right: 1px solid #ccc;
    text-align: center;
    line-height: 1.4;
}

.exam-table-wrapper {
    flex-grow: 1;
    width: 80%;
    background-color: #fff;
    padding: 0;
    display: flex;
    box-sizing: border-box;
}

.exam-data-table {
    width: 100% !important;
    border-collapse: collapse;
    font-size: 14px;
    table-layout: fixed;
    border: none;
}

.exam-data-table th,
.exam-data-table td {
    border: 1px solid #ccc;
    padding: 12px 8px;
    text-align: center;
    color: #333;
    box-sizing: border-box;
}

.exam-data-table tr:first-child th,
.exam-data-table tr:first-child td {
    border-top: none;
}
.exam-data-table th:last-child,
.exam-data-table td:last-child {
    border-right: none;
}
.exam-data-table tr:last-child th,
.exam-data-table tr:last-child td {
    border-bottom: none;
}
.exam-data-table tr th:first-child,
.exam-data-table tr td:first-child {
    border-left: none;
}

.exam-data-table thead th {
    background-color: #f9f9f9;
    font-weight: bold;
}

@media screen and (max-width: 768px) {
    .exam-flex-container {
        flex-direction: column;
    }
    .exam-sidebar {
        width: 100% !important;
        border-right: none;
        border-bottom: 1px solid #ccc;
    }
    .exam-table-wrapper {
        width: 100%;
    }
    .exam-data-table {
        font-size: 11px;
    }
}

/* =========================================================
   学科LP 料金表用の強制上書き
   - PC注釈の折り返し防止
   - 既存テーマ/共通CSSとの衝突回避
   - スマホで金額が消える現象への対策
   ========================================================= */
.gakka-price-table {
    table-layout: auto !important;
}

.gakka-price-table th,
.gakka-price-table td {
    box-sizing: border-box !important;
    overflow: visible !important;
}

.gakka-price-table th {
    width: 32% !important;
}

.gakka-price-table td {
    width: auto !important;
}

.gakka-price-box {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
}

.gakka-price-box__num {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.gakka-price-box__note {
    display: inline-block !important;
    width: -moz-max-content !important;
    width: max-content !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    align-self: flex-start !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    line-break: strict !important;
}

.gakka-price-box__accent {
    display: inline-block !important;
}

@media screen and (max-width: 767px) {
    .gakka-price-table,
    .gakka-price-table tbody,
    .gakka-price-table tr,
    .gakka-price-table th,
    .gakka-price-table td {
        display: block !important;
        width: 100% !important;
    }

    .gakka-price-table {
        table-layout: fixed !important;
    }

    .gakka-price-box {
        align-items: center !important;
        text-align: center !important;
    }

    .gakka-price-box__note {
        width: auto !important;
        max-width: 100% !important;
        align-self: center !important;
        white-space: nowrap !important;
    }
}
