@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: 1.3.9：画像中央寄せ・通知アニメ・全トグル統合
Template: cocoon-master
Version: 1.3.9
*/

/************************************
** 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, .story-text p, .dmm-review-text, .dmm-review-text p {
    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; }

/************************************
** 2. 見出し（H2）
************************************/
.article h2 {
    background-color: #001f3f !important;
    color: #ffffff !important;
    border-left: 8px solid #00c853 !important;
    padding: 15px 20px !important;
    border-radius: 4px;
    font-size: 1.25em !important;
    font-weight: 900 !important;
    clear: both !important;
}

/************************************
** 3. 画像ギャラリー（★中央寄せ・ばらつき補正★）
************************************/
.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 {
    display: flex !important;
    align-items: center !important;   /* 上下の中央寄せ */
    justify-content: center !important; /* 左右の中央寄せ */
    background-color: #fff !important;
    border: 1px solid #ddd !important;
    padding: 6px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    border-radius: 4px !important;
    /* 枠のサイズを固定したい場合はここに width/height を指定（任意） */
}

.gallery-item img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    border: none !important; /* 枠は親のgallery-itemで持たせる */
    margin: 0 auto !important;
}

/************************************
** 4. 部分表示ギミック・開閉ボタン
************************************/
.content-showcase-box {
    position: relative;
    margin-bottom: 30px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    overflow: hidden;
    clear: both;
}

.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);
    transition: opacity 0.3s;
    pointer-events: none;
}

#show-more-story:checked ~ .showcase-inner,
#show-more-review:checked ~ .showcase-inner,
#show-more-piracy:checked ~ .showcase-inner {
    max-height: 4000px;
}

.show-more-check:checked ~ .showcase-inner::after { opacity: 0; }

.show-more-btn {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 15px auto 5px;
    padding: 14px !important;
    text-align: center;
    border: 2px solid #001f3f;
    border-radius: 50px;
    color: #001f3f;
    cursor: pointer;
    font-size: 18px !important;
    font-weight: 900 !important;
    background: #fff;
    transition: all 0.2s;
}

.show-more-btn:hover { background: #001f3f; color: #fff; }

.btn-text-close { display: none; }
.show-more-check:checked + .showcase-inner + .show-more-btn .btn-text-open { display: none; }
.show-more-check:checked + .showcase-inner + .show-more-btn .btn-text-close { display: inline; }

/************************************
** 5. 誘導ボタン・黄色マーカー
************************************/
p:has(.swl-marker.mark_yellow) { margin-top: 45px !important; margin-bottom: 15px !important; clear: both !important; }
.swl-marker.mark_yellow { background: linear-gradient(transparent 60%, #ffff66 60%); font-weight: 900; padding: 0 10px; display: inline-block; font-size: 1.05em; }

.custom-btn-row { display: flex !important; gap: 12px !important; justify-content: space-between !important; margin: 25px 0 50px !important; width: 100% !important; clear: both !important; }
.full-width-layout { flex-direction: column !important; }
.full-width-layout a { font-size: 24px !important; min-height: 88px !important; }
.split-layout > div { flex: 1 !important; }
.split-layout a { font-size: 18px !important; min-height: 68px !important; }

.custom-btn-row a {
    display: flex !important; align-items: center !important; justify-content: center !important;
    width: 100% !important; border-radius: 50px !important; font-weight: 900 !important;
    text-decoration: none !important; box-shadow: 0 7px 18px rgba(0,0,0,0.18) !important;
    transition: all 0.2s ease !important;
}

.btn-type-red a { background: linear-gradient(to bottom, #00e676, #00c853) !important; color: #ffffff !important; border-bottom: 5px solid #009624 !important; }
.btn-type-blue a { background: #005bac !important; color: #ffffff !important; }
.custom-btn-row a:hover { transform: translateY(3px) !important; }

/************************************
** 6. ヘッダー・ナビ
************************************/
#header { background-color: #001f3f !important; color: #ffffff !important; }
.logo-text a { color: #ffffff !important; font-weight: 900 !important; }
#navi { background-color: #00152b !important; }
#navi .navi-in a { color: #ffffff !important; font-weight: bold; }
#navi .navi-in a:hover { background-color: #00c853 !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;
    font-size: 1.05em;
}