@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;
}


/* ==================================================
   Cast Profile (SOMC)
   ================================================== */

.som-profile {
  max-width: 800px;
  margin: 0 auto;
}

.som-profile h2 {
  margin-top: 36px;
  margin-bottom: 18px;
}

.som-profile .som-main-photo {
  text-align: center;
  margin-bottom: 24px;
}

.som-profile .som-main-photo img {
  display: block;
  width: 100%;
  max-width: 450px;
  height: auto;
  margin: 0 auto;
}

.som-profile .som-intro {
  line-height: 1.8;
}

/* Profile table */
.som-profile .som-info-table {
  width: 100%;
  border-collapse: collapse;
}

.som-profile .som-info-table th {
  width: 35%;
  background: #f6f6f6;
  text-align: left;
}

.som-profile .som-info-table th,
.som-profile .som-info-table td {
  padding: 12px;
  border: 1px solid #ddd;
}

/* Rate box: one authoritative rule set */
.entry-content .som-profile .som-rate-box {
  display: block;
  box-sizing: border-box;
  text-align: center;
  background-color: #f8f6fc;
  border: 1px solid #e4dcef;
  border-radius: 8px;
  padding: 24px 12px;
  margin: 20px 0;
}

.entry-content .som-profile .som-rate-box .som-rate-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.entry-content .som-profile .som-rate-box .som-rate-price {
  display: block;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
  color: #7544a3;
  text-align: center;
  margin: 8px 0;
}

.entry-content .som-profile .som-rate-box .som-rate-duration {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: #666;
  text-align: center;
}

/* Photo gallery: two columns on desktop and mobile */
.som-profile .som-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.som-profile .som-photo-grid img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
}

/* Booking */
.som-profile .som-booking-box {
  text-align: center;
  background: #f8f8f8;
  border-radius: 8px;
  padding: 24px 16px;
}

.som-profile .som-booking-button {
  display: inline-block;
  background: #7544a3;
  color: #fff !important;
  padding: 13px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.som-profile .som-booking-button:hover {
  background: #5c3184;
}

/* Contact QR images (requires .som-contact-qr wrapper) */
.som-profile .som-contact-qr img {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 0 auto;
}

@media (max-width: 480px) {
  .som-profile h2 {
    margin-top: 28px;
  }

  .som-profile .som-info-table th,
  .som-profile .som-info-table td {
    padding: 9px;
  }
}



/* SOMC QR Grid - WordPress auto paragraph fix */

.entry-content .som-profile .som-qr-grid > p {
  display: none !important;
}

.entry-content .som-profile .som-qr-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.entry-content .som-profile .som-qr-item {
  min-width: 0;
}

.entry-content .som-profile .som-qr-item p {
  margin: 0 !important;
  padding: 0 !important;
}


/* Contact title */
.entry-content .som-profile .som-contact-title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  background: none;
}

/* Booking box spacing */
.entry-content .som-profile .som-booking-box {
  padding: 18px 12px;
}

/* QR grid spacing */
.entry-content .som-profile .som-qr-grid {
  margin: 12px auto;
  gap: 8px !important;
}

/* QR labels */
.entry-content .som-profile .som-qr-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

/* Booking ID */
.entry-content .som-profile .som-booking-note {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 18px 0 0;
  padding: 12px 8px;
  background: #fff;
  border-radius: 6px;
  text-align: center;
}

.entry-content .som-profile .som-booking-note span {
  font-size: 13px;
  color: #666;
}

.entry-content .som-profile .som-booking-note strong {
  font-size: 17px;
  font-weight: 700;
}

.entry-content .som-profile .som-booking-note {
  gap: 0;
  padding: 10px 8px;
}

.entry-content .som-profile .som-booking-note span,
.entry-content .som-profile .som-booking-note strong {
  display: block;
  margin: 0;
  padding: 0;
  line-height: 1.5;
}


/* QR code two-column layout */
.entry-content .som-profile .som-qr-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  align-items: start;
  width: 100%;
}

/* Each QR item */
.entry-content .som-profile .som-qr-item {
  min-width: 0;
  text-align: center;
}

/* QR images */
.entry-content .som-profile .som-qr-item img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 auto !important;
  float: none !important;
}

/* WeChat ID */
.entry-content .som-profile .som-wechat-id {
  margin-top: 8px;
  text-align: center;
}

.entry-content .som-profile .som-wechat-id > span {
  display: block;
  font-size: 12px;
  color: #666;
  margin-bottom: 5px;
}

/* ID and Copy button */
.entry-content .som-profile .som-wechat-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
}

.entry-content .som-profile .som-wechat-copy code {
  font-size: 12px;
  background: #fff;
  padding: 5px 3px;
  color: #333;
  user-select: text;
  overflow-wrap: anywhere;
}

.entry-content .som-profile .som-wechat-copy button {
  display: inline-block !important;
  background: #79429b;
  color: #fff;
  border: 0;
  border-radius: 5px;
  padding: 6px 9px;
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
}



/* QR code two-column layout */
.entry-content .som-profile .som-qr-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  align-items: start;
  width: 100%;
}

/* Each QR item */
.entry-content .som-profile .som-qr-item {
  min-width: 0;
  text-align: center;
}

/* QR images */
.entry-content .som-profile .som-qr-item img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 auto !important;
  float: none !important;
}

/* WeChat ID */
.entry-content .som-profile .som-wechat-id {
  margin-top: 8px;
  text-align: center;
}

.entry-content .som-profile .som-wechat-id > span {
  display: block;
  font-size: 12px;
  color: #666;
  margin-bottom: 5px;
}

/* キャストページ：記事上部の余白を縮小 */
@media screen and (max-width: 767px) {
  body.single .main {
    padding-top: 15px;
  }

  body.single .article-header {
    margin-top: 0;
  }

  body.single .entry-title {
    margin-top: 0;
    margin-bottom: 15px;
  }
}


/* スマホ：サイトヘッダーの余白調整 */
@media screen and (max-width: 767px) {

  #header #header-in {
    min-height: 0;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  #header .logo-header {
    margin: 0;
    padding: 0;
  }

  #header .site-name {
    display: block;
    line-height: 1.4;
  }

}


/* キャストプロフィール表 */
.entry-content .som-profile .som-info-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.entry-content .som-profile .som-info-table th {
  width: 35%;
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  vertical-align: middle;
}

.entry-content .som-profile .som-info-table td {
  width: 65%;
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.5;
  vertical-align: middle;
}



/* Quick Booking CTA */
.som-profile .som-quick-booking {
  margin: 14px 0 20px;
  text-align: center;
}

.som-profile .som-booking-btn {
  display: block;
  width: 100%;
  padding: 13px 20px;
  background: #7441a6;
  color: #fff;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.5;
}

.som-profile .som-booking-btn:hover {
  background: #60328f;
  color: #fff;
  text-decoration: none;
}

/* Anchor destination spacing */
.som-profile #som-booking {
  scroll-margin-top: 20px;
}


/* Booking button size */
.som-profile .som-booking-btn {
  padding: 12px 16px;
  min-height: 0;
  height: auto;
  line-height: 1.5;
  font-size: 16px;
}

/* Quick booking spacing */
.som-profile .som-quick-booking {
  margin: 12px 0 0;
}

/* Booking Guide text */
.som-profile .som-guide-link {
  font-size: 14px;
  line-height: 1.6;
  margin: 16px 0 24px;
}
