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

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


/* 親コンテナを縦方向に */
.entry-card-wrap {
}
.entry-card-thumb {
	float:none;
	width:100%;
}
.entry-card-thumb img {
    width: 100%;
    height: auto;
}
.entry-card-content {
	float:none;
	margin:0 0 0 0;
	width:100%;
}


/* ボタン化 */
.fanza-data .link a {
    display: inline-block;          /* インラインブロックでボタン化 */
    padding: 14px 28px;             /* 縦横の余白 */
    background-color: #ff6f61;      /* 目立つ色 */
    color: #fff;                     /* 文字色 */
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;           /* 下線なし */
    border-radius: 8px;              /* 角丸 */
    box-shadow: 0 4px 6px rgba(0,0,0,0.2); /* 軽い影 */
    transition: all 0.3s ease;       /* ホバーアニメーション */
}

/* ホバー時 */
.fanza-data .link a:hover {
    background-color: #ff3b2f;       /* 濃い色に */
    transform: translateY(-3px);      /* 少し浮かせる */
    box-shadow: 0 6px 8px rgba(0,0,0,0.25);
}

/* 中央配置 */
.fanza-data .link {
    text-align: center;
    margin: 20px 0;
}

/* スマホ対応（画面幅480px以下） */
@media screen and (max-width: 480px) {
    .fanza-data .link a {
        display: block;    /* 幅いっぱいに */
        width: 90%;        /* 画面の90％幅 */
        padding: 12px 0;   /* パディング縦のみ */
        font-size: 18px;   /* 少し大きくして押しやすく */
        margin: 0 auto;    /* 中央配置 */
    }
}

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

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

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

/* iframe専用 */
.iframe-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
}
.iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}


/* 記事の表示順入れ替え */
.entry-content {
  display: grid;
  grid-template-columns: 1fr;
}
.fanza-data {
  display: contents;
}
.entry-content iframe {
  order: 1;
}
.entry-content img {
  order: 2;
}
.entry-content .link {
  order: 3;
}
.entry-content h2,
.entry-content .actress,
.entry-content .genre {
  order: 4;
}

/* プレイ別オススメ作品 */
.keyword-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.keyword-post-item {
  background: #fff;
}
.keyword-post-link {
  display: block;
  text-decoration: none;
  color: #000;
}
.keyword-post-link:hover {
  opacity: 0.85;
}
.keyword-post-thumb img {
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: cover;
  display: block;
}
/* ===== キーワード投稿カード：Cocoon見出し装飾を無効化 ===== */

.keyword-post-title {
  border: none !important;
  background: none !important;
  padding: 0 !important;
  margin: 8px 0 4px !important;

  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: #333;

  /* Cocoonの疑似要素対策 */
  position: static;
}

/* 左の太線・装飾を完全除去 */
.keyword-post-title::before,
.keyword-post-title::after {
  content: none !important;
  display: none !important;
}

.keyword-post-date {
  font-size: 12px;
  color: #666;
}

@media (max-width: 600px) {
  .keyword-post-grid {
    grid-template-columns: 1fr;
  }
  .keyword-post-thumb img {
    max-height: 220px;
  }
}

/* 子ページ カード風一覧（画像なし） */
.child-page-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.child-page-card {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--cocoon-border-color, #e5e5e5);
  border-radius: 6px;
  background: #f9f9f9;
  text-decoration: none;
  transition: all 0.2s ease;
}

.child-page-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  transform: translateY(-2px);
}

.child-page-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--cocoon-text-color, #333);
}

.child-page-card-excerpt {
  margin-top: 6px;
  font-size: 14px;
  color: #666;
}

