
/* ==========================================
   3rd Place Lessons
   レッスン一覧専用CSS
   ========================================== */

.third-place-lessons {
    --tp-accent: #92746e;
    --tp-accent-dark: #705650;
    --tp-background: #faf7f5;
    --tp-border: #e9dfdb;
    --tp-text: #38312f;
    --tp-muted: #817773;

    color: var(--tp-text);
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    font-family: inherit;
    box-sizing: border-box;
}

.third-place-lessons *,
.third-place-lessons *::before,
.third-place-lessons *::after {
    box-sizing: border-box;
}

/* セクション */

.third-place-lessons .tp-section {
    margin: 0 0 38px;
}

.third-place-lessons .tp-section__heading {
    margin-bottom: 24px;
}

.third-place-lessons .tp-section__eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--tp-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.third-place-lessons .tp-section__heading h2 {
    margin: 0 0 8px;
    font-size: clamp(21px, 3vw, 27px);
    font-weight: 700;
    line-height: 1.4;
    color: var(--tp-text);
}

.third-place-lessons .tp-section__heading p {
    margin: 0;
    font-size: 13px;
    line-height: 1.8;
    color: var(--tp-muted);
}

/* レッスン一覧 */

.third-place-lessons .tp-lessons-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* カード */

.third-place-lessons .tp-card {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 22px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--tp-border);
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(70, 45, 38, .035);
    overflow: hidden;
    transition: box-shadow .2s ease;
}

.third-place-lessons .tp-card:hover {
    box-shadow: 0 8px 26px rgba(70, 45, 38, .09);
}

/* ポスター */

.third-place-lessons .tp-card__poster {
    display: block;
    width: 100%;
    align-self: start;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 10px;
    background: var(--tp-background);
    text-decoration: none;
}

.third-place-lessons .tp-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.third-place-lessons .tp-card__poster:hover .tp-card__image {
    transform: scale(1.035);
}

.third-place-lessons .tp-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 12px;
    color: var(--tp-accent);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .08em;
}

/* カード本文 */

.third-place-lessons .tp-card__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    gap: 0;
}

.third-place-lessons .tp-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
}

.third-place-lessons .tp-card__status,
.third-place-lessons .tp-card__child {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
}

.third-place-lessons .tp-card__status--open {
    background: #edf5ee;
    color: #43744c;
}

.third-place-lessons .tp-card__status--closed,
.third-place-lessons .tp-card__status--full,
.third-place-lessons .tp-card__status--unknown {
    background: #f2efed;
    color: #706661;
}

.third-place-lessons .tp-card__status--cancelled {
    background: #f9eded;
    color: #a34c4c;
}

.third-place-lessons .tp-card__child {
    background: #f7f0ed;
    color: var(--tp-accent-dark);
}

/* タイトル */

.third-place-lessons .tp-card__title {
    margin: 0 0 5px;
    padding: 0;
    font-size: clamp(17px, 2.5vw, 21px);
    font-weight: 700;
    line-height: 1.45;
}

.third-place-lessons .tp-card__title a {
    color: var(--tp-text);
    text-decoration: none;
}

.third-place-lessons .tp-card__title a:hover {
    color: var(--tp-accent);
}

.third-place-lessons .tp-card__catch {
    margin: 0 0 12px;
    color: var(--tp-accent);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
}

/* レッスン情報 */

.third-place-lessons .tp-card__information {
    width: 100%;
    margin-bottom: 14px;
}

.third-place-lessons .tp-card__information p {
    margin: 0 0 5px;
    font-size: 12px;
    line-height: 1.65;
}

.third-place-lessons .tp-card__date {
    font-size: 13px !important;
    font-weight: 700;
    color: var(--tp-text);
}

.third-place-lessons .tp-card__reception,
.third-place-lessons .tp-card__time {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.third-place-lessons .tp-card__reception span,
.third-place-lessons .tp-card__time span {
    color: var(--tp-muted);
    min-width: 65px;
}

.third-place-lessons .tp-card__reception strong,
.third-place-lessons .tp-card__time strong {
    font-weight: 700;
    color: var(--tp-text);
}

.third-place-lessons .tp-card__venue {
    color: var(--tp-muted);
}

.third-place-lessons .tp-card__price strong {
    font-size: 14px;
    font-weight: 700;
}

/* 詳細ボタン */

.third-place-lessons .tp-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: auto;
    padding: 10px 19px;
    border-radius: 7px;
    background: var(--tp-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    transition: background .2s ease;
}

.third-place-lessons .tp-card__button:hover {
    background: var(--tp-accent-dark);
    color: #fff;
    text-decoration: none;
}

.third-place-lessons .tp-card__button span {
    font-size: 16px;
}

/* 過去のレッスン */

.third-place-lessons .tp-archive {
    border: 1px solid var(--tp-border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.third-place-lessons .tp-archive__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 17px 20px;
    background: var(--tp-background);
    color: var(--tp-text);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.third-place-lessons .tp-archive__summary::-webkit-details-marker {
    display: none;
}

.third-place-lessons .tp-archive__summary::marker {
    content: "";
}

.third-place-lessons .tp-archive__arrow {
    display: inline-block;
    font-size: 20px;
    line-height: 1;
    transition: transform .2s ease;
}

.third-place-lessons .tp-archive[open] .tp-archive__arrow {
    transform: rotate(180deg);
}

.third-place-lessons .tp-archive__content {
    padding: 10px 18px;
}

.third-place-lessons .tp-archive__item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 4px;
    border-bottom: 1px solid var(--tp-border);
    color: var(--tp-text);
    text-decoration: none;
}

.third-place-lessons .tp-archive__item:last-child {
    border-bottom: none;
}

.third-place-lessons .tp-archive__item:hover {
    color: var(--tp-accent);
}

.third-place-lessons .tp-archive__date {
    flex-shrink: 0;
    color: var(--tp-muted);
    font-size: 12px;
}

.third-place-lessons .tp-archive__title {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
}

.third-place-lessons .tp-archive__ended {
    flex-shrink: 0;
    font-size: 10px;
    color: var(--tp-muted);
}

/* 空の状態 */

.third-place-lessons .tp-empty {
    margin: 0;
    padding: 25px 18px;
    border-radius: 10px;
    background: var(--tp-background);
    color: var(--tp-muted);
    font-size: 13px;
    line-height: 1.8;
}

/* スマートフォン */

@media (max-width: 600px) {

    .third-place-lessons .tp-section__heading {
        margin-bottom: 18px;
    }

    .third-place-lessons .tp-card {
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
        border-radius: 12px;
    }

    .third-place-lessons .tp-card__poster {
        border-radius: 7px;
    }

    .third-place-lessons .tp-card__badges {
        gap: 5px;
        margin-bottom: 7px;
    }

    .third-place-lessons .tp-card__status,
    .third-place-lessons .tp-card__child {
        padding: 3px 6px;
        font-size: 9px;
    }

    .third-place-lessons .tp-card__title {
        font-size: 16px;
        margin-bottom: 4px;
    }

    .third-place-lessons .tp-card__catch {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .third-place-lessons .tp-card__information {
        margin-bottom: 10px;
    }

    .third-place-lessons .tp-card__information p {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .third-place-lessons .tp-card__date {
        font-size: 12px !important;
    }

    .third-place-lessons .tp-card__reception,
    .third-place-lessons .tp-card__time {
        gap: 5px;
    }

    .third-place-lessons .tp-card__reception span,
    .third-place-lessons .tp-card__time span {
        min-width: 58px;
    }

    .third-place-lessons .tp-card__button {
        padding: 8px 12px;
        font-size: 11px;
        gap: 8px;
    }

    .third-place-lessons .tp-archive__item {
        flex-wrap: wrap;
        gap: 5px 12px;
    }

    .third-place-lessons .tp-archive__title {
        flex-basis: 55%;
    }
}

/* 小さいスマートフォン */

@media (max-width: 380px) {

    .third-place-lessons .tp-card {
        grid-template-columns: 90px minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .third-place-lessons .tp-card__title {
        font-size: 15px;
    }
}