@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（Cocoon関連記事カードと完全一致）
************************************/

/* 並び */
.rep-card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
}

/* カード本体 */
.rep-card {
    width: 160px;
    margin: 0 12px 18px 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* 画像枠（関連記事と同じ） */
.rep-card-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 62%; /* ★最重要 */
    overflow: hidden;
}

/* 画像（関連記事と同じ） */
.rep-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* タイトル（関連記事と同じ） */
.rep-card-title {
    padding: 8px; /* ★関連記事と同じ */
    font-size: 14px;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* CTA（関連記事には無いが違和感が出ないように） */
.rep-card-cta {
    margin: 8px;
    background: #e60033;
    color: #fff;
    text-align: center;
    padding: 6px 0;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
}

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