
/* =====================================
   3rd Place レッスン詳細ページ
   ===================================== */

body.single-third_place_lesson {
    --tp-accent: #92746e;
    --tp-accent-dark: #705650;
    --tp-text: #38312f;
    --tp-muted: #817773;
    --tp-border: #e9dfdb;
    --tp-background: #faf7f5;
}

/* テーマ側の重複タイトルだけ非表示 */
body.single-third_place_lesson
.wp-block-post-title {
    display: none;
}

/* 全体 */
.tp-single {
    max-width: 1000px;
    margin: 10px auto 50px;
    color: var(--tp-text);
}

.tp-single *,
.tp-single *::before,
.tp-single *::after {
    box-sizing: border-box;
}

/* タイトル */
.tp-single__header {
    text-align: center;
    margin-bottom: 35px;
}

.tp-single__brand {
    margin: 0 0 8px;
    color: var(--tp-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
}

.tp-single__title {
    margin: 0 0 12px;
    color: var(--tp-text);
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.35;
    font-weight: 700;
}

.tp-single__catch {
    margin: 0;
    color: var(--tp-accent);
    font-size: 16px;
    font-weight: 600;
}

/* チラシ＋情報 */
.tp-single__hero {
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    align-items: start;
    gap: 32px;
}

.tp-single__poster {
    border-radius: 16px;
    overflow: hidden;
    background: var(--tp-background);
    box-shadow: 0 6px 24px rgba(70, 45, 38, .06);
}

.tp-single__image {
    display: block;
    width: 100%;
    height: auto;
}

.tp-single__intro {
    min-width: 0;
}

.tp-single__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.tp-single__status,
.tp-single__child {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.tp-single__status--open {
    background: #edf5ee;
    color: #43744c;
}

.tp-single__status--closed,
.tp-single__status--full,
.tp-single__status--unknown {
    background: #f2efed;
    color: #706661;
}

.tp-single__status--cancelled {
    background: #f9eded;
    color: #a34c4c;
}

.tp-single__child {
    background: #f7f0ed;
    color: var(--tp-accent-dark);
}

/* 情報カード */
.tp-single__info {
    padding: 23px;
    background: var(--tp-background);
    border: 1px solid var(--tp-border);
    border-radius: 14px;
}

.tp-single__info h2 {
    margin: 0 0 18px;
    color: var(--tp-text);
    font-size: 19px;
    font-weight: 700;
}

.tp-single__info dl {
    margin: 0;
}

.tp-single__row {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid var(--tp-border);
}

.tp-single__row:last-child {
    border-bottom: 0;
}

.tp-single__row dt {
    color: var(--tp-muted);
    font-size: 12px;
}

.tp-single__row dd {
    margin: 0;
    color: var(--tp-text);
    font-size: 13px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

/* 予約案内 */
.tp-single__booking {
    margin-top: 20px;
}

.tp-single__booking-note {
    margin: 0;
    padding: 15px;
    background: var(--tp-background);
    border-radius: 9px;
    color: var(--tp-muted);
    font-size: 13px;
    text-align: center;
}

/* レッスン紹介カード */
.tp-single__description {
    margin-top: 36px;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--tp-border);
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(70, 45, 38, .035);
}

.tp-single__description h2 {
    margin: 0 0 18px;
    color: var(--tp-text);
    font-size: 22px;
    font-weight: 700;
}

.tp-single__description-body {
    color: var(--tp-text);
    font-size: 14px;
    line-height: 1.9;
}

.tp-single__description-body p {
    margin: 0 0 15px;
}

.tp-single__description-body p:last-child {
    margin-bottom: 0;
}

/* スマートフォン */
@media (max-width: 700px) {

    .tp-single {
        margin-top: 0;
    }

    .tp-single__header {
        margin-bottom: 25px;
    }

    .tp-single__title {
        font-size: 28px;
    }

    .tp-single__catch {
        font-size: 14px;
    }

    .tp-single__hero {
        grid-template-columns: 1fr;
        gap: 23px;
    }

    .tp-single__poster {
        max-width: 440px;
        width: 100%;
        margin: 0 auto;
        border-radius: 12px;
    }

    .tp-single__info {
        padding: 18px 15px;
    }

    .tp-single__row {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 10px;
    }

    .tp-single__row dt {
        font-size: 11px;
    }

    .tp-single__row dd {
        font-size: 12px;
    }

    .tp-single__description {
        margin-top: 28px;
        padding: 22px 17px;
    }

    .tp-single__description h2 {
        font-size: 20px;
    }
}


/* 予約ボタン */
.tp-single__button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 20px;
    background: #92746e;
    color: #ffffff !important;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background .2s ease, transform .2s ease;
}

.tp-single__button:hover {
    background: #705650;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.tp-single__button:focus-visible {
    outline: 3px solid #705650;
    outline-offset: 3px;
}