@charset "UTF-8";
/* =========================================================
 * 割引カード 共通CSS（タイムセール / クーポン / イベント）
 * /public_html/assets/promo-card.css
 *
 *   使用箇所
 *     お店ページ トップ      /templates_parts/shop-promo.php
 *     県トップ  割引セクション /templates_parts/area_l/promo_section.php
 *     県一覧 3種             /templates/{coupon,event,timesale}_list_l.php
 *     会員トップ 今日のお得    /member/templates_parts/{timesale,coupon,event}.php
 *     会員 お得情報          /member/promo/index.php
 *
 *   色は /assets/style.css の :root（--promo-*）を参照する。
 *   このファイルは色を直書きしない。
 *   1rem = 10px
 *
 * ── カードの構成 ──
 *   head  種別リボン（左上）＋ タグ
 *   body  sub / [base] / main
 *   foot  ワントーン落とした帯
 *           お店ページ = 対象者・条件 → 日付
 *           それ以外   = 日付 → 店名/エリア
 *   img   右側（カードの右端いっぱい）
 * ========================================================= */

.spc-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.spc {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40%;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
        "head img"
        "body img"
        "foot img";
    align-items: start;
    overflow: hidden;
    background: var(--pc-line);
    border: 5px solid var(--pc-deep);
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    transition: border-color .2s ease, filter .2s ease;
}

.spc:hover {
    border-color: var(--pc-on);
    filter: brightness(1.06);
}

/* ── 種別カラー ── */
.spc--ts {
    --pc-deep: var(--promo-ts-deep);
    --pc-pale: var(--promo-ts-pale);
    --pc-on: var(--promo-ts-on);
    --pc-line: var(--promo-ts-line);
    --pc-dark: var(--promo-ts-dark);
    --pc-edge: var(--promo-ts-edge);
}

.spc--cpn {
    --pc-deep: var(--promo-cpn-deep);
    --pc-pale: var(--promo-cpn-pale);
    --pc-on: var(--promo-cpn-on);
    --pc-line: var(--promo-cpn-line);
    --pc-dark: var(--promo-cpn-dark);
    --pc-edge: var(--promo-cpn-edge);
}

.spc--ev {
    --pc-deep: var(--promo-ev-deep);
    --pc-pale: var(--promo-ev-pale);
    --pc-on: var(--promo-ev-on);
    --pc-line: var(--promo-ev-line);
    --pc-dark: var(--promo-ev-dark);
    --pc-edge: var(--promo-ev-edge);
}

/* ── 見出しリボン（左上） ── */
.spc__head {
    grid-area: head;
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.4rem;
    border-right: 1px solid var(--pc-edge);
    border-bottom: 1px solid var(--pc-edge);
    border-radius: 0 0 8px 0;
    background: rgba(0, 0, 0, 0.28);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: .06em;
    white-space: nowrap;
}

.spc__head i {
    font-size: 1.2rem;
}

.spc__tag {
    max-width: 14rem;
    padding: 0.1rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── 本文 ── */
.spc__body {
    grid-area: body;
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 0.2rem;
    padding: 1.2rem 1.2rem 0.9rem;
}

/* 1行目: 割引率 / クーポンのタイトル / 開催状況 */
.spc__sub {
    min-height: 1.8rem;
    margin: 0;
    color: var(--pc-on);
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spc__sub small {
    margin-left: 0.1rem;
    font-size: 1.1rem;
}

/* 2行目: ベース金額（タイムセールのみ） */
.spc__base {
    min-height: 1.8rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spc__was {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: line-through;
}

/* 3行目: 主役（割引後の金額 / 割引 / イベントタイトル） */
.spc__main {
    margin: 0;
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.spc__main small {
    margin-left: 0.1rem;
    font-size: 1.5rem;
    font-weight: 800;
}

.spc__main i {
    margin-right: 0.2rem;
    font-size: 1.9rem;
    vertical-align: -0.2rem;
}

/* イベントのタイトルは金額より一段小さく */
.spc--ev .spc__main {
    font-size: 1.7rem;
    font-weight: 700;
}

/* タイムセールの「他2コースあり」 */
.spc__more-course {
    margin-left: 0.6rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.1rem;
    font-weight: 500;
    white-space: nowrap;
}

/* ── 下部の帯（ワントーン落とす） ── */
.spc__foot {
    grid-area: foot;
    min-width: 0;
    display: grid;
    gap: 0.1rem;
    padding: 0.7rem 1.2rem 0.8rem;
    background: var(--pc-pale);
    border-top: 1px solid var(--pc-edge);
}

/* 対象者 / 条件（お店ページのみ） */
.spc__aud {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 日付 */
.spc__when {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.2rem;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 開催中のタイムセールだけ日時を強調 */
.spc__when--strong {
    color: var(--pc-on);
    font-weight: 700;
}

/* 店名 / エリア（お店ページ以外） */
.spc__shop {
    margin: 0;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spc__shop span {
    color: rgba(255, 255, 255, 0.66);
    font-weight: 400;
}

/* ── 画像（右） ── */
.spc__img {
    grid-area: img;
    position: relative;
    align-self: stretch;
    min-height: 100%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.25);
}

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

.spc__img i {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.22);
    font-size: 2.8rem;
}

/* 終了したタイムセール */
.spc.is-ended {
    filter: grayscale(1);
    opacity: .55;
}

/* ── SP ── */
@media (max-width: 767.98px) {
    .spc {
        grid-template-columns: minmax(0, 1fr) 34%;
    }

    /* カードは1行に1枚 */
    .spc-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.6rem;
    }

    /* セクション内は最大3件まで（一覧ページは --page で全件） */
    .spc-list > .spc:nth-child(n+4) {
        display: none;
    }

    .spc-list--page > .spc:nth-child(n+4) {
        display: grid;
    }

    .spc__head {
        padding: 0.6rem 1.1rem 0.6rem 1rem;
        font-size: 1.1rem;
    }

    .spc__head i {
        font-size: 1.3rem;
    }

    .spc__body {
        padding: 1rem 1rem 0.8rem;
    }

    .spc__foot {
        padding: 0.6rem 1rem 0.7rem;
    }

    .spc__sub {
        font-size: 1.2rem;
    }

    .spc__base {
        font-size: 1.1rem;
    }

    .spc__main {
        font-size: 1.9rem;
    }

    .spc__main small {
        font-size: 1.3rem;
    }

    .spc--ev .spc__main {
        font-size: 1.4rem;
    }

    .spc__when {
        font-size: 1.1rem;
    }

    .spc__shop {
        font-size: 1.1rem;
    }
}

/* ── セラピスト詳細の個人イベント ──
   1件しか出ないことが多いので横1列（PCの2列を解除）。
   横幅がある分だけ高さが目立つので、枠・余白・文字を一段ずつ詰める。
   SPは .spc-list の「3件まで」を打ち消して全件出す */
#td-event .spc-list {
    grid-template-columns: minmax(0, 1fr);
}

#td-event .spc {
    grid-template-columns: minmax(0, 1fr) 22%;
    border-width: 3px;
}

#td-event .spc__head {
    padding: 0.5rem 1.1rem;
    font-size: 1.1rem;
}

#td-event .spc__head i {
    font-size: 1.1rem;
}

#td-event .spc__body {
    gap: 0;
    padding: 0.8rem 1.1rem 0.6rem;
}

#td-event .spc__sub {
    min-height: 0;
    font-size: 1.2rem;
}

/* タイトルは1行に収めて高さを固定する */
#td-event .spc__main {
    font-size: 1.5rem;
    -webkit-line-clamp: 1;
    line-clamp: 1;
}

#td-event .spc__foot {
    padding: 1.2rem 1.1rem 0.6rem;
}

#td-event .spc__when {
    font-size: 1.1rem;
}

#td-event .spc__shop {
    font-size: 1.15rem;
}

@media (max-width: 767.98px) {
    #td-event .spc-list > .spc:nth-child(n+4) {
        display: grid;
    }

    /* SPは横幅が無いので画像の比率だけ元に戻す */
    #td-event .spc {
        grid-template-columns: minmax(0, 1fr) 34%;
    }
}