@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){
  /*必要ならばここにコードを書く*/
}

/* ==========================================
   FANZA動画サイト 共通デザインCSS（Cocoon用）
   ========================================== */

/* 1. レスポンシブサンプル動画プレイヤー */
.fvn-video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}
.fvn-video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* 2. アフィリエイト誘導ボタン（CTA） */
.fvn-cta-wrap {
    text-align: center;
    margin: 20px 0 25px;
}
.fvn-cta-btn {
    display: inline-block;
    width: 100%;
    max-width: 480px;
    background: #ff4081;
    color: #fff !important;
    padding: 14px 20px;
    text-decoration: none !important;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.05rem;
    box-shadow: 0 4px 10px rgba(255, 64, 129, 0.3);
    transition: opacity 0.2s, transform 0.2s;
}
.fvn-cta-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}
.fvn-cta-btn-sub {
    background: #333;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* 3. 作品データボックス */
.fvn-data-box {
    background: #fff;
    border: 2px solid #ff4081;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}
.fvn-data-title {
    font-size: 1.15rem !important;
    color: #ff4081 !important;
    margin: 0 0 12px 0 !important;
    padding: 0 0 8px 0 !important;
    background: none !important;
    border: none !important;
    border-bottom: 1px dashed #ff4081 !important;
}
.fvn-data-list {
    font-size: 0.95rem;
    line-height: 1.6;
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 8px 12px;
    margin: 0;
}
.fvn-data-label {
    font-weight: bold;
    color: #777;
    margin: 0;
}
.fvn-data-value {
    margin: 0;
    color: #333;
}

/* 4. トップページ用ショートコード [fanza_video_grid] */
.fvn-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}
.fvn-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.fvn-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.fvn-item-link {
    text-decoration: none !important;
    color: #333 !important;
    display: block;
}
.fvn-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: #000;
}
.fvn-title {
    padding: 10px;
    font-size: 0.85rem;
    font-weight: bold;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 5. Cocoonのカテゴリー・タグ一覧ページを4列グリッド化 */
.archive .list {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
}
.archive .list .entry-card-wrap {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
.archive .list .entry-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}
.archive .list .entry-card-thumb {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    aspect-ratio: 16 / 9;
    background: #000;
}
.archive .list .entry-card-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
.archive .list .entry-card-content {
    margin: 0 !important;
    padding: 10px !important;
}
.archive .list .entry-card-title {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}
.archive .list .entry-card-snippet,
.archive .list .entry-card-meta {
    display: none !important;
}

/* レスポンシブ調整（タブレット3列・スマホ2列） */
@media (max-width: 1024px) {
    .fvn-grid,
    .archive .list {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 14px !important;
    }
}
@media (max-width: 600px) {
    .fvn-grid,
    .archive .list {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .fvn-data-list {
        grid-template-columns: 90px 1fr;
        font-size: 0.85rem;
    }
}
/* 記事内の画像を中央揃えにする */
.entry-content img,
.fvn-article-body img,
.fvn-thumb {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
