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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

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

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

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

/* ページネーション横並び強制修正 */
.fz-pgn ul {
  flex-wrap: nowrap !important;
  width: auto !important;
}



/* ページネーション 左寄せ・上下余白なし */
.fz-pgn {
  text-align: left !important;
  padding: 0 !important;
}
.fz-home-wrap .fz-pgn ul, .fz-pgn > ul {
  justify-content: flex-start !important;
}


/* トップバナー 4作品・全幅表示 */
.fz-top-banner {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 8px !important;
  row-gap: 4px !important;
  margin-top: 0px !important;
}
.fz-top-banner > a {
  min-width: 0 !important;
}
.fz-top-banner > a:nth-child(n+5) {
  display: none !important;
}
.fz-top-banner a img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  object-fit: contain !important;
  background-color: transparent !important;
}

/* 新着パイズリ動画 見出し */
.pz-slider-wrap::before {
  content: "新着パイズリ動画";
  display: block;
  font-size: 16px;
  font-weight: bold;
  padding: 10px 14px;
  color: #333;
  background: transparent;
  border-left: 4px solid #c9a84c;
  margin-bottom: 4px;
}

/* 最新パイズリ動画 見出し（赤系） */
.fz-card-grid::before {
  content: "最新パイズリ動画";
  display: block;
  font-size: 16px;
  font-weight: bold;
  padding: 10px 14px;
  color: #fff;
  background: #c0213e;
  border-left: 4px solid #8b0000;
  margin-bottom: 8px;
}

/* 人気パイズリ作品 見出し（赤系） */
.pz-fanza-grid::before {
  content: "人気パイズリ作品";
  display: block;
  font-size: 16px;
  font-weight: bold;
  padding: 10px 14px;
  color: #fff;
  background: #c0213e;
  border-left: 4px solid #8b0000;
  margin-bottom: 8px;
  text-align: left;
}

/* 最新パイズリ動画 見出し グリッド全幅 */
.fz-card-grid::before {
  grid-column: 1 / -1 !important;
  margin-bottom: 8px !important;
}


/* === 記事内 作品名ラベル (fz-label-box) 縦ズレ修正 === */
.fz-label-box {
  display: inline-block;
  background: #2563eb;
  color: #fff !important;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 3px;
  vertical-align: middle;
  line-height: 1.4;
}
.fz-title-block {
  margin: 8px 0 12px;
  line-height: 1.6;
  display: block;
}
.fz-work-title {
  margin: 6px 0 0 !important;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.5;
  display: block;
}

/* === 記事内 画像レイアウト === */
.fz-img-single {
  display: block;
  width: 100%;
  margin: 8px 0;
}
.fz-img-single img {
  width: 100% !important;
  height: auto !important;
  display: block;
  border-radius: 4px;
}
.fz-img-2col {
  display: flex;
  gap: 6px;
  margin: 8px 0;
}
.fz-img-2col img {
  width: 50% !important;
  height: auto !important;
  display: block;
  border-radius: 4px;
}

/* === 旧形式 sample-images (複数列→1列) === */
.sample-images {
  display: block !important;
}
.sample-item {
  display: block;
  width: 100%;
  margin: 8px 0;
}
.sample-item img {
  width: 100% !important;
  height: auto !important;
  display: block;
  border-radius: 4px;
}

/* === スマホ トップバナー 余白解消・全体表示 === */
@media screen and (max-width: 768px) {
  .fz-top-banner {
    grid-template-columns: repeat(2, minmax(0, 150px)) !important;
    gap: 8px !important;
    justify-content: center !important;
  }
  .fz-home-wrap .fz-top-banner a {
    overflow: hidden !important;
    min-width: 0 !important;
  }
  .fz-home-wrap .fz-top-banner a img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    border-radius: 8px !important;
    background-color: transparent !important;
  }
}

/* === タグ一覧ウィジェット === */
.pz-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 0;
}
.pz-tag-item {
  display: inline-block;
  padding: 4px 10px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 12px;
  color: #555 !important;
  text-decoration: none !important;
  line-height: 1.4;
}
.pz-tag-item:hover {
  background: #e8e8e8;
  color: #333 !important;
}


/* 2列画像 高さ統一 */
.fz-img-2col { display:flex !important; gap:6px; align-items:stretch; }
.fz-img-2col img { width:50% !important; aspect-ratio:3/4 !important; object-fit:cover !important; height:auto !important; display:block; border-radius:4px; }

/* タグ/アーカイブページのサムネイル */
.archive .entry-card-thumb img,
.tag .entry-card-thumb img,
.entry-card-thumb img { width:100% !important; height:auto !important; aspect-ratio:3/4 !important; object-fit:cover !important; max-width:none !important; }
.entry-card-thumb { width:100% !important; }
.pz-fanza-title { display: none !important; }

/* Swiper slider fallback (CSS scroll-snap) */
.pz-slider-wrap { overflow: hidden !important; }
.swiper.pz-post-slider { overflow-x: scroll !important; scroll-snap-type: x mandatory !important; -webkit-overflow-scrolling: touch !important; scrollbar-width: none !important; }
.swiper.pz-post-slider::-webkit-scrollbar { display: none !important; }
.swiper-wrapper { display: flex !important; flex-direction: row !important; width: 100% !important; }
.swiper-slide.pz-slide { flex-shrink: 0 !important; width: 100% !important; scroll-snap-align: start !important; }

.fz-card-img {
  aspect-ratio: 2/3 !important;
  width: 100% !important;
  display: block !important;
}

.fz-home-title {
  margin-bottom: 0px !important;
}

/* スマホ: 最新パイズリ記事見出しを新作人気パイズリ動画見出しに揃える */
@media screen and (max-width: 768px) {
  .pz-post-slider-wrap h2.fz-home-title {
    padding-left: 42px !important;
  }
}
