@charset "UTF-8";
/* ==========================================================
   セラピストカード 共通CSS  /assets/thera-card-common.css
   ----------------------------------------------------------
   サイトトップ / 県トップ / 県即セラ一覧 /
   お店トップ(出勤・在籍・新人) / お店出勤 / お店在籍 /
   会員ホーム(即案内・おすすめ) / お気に入り一覧
   で共通利用する。
   thera-cards.css と base.css §19 に分かれていたものを統合。
   1rem = 10px
   ========================================================== */

/* ----------------------------------------------------------
   グリッド
   既定 PC4列 / SP2列。列数を変えたい場所は
   --thc-cols / --thc-cols-sp を上書きする
   ---------------------------------------------------------- */
.ap-thlist {
    display: grid;
    grid-template-columns: repeat(var(--thc-cols, 4), minmax(0, 1fr));
    gap: 0.6rem;
}

.ap-thlist--5 {
    --thc-cols: 5;
}

/* ----------------------------------------------------------
   カード本体
   ---------------------------------------------------------- */
.ap-thcard {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--ap-line);
    border-radius: var(--ap-radius);
    background: var(--ap-panel-v2);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.ap-thcard:hover {
    border-color: var(--shop-gold);
}

/* 状態枠(即案内=緑 / 残り1時間=赤)。
   中身は点滅させたくないので ::after の枠だけを明滅させる */
.ap-thcard::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    border: 2px solid transparent;
    border-radius: var(--ap-radius);
    pointer-events: none;
}

.ap-thcard.is-instant::after {
    border-color: var(--accent-geen);
    animation: ap-th-blink 2s ease-in-out infinite;
}

/* 残り1時間は即案内より優先 */
.ap-thcard.is-last1h::after {
    border-color: var(--accent-red);
    animation: ap-th-blink 2s ease-in-out infinite;
}

/* 状態枠が出ているカードは hover でゴールドにしない */
.ap-thcard.is-instant:hover,
.ap-thcard.is-last1h:hover {
    border-color: var(--ap-line);
}

/* 完売は写真を沈める */
.ap-thcard.is-soldout .ap-thcard__thumb img {
    filter: grayscale(0.4) brightness(0.8);
}

@keyframes ap-th-blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.25;
    }
}

/* 写真 + データ部だけがセラピスト詳細へのリンク */
.ap-thcard__link {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

/* ----------------------------------------------------------
   サムネ
   ---------------------------------------------------------- */
.ap-thcard__thumb {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #17121a;
}

.ap-thcard__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}


/* 左上のフラグ(PICKUP / NEW) */
.ap-thcard__flag {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 2;
    padding: 3px 9px;
    border-radius: 3px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .04em;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
}

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

.ap-thcard__flag--new {
    background: #5a8dd6;
    color: #fff;
}

/* ----------------------------------------------------------
   サムネ下端の帯(出勤時間 / 即案内 / 入店日)
   出勤が無い日でもカードの高さは変えない
   ---------------------------------------------------------- */
.ap-thcard__shift {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    gap: 2px 5px;
    padding: 0.7rem 0.8rem;
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--accent-ore);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
    font-variant-numeric: tabular-nums;
}

.ap-thcard__shift-txt {
    min-width: 0;
}

.ap-thcard__shift--instant {
    color: #5ee08c;
}

.ap-thcard__shift--last1h {
    color: #ff9a6b;
}

.ap-thcard__shift--soldout {
    color: #ff8a93;
}

.ap-thcard__shift--ended,
.ap-thcard__shift--note {
    color: rgba(255, 255, 255, .7);
}

/* 在籍系の「本日出勤」 */
.ap-thcard__shift--today {
    color: var(--accent-geen);
}

/* 新人系の「入店日」 */
.ap-thcard__shift--entry {
    color: var(--ap-gold-light);
    letter-spacing: 0.02em;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ルーム名(例: 16:00-17:00(高崎ルーム)) */
.ap-thcard__room {
    min-width: 0;
    color: var(--text-primary);
    font-size: 1rem;
    margin-left: 5px;
    font-weight: 500;
    word-break: break-word;
}


/* ----------------------------------------------------------
   お気に入り一覧: 星を外したカードがその場で消える
   ---------------------------------------------------------- */
.ap-thcard.is-removing {
    animation: ap-th-remove .45s ease forwards;
    pointer-events: none;
}

@keyframes ap-th-remove {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.92);
    }
}

.ap-thcard.is-removed {
    display: none;
}

/* ----------------------------------------------------------
   左上の特別バッジ(会員おすすめのマッチ / 閲覧履歴)
   PICKUP / NEW と同じ位置。同時には出さない
   ---------------------------------------------------------- */
.ap-thcard__badge {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 3;
    max-width: calc(100% - 5.2rem);
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
}

.ap-thcard__badge--match {
    background: rgba(245, 48, 139, 0.9);
    color: #fff;
}

.ap-thcard__badge--viewed {
    background: rgba(13, 10, 12, 0.78);
    border: 1px solid var(--ap-gold-line);
    color: var(--ap-gold-light);
}
/* ----------------------------------------------------------
   データ部
   ---------------------------------------------------------- */
.ap-thcard__body {
    display: grid;
    gap: 0.3rem;
    min-width: 0;
    padding: 0.8rem 1rem;
}

.ap-thcard__name {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    min-width: 0;
}

/* スリーサイズ未登録でも高さを揃える */
.ap-thcard__spec {
    min-height: 1.6rem;
}

/* 特徴タグ(最大2) */
.ap-thcard__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 0.3rem;
    min-height: 2rem;
}

.ap-thtag {
    padding: 2px 5px;
    border: 1px solid var(--shop-gold-dim);
    border-radius: 3px;
    color: var(--shop-gold-soft);
    font-size: 1rem;
    line-height: 1.3;
    white-space: nowrap;
}

/* 口コミ / 日記数。仕切りの上=セラピストのデータ */
.ap-thcard__stats {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    min-width: 0;
    margin-top: 0.3rem;
    color: var(--shop-text-dim);
    font-size: 1.15rem;
    font-variant-numeric: tabular-nums;
}

.ap-thcard__stats i {
    margin-right: 3px;
    color: var(--shop-gold-soft);
}

/* 仕切り線。セラピストのデータと店舗データ/ボタンを分ける */
.data-partition {
    min-width: 0;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid var(--ap-line);
}

/* 店名 / エリア */
.ap-thcard__shop {
    display: grid;
    gap: 0.3rem;
    min-width: 0;
}

.ap-thcard__shop .card_name.is-solo {
    color: var(--shop-gold);
}

/* 予約ボタンはカード下端に寄せる(枠の内側) */
.ap-thcard .rsv-btn {
    margin-top: auto;
}
/* ----------------------------------------------------------
   カード内の予約ボタン
   reserve-sheet.css を読まないページでも成立させる
   ---------------------------------------------------------- */
.ap-thcard .rsv-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 90%;
    margin: 0 auto 5px;
    padding: 11px 8px;
    border: none;
    border-radius: 4px;
    background: linear-gradient(to bottom, #FF9BA2 0%, #F95A6B 75%, #F85164 100%);
    color: #fff;
    font-family: inherit;
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: .04em;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: opacity .15s;
}

.ap-thcard .rsv-btn i {
    flex-shrink: 0;
    color: #fff;
    font-size: 1.3rem;
}

.ap-thcard .rsv-btn:hover {
    opacity: .85;
}

/* ネット予約を止めている店の電話ボタン。
   予約ボタンと同じ形・同じ位置で、色だけ緑にする
   （詳細ページの電話CTAと合わせている） */
.ap-thcard .rsv-btn--tel {
    background: #2f7d4f;
}

.ap-thcard .rsv-btn--tel:hover {
    opacity: .85;
}
/* 口コミ投稿ボタン。
   予約(ピンク)と役割が違うので紫で分けている。
   同じ紫を /member/css/reservations.css の .mp-btn-review も持つので、
   色を変えるときは両方合わせること */
.ap-thcard .rsv-btn--review {
    padding: 7px 0;
    border-radius: 4px;
    background: linear-gradient(to bottom, #AD7EDB 0%, #8A5DB7 75%, #7F51AC 100%);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0;
}

.ap-thcard .rsv-btn--review i {
    font-size: 1.2rem;
}
/* ----------------------------------------------------------
   SP
   ---------------------------------------------------------- */
@media (max-width: 767.98px) {
    .ap-thlist,
    .ap-thlist--5 {
        grid-template-columns: repeat(var(--thc-cols-sp, 2), minmax(0, 1fr));
    }

    .ap-thcard__body {
        padding: 0.8rem 0.8rem 0.5rem;
    }

    .ap-thcard__shift {
        padding: 0.6rem 0.7rem;
        font-size: 1.2rem;
    }

    .ap-thcard__tags {
        min-height: 0;
    }

    .ap-thtag {
        padding: 2px 6px;
        font-size: .95rem;
    }

    .ap-thcard__star {
        width: 3rem;
        height: 3rem;
    }

    .ap-thcard__star i {
        font-size: 1.5rem;
    }


    /* 横スライド(2枚 + 3枚目を約10%見せ) */
    .ap-thlist--scroll {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: calc((100% - 0.6rem * 2.1) / 2.1);
        padding-bottom: 4px;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .ap-thlist--scroll::-webkit-scrollbar {
        display: none;
    }

    .ap-thlist--scroll > .ap-thcard {
        scroll-snap-align: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ap-thcard.is-instant::after,
    .ap-thcard.is-last1h::after,
    .ap-thcard__star.is-pop i,
    .ap-thcard.is-removing {
        animation: none;
    }
}

/* ----------------------------------------------------------
   件数の間引き(お店トップのみ)
     出勤 PC4×2=8 / 在籍 PC4×2=8 / 新人 PC4×1=4
   ※ 出勤ページ・セラピスト一覧は全件出すので対象外
   ---------------------------------------------------------- */
.shop-thera-working .ap-thlist > .ap-thcard:nth-child(n+9),
.shop-thera-roster .ap-thlist > .ap-thcard:nth-child(n+9),
.shop-thera-new .ap-thlist > .ap-thcard:nth-child(n+5) {
    display: none;
}

/* ----------------------------------------------------------
   お気に入り一覧: カードの外に置く追加ボタン
   ---------------------------------------------------------- */
.fav-cardwrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.fav-cardwrap > .ap-thcard {
    flex: 1 1 auto;
}

/* ----------------------------------------------------------
   出勤通知ボタン
   予約できないセラピストに、予約ボタンの代わりとして出す
   ---------------------------------------------------------- */
.ap-thcard .thc-notify {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 90%;
    margin: auto auto 5px;
    padding: 10px 8px;
    border: 1px solid rgba(31, 138, 91, .35);
    border-radius: 4px;
    background: none;
    color: #6fbf95;
    font-family: inherit;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.ap-thcard .thc-notify i {
    flex-shrink: 0;
    font-size: 1.2rem;
    opacity: .85;
}

.ap-thcard .thc-notify__label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (hover: hover) {
    .ap-thcard .thc-notify:hover {
        background: rgba(31, 138, 91, .1);
    }
}

/* 通知オン。押した結果が分かるよう地の色を敷く */
.ap-thcard .thc-notify.is-on {
    background: rgba(31, 138, 91, .16);
    color: #8ad6ac;
}

.ap-thcard .thc-notify[data-busy="1"] {
    opacity: .6;
    pointer-events: none;
}

@media (max-width: 767.98px) {
    .ap-thcard .thc-notify {
        padding: 9px 6px;
        font-size: 1.1rem;
    }
}

/* ==========================================================
   ここから下は 2026-09 追記
   ----------------------------------------------------------
   ・.ap-thcard__boost は base.css §19 から統合し漏れていたぶん
     （どのCSSにも無く、即案内可 / 本日出勤バッジが素で出ていた）
   ・それ以外は旧カード(templates_parts/therapist_card.php)にしか
     無かったもの。共通カードへ寄せるときにそのまま使えるよう、
     クラス名は変えずにここへ持ってきている。
     移行が済んだら therapist_list.css 側の重複を削ること
   ========================================================== */


/* ----------------------------------------------------------
   サムネ左上のステータスバッジ（即案内可 / 本日出勤）
   新カードは帯(.ap-thcard__shift)で出すが、
   旧カードと在籍系はこのバッジを使う
   ---------------------------------------------------------- */
.ap-thcard__boost {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 2;
    padding: 3px 9px;
    border-radius: var(--ap-radius-pill, 999px);
    background: rgba(13, 10, 12, .78);
    border: 1px solid rgba(46, 204, 113, .5);
    color: var(--accent-geen, #2ecc71);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .02em;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
}

.ap-thcard__boost--today {
    border-color: var(--ap-gold-line);
    color: var(--ap-text);
    font-weight: 500;
}


/* ----------------------------------------------------------
   個別イベント（サムネ下端に重ねる）
   1行目 = バッジ + 期間 / 2行目 = タイトル1行
   帯(.ap-thcard__shift)と同じ位置なので、両方は出さない
   ---------------------------------------------------------- */
.thera-ev {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: 0.5rem 0.6rem 0.6rem;
    background: #3f6fb5;
}

.thera-ev__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    margin-bottom: 3px;
}

.thera-ev__badge {
    flex-shrink: 0;
    padding: 0 0.7rem;
    border-radius: var(--ap-radius-pill, 999px);
    background: var(--ap-ev);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.7;
    letter-spacing: .04em;
    white-space: nowrap;
}

.thera-ev__period {
    min-width: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, .7);
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-variant-numeric: tabular-nums;
}

.thera-ev__title {
    margin-top: 0.2rem;
    overflow: hidden;
    color: var(--ap-text);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    text-overflow: ellipsis;
}


/* ----------------------------------------------------------
   店舗ブロック（区切り線の下・左に店舗サムネ）
   新カードは店名とエリアのテキストだけ。
   サムネを出すページはこちらを使う
   ---------------------------------------------------------- */
.ap-thcard__shopbox {
    display: grid;
    grid-template-columns: 3.4rem minmax(0, 1fr);
    align-items: center;
    gap: 0.6rem;
}

.ap-thcard__shopthumb {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 3.4rem;
    height: 3.4rem;
    border: 1px solid var(--ap-line-soft);
    border-radius: 6px;
    background: #17121a;
    overflow: hidden;
}

.ap-thcard__shopthumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ap-thcard__shopthumb i {
    color: var(--ap-gold);
    font-size: 1.6rem;
    opacity: .55;
}

a.ap-thcard__shopthumb:hover {
    border-color: var(--ap-gold);
}

.ap-thcard__shopinfo {
    min-width: 0;
}

/* 店名リンクは下敷きより前面に出す */
a.ap-thcard__shop {
    position: relative;
    z-index: 2;
}

a.ap-thcard__shop:hover {
    color: var(--ap-gold-light);
    text-decoration: underline;
}


/* ----------------------------------------------------------
   レビュー / 日記（ラベル付き）
   .ap-thcard__stats の中に入る。
   新カードはアイコン＋数字だけなので、こちらは旧カード用
   ---------------------------------------------------------- */
.ap-thcard__stat {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    color: var(--ap-gold-light);
    font-size: 1.1rem;
    line-height: 1.4;
    white-space: nowrap;
}

.ap-thcard__stat i {
    font-size: 1.1rem;
}

.ap-thcard__stat b {
    font-size: 1.2rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.ap-thcard__stat--zero {
    color: var(--ap-muted);
}


/* ----------------------------------------------------------
   予約ボタン（旧カード）
   新カードの .rsv-btn と色は同じ。幅とマージンの取り方だけ違う
   ---------------------------------------------------------- */
.thera-reserve-wrap {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding: 0 1rem 1rem;
}

.thera-reserve {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 1rem 0.8rem;
    border: 0;
    border-radius: var(--ap-radius);
    background: linear-gradient(to bottom, #FF9BA2 0%, #F95A6B 75%, #F85164 100%);
    color: #fff;
    font-family: inherit;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: .04em;
    text-align: center;
    text-decoration: none;
    transition: filter .15s;
}

.thera-reserve i {
    font-size: 1.3rem;
}

.thera-reserve:hover {
    filter: brightness(1.06);
}

/* 店舗ブロックをカード全体リンクの外に出したとき(show_shop_thumb)。
   本文の下余白はこちらが持つ */
.ap-thcard__foot {
    margin-top: auto;
    padding: 0 1rem 0.8rem;
}

.ap-thcard--foot .ap-thcard__body {
    padding-bottom: 0;
}

@media (max-width: 767.98px) {

    .ap-thcard__foot {
        padding: 0 0.8rem 0.8rem;
    }
}
/* ----------------------------------------------------------
   SP
   ---------------------------------------------------------- */
@media (max-width: 767.98px) {

    .therapist-card__fav {
        width: 3rem;
        height: 3rem;
        font-size: 1.3rem;
    }

    .ap-thcard__shopbox {
        grid-template-columns: 3rem minmax(0, 1fr);
    }

    .ap-thcard__shopthumb {
        width: 3rem;
        height: 3rem;
    }

    .thera-reserve-wrap {
        padding: 0 0.8rem 0.8rem;
    }
}
