@charset "UTF-8";
/*
Theme Name: Cocoon Child
Template:   cocoon-master
Version:    1.0.2
*/

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Noto+Sans+JP:wght@400;700;900&display=swap');

/* ==============================================
   1. 基本設定 (Base)
   ============================================== */
:root {
    --pink: #ff1a75;
    --pink-glow: rgba(255,26,117,0.35);
    --bg: #0f0f0f;
    --bg2: #181818;
    --bg3: #222;
    --text: #e8e8e8;
    --border: #2a2a2a;
}

body {
    background-color: var(--bg) !important;
    color: var(--text) !important;
    font-family: 'Noto Sans JP', sans-serif !important;
}

a { color: inherit; text-decoration: none !important; }

/* Cocoonデフォルトの白背景をリセット */
#body, #main, #sidebar, #content, .wrap, .container, .header, .footer {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* ==============================================
   2. ヘッダー (Header)
   ============================================== */
.header-container {
    background: #000 !important;
    border-bottom: 2px solid var(--pink) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* ロゴ */
.site-name-text {
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 28px !important;
    color: #fff !important;
    background: var(--pink);
    padding: 4px 14px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    box-shadow: 0 0 16px var(--pink-glow);
}

/* メニュー */
.navi-in > ul > li > a {
    color: #ccc !important;
    font-weight: 700 !important;
    transition: 0.2s;
}
.navi-in > ul > li > a:hover {
    background: var(--bg3) !important;
    color: var(--pink) !important;
}

/* 検索窓（強制配置） */
.content-top-widget .widget_search, .widget_search {
    position: fixed !important;
    top: 12px !important;
    right: 20px !important;
    z-index: 1000 !important;
    width: 220px !important;
    background: transparent !important;
    border: none !important;
}
.search-box {
    background: var(--bg3) !important;
    border: 1px solid #333 !important;
    border-radius: 4px;
}
.search-submit {
    background: var(--pink) !important;
    color: #fff !important;
}

/* ==============================================
   3. 記事カード (Card Design)
   ============================================== */
.entry-card-wrap {
    background: var(--bg2) !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    transition: transform 0.2s, border-color 0.2s !important;
    margin-bottom: 24px !important;
}

.entry-card-wrap:hover {
    transform: translateY(-4px);
    border-color: var(--pink) !important;
    box-shadow: 0 6px 24px var(--pink-glow) !important;
}

/* サムネイル (16:9) */
.entry-card-thumb {
    aspect-ratio: 16 / 9 !important;
    width: 100%;
    margin: 0 !important;
    overflow: hidden;
    position: relative;
}

.entry-card-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease;
}

.entry-card-wrap:hover .entry-card-thumb img {
    transform: scale(1.05);
    filter: brightness(0.6);
}

/* 再生マーク */
.entry-card-thumb::after {
    content: '▶';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: rgba(255,255,255,0);
    transition: 0.2s;
    pointer-events: none;
}
.entry-card-wrap:hover .entry-card-thumb::after {
    color: rgba(255,255,255,0.9);
}

/* タイトル */
.entry-card-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #e0e0e0 !important;
    line-height: 1.5 !important;
    padding: 10px 12px 5px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 不要な情報を非表示 */
.entry-card-snippet, .entry-card-meta, .post-date, .post-update {
    display: none !important;
}

/* カテゴリバッジ */
.cat-label {
    position: absolute !important;
    top: 8px !important; left: 8px !important;
    background: var(--pink) !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    padding: 3px 8px !important;
    border-radius: 3px !important;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255,26,117,0.5);
}

/* ==============================================
   4. その他パーツ (Carousel, Tag, Footer)
   ============================================== */
.carousel {
    background: #000 !important;
    padding: 20px 0 !important;
    border-bottom: 1px solid var(--border);
}

/* タグクラウド */
.tagcloud a {
    background: var(--bg2) !important;
    border: 1px solid var(--border) !important;
    color: #bbb !important;
    font-size: 11px !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    display: inline-block;
    margin: 0 4px 8px 0;
}
.tagcloud a:hover {
    background: var(--pink) !important;
    color: #fff !important;
    border-color: var(--pink) !important;
}

/* フッター */
.footer {
    background: #000 !important;
    border-top: 2px solid var(--border) !important;
    color: var(--muted) !important;
}

/* ==============================================
   5. 年齢確認 (Age Gate)
   ============================================== */
#age-gate {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.97);
    display: flex; align-items: center; justify-content: center;
    z-index: 99999; backdrop-filter: blur(8px);
}
.age-gate-box {
    background: var(--bg2);
    border: 2px solid var(--pink);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    max-width: 420px;
    box-shadow: 0 0 50px var(--pink-glow);
}
.age-gate-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px; color: #fff;
    background: var(--pink);
    padding: 4px 18px; border-radius: 6px;
    display: inline-block; margin-bottom: 24px;
}
.btn-enter {
    background: var(--pink); color: #fff;
    border: none; padding: 12px 30px;
    border-radius: 6px; font-weight: 900;
    cursor: pointer; margin-right: 10px;
}
.btn-leave {
    background: #333; color: #888;
    border: 1px solid #444; padding: 12px 30px;
    border-radius: 6px; cursor: pointer;
}

/* ==============================================
   6. スマホ対応
   ============================================== */
@media screen and (max-width: 768px) {
    /* 検索窓を非表示（メニュー内などで代用） */
    .content-top-widget .widget_search, .widget_search {
        display: none !important;
    }
    /* メニューのマージン解除 */
    .navi { margin-right: 0 !important; }
}
