@charset "UTF-8";

.playlist {
    margin-top: 120px;
    margin-bottom: 80px;

    h1 {
        text-align: center;
        letter-spacing: 0.3em;
    }
}

.practice-table-wrap {
    margin-inline: auto;
    max-width: 1200px;
    padding: 60px 32px;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}


.practice-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    font-size: 1.6rem;
    line-height: 1.5;
}


/* ----------------------------------------
   表頭
---------------------------------------- */

.practice-table thead th {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;

    padding: 14px 12px;
    background: var(--brown);
    color: var(--white);
    font-weight: 500;
    text-align: center;
    white-space: nowrap;

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.practice-table thead th:first-child {
    border-top-left-radius: 8px;
}

.practice-table thead th:last-child {
    border-top-right-radius: 8px;
}


/* ========================================
   表側
======================================== */

.practice-table .col-song-num {
    width: 90px;
}

.practice-table .col-song-title {
    width: auto;
    min-width: 260px;
    text-align: left;
}

.practice-table .col-practice {
    width: 150px;
}

/* ========================================
   Body
======================================== */

.practice-table tbody td {
    padding: 16px 12px;
    border-bottom: 1px solid var(--brown);
    background: #fff;
}


.practice-table tbody tr:hover td {
    background: #f9f8f5;
}


.practice-table .song-num {
    text-align: center;
    font-weight: 500;
}


.practice-table .song-title {
    font-weight: 500;
}


.practice-table .practice-cell {
    text-align: center;
    vertical-align: middle;
}

.arrow {
    font-size: 1.2rem;
    opacity: 0.6;
    padding-left: 8px;
}

.practice-link {
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 500;
    background: #f5eee3;
    border: 2px solid #dbc29c;
    border-radius: 5px;
    transition: all 0.2s ease;
}


.practice-link:hover {
    background-color: #dbc29c;
    text-decoration: underline;
}

@media screen and (max-width: 768px) {
    .practice-table-wrap {
        padding: 32px 32px;
    }


    .practice-table tbody tr.pc {
        display: none;
    }

    .practice-table tbody tr.sp-row {
        display: table-row;
        width: 100%;
    }

    .practice-table tbody td {
        display: block;
        width: 100%;
        border: none;
        padding: 8px 12px;
        background: transparent;
    }

    .practice-table tbody tr:hover td {
        background: transparent;
    }

    .practice-table {
        display: block;
        width: 100%;
        border-collapse: separate;
    }

    .practice-table thead {
        display: none;
    }

    .practice-table tbody {
        display: flex;
        flex-direction: column;
    }

    .practice-table tbody tr.sp-row {
        margin-bottom: 0px;
    }

    .sp-row td {
        padding: 0;
        border: none;
        width: 100%;

    }

    details {
        border: 1px solid var(--brown);
        border-radius: 8px;
        padding: 16px 16px 8px;
        background: #f9f8f5;
        width: 100%;
        box-sizing: border-box;
    }

    summary {
        position: relative;
        padding-bottom: 8px;
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        list-style: none;
        position: relative;
        padding-bottom: 12px;
        margin-bottom: 12px;
        width: 100%;
        box-sizing: border-box;
    }

    summary::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 1px;
        background: var(--brown);
    }

    summary::-webkit-details-marker {
        display: none;
    }

    /* ▼ / ▲ アイコン */
    summary::after {
        content: "▼";
        margin-left: auto;
        color: var(--brown);
        font-size: 1.2rem;
    }

    details[open] summary::after {
        content: "▲";
    }

    .sp-row .song-num {
        flex: 0 0 auto;
        color: var(--brown);
        font-weight: 600;
    }

    .sp-row .song-title {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 1.6rem;
        font-weight: 600;
        display: block;
        width: 100%;
    }

    /* 練習ボタンのエリア */
    .practice-wrap a.practice-link {
        display: block;
        width: 100%;
        margin-top: 8px;
        padding: 10px 16px;
        font-size: 1.4rem;
        border-radius: 6px;
        background: #f5eee3;
        border: 2px solid #dbc29c;
        text-align: center;
        transition: all 0.2s ease;
        box-sizing: border-box;
    }

    .practice-wrap a.practice-link:hover {
        background-color: #dbc29c;
    }
}