/**
 * セラピスト詳細ページ 専用CSS
 * /public_html/assets/therapist-detail.css
 *
 * shop.css / shop-sub.css の後に読み込む前提(--shop-* / 1rem=10px を共有)。
 *
 * イベント / 日記 / 口コミのカードは共通パーツへ移動したため、
 * このファイルは持たない。
 *   イベント … promo-card.css (.spc)
 *   日記     … diary-card.css (.ap-dycard)
 *   口コミ   … review-card.css (.ap-rvcard)
 */

/* ─────────────────────────────
   ヒーロー
   ───────────────────────────── */
.td-hero {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    padding: 16px;
    border: 1px solid var(--ap-line, rgba(255, 255, 255, 0.2));
    border-radius: var(--ap-radius, 8px);
    background: var(--ap-panel-v2);
}

.td-hero__gallery {
    min-width: 0;
}

.td-hero__info {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* ── ギャラリー ── */
.td-gal__main {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius);
    background: var(--shop-bg-card-alt);
}

.td-gal__track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.td-gal__track::-webkit-scrollbar {
    display: none;
}

.td-gal__slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
}

.td-gal__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    -webkit-user-drag: none;
    user-select: none;
}

.td-gal__nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    transform: translateY(-50%);
    border: 1px solid rgba(201, 168, 108, .5);
    border-radius: 50%;
    background: rgba(15, 15, 20, .6);
    backdrop-filter: blur(2px);
    color: var(--shop-gold);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: opacity .2s, background .2s;
}

.td-gal__nav--prev {
    left: 8px;
}

.td-gal__nav--next {
    right: 8px;
}

.td-gal__nav:hover {
    background: rgba(15, 15, 20, .85);
}

.td-gal__nav.is-disabled {
    opacity: 0;
    pointer-events: none;
}

.td-gal__badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.td-gal__badge {
    padding: 4px 11px;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .04em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

.td-gal__badge--pickup {
    background: linear-gradient(135deg, var(--shop-gold), var(--shop-gold-soft));
    color: #1a1611;
}

.td-gal__badge--new {
    background: #5a8dd6;
    color: #fff;
}

.td-gal__fav {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    overflow: visible;
    border: 1px solid rgba(201, 168, 108, .6);
    border-radius: 50%;
    background: rgba(15, 15, 20, .72);
    backdrop-filter: blur(2px);
    cursor: pointer;
    transition: background .2s, border-color .2s;
}

.td-gal__fav i {
    color: var(--shop-gold);
    font-size: 2rem;
    line-height: 1;
    transition: color .2s, transform .35s cubic-bezier(.2, 1.6, .4, 1);
}

.td-gal__fav:hover {
    border-color: var(--shop-gold);
    background: rgba(15, 15, 20, .88);
}

.td-gal__fav.is-active {
    border-color: var(--shop-gold);
    background: linear-gradient(135deg, #c9a86c 0%, #e2c98a 50%, #c9a86c 100%);
}

.td-gal__fav.is-active i {
    color: #1a1611;
}

/* 押下エフェクト(@keyframes thera-btn-pop / .thera-fx-ring / .thera-fx-spark は shop-sub.css) */
.td-gal__fav.is-pop,
.td-cta__sub.is-pop {
    animation: thera-btn-pop .4s cubic-bezier(.2, 1.4, .35, 1);
}

.td-gal__fav.is-pop i,
.td-cta__sub.is-pop i {
    transform: scale(1.45) rotate(-8deg);
}

.td-cta__sub {
    position: relative;
    overflow: visible;
}

.td-cta__sub i {
    transition: color .2s, transform .35s cubic-bezier(.2, 1.6, .4, 1);
}

.td-gal__thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
}

.td-gal__thumb {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--shop-border);
    background: var(--shop-bg-card-alt);
    cursor: pointer;
}

.td-gal__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.td-gal__thumb.is-active {
    border-color: var(--shop-gold);
    box-shadow: 0 0 0 1px var(--shop-gold);
}

/* ── 本日のステータス ── */
.td-status {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    padding: 5px 12px;
    border: 1px solid var(--ap-line);
    border-radius: 999px;
    background: var(--shop-bg-card);
    font-size: 1.3rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.td-status--instant {
    border-color: var(--accent-geen, #2ecc71);
    background: rgba(46, 204, 113, .1);
    color: var(--accent-geen, #2ecc71);
}

.td-status--time {
    color: var(--accent-ore, #fa8700);
}

.td-status--note {
    border-color: rgba(255, 138, 147, .5);
    background: rgba(255, 138, 147, .08);
    color: #ff8a93;
}

/* ── 名前 / スペック ── */
.td-name {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    color: var(--shop-text);
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: .04em;
    word-break: break-word;
}

.td-name small {
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 400;
}

.td-spec {
    margin-top: 5px;
    color: var(--text-primary);
    font-size: 1.4rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: .02em;
}

/* ── 数字3〜4枠 ── */
.td-kpi {
    display: flex;
    overflow: hidden;
    margin-top: 14px;
    background: var(--ap-panel-dwn);
    border: 1px solid var(--ap-line);
    border-radius: var(--ap-radius);
}

.td-kpi__item {
    flex: 1;
    padding: 9px 6px;
    background: var(--shop-bg-card);
    text-align: center;
}

.td-kpi__item + .td-kpi__item {
    border-left: 1px solid var(--shop-border);
}

.td-kpi__num {
    display: block;
    color: var(--shop-gold);
    font-size: 1.9rem;
    font-weight: 600;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.td-kpi__label {
    color: var(--shop-text-dim);
    font-size: 1.1rem;
}

/* ── 属性リスト(タイプ・胸・体型…を縦に積む) ── */
.td-attr {
    margin-top: 14px;
    overflow: hidden;
    background: var(--ap-panel-v2);
    border: 1px solid var(--ap-line);
    border-radius: var(--ap-radius);
}

.td-attr__row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--shop-border);
}

.td-attr__row:last-child {
    border-bottom: none;
}

.td-attr__label {
    flex: 0 0 12em;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 10px 14px;
    background: rgba(201, 168, 108, .045);
    color: var(--shop-gold-soft);
    font-size: 1.2rem;
    letter-spacing: .06em;
}

.td-attr__value {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 10px 14px;
    background: var(--shop-bg-card);
    color: var(--text-primary);
    font-size: 1.3rem;
    line-height: 1.6;
    word-break: break-word;
}

/* ランキング行だけ金で強調 */
.td-attr__row--rank .td-attr__label {
    background: rgba(201, 168, 108, .16);
    color: var(--shop-gold);
    font-weight: 600;
}

.td-attr__row--rank .td-attr__value {
    color: var(--shop-gold-soft);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.td-attr__note {
    margin-left: 4px;
    color: var(--shop-text-dim);
    font-size: 1.1rem;
    font-weight: 400;
}

/* ── タグ(一覧などで使用) ── */
.td-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 12px;
}

.td-tag {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--shop-gold-dim);
    border-radius: 3px;
    color: var(--shop-gold-soft);
    font-size: 1.15rem;
    line-height: 1.4;
}

.td-tag__label {
    padding: 4px 7px;
    border-right: 1px solid var(--shop-gold-dim);
    background: rgba(201, 168, 108, .3);
    color: var(--shop-gold);
    font-size: 1rem;
    white-space: nowrap;
}

.td-tag__value {
    padding: 4px 9px;
    color: var(--text-primary);
    white-space: nowrap;
}

.td-tag--plain {
    padding: 4px 9px;
}

.td-tag--rank {
    gap: 5px;
    padding: 4px 11px;
    border-color: var(--shop-gold);
    background: linear-gradient(135deg, var(--shop-gold) 0%, var(--shop-gold-soft) 100%);
    color: #1a1611;
    font-weight: 700;
}

.td-tag--rank i {
    color: #1a1611;
}

/* ── 空き状況バー(週サマリー) ── */
.td-avail .tws-bar__lead {
    margin: 0 0 6px;
    color: var(--shop-text-dim);
    font-size: 1.1rem;
}

/* ── CTA ── */
.td-cta {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 16px;
}

.td-cta__main {
    flex: 6 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 18px;
    border: none;
    border-radius: var(--shop-radius);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-decoration: none;
    text-align: center;
}

.td-cta__main.is-disabled {
    filter: grayscale(1);
    opacity: .45;
    pointer-events: none;
}

.td-cta__sub {
    flex: 4 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 8px;
    margin-bottom: 5px;
    border: 1px solid var(--shop-gold-dim);
    border-radius: var(--shop-radius);
    background: var(--shop-bg-card);
    color: var(--shop-gold-soft);
    font-family: inherit;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}

.td-cta__sub i {
    color: var(--shop-gold);
    font-size: 1.4rem;
}

.td-cta__sub:hover {
    border-color: var(--shop-gold);
    background: rgba(201, 168, 108, .08);
}

.td-cta__sub.is-active {
    border-color: var(--shop-gold);
    background: linear-gradient(135deg, #c9a86c 0%, #e2c98a 50%, #c9a86c 100%);
    color: #1a1611;
}

.td-cta__sub.is-active i {
    color: #1a1611;
}

.td-cta__count {
    font-variant-numeric: tabular-nums;
}

/* ネット予約停止中の電話ボタン
   .td-cta__main は色を持たず、背景は .rsv-btn(reserve-sheet.css)側にある。
   このボタンは .rsv-btn を付けないので背景を自前で指定する。 */
.td-cta__main[data-rg-phone] {
    background: #2f7d4f;
    cursor: pointer;
}

.td-cta__main[data-rg-phone]:hover {
    opacity: 0.85;
}

/* ─────────────────────────────
   セクション
   ───────────────────────────── */
.td-sec-block {
    margin-top: 30px;
}

.td-panel__h {
    margin: 0 0 10px;
    align-items: center;
    display: flex;
    padding-left: 9px;
    border-left: 3px solid var(--shop-gold);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: .06em;
}

.td-panel__more {
    margin-left: auto;
    font-size: 1.2rem;
    color: var(--shop-gold);
    text-decoration: none;
    letter-spacing: .04em;
    white-space: nowrap;
    transition: color .2s;
}

.td-panel__more:hover {
    color: var(--shop-gold);
}

.td-sec {
    margin-bottom: 20px;
}

.td-box {
    padding: 16px;
    border: 1px solid var(--ap-line, rgba(255, 255, 255, 0.2));
    border-radius: var(--ap-radius, 8px);
    background: var(--ap-panel-v2);
    font-size: 1.3rem;
    line-height: 1.95;
    word-break: break-word;
}

/* Q&A */
.td-qa {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--ap-line, rgba(255, 255, 255, 0.2));
    border-radius: var(--ap-radius, 8px);
    background: var(--ap-panel-v2);
}

.td-qa__item {
    display: flex;
    border-bottom: 1px solid var(--shop-border);
}

.td-qa__item:last-child {
    border-bottom: none;
}

.td-qa__q {
    flex: 0 0 32%;
    max-width: 40%;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0;
    padding: 12px 14px;
    background: rgba(201, 168, 108, .045);
    color: var(--shop-gold-soft);
    font-size: 1.3rem;
}

.td-qa__q i {
    color: var(--shop-gold);
}

.td-qa__a {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 12px 14px;
    color: var(--shop-text);
    font-size: 1.3rem;
    line-height: 1.8;
    word-break: break-word;
}

/* 出勤7日: 1行7列に */
.td-sec-block .thera-week {
    grid-template-columns: repeat(7, 1fr);
}

/* 口コミ投稿ボタン: 閲覧リンク(金)と区別するため紫 */
.td-revpost {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 10px auto 0 auto;
    padding: 14px;
    border: none;
    border-radius: var(--shop-radius);
    background: linear-gradient(to bottom, #AD7EDB 0%, #8A5DB7 75%, #7F51AC 100%);
    color: #fff;
    width: 50%;
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .2s;
}

.td-revpost i {
    color: #fff;
}

.td-revpost:hover {
    opacity: .85;
}

/* SNS */
.td-sns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ─────────────────────────────
   SP(〜900px)
   ───────────────────────────── */
@media (max-width: 900px) {
    .td-hero {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 12px;
    }

    .td-revpost {
        width: 100%;
    }

    .td-name {
        font-size: 2.2rem;
    }

    .td-name small {
        font-size: 1.3rem;
    }

    .td-spec {
        font-size: 1.3rem;
    }

    .td-cta {
        gap: 6px;
        padding-top: 12px;
    }

    .td-cta .td-cta__main {
        flex: 6 1 0;
        padding: 14px 8px;
        font-size: 1.3rem;
    }

    .td-cta__sub {
        flex: 4 1 0;
        padding: 13px 8px;
        font-size: 1.2rem;
    }

    .td-qa__item {
        display: block;
    }

    .td-qa__q,
    .td-qa__a {
        max-width: none;
        width: 100%;
        padding: 9px 12px;
    }

    /* SP: 7日を縦に積む。左＝日付+曜日 / 右＝時間 */
    .td-sec-block .thera-week {
        grid-template-columns: 1fr;
        gap: 0;
        overflow: hidden;
        border: 1px solid var(--ap-line, rgba(255, 255, 255, 0.2));
        border-radius: var(--ap-radius, 8px);
        background: var(--ap-panel-v2);
    }

    .td-sec-block .thera-week__day {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 15px 14px;
        border: 0;
        border-bottom: 1px solid var(--shop-border);
        border-radius: 0;
    }

    .td-sec-block .thera-week__day:last-child {
        border-bottom: 0;
    }

    .td-sec-block .thera-week__date {
        flex-shrink: 0;
        text-align: left;
    }

    .td-sec-block .thera-week__time {
        min-height: 0;
        text-align: right;
        font-weight: 600;
    }
}

@media (max-width: 600px) {
    .td-gal__nav {
        display: none;
    }

    .td-attr__label {
        flex: 0 0 10.5em;
        gap: 3px;
        padding: 9px 10px;
        font-size: 1.1rem;
    }

    .td-attr__value {
        padding: 9px 10px;
        font-size: 1.2rem;
    }

    /* 7日サマリーバー: 幅が足りないので横スクロールにする
       (therapist-week-grid.css の「7日目を隠す」指定も打ち消す) */
    .td-avail .tws-bar__days {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
    }

    .td-avail .tws-bar__days::-webkit-scrollbar {
        display: none;
    }

    .td-avail .tws-bar__day {
        flex: 0 0 calc((100% - 24px) / 4.5);
    }

    .td-avail .tws-bar__day:nth-child(7) {
        display: block;
    }

    .td-gal__fav {
        width: 38px;
        height: 38px;
    }

    .td-gal__fav i {
        font-size: 1.6rem;
    }

    .td-gal__thumbs {
        grid-template-columns: repeat(6, 1fr);
    }

    .td-kpi__num {
        font-size: 1.6rem;
    }
}