/* 下層ページ */
main {
    /* 下層ページの共通（画面幅、パンくずリスト、ホームボタン） */
    max-width: 1200px;
    margin-inline: auto;

    .breadcrumb {
        padding: 1em var(--spacing-16px) 0;
        font-size: 14px;

        ol {
            display: flex;
            list-style: none;
            padding: 0;
            gap: 8px;

            li {
                display: flex;
                align-items: center;
                color: #ccc;

                &:not(:last-child)::after {
                    content: '>';
                    margin: 0 8px;
                    color: #777;
                }

                a {
                    display: flex;
                    align-items: center;
                    gap: 4px;
                    text-decoration: none;
                    color: #f4981e;
                    font-weight: 500;

                    svg {
                        width: 16px;
                        height: 16px;
                        fill: currentColor;
                    }

                    &:hover {
                        text-decoration: underline;
                    }
                }
            }

            li:last-child {
                color: #fff;
                font-weight: bold;
            }
        }
    }

    .back-home {
        text-align: center;
        margin-top: 48px;
        margin-bottom: 48px;

        .back-home-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 12px 24px;
            background-color: #f4981e;
            color: #fff;
            text-decoration: none;
            font-weight: bold;
            border-radius: 8px;
            transition: background-color 0.3s ease;

            .icon {
                width: 20px;
                height: 20px;
            }

            &:hover {
                background-color: #c77805;
            }
        }
    }

}

/* privateセクション */
.private-room {
    h2 {
        position: relative;
        padding-left: .7em;
        font-size: var(--font-size-20px);
        font-weight: bold;
        margin-bottom: var(--spacing-16px);
        color: #fff;

        &::before {
            content: "";
            position: absolute;
            left: 0;
            width: 6px;
            height: 32px;
            background-color: var(--logo-color);
            border-radius: 2px;
        }
    }

    .facility-photos {
        margin-bottom: var(--spacing-32px);
    }

    .trainer-detail {
        text-align: center;
        margin-top: 48px;
        margin-bottom: -48px;

        .trainer-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 12px 30px;
            background-color: #f4981e;
            color: #fff;
            text-decoration: none;
            font-weight: bold;
            border-radius: 8px;
            transition: background-color 0.3s ease;

            &:hover {
                background-color: #c77805;
            }
        }
    }
}

.facility-photos {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, 1fr);

    .photo-item {
        img {
            width: 100%;
            height: auto;
            display: block;
            border-radius: 8px;
        }
    }

    @media (width <=768px) {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* facilityセクションend */



/* priceセクション */
.price {
    .price-content {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-40px);

        .plans {
            ul {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: var(--spacing-24px);

                @media (width <=768px) {
                    grid-template-columns: 1fr;
                }

                li {
                    padding: var(--spacing-24px);
                    border-radius: 12px;
                    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
                    transition: transform 0.3s ease;

                    @media (width <=768px) {
                        padding: var(--spacing-24px) var(--spacing-16px);
                    }

                    &:hover {
                        transform: translateY(-4px);
                    }

                    h2 {
                        position: relative;
                        padding-left: .7em;
                        font-size: var(--font-size-20px);
                        font-weight: bold;
                        margin-bottom: var(--spacing-16px);
                        color: #fff;

                        &::before {
                            content: "";
                            position: absolute;
                            left: 0;
                            width: 6px;
                            height: 32px;
                            background-color: var(--logo-color);
                            border-radius: 2px;
                        }
                    }

                    .list-lead {
                        line-height: 1.7;
                        font-size: 16px;
                        font-weight: bold;
                        color: #eee;
                        margin-bottom: 16px;
                    }

                    table {
                        overflow: hidden;
                        width: 100%;
                        border-collapse: collapse;
                        margin-bottom: var(--spacing-16px);
                        font-size: var(--font-size-14px);

                        th,
                        td {
                            color: var(--black-color);
                            border: 1px solid #444;
                            padding: 1em .5em;
                            text-align: center;
                        }

                        th {
                            background-color: rgb(255, 196, 107);
                            font-weight: bold;
                        }

                        td {
                            background-color: rgb(255, 223, 176);
                            font-weight: bold;
                        }
                    }

                    .feature-lead {
                        color: #fff;
                        font-size: var(--font-size-16px);
                        margin-top: var(--spacing-8px);
                    }

                }

                .first-list {
                    background-color: #237071;
                }

                .second-list {
                    background-color: #1f5b7a;
                }

                .third-list {
                    background-color: #3474a5;
                }
            }
        }

        .course-notes {
            .course-notes-title {
                font-size: var(--font-size-20px);
                font-weight: bold;
                margin-bottom: var(--spacing-8px);
                color: #ffa733;
            }

            .course-lead {
                color: #fff;
                font-size: var(--font-size-16px);
                margin-top: var(--spacing-8px);
            }
        }

        .compare {
            color: var(--black-color);

            .compare-title {
                font-size: var(--font-size-20px);
                font-weight: bold;
                margin-top: var(--spacing-16px);
                margin-bottom: var(--spacing-8px);
                color: #ffa733;
            }

            .compare-table {
                width: 100%;
                border-collapse: collapse;
                font-size: 15px;
                line-height: 1.6;

                th,
                td {
                    border: 1px solid var(--body-color);
                    padding: 1em 0.5em;
                    text-align: center;
                }

                thead {
                    th {
                        background-color: rgb(255, 196, 107);
                        font-weight: bold;
                    }
                }

                tbody {
                    td {
                        background-color: rgb(255, 223, 176);
                    }

                    th {
                        background-color: rgb(255, 196, 107);
                        font-weight: bold;
                    }

                    .highlight {
                        background-color: #f4981e !important;
                        font-weight: bold;
                    }
                }
            }
        }
    }

    .section-subtitle {
        position: relative;
        display: inline-block;
        font-size: var(--font-size-18px);
        font-weight: bold;
        color: var(--logo-color);
        padding-left: 1em;
        margin-bottom: var(--spacing-8px);

        &::before {
            content: "";
            position: absolute;
            left: 0;
            width: 6px;
            height: 28.8px;
            background-color: var(--logo-color);
            border-radius: 2px;
        }
    }

    .section-text {
        font-size: 15px;
        line-height: 1.8;
        color: var(--text-color);

        ul {
            padding-left: 1.2em;
            list-style-type: disc;

            li {
                margin-bottom: 0.5em;
            }
        }
    }

    .payment {
        margin-top: 64px;
    }

    .note {
        margin-top: 40px;
    }
}

.trainer {

    .trainer-list {
        display: grid;
        gap: 40px;
    }

    .trainer-card {
        background: var(--card-color);
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        padding: 20px;

        .trainer-images {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;

            img {
                width: calc((100% - 20px) / 3);
                aspect-ratio: 4 / 3;
                object-fit: cover;
                border-radius: 8px;
                height: auto;
            }

            @media (width <=768px) {
                flex-direction: column;

                img {
                    width: 100%;
                }
            }
        }

        .trainer-info {
            .trainer-name {
                font-size: 20px;
                font-weight: 700;
                position: relative;
                padding-left: 12px;
                color: #fff;

                &::before {
                    content: "";
                    position: absolute;
                    left: 0;
                    top: 0.25em;
                    width: 6px;
                    height: 1.2em;
                    background: var(--accent-color, #f18f5c);
                    border-radius: 3px;
                }
            }

            .trainer-summary {
                color: #ccc;
                margin: .5em 0 1em;
            }

            dl {
                display: grid;
                grid-template-columns: auto 1fr;
                row-gap: 1rem;
                column-gap: 1rem;
                align-items: start;

                dt {
                    font-weight: 600;
                    font-size: 0.95rem;
                    padding: 4px 8px;
                    background: rgba(241, 143, 92, 0.15);
                    color: #f1b390;
                    border-radius: 4px;
                    white-space: nowrap;
                }

                dd {
                    margin: 0;
                    font-size: 0.95rem;
                    line-height: 1.6;
                    color: #ccc;
                }
            }

            @media (width <=768px) {
                dl {
                    grid-template-columns: 1fr;
                }

                dt {
                    margin-bottom: 0.2rem;
                }
            }
        }


    }
}

/* ================================
   オリジナルメニュー セクション
================================ */
.original-menu {

    .section-inner {
        margin: 0 auto;
    }

    .section-title {
        font-size: 28px;
        text-align: center;

        @media (width <=768px) {
            font-size: 24px;
        }
    }

    .section-lead {
        text-align: center;
        font-size: 16px;
        margin-bottom: 50px;

        @media (width <=768px) {
            font-size: 15px;
        }
    }

    /* 基本の流れ */
    .menu-flow {
        margin-bottom: 60px;

        .menu-title {
            font-size: 24px;
            margin-bottom: 20px;
            border-left: 5px solid #ff7f50;
            padding-left: 10px;

            @media (width <=768px) {
                font-size: 20px;
            }
        }

        .flow-steps {
            counter-reset: step;
            list-style: none;
            padding: 0;

            li {
                font-size: 16px;
                position: relative;
                margin-bottom: 20px;
                padding: 15px 15px 15px 50px;
                background: var(--white-color);
                color: var(--black-color);
                border-radius: 10px;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);

                @media (width <=768px) {
                    font-size: 15px;
                }

                &::before {
                    counter-increment: step;
                    content: counter(step);
                    position: absolute;
                    left: 15px;
                    top: 50%;
                    transform: translateY(-50%);
                    background: #ff7f50;
                    color: #fff;
                    font-weight: bold;
                    width: 28px;
                    height: 28px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    border-radius: 50%;
                }

                strong {
                    font-size: 16px;
                    color: var(--black-color);
                }
            }
        }
    }

    /* 体系別ダイエット */
    .menu-bodytype {
        margin-bottom: 60px;

        .menu-title {
            font-size: 24px;
            margin-bottom: 20px;
            border-left: 5px solid #00b894;
            padding-left: 10px;

            @media (width <=768px) {
                font-size: 20px;
            }
        }

        .menu-lead {
            margin-bottom: 10px;
            font-size: 16px;

            @media (width <=768px) {
                font-size: 15px;
            }
        }

        .bodytype-card {
            background: var(--white-color);
            border-radius: 10px;
            padding: 15px 20px;
            margin-bottom: 20px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);

            .bodytype-title {
                font-size: 18px;
                margin-bottom: 10px;
                color: #08af8e;
            }

            p {
                font-size: 16px;
                color: var(--black-color);
                line-height: 1.6;

                @media (width <=768px) {
                    font-size: 15px;
                }
            }
        }
    }

    /* 姿勢・不調改善 */
    .menu-pain {
        .menu-title {
            font-size: 24px;
            margin-bottom: 20px;
            border-left: 5px solid #0984e3;
            padding-left: 10px;

            @media (width <=768px) {
                font-size: 20px;
            }
        }

        .menu-description {
            margin-bottom: 10px;
            font-size: 16px;

            @media (width <=768px) {
                font-size: 15px;
            }
        }

        .menu-item {
            background: var(--white-color);
            border-radius: 10px;
            padding: 15px 20px;
            margin-bottom: 20px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);

            .menu-item-title {
                font-size: 18px;
                margin-bottom: 10px;
                color: #0984e3;
            }

            .menu-item-text {
                font-size: 16px;
                color: var(--black-color);
                line-height: 1.6;

                ul {
                    li {
                        list-style: inside;

                        @media (width <=768px) {
                            font-size: 15px;
                        }
                    }
                }

                strong {
                    color: var(--black-color);
                }
            }
        }


    }

    /* レスポンシブ */
    @media (width <=768px) {
        padding: 50px 15px;

        .menu-flow .flow-steps li {
            padding: 15px 15px 15px 45px;

            &::before {
                width: 24px;
                height: 24px;
                font-size: 0.9rem;
            }
        }
    }
}

/* FAQセクションstart */
/* 変わりはないので記載なし */
/* FAQセクションend */