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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/* ============================
   サイドバー（そのまま）
============================ */
.sidebar-list li {
    display: flex;
    background: #fafafa;
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 10px;
    border: 1px solid #eee;
    align-items: flex-start;
}
.sidebar-list li:hover { background: #f0f0f0; }
.sidebar-list img { width: 80px; height: auto; margin-right: 10px; border-radius: 4px; }
.sidebar-list a { text-decoration: none; color: #333; line-height: 1.4; }
.sidebar-list a:hover { opacity: 0.8; }

/* ============================
   セクション余白・見出し統一
============================ */
.rep-section,
.navigation-blocks,
.representative-block,
.actress-section {
    margin-top: 32px;
    margin-bottom: 32px;
}

.rep-section h2,
.navigation-blocks h2,
.representative-block h2,
.actress-section h2 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    border-left: 4px solid #e60033;
    padding-left: 8px;
}

/* ============================
   rep-card（旧CSSの視認性＋CTR強化）
============================ */
.rep-card {
    width: 160px;
    margin: 0 12px 18px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    overflow: hidden;
    position: relative;
    display: inline-block;
    vertical-align: top;
}

.rep-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.rep-card-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 140%;
    overflow: hidden;
    border-radius: 6px;
}

.rep-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rep-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 3px 6px;
    font-size: 11px;
    color: #fff;
    border-radius: 4px;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.rep-badge-popular { background: #e91e63; }
.rep-badge-new { background: #2196f3; }
.rep-badge-high { background: #4caf50; }

.rep-card-title {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.4;
    height: 38px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rep-card-cta {
    margin-top: 8px;
    background: #ff1744;
    color: #fff;
    text-align: center;
    padding: 8px 0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    transition: background 0.2s;
}
.rep-card-cta:hover {
    background: #e00036;
}

/* スマホ最適化 */
@media (max-width: 768px) {
    .rep-card { width: calc(50% - 10px); }
}
@media (max-width: 480px) {
    .rep-card { width: 100%; }
}

/* ============================
   rep-card-container（横スクロール）
============================ */
.rep-card-container {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
}
.rep-card-container .rep-card {
    scroll-snap-align: start;
}
.rep-card-container::-webkit-scrollbar {
    display: none;
}

/* ============================
   Cocoon の画像干渉を完全無効化（旧記事用）
============================ */
.entry-content img.work-img,
.entry-content img.rep-img {
    margin: 0 !important;
    display: block !important;
}
/* ============================
   Cocoon の画像干渉を rep-card 専用で完全無効化
============================ */
.entry-content img.rep-card-img {
    max-width: none !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}
.entry-content .rep-card .rep-card-img-wrapper {
    padding-top: 140% !important;
}

.entry-content .rep-card .rep-card-img {
    object-fit: cover !important;
}
.rep-img-force {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    max-width: none !important;
    display: block !important;
}

