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

/************************************
** 子テーマ用のスタイルを書く
************************************/

/************************************
** サイトの色設定
************************************/
body {
    background-color: #f9f7f2;
    color: #333333;
}

.site-main, .entry-content {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
}

footer,
.site-footer,
#colophon {
    background-color: #1a1a1a !important;
    color: #eeeeee !important;
    padding: 60px 0 30px;
}

footer a,
.site-footer a {
    color: #ffffff !important;
    text-decoration: none;
}

footer a:hover,
.site-footer a:hover {
    color: #cccccc !important;
    text-decoration: underline;
}

.post-navigation,
.entry-footer,
.related-contents {
    background-color: #ffffff !important;
    color: #333333 !important;
    padding: 20px;
}

.post-navigation a,
.related-contents a {
    color: #333333 !important;
}

/************************************
/* 画像拡大時のタイトル（キャプション）を物理的に消す */
/************************************
#fancybox-title, 
.fancybox-caption {
    display: none !important;
}

/************************************
** サイドバーのタイトルを中央寄せにする
************************************/
.sidebar h3 {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #eee;
}

/************************************
** 検索BOX非表示
************************************/
.search-results .archive-title {
    display: none !important;
}

.search-results form.search-box.input-box {
    display: none !important;
}

/************************************
** 検索BOXのカスタマイズ
************************************/
.sale-filter-chip {
    cursor: pointer;
    user-select: none;
}

.sale-filter-chip .chip-text {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 20px;
    border-radius: 22px;
    background: #fff;
    border: 2px solid #ddd;
    color: #666;
    font-weight: bold;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sale-filter-chip input:checked + .chip-text {
    background: #fff5f5;
    border-color: #e53e3e;
    color: #e53e3e;
}

.sale-filter-chip input:checked + .chip-text::before {
    content: '✓';
    margin-right: 6px;
}

.sale-filter-chip:hover .chip-text {
    border-color: #cbd5e0;
}

/************************************
** 上部のランキング表示
************************************/
.ranking-header-container {
    display: flex;
    gap: 12px;
    margin: 20px auto;
    width: 100%;
    max-width: 1200px;
    padding: 0 10px;
    box-sizing: border-box;
}

.ranking-banner-card {
    position: relative;
    flex: 1;
    display: block;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.ranking-banner-card:hover {
    transform: translateY(-3px);
}

.ranking-image-wrap {
    width: 100%;
    height: 100%;
}

.ranking-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ranking-banner-card:hover .ranking-image-wrap img {
    transform: scale(1.05);
}

.ranking-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    border-radius: 4px;
    letter-spacing: 1px;
}

.is-daily .ranking-badge   { background: #ff9800; }
.is-weekly .ranking-badge  { background: #007bff; }
.is-monthly .ranking-badge { background: #e91e63; }

.ranking-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 15px 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    z-index: 2;
}

.ranking-banner-title {
    margin: 0;
    color: #fff !important;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.4;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/************************************
** ヘッダーナビ全体の調整
************************************/
.navi-in {
    padding: 10px 0;
}

.menu-top {
    display: flex;
    justify-content: center;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-item .item-label {
    display: block;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    letter-spacing: 0.05em;
    background: #f9f9f9;
    color: #555;
}

#menu-item-406 .item-label {
    background: #fdf5e6;
    color: #8b6d10;
    border-color: #f3e5ab;
}
#menu-item-406 a:hover .item-label {
    background: #8b6d10;
    color: #fff;
}

#menu-item-387 .item-label {
    background: #f0f7ff;
    color: #4682b4;
    border-color: #d1e3f5;
}
#menu-item-387 a:hover .item-label {
    background: #4682b4;
    color: #fff;
}

#menu-item-388 .item-label {
    background: #fff0f5;
    color: #a0522d;
    border-color: #f5d1e3;
}
#menu-item-388 a:hover .item-label {
    background: #a0522d;
    color: #fff;
}

/************************************
** 評価の星の調整
************************************/
.post-ratings {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100% !important;
    min-height: 50px;
    margin: 10px 0 !important;
    padding: 0 !important;
    line-height: 1.5 !important;
}

.post-ratings img {
    width: 28px !important;
    height: 28px !important;
    margin: 0 2px !important;
    padding: 5px !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

.post-ratings span,
.post-ratings strong {
    font-size: 14px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin-left: 5px !important;
    white-space: nowrap;
}

/************************************
** 星街すいせい紹介セクション用カスタム
************************************/
.youtube-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

details {
    margin: 20px 0;
    margin-bottom: 5px !important; /* 下の余白を詰める */
    padding: 10px;
    background-color: #f0f7ff;
    border-radius: 8px;
    transition: background-color 0.3s;
}

details[open] {
    background-color: #fff;
    border: 1px solid #4285F4;
}

summary {
    cursor: pointer;
    list-style: none;
    outline: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary h2 {
    display: inline-block;
    margin: 0 !important;
    margin-bottom: 0 !important;
    padding: 10px 0 !important;
    border-bottom: none !important;
    font-size: 1.1em !important;
    color: #333;
}

summary h2 small {
    font-size: 0.7em;
    color: #4285F4;
    margin-left: 10px;
}

blockquote {
    position: relative;
    padding: 20px 30px !important;
    background: #f9f9f9 !important;
    border-left: 5px solid #4285F4 !important;
    margin: 15px 0 !important;
    font-style: normal;
}

blockquote p {
    margin-bottom: 1em;
    line-height: 1.8;
}

details blockquote,
details p:last-child {
    margin-bottom: 0 !important;
}

.c-list-control__options {
    margin-top: 0 !important;
}

/************************************
** 投稿カード：基本設定
************************************/
#main .entry-card-wrap a.entry-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #fff;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#main .entry-card-wrap a.entry-card-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

#main .entry-card-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

#main .entry-card-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    margin: 0 !important;
}

/************************************
** タクソノミーバッジ
************************************/
.card-tax-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
}

.tax-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    line-height: 1.2;
    display: inline-block;
}

.tax-original {
    background-color: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

.tax-character {
    background-color: #fff0f6;
    color: #d6336c;
    border: 1px solid #ffdeeb;
}

/************************************
** タイトルの高さ・見切れ調整
************************************/
#main .entry-card-title {
    height: auto !important;
    min-height: 4.8em;
    margin: 10px !important;
    padding: 0 !important;
    font-size: 14px;
    line-height: 1.5;
    display: block !important;
    overflow: visible !important;
}

.real-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin-top: 4px;
    font-weight: bold;
}

/************************************
** 投稿本文下のタグ（白飛び修正）
************************************/
.entry-tags a.tag-link {
    color: #333333 !important;    /* 文字色を濃いグレーに固定 */
    background-color: #ffffff;    /* 背景を白に */
    border: 1px solid #dddddd;    /* 枠線をつけて形をはっきりさせる */
    display: inline-block;
    padding: 4px 10px;
    margin: 4px 2px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
}

/* ホバー時の色変更（お好みで） */
.entry-tags a.tag-link:hover {
    background-color: #4285F4;
    color: #ffffff !important;
    border-color: #4285F4;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/

/* PC（3列表示） */
@media screen and (min-width: 1024px) {
    #main .entry-card-wrap {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 16px;
    }
    #main .entry-card-wrap a.entry-card-link {
        width: calc(33.333% - 11px) !important;
        flex: 0 1 calc(33.333% - 11px) !important;
        margin-bottom: 25px !important;
    }
}

/* タブレット（2列表示） */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    #main .entry-card-wrap {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 16px;
    }
    #main .entry-card-wrap a.entry-card-link {
        width: calc(50% - 8px) !important;
        flex: 0 1 calc(50% - 8px) !important;
        margin-bottom: 20px !important;
    }
    .ranking-header-container {
        flex-direction: column;
        gap: 10px;
    }
    .ranking-banner-card {
        height: 130px;
    }
    .ranking-banner-title {
        font-size: 14px;
    }
    .menu-top.menu-mobile {
        display: flex !important;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 5px;
        padding: 0 5px;
    }
    .menu-mobile .menu-item {
        flex: 1;
    }
    .menu-mobile .item-label {
        font-size: 10px;
        padding: 8px 2px;
        text-align: center;
        white-space: nowrap;
    }
}

/* スマホ（1列表示） */
@media screen and (max-width: 767px) {
    #main .entry-card-wrap.masonry-brick,
    #main #list {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    #main .entry-card-wrap a.entry-card-link {
        width: 100% !important;
        margin: 0 0 20px 0 !important;
    }
    #main .entry-card-title {
        font-size: 15px !important;
        min-height: auto !important;
    }
    .ranking-header-container {
        flex-direction: column;
        gap: 10px;
    }
    .ranking-banner-card {
        height: 130px;
    }
    .ranking-banner-title {
        font-size: 14px;
    }
    .menu-top.menu-mobile {
        display: flex !important;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 5px;
        padding: 0 5px;
    }
    .menu-mobile .menu-item {
        flex: 1;
    }
    .menu-mobile .item-label {
        font-size: 10px;
        padding: 8px 2px;
        text-align: center;
        white-space: nowrap;
    }
}