@charset "UTF-8";

/* :root { ... } -- CSS変数でカラーパレットを定義 */
:root {
    --primary-color: #0d6efd;
    --primary-light: #e7f1ff;
    --text-dark: #212529;
    --text-light: #6c757d;
    --border-color: #dee2e6;
    --background-light: #f8f9fa;
    --white: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --header-bg: #343a40;
}


/* ---------main-visual-------- */
#gallery h3 {
    font-size: 4rem;
    line-height: 5rem;
    margin-bottom: 3rem;
    font-weight: 900;
}

/* ---------ABOUT-------- */
/* --- Section 02 --- */
#section02 {
    margin-bottom: 3rem;
}

.price-box {
    margin: 5rem 0;
}

.price-box h4 {
    font-size: 2.5rem;
    padding-bottom: 2rem;
    font-weight: 900;
}

/* ----- コンテナ ----- */
.pricing-container {
    margin: 0 auto;
}

/* ----- テーブル全体 ----- */
.pricing-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    /* 角丸を維持するため */
    box-shadow: 0 8px 25px var(--shadow-color);
}

/* ----- テーブルヘッダー (PC) ----- */
.pricing-table thead {
    background-color: var(--header-bg);
    color: var(--white);
    text-align: center;
}

.pricing-table th,
.pricing-table td {
    padding: 1.25rem 1.5rem;
    text-align: center;
    vertical-align: middle;
}

/* ----- テーブルボディ ----- */
.pricing-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.pricing-table tbody tr:last-child {
    border-bottom: none;
}

.pricing-table tbody tr:hover {
    background-color: var(--background-light);
    transform: scale(1.02);
}

/* ----- 各セルのスタイル ----- */
.pricing-table .sessions {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.pricing-table .description {
    text-align: left;
    line-height: 1.7;
    color: var(--text-light);
}

.pricing-table .price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

.pricing-table .price span {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* ----- おすすめプラン ----- */
/* CSSのクラス名が `recommended` ではなく `""` なので `tr[class=""]` で指定 */
.pricing-table tr.recommended,
.pricing-table tr[class=""] {
    position: relative;
    background-color: var(--primary-light);
}

/* おすすめバッジ */
/* .pricing-table tr.recommended::before,
.pricing-table tr[class=""]::before {
    content: 'おすすめ';
    position: absolute;
    top: -1px;
    right: 20px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 0 0 8px 8px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
} */

/* ----- レスポンシブデザイン (768px以下) ----- */
@media (max-width: 768px) {

    /* PC用のヘッダーを非表示 */
    .pricing-table thead {
        display: none;
    }

    /* テーブル要素をブロック要素に変更してカード型に */
    .pricing-table,
    .pricing-table tbody,
    .pricing-table tr {
        display: block;
        width: 100%;
        margin-bottom: 1.5rem;
        border: 1px solid var(--border-color);
        border-radius: 12px;
        box-shadow: 0 4px 15px var(--shadow-color);
        transition: transform 0.2s ease;
    }

    .pricing-table tr:hover {
        transform: translateY(-5px);
    }

    .pricing-table tbody tr:last-child {
        margin-bottom: 0;
    }

    .pricing-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1.25rem;
        text-align: left;
        position: relative;
    }

    /* 回数表示をカードヘッダーとして扱う */
    .pricing-table td.sessions {
        background-color: var(--background-light);
        font-size: 1.5rem;
        font-weight: 700;
        text-align: center;
        padding: 1rem 1.25rem;
        border-bottom: 1px solid var(--border-color);
    }

    .pricing-table tr.recommended td.sessions,
    .pricing-table tr[class=""] td.sessions {
        background-color: var(--primary-color);
        color: var(--white);
    }

    /* ラベルを左に、値を右に配置 */
    .pricing-table td:not(.sessions) {
        padding-top: 1rem;
        padding-bottom: 1rem;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    /* data-label属性を使ってラベルを生成 */
    .pricing-table td:not(.sessions)::before {
        content: attr(data-label);
        font-size: 1rem;
        font-weight: 700;
        color: var(--text-dark);
        margin-bottom: 0.5rem;
    }

    .pricing-table td.description {
        align-items: flex-start;
    }

    .pricing-table td.price {
        align-items: flex-start;
    }

    .pricing-table .price {
        text-align: left;
    }

    .pricing-table .description br {
        display: none;
    }

    /* 補足情報をブロック要素に */
    .pricing-table .description span,
    .pricing-table .price span {
        display: block;
    }

    /* おすすめバッジの位置を調整 */
    .pricing-table tr.recommended::before,
    .pricing-table tr[class=""]::before {
        top: 0;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 0 0 8px 8px;
        padding: 0.4rem 1.2rem;
    }
}

/* --- レスポンシブ対応 --- */
/* 画面幅が1024px以下の時に適用されるスタイル */
@media (max-width: 1024px) {
    #price h3 {
        font-size: 2rem;
        line-height: 2.5rem;
        margin-bottom: 2rem;
    }

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