@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
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
/* ==========================
   AV作品ページを1カラム化
   ========================== */

/* サイドバーを完全に消す */
.single-av_work .sidebar,
.single-av_work #sidebar {
  display: none !important;
}

/* Cocoonのメインカラムをフル幅にする */
.single-av_work .main,
.single-av_work #main {
  width: 100% !important;
  float: none !important;
}

/* 中身の最大幅だけ制御（好みで調整） */
.single-av_work .av-work-single {
  max-width: 1100px;
  margin: 0 auto;
}

/* =========================================
 * AV作品アーカイブ（/av_work/）カードレイアウト
 * ========================================= */

/* 全体レイアウト：カードを横に並べるグリッド */
.av-work-archive .work-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

/* 各カード本体 */
.av-work-archive .work-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* サムネイル全体をクリックできるように */
.av-work-archive .work-card__thumb-link {
  display: block;
}

/* サムネイル枠：アスペクト比を固定（ここでは 3:4） */
.av-work-archive .work-card__thumb {
  position: relative;
  width: 100%;
  padding-top: 133%; /* 4:3 → 133%、16:9なら 56.25% など */
  overflow: hidden;
  background: #f5f5f5;
}

/* サムネイル画像：枠いっぱいにトリミング表示 */
.av-work-archive .work-card__thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;      /* これで縦横バラバラでも自動でトリミング */
  display: block;
}

/* カード下部の本文エリア */
.av-work-archive .work-card__body {
  padding: 16px 18px 18px;
}

/* タイトル */
.av-work-archive .work-card__title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
}

.av-work-archive .work-card__title a {
  text-decoration: none;
}

.av-work-archive .work-card__title a:hover {
  text-decoration: underline;
}

/* メタ情報（ID / メーカー / 出演 / 発売日 / 時間） */
.av-work-archive .work-card__meta {
  margin: 0;
  font-size: 0.9rem;
}

.av-work-archive .work-card__meta-row {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.av-work-archive .work-card__meta-row dt {
  min-width: 3.5em;
  font-weight: 600;
  color: #666;
}

.av-work-archive .work-card__meta-row dd {
  margin: 0;
}

/* スマホ向け微調整 */
@media (max-width: 599px) {
  .av-work-archive .work-card-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .av-work-archive .work-card__body {
    padding: 12px 14px 14px;
  }
}

/* トップページだけサイドバーを非表示 */
.home .sidebar {
    display: none !important;
}

/* トップページをフル幅に拡張 */
.home .main {
    width: 100% !important;
    max-width: 100% !important;
}

/* =========================================
   EROSEARCH LAB 全体ダークテーマ調整
   ========================================= */
/* ページ全体の背景 */
body {
    background-color: #070915;
}

/* メインコンテンツの背景 */
#container, .main, .wrap {
    background-color: #0c101f;
}

/* 記事タイトルなどの文字色 */
.entry-title, .page-title, .site-name-text {
    color: #ffffff;
}

/* 通常テキスト色 */
body, p {
    color: #f5f5f5;
}

/* サイトタイトルのフォントを少し太め＆字間広めに */
.site-name-text {
    letter-spacing: 0.12em;
    font-weight: 700;
}

/* ヘッダー下の不要な余白を少し詰める */
.home .content {
    padding-top: 0;
}

/* =====================================
   フッターをダーク化＋白帯を消す
   ===================================== */

/* フッター全体の背景と文字色 */
footer,
#footer,
.footer,
#footer-bottom {
    background-color: #050712;
    color: #f5f5f5;
}

/* フッター内のリンク色 */
footer a,
#footer a,
.footer a {
    color: #d0d4ff;
    text-decoration: none;
}

footer a:hover,
#footer a:hover,
.footer a:hover {
    color: #ffffff;
}

/* フッター上に出ている白い帯を消す */
#footer,
.footer,
#footer-bottom {
    border-top: none !important;
}

/* コンテンツとフッターの間に入る白背景を潰す */
#content-bottom,
#footer-top,
.l-footer {
    background-color: #050712 !important;
}

/* フッターナビの文字が暗すぎるので少し明るめに */
.footer-navi a,
.footer-menu a {
    color: #d0d4ff;
}

/* =========================================================
   サイドバー非表示ページの全幅化対応
   対象: 作品一覧、女優一覧、ブランドラボ、ブランド別一覧、★ブランド別女優一覧
   ========================================================= */

/* 1. 親テーマ(Cocoon)のレイアウト制限を解除 */
body.post-type-archive-av_work #content,
body.post-type-archive-av_work #main,
body.page-template-page-actresses #content,
body.page-template-page-actresses #main,
body.page-template-page-brand-lab #content,
body.page-template-page-brand-lab #main,
body.tax-brand #content,
body.tax-brand #main,
body.page-template-page-brand-actresses #content,
body.page-template-page-brand-actresses #main {
    width: 100% !important;      /* 横幅を強制的に100%にする */
    max-width: 100% !important;  /* 親テーマの最大幅制限を解除 */
    margin: 0 !important;        /* 余計な余白を削除 */
    padding: 0 !important;
    float: none !important;      /* 2カラム用の回り込みを解除 */
    border: none !important;     /* 枠線があれば消す */
}

/* 2. コンテンツの最大幅を調整（広がりすぎ防止） */
body.post-type-archive-av_work .es-archive-container,
body.page-template-page-actresses .es-archive-container,
body.page-template-page-brand-lab .es-archive-container,
body.tax-brand .es-archive-container,
body.page-template-page-brand-actresses .es-archive-container {
    max-width: 1200px !important; 
    margin: 0 auto !important;
    padding: 0 20px !important;
}


/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}

/* =========================================
   P1: FloatingCTA: ボトムナビ(57px)の上に出す
   調査日: 2026-03 / fnav height=57px, z-index=9990確認済み
   ========================================= */
.es-cta-floating {
  bottom: 57px !important;
  z-index: 9999 !important;
}

/* =========================================
   P2: ヒーローメタ情報の表示修正（スマホ）
   display:none が設定されている3要素を表示
   ========================================= */
@media (max-width: 767px) {
  .es-hero-actress,
  .es-hero-fetish-score {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .es-hero-cid {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 0.75rem !important;
    color: #666 !important;
    margin: 4px 0 !important;
  }

  /* シコリ度スコアの強調表示 */
  .es-hero-fetish-score {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: #ff6b35 !important;
    margin: 4px 0 8px !important;
  }

  /* 女優名リンク */
  .es-hero-actress {
    font-size: 0.85rem !important;
    color: #17c9ff !important;
    margin: 0 0 4px !important;
  }
  .es-hero-actress a {
    color: #17c9ff;
    text-decoration: none;
  }
}

/* =========================================
   P3: 横スクロールカード：タイトル行数制限
   調査: カード幅140px, タイトルが192px占有
   ========================================= */
@media (max-width: 767px) {
  /* カード高さの上限を設定 */
  .es-latest-grid .es-work-card {
    height: auto !important;
    max-height: 280px;
  }

  /* タイトルを2行で切り捨て */
  .es-latest-grid .es-work-title {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    height: auto !important;
    max-height: 3.5em;
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
    margin: 6px 4px 4px;
  }

  /* タイトル内のリンク */
  .es-latest-grid .es-work-title a {
    display: block;
    overflow: hidden;
  }

  /* メタ情報（発売日・CID）も小さく */
  .es-latest-grid .es-work-meta {
    font-size: 0.7rem !important;
    color: #888;
    margin: 2px 4px;
  }

  /* CIDは非表示（横スクロールカードでは不要） */
  .es-latest-grid .es-work-cid {
    display: none !important;
  }
}

/* =========================================
   P4: 作品詳細：タイポグラフィ修正
   調査: H1=16px, summary=13.6px
   ========================================= */

/* H1タイトル（デスクトップ） */
.es-hero-title {
  font-weight: 700;
  color: #fff;
}

/* AIサマリーテキスト（デスクトップ） */
.es-hero-summary {
  line-height: 1.7 !important;
  color: #b0b8cc;
}

/* [FIX] es-hero-cta: 背景透明バグ修正 */
.es-hero-cta {
  background: #e60033 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 12px 24px !important;
  font-weight: 700 !important;
  display: inline-block !important;
  text-decoration: none !important;
  cursor: pointer !important;
}
.es-hero-cta:hover {
  background: #cc002d !important;
}
.es-hero-cta .es-cta-button {
  background: linear-gradient(135deg, #e60033, #cc0029) !important;
  border-radius: 10px !important;
  padding: 14px 20px !important;
  text-align: center !important;
  text-decoration: none !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  display: block !important;
  margin: 12px 0 !important;
  box-shadow: 0 4px 16px rgba(230, 0, 51, 0.35) !important;
  transition: transform 0.15s, box-shadow 0.15s !important;
  box-sizing: border-box !important;
  width: 100% !important;
}
.es-hero-cta .es-cta-button:hover,
.es-hero-cta .es-cta-button:active {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(230, 0, 51, 0.5) !important;
}

/* CTAの価格テキスト */
.es-cta-price {
  display: block !important;
  height: auto !important;
  font-size: 0.8rem;
  opacity: 0.85;
  margin-top: 2px;
}

/* スマホ：フォントサイズを大きめに */
@media (max-width: 767px) {
  .es-hero-title {
    font-size: 1.15rem !important; /* 16px → 18.4px */
    line-height: 1.5 !important;
  }

  .es-hero-summary,
  .es-ai-summary {
    font-size: 0.92rem !important; /* 13.6px → 14.7px */
    line-height: 1.7 !important;
  }
}

/* [FIX] 作品一覧カード: タップ領域をカード全体に拡大 */
.es-list-card {
  position: relative !important;
}
.es-list-title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* [FIX] 作品一覧タイトル: 2行でクランプ */
.es-list-title {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* [FIX] 一覧カード: シコリ度・女優名を表示 */
.es-list-shikori-sp {
  display: block !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #e60033 !important;
  margin: 4px 0 !important;
}
.es-list-actress-sp {
  display: block !important;
  font-size: 12px !important;
  color: #666 !important;
  margin: 2px 0 !important;
}
