@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: 3.7.1：全機能統合・新着/関連/タグデザイン最適化版
Template: cocoon-master
Version: 3.7.1
*/

/************************************
** 0. 通知エリア (#notice-area) アニメーション
************************************/
#notice-area {
    background-color: #00152b !important;
    border-bottom: 2px solid #00c853 !important;
    overflow: hidden !important;
    padding: 0 !important;
}

.notice-area-in span, .notice-area-in a {
    display: inline-block !important;
    white-space: nowrap !important;
    padding-left: 100% !important;
    animation: marquee-scroll 25s linear infinite !important;
    color: #00e676 !important;
    font-size: 15px !important;
    font-weight: 900 !important;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/************************************
** 1. サイト全体・見出し
************************************/
body {
    background-color: #f4f7f9;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

.story-text, .dmm-review-text, .entry-content {
    font-size: 16px !important;
    line-height: 1.95 !important;
    color: #333 !important;
    letter-spacing: 0.04em !important;
}

strong { font-weight: 900 !important; color: #000 !important; }

.article h2 {
    background-color: #001f3f !important; color: #ffffff !important;
    border-left: 8px solid #00c853 !important; padding: 15px 20px !important;
    border-radius: 4px; font-weight: 900 !important; clear: both !important;
    margin-top: 50px !important; font-size: 1.25em !important;
}

/************************************
** 2. カルーセル（王冠ラベル）
************************************/
#carousel.carousel { border: 3px solid #ffcf00 !important; background: #001f3f !important; padding: 25px 0 15px !important; border-radius: 8px !important; position: relative !important; overflow: visible !important; margin: 20px 0 !important; box-shadow: 0 10px 25px rgba(0,0,0,0.3) !important; }
#carousel.carousel::before { content: "👑 今週のオススメ超人気作" !important; display: block !important; position: absolute !important; top: -18px !important; left: 20px !important; background: linear-gradient(135deg, #ff4500 0%, #ff8c00 50%, #ffa500 100%) !important; color: #000 !important; text-shadow: 0 0 5px #fff, 0 0 2px #fff !important; font-size: 12px !important; font-weight: 900 !important; padding: 6px 20px !important; border-radius: 50px !important; z-index: 100 !important; border: 2px solid #ffffff !important; box-shadow: 0 4px 12px rgba(0,0,0,0.5) !important; animation: recommend-pulse 2.5s infinite ease-in-out !important; }
@keyframes recommend-pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }

/************************************
** 3. 統合CTAボタン（マイクロコピー＋緑ボタン）
************************************/
.manga-cta-container { width: 100% !important; margin: 45px 0 75px !important; text-align: center !important; clear: both !important; }
.manga-micro-copy-text { color: #E60000 !important; font-weight: 900 !important; font-size: 0.9em !important; display: block !important; margin-bottom: 15px !important; }
.manga-btn-wide-green { background: #52d681 !important; border-radius: 50px !important; box-shadow: 0 5px 0 #3eb46b !important; display: block !important; width: 100% !important; max-width: 550px !important; margin: 0 auto !important; overflow: hidden !important; transition: all 0.2s; }
.manga-btn-wide-green:hover { transform: translateY(3px) !important; box-shadow: 0 2px 0 #3eb46b !important; }

.manga-btn-wide-green a { 
    color: #fff !important; font-weight: 900 !important; 
    padding: 16px 10px !important; 
    display: block !important; text-decoration: none !important; line-height: 1.3 !important; 
    white-space: normal !important;
    font-size: clamp(14px, 4.2vw, 19px) !important;
    text-align: center !important; letter-spacing: -0.01em !important; 
}
.manga-btn-wide-green a::after { content: "（無料サンプルあり）" !important; display: block !important; font-size: 0.7em !important; font-weight: 700 !important; margin-top: 4px !important; opacity: 0.9 !important; }

/************************************
** 4. ボックス枠と開閉ギミック
************************************/
.content-showcase-box { 
    background: #ffffff !important; border: 1px solid #ddd !important; border-radius: 8px !important; 
    padding: 25px !important; margin-bottom: 65px !important; 
    position: relative !important; clear: both !important; box-shadow: 0 2px 15px rgba(0,0,0,0.05) !important; 
}
.piracy-box-theme { border: 2px solid #001f3f !important; }

.showcase-inner { max-height: 120px; overflow: hidden; position: relative; transition: max-height 0.6s ease; }
.showcase-inner::after { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 75px; background: linear-gradient(transparent, #ffffff); pointer-events: none; transition: opacity 0.3s; }

.show-more-check:checked ~ .showcase-inner { max-height: 10000px !important; }
.show-more-check:checked ~ .showcase-inner::after { opacity: 0 !important; }

.show-more-btn { 
    display: flex !important; justify-content: center !important; align-items: center !important; 
    margin: 35px auto !important; width: fit-content !important; min-width: 280px !important; 
    background: #e2e8f0 !important; border-radius: 50px !important; 
    box-shadow: 0 4px 0 #cbd5e0 !important; padding: 18px 25px !important; 
    cursor: pointer; position: relative !important; transition: all 0.2s;
}
.show-more-btn span { display: none !important; } 
.show-more-btn::before { 
    font-size: clamp(13px, 3.5vw, 15px) !important; font-weight: 900 !important; 
    color: #475569 !important; display: block !important; white-space: nowrap !important; 
}

#show-more-story ~ .show-more-btn::before { content: "▼ 「あらすじ」の続きを読む ▼"; }
#show-more-story:checked ~ .show-more-btn::before { content: "▲ 「あらすじ」を閉じる ▲"; }
#show-more-review ~ .show-more-btn::before { content: "▼ 「感想・レビュー」の続きを読む ▼"; }
#show-more-review:checked ~ .show-more-btn::before { content: "▲ 「感想・レビュー」を閉じる ▲"; }
#show-more-piracy ~ .show-more-btn::before { content: "▼ 「無料で楽しむ方法」の続きを読む ▼"; }
#show-more-piracy:checked ~ .show-more-btn::before { content: "▲ 「無料で楽しむ方法」を閉じる ▲"; }

/************************************
** 5. 画像・スマホ調整
************************************/
.gallery-container { display: flex !important; flex-wrap: wrap !important; justify-content: center !important; gap: 15px !important; margin-bottom: 30px !important; clear: both !important; }
.gallery-item { position: relative !important; background: #fff; border: 1px solid #ddd; padding: 6px; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important; }
.gallery-item img { max-width: 100% !important; height: auto !important; display: block !important; margin: 0 auto !important; }
.gallery-item::after { content: "タップで拡大 🔍" !important; position: absolute !important; bottom: 12px !important; right: 12px !important; background: rgba(0, 0, 0, 0.4) !important; color: #fff !important; font-size: 10px !important; padding: 4px 12px !important; border-radius: 4px !important; z-index: 10; pointer-events: none; }

/* 動画プレイヤー：高さを強引に固定してメディアバーを確実に表示 */
.video-container { 
    border: 3px solid #001f3f !important; 
    border-radius: 12px !important; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.2) !important; 
    overflow: hidden !important;
}

.video-container iframe { 
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important; 
}

/* スマホでは高さが固定だと間延びしすぎる可能性があるため、最小高さを維持 */
@media screen and (max-width: 768px) {
    .video-container {
        height: 300px !important; /* スマホ時の固定高さ */
    }
}

/************************************
** 6. 新着・関連記事 & タグ検索セクション
************************************/
#integrated-footer-sections h3 {
    background: #001f3f !important; color: #fff !important; padding: 12px 18px !important; 
    font-size: 1.15em !important; font-weight: bold !important; 
    border-left: 8px solid #00c853 !important; margin-bottom: 20px !important;
}

/* タグセクション統合デザイン */
.integrated-tag-section { margin-top: 50px; padding-top: 30px; border-top: 1px dashed #ddd; clear: both; }
.integrated-tag-label {
    display: block !important; background-color: #001f3f !important; color: #ffffff !important;
    border-left: 6px solid #00c853 !important; padding: 10px 15px !important;
    border-radius: 4px; font-size: 0.95em !important; font-weight: 900 !important;
    margin-bottom: 20px !important; letter-spacing: 0.05em;
}
.integrated-tag-link {
    display: inline-block !important; background-color: #f1f5f9 !important; color: #475569 !important;
    padding: 8px 18px !important; border-radius: 50px !important; font-size: 14px !important;
    font-weight: 700 !important; text-decoration: none !important;
    box-shadow: 0 3px 0 #cbd5e0 !important; transition: all 0.2s ease !important;
    border: 1px solid #e2e8f0 !important; margin-bottom: 8px;
}
.tag-hash { color: #00c853 !important; margin-right: 2px; font-weight: 900; }
.integrated-tag-link:hover { transform: translateY(2px) !important; box-shadow: 0 1px 0 #cbd5e0 !important; background-color: #ffffff !important; border-color: #00c853 !important; }

/************************************
** 7. ヘッダー・警告
************************************/
#header { background-color: #001f3f !important; }
#navi { background-color: #00152b !important; }
.warning-header { background-color: #fff5f5 !important; color: #c00 !important; text-align: center; padding: 12px; font-weight: 900; border: 1px solid #ffcaca !important; margin-bottom: 20px !important; }

/* スマホ用微調整 */
@media screen and (max-width: 768px) {
    .show-more-btn { min-width: 270px !important; padding: 18px 10px !important; }
    .manga-btn-wide-green a { padding: 16px 5px !important; font-size: 15px !important; }
    .content-showcase-box { padding: 25px 15px !important; }
    .integrated-tag-link { padding: 7px 14px !important; font-size: 13px !important; }
}