@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/* キャスト投稿のアイキャッチを左寄せ */
body.single-post .eye-catch-wrap {
  width: 100%;
  max-width: 450px;
  margin-left: 0;
  margin-right: 0;
}

body.single-post .eye-catch {
  width: 100%;
  max-width: 100%;
}

body.single-post .eye-catch img {
  display: block;
  width: 100%;
  height: auto;
}

/* キャスト一覧 */
.top-cast-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

/* カード */
.top-cast-card {
    position: relative;
    display: block;
    min-width: 0;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    text-decoration: none;
    background: #eee;
}

/* 写真 */
.top-cast-card .top-cast-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 左上：料金 */
.top-cast-price {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(40,40,40,.85);
    color: #fff;
    padding: 4px 8px;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.3;
}

/* 右上：カテゴリー */
.top-cast-service {
    position: absolute;
    top: 8px;
    right: 8px;
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.3;
}

.top-cast-service.outcall {
    background: #b5475c;
}

.top-cast-service.incall {
    background: #256f87;
}

/* 下部：投稿タイトル */
.top-cast-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 8px 8px;
    background: linear-gradient(
        transparent,
        rgba(0,0,0,.7)
    );
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
}

/* スマホ */
@media screen and (max-width: 767px) {
    .top-cast-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .top-cast-card:nth-child(n+11) {
        display: none;
    }

    .top-cast-price,
    .top-cast-service {
        top: 5px;
        font-size: 11px;
        padding: 3px 5px;
    }

    .top-cast-price {
        left: 5px;
    }

    .top-cast-service {
        right: 5px;
    }

    .top-cast-name {
        font-size: 12px;
        padding: 20px 5px 5px;
    }
}


/* 全キャスト一覧：スマホでも12人表示 */
@media screen and (max-width: 767px) {
    .page .top-cast-card:nth-child(n+11) {
        display: block;
    }

    /* TOPページだけ10人に制限 */
    .home .top-cast-card:nth-child(n+11) {
        display: none;
    }
}

/* ページ送り */
.cast-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0;
}

.cast-pagination a,
.cast-pagination .current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
    border: 1px solid #ccc;
    text-decoration: none;
    color: #333;
}

.cast-pagination .current {
    background: #333;
    color: #fff;
    border-color: #333;
}
