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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
:root {
    --color-main: #800000;
    --color-main-dark: #4d0000;
    --color-accent: #C5A059;
    --color-text: #E8D5C8;
    --color-border: rgba(197, 160, 89, 0.3);
}

#go-to-top {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    z-index: 99999 !important;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out !important;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* ボタン本体の基本スタイル */
.go-to-top-button {
    background-color: #ff4d4d !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50% !important;
    width: 55px !important;
    height: 55px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 0 8px rgba(255, 77, 77, 0.6) !important;
    transition: all 0.3s ease-in-out !important;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.go-to-top-button:hover {
    background-color: #e60000 !important;
    box-shadow: 0 0 15px rgba(255, 77, 77, 0.9), 0 0 25px rgba(255, 77, 77, 0.5) !important;
    -webkit-transform: translateY(-5px) translateZ(0);
    transform: translateY(-5px) translateZ(0);
}

.go-to-top-button-icon-font span.fa {
    font-size: 1.8rem !important;
}

.go-to-top-hide {
    opacity: 0 !important;
    pointer-events: none !important;
    -webkit-transform: translateY(20px) translateZ(0);
    transform: translateY(20px) translateZ(0);
    display: flex !important;
}

#go-to-top:not(.go-to-top-hide) .go-to-top-button {
    opacity: 1 !important;
    pointer-events: auto !important;
    -webkit-transform: translateY(0) translateZ(0);
    transform: translateY(0) translateZ(0);
}

.breadcrumb.sbp-main-before,
.breadcrumb.sbp-footer-before,
.breadcrumb.pbp-main-before,
.breadcrumb.pbp-footer-before {
  background-color: unset;
}

/************ モデル検索フォーム **************/
.modern-search-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px;
    border-radius: 50px;
    border: 1px solid var(--color-border);
    backdrop-filter: blur(10px);
}

.search-input-group {
    display: flex;
    gap: 10px;
}

.modern-search-input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    padding: 10px 20px !important;
    font-size: 1rem !important;
}

.modern-search-btn {
    background: var(--color-main) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 0 30px !important;
    border-radius: 40px !important;
    font-weight: bold !important;
    cursor: pointer;
}

/************ 人気モデルサイドバー用 **********/
/* コンテナ */
.custom-popular-entry-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

/* カード */
.custom-popular-entry-cards .popular-entry-card.compact {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  transition: transform .15s ease, box-shadow .15s ease;
}

.custom-popular-entry-cards .popular-entry-card.compact:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

/* サムネ */
.custom-popular-entry-cards .popular-entry-card-thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.custom-popular-entry-cards img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 本文 */
.custom-popular-entry-cards .popular-entry-card-body {
  padding: 6px 8px;
}

.custom-popular-entry-cards .popular-entry-card-title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* メタ */
.custom-popular-entry-cards .popular-entry-card-meta {
  display: flex;
  gap: 6px;
  font-size: 11px;
  color: #666;
  margin-top: 2px;
}

.custom-popular-entry-cards .favorite {
  color: #e25555;
}
/***************************************/

/* ==============================
   一覧/検索ページ用
   ============================== */

.model-archive {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  color: #f3e9d2;
  font-family: 'Helvetica Neue', Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

.model-archive-title {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.model-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.model-item {
  background: linear-gradient(
    180deg,
    rgba(40, 15, 15, 0.85),
    rgba(20, 5, 5, 0.85)
  );
  border: 1px solid rgba(255, 220, 180, 0.12);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.model-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.5);
}

.model-item a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.model-image {
  position: relative;
  overflow: hidden;
}

.model-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.model-item:hover .model-image img {
  transform: scale(1.05);
}

@media (max-width: 480px) {
  .model-image img {
    height: 100%;
  }
}

.model-body {
  padding: 12px 14px 14px;
}

.model-name {
  display: flex;
  word-break: break-word;
  overflow-wrap: break-word;
  font-size: 1.1rem;
  margin: 0 0 6px;
  color: #ffffff;
  font-weight: 600 !important;
  text-decoration: none;
}

.model-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tag-badge {
  display: inline-block;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 3px;
  background: #1a1a1a;
  color: var(--color-accent);
  border: 1px solid var(--color-border);
}

.tag-badge.cat {
  margin: auto 0;
  margin-right: 5px;
  background: var(--color-main-dark);
  color: #ffffff;
  border-color: var(--color-main);
}

/* ==============================
   Pagination
   ============================== */

.pagination {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  width: 44px;
  height: 44px;
  line-height: 44px;
  border-radius: 12px;
  align-items: center;
  color: #f3e9d2;
  background: rgba(40, 15, 15, 0.6);
  border: 1px solid rgba(255, 220, 180, 0.15);
  text-decoration: none;
}

.pagination a:hover {
  background: rgba(255, 255, 255, 0.15) !important;
}

.pagination .current,
.pagination .page-current {
  background: linear-gradient(135deg, #ffb347, #ffcc70);
  color: #140a0a;
  border-color: transparent;
}
/****************************************/

.widget-content-top-title,
.widget-below-related-entries-title {
  text-align: center;
}

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

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

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

/************************************
** サイドバータイトルの強制上書き
************************************/
#sidebar h3.widget-sidebar-title.widget-title,
#sidebar h3.widget-title {
    background: rgba(128, 0, 0, 0.2) !important; /* メインカラーの透過 */
    color: var(--color-text) !important;
    padding: 7px 10px !important;
    border: 1px solid var(--color-border) !important;
    border-left: 8px solid var(--color-main) !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    margin-bottom: 15px !important;
}

/************************************
** サイドバーカスタム広告
************************************/
/* サイドバー画像のスタイル */
.sidebar-image-link a {
    text-decoration: none !important; /* 文字の下線を消す */
    border: none !important;          /* 枠線や下線を消す */
    display: block;                   /* リンクをブロック要素にする */
    line-height: 0;                   /* 行の高さを0にして隙間を排除 */
}

.sidebar-image-link img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: opacity 0.3s ease;
    /* 画像自体の下線設定も念のためリセット */
    border: none !important;
}

.sidebar-image-link img:hover {
    opacity: 0.5;
}

/* 検索窓をクリックした時の青い枠（アウトライン）を消す */
input[type="text"]:focus,
input[type="search"]:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* モデル詳細ページの配信を見るボタン */
/* ボタン自体のスタイル */
.live-button {
    display: inline-block;
    margin-top: 15px;      /* 上のテキスト（性別・配信タイプ等）との隙間を調整 */
    padding: 12px 35px;    /* ボタン内の余白（上下 左右） */
    background: linear-gradient(135deg, #ff4b2b 0%, #ff416c 100%);
    color: #fff !important;
    font-weight: bold;
    font-size: 16px;
    text-decoration: none !important;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(255, 75, 43, 0.3);
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.5;
}

/* ホバー時の挙動 */
.live-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 75, 43, 0.5);
    opacity: 0.9;
}

/* 親要素（liなど）が原因でボタンが左に寄りすぎている場合の微調整 */
li:has(.live-button) {
    list-style: none;      /* ボタンの行だけドットを消す */
    margin-top: 10px;      /* 行間を広げる */
}
