@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひらhttps://api.xspecialx.com/wp-admin/theme-editor.php?file=style.css&theme=cocoon-child-master
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){
  /*必要ならばここにコードを書く*/
}

/*
 * FANZA API Image Search v0.1.6
 * 子テーマ用・作品表示ベースCSS
 *
 * 貼り付け先：
 * - 子テーマの style.css
 * - WordPress「外観 → カスタマイズ → 追加CSS」
 *
 * プラグイン側には、このファイルで扱う作品表示CSSは入っていません。
 * 数値や色は子テーマ側で自由に変更できます。
 */

/* =========================================================
 * 1作品全体の外枠
 * 不要なら、背景・枠線・影を削除して構いません。
 * ======================================================= */
.fais0-work {
  overflow: hidden;
  margin: 0;
  padding: 8px;
  border: 1px solid #2b3f54;
  border-radius: 10px;
  background: #172534;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.14);
}

/* =========================================================
 * 左：ジャケット、右：サンプル画像
 * ジャケットは300～360pxを基準にして、小さくなりすぎない設定です。
 * ======================================================= */
.fais0-work-grid {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

/* =========================================================
 * ジャケット側
 * タイトルは画像へ重ねず、この枠の中で画像の下に表示します。
 * ======================================================= */
.fais0-jacket {
  min-width: 300px;
  align-self: start;
}

/* FANZA商品ページへのリンクはジャケット画像だけに付きます。 */
.fais0-jacket-link {
  display: block;
  width: 100%;
  background: #0b1119;
  border-radius: 6px;
  overflow: hidden;
}

/* ジャケットは切り抜かず、元の比率ですべて表示します。 */
.fais0-jacket img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center top;
}

/* =========================================================
 * ジャケット下のタイトル・女優名
 * ======================================================= */
.fais0-work-info {
  padding: 10px 3px 3px;
  color: #fff;
}

/* divで出力されるため、Cocoonのh2装飾は付きません。 */
.fais0-work-title {
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: clamp(15px, 1.35vw, 21px);
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* 女優名。複数の場合は「、」区切りで表示されます。 */
.fais0-actress-names {
  margin-top: 7px;
  color: #dce7f2;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.fais0-actress-label {
  font-weight: 700;
  color: #fff;
}


/* Cocoonなどが見出しへ付ける疑似要素を消します。 */
.fais0-wrap .fais0-jacket .fais0-title-overlay h2::before,
.fais0-wrap .fais0-jacket .fais0-title-overlay h2::after {
  display: none !important;
  content: none !important;
}

/*
 * PCのマウス操作だけ、タイトルをゆっくり下へ隠します。
 * スマホ・タブレットでは常時表示のままです。
 */
@media (hover: hover) and (pointer: fine) {
  .fais0-jacket:hover .fais0-title-overlay,
  .fais0-jacket:focus-within .fais0-title-overlay {
    transform: translateY(108%);
  }
}

/* =========================================================
 * サンプル画像：1段7枚、最大3段（最大21枚）
 * 画像の高さは統一せず、各画像の縦横比をそのまま使います。
 * ======================================================= */
.fais0-samples {
  display: flex;
  flex-wrap: wrap; /* 折り返しを有効にする */
  gap: 5px;
}

/* 各サンプル画像の外枠です。 */
.fais0-sample {
  overflow: hidden;
  min-width: 0;
  align-self: start;
  border-radius: 5px;
  background: #0b1119;
}

/*
 * サンプル画像はbuttonで出力されています。
 * テーマ標準のボタン背景・枠・余白を消します。
 */
.fais0-lightbox-trigger {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: zoom-in;
  appearance: none;
}

/*
 * サンプル画像を切り抜かず、全体表示します。
 * width: 100% なので列幅には収まりますが、高さは画像ごとに変わります。
 */
.fais0-sample img {
  height: 180px; 
	border-radius:8px;
  width: auto;
  object-fit: cover;
}

.fais0-sample:hover {
	transform: scale(1.5, 1.5);
	transition : all 0.2s ease 0.2s;
}
/* サンプル画像がない作品の表示です。 */
.fais0-no-samples {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 238px;
  color: #d6dee8;
  font-size: 14px;
}

/* =========================================================
 * 中間幅
 * ジャケット幅だけ少し縮めます。サンプルは7列×3段を維持します。
 * ======================================================= */
@media (max-width: 1050px) {
  .fais0-work-grid {
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  }

  .fais0-jacket {
    min-width: 260px;
  }
}

/* =========================================================
 * スマホ
 * ジャケットの下へサンプル画像を置き、2列表示にします。
 * ここを repeat(3, ...) にするとスマホ3列になります。
 * ======================================================= */
@media (max-width: 680px) {
  .fais0-work-grid {
    display: block;
  }

  .fais0-jacket {
    min-width: 0;
  }

  .fais0-jacket img {
    width: 100%;
    height: auto;
    max-height: none;
  }

  .fais0-samples {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: auto;
    height: auto;
    min-height: 0;
    margin-top: 8px;
  }
}

.fais0-actress-link a{
	color:#ffffee !important;
	text-decoration:none;
}