/* price.php 専用スタイル */

/* --- タブ関連 --- */
.tab-buttons {
    display: grid; /* flexからgridに変更 */
    grid-template-columns: repeat(3, 1fr); /* 3つのカラムを均等幅に */
    border-bottom: 2px solid #eee; /* ボタンの下に区切り線 */
    margin-bottom: 40px; /* コンテンツとの間隔を調整 */
}

.tab-button {
    padding: 14px 28px;
    cursor: pointer;
    border: none;
    background-color: transparent;
    font-size: 1.1em;
    font-weight: 600;
    color: #888; /* 非アクティブなタブの文字色 */
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent; /* アクティブ時の下線のためのスペース */
    margin-bottom: -2px; /* 下線をコンテナの線に重ねる */
    text-align: center; /* テキストを中央揃えに */
}

.tab-button:not(.active):hover {
    color: #333;
    background-color: #f7f7f7;
}

.tab-button.active {
    font-weight: 700;
}

.tab-button[data-tab="kids"].active {
    color: #ff9800; /* Kids: オレンジ */
    border-bottom-color: #ff9800;
}
.tab-button[data-tab="teen"].active {
    color: #2196f3; /* Teen: ブルー */
    border-bottom-color: #2196f3;
}
.tab-button[data-tab="individual"].active {
    color: #4caf50; /* Individual: グリーン */
    border-bottom-color: #4caf50;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

/* --- 料金カード関連 --- */
.price-card {
    background: white;
    padding: 25px 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.price-card:hover {
    transform: translateY(-10px);
}

.price-card h2 {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 1.8em;
    margin-bottom: 20px;
}

.price-card h2 .h2-note {
    font-size: 0.6em;
    font-weight: normal;
    margin-left: 10px;
    color: #555;
}

.price-card ul {
    list-style: none;
    margin: 20px 0;
}

.price-card li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.price-card li:last-child {
    border-bottom: none;
}

.course-list-note {
    margin-top: 10px;
}

.contact-guidance {
    margin-top: 3em;
    font-size: 1.1em;
}

.contact-guidance p {
    margin-bottom: 30px; /* p要素とボタンの間に余白を追加 */
}

.price-table {
    width: 100%;
    margin: 1em 0;
    border-collapse: collapse;
}
.price-table th, .price-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}
.price-table th {
    background-color: #fffaf6;
    width: 30%;
    font-size: 0.8em;
}
.course-note {
    font-size: 10px;
    color: #666;
}

/* --- スマートフォン用のスタイル --- */
@media (max-width: 768px) {
    .tab-buttons {
        display: flex; /* gridからflexに戻す */
        flex-direction: column;
        border-bottom: none;
        gap: 10px;
    }
    .tab-button {
        border-bottom: 1px solid #eee;
        margin-bottom: 0;
        text-align: center;
    }
    .tab-button.active {
        border-bottom-color: transparent;
        background-color: #f8f8f8;
        border-radius: 8px;
    }

    .price-card {
        padding: 25px 35px; /* 左右のパディングを調整 */
    }

    .price-card h2 {
        font-size: 1.5em; /* 見出しのフォントサイズを調整 */
    }
}