@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Template:   cocoon-master
Version:    1.2.1
*/

/************************************
** 1. 記事一覧（トップページ・アーカイブ）設定
** PC: 4列 / スマホ: 2列（強制）
************************************/
/* --- PC表示（基本設定） --- */
.list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    justify-content: flex-start !important;
    margin: 0 auto !important;
}

.list > .a-wrap,
.list > .entry-card-wrap {
    width: calc((100% - 45px) / 4) !important; /* 15px * 3ギャップ分引く */
    max-width: calc((100% - 45px) / 4) !important;
    flex: 0 0 calc((100% - 45px) / 4) !important;
    
    margin: 0 0 25px 0 !important;
    float: none !important;
    box-sizing: border-box !important;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-decoration: none !important;
    color: #333;
    transition: transform 0.2s, box-shadow 0.2s;
}

.list > .a-wrap:hover,
.list > .entry-card-wrap:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 1 !important;
}

.entry-card-thumb, .card-thumb {
    width: 100% !important; height: auto !important;
    aspect-ratio: 16 / 9 !important; overflow: hidden !important;
    margin: 0 !important; padding: 0 !important;
}
.entry-card-thumb img, .card-thumb img {
    width: 100% !important; height: 100% !important; object-fit: cover !important;
}
.entry-card-content, .card-content { padding: 10px !important; }
.entry-card-title, .card-title {
    font-size: 14px !important; line-height: 1.4 !important; font-weight: bold !important;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.entry-card-snippet, .card-snippet { display: none !important; }
.entry-card-meta, .card-meta { font-size: 11px !important; color: #999 !important; margin-top: 5px !important; }

/* --- SALEバッジ（左上配置・安定版） --- */
.entry-card-sale-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #ff0000;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 8px;
    z-index: 2;
    border-bottom-right-radius: 5px;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* --- レスポンシブ設定（スマホ2列化） --- */
@media screen and (max-width: 768px) {
    .list { 
        gap: 10px !important;
    }
    .list > .a-wrap, 
    .list > .entry-card-wrap {
        width: calc((100% - 10px) / 2) !important;
        max-width: calc((100% - 10px) / 2) !important;
        flex: 0 0 calc((100% - 10px) / 2) !important;
        margin-bottom: 15px !important;
    }
    
    .entry-card-content { padding: 8px !important; }
    .entry-card-title { font-size: 12px !important; }
}


/************************************
** 2. 記事内動画グリッド & Xボタン
************************************/
.video-grid-container {
    display: flex; flex-wrap: wrap; gap: 15px; justify-content: flex-start; margin-bottom: 30px;
}
.video-grid-item {
    width: calc((100% - 45px) / 4);
    max-width: calc((100% - 45px) / 4);
    border: 1px solid #ddd; padding: 5px; margin-bottom: 15px; border-radius: 5px; background: #fff;
    box-sizing: border-box;
}
.video-label {
    font-size: 12px; font-weight: bold; color: #555; margin-bottom: 5px; display: flex; justify-content: space-between;
}
.video-num { color: #d30000; font-weight: 800; }
.grid-video, .grid-image {
    width: 100%; height: auto; cursor: pointer; display: block; object-fit: cover; aspect-ratio: 16 / 9; border-radius: 3px; background: #000;
}
.video-x-save-btn {
    display: block !important; width: 100% !important; margin-top: 8px !important;
    background-color: #000 !important; color: #fff !important;
    text-align: center; text-decoration: none !important;
    font-size: 12px; font-weight: bold; padding: 8px 0; border-radius: 4px;
    line-height: 1.2; cursor: pointer; visibility: visible !important; opacity: 1 !important;
}
.video-x-save-btn:hover { opacity: 0.8 !important; background-color: #333 !important; }

@media screen and (max-width: 1024px) {
    .video-grid-item { width: calc((100% - 30px) / 3); max-width: calc((100% - 30px) / 3); }
}
@media screen and (max-width: 480px) {
    .video-grid-container { gap: 8px; }
    .video-grid-item { width: calc((100% - 8px) / 2); max-width: calc((100% - 8px) / 2); padding: 5px; }
    .video-x-save-btn { font-size: 10px; padding: 6px 0; }
}


/************************************
** 3. 動画プレイヤー [dmm_video]
************************************/
.dmm-video-container {
    margin: 40px auto; width: 100%; position: relative; z-index: 1;
}
.dmm-video-wrapper {
    position: relative; width: 100%; height: 0; padding-top: 56.25%;
    background: #000; overflow: hidden; border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); border: 1px solid #333;
}
.dmm-video-wrapper iframe {
    position: absolute; top: 0; left: 0; width: 100% !important; height: 100% !important; border: none;
}
.dmm-video-note {
    font-size: 11px; color: #888; text-align: center; margin-top: 5px;
}


/************************************
** 4. リッチな購入ボタン [dmm_buy_box]
************************************/
.dmm-buy-box-container {
    border: 4px solid #ff4444 !important; background: #fff0f0 !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important; border-radius: 12px !important;
    padding: 25px 15px !important; margin: 40px 0 !important; text-align: center;
}
.dmm-buy-box-title {
    font-size: 20px !important; color: #cc0000 !important;
    background: linear-gradient(transparent 70%, #ffff88 70%) !important;
    display: inline-block; padding: 0 5px; margin-bottom: 20px !important; font-weight: bold;
}
.dmm-buy-box-link img {
    width: 100%; max-width: 500px; height: auto; margin-bottom: 10px; border-radius: 5px; transition: opacity 0.3s;
}
.dmm-buy-box-btn {
    background: linear-gradient(to bottom, #ff5555, #cc0000) !important; color: #fff !important;
    width: 90% !important; max-width: 450px !important; padding: 20px 10px !important;
    border-radius: 50px !important; margin: 10px auto !important; display: block !important;
    font-size: 22px !important; font-weight: 900 !important; letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4) !important;
    border-bottom: 6px solid #990000 !important; box-shadow: 0 6px 15px rgba(200, 0, 0, 0.4) !important;
    position: relative; overflow: hidden; transition: all 0.1s ease !important;
}
.dmm-buy-box-btn::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg); animation: shiny-btn 3s infinite;
}
@keyframes shiny-btn { 0% { left: -100%; } 20% { left: 100%; } 100% { left: 100%; } }
.dmm-buy-box-link:hover .dmm-buy-box-btn {
    transform: translateY(2px) !important; border-bottom: 4px solid #990000 !important;
}
.dmm-buy-box-link:active .dmm-buy-box-btn {
    transform: translateY(6px) !important; border-bottom: 0px solid #990000 !important; box-shadow: none !important;
}
@media screen and (max-width: 480px) {
    .dmm-buy-box-btn { font-size: 18px !important; padding: 18px 5px !important; }
}


/************************************
** 5. 記事下チャット（2ch風）
************************************/
.dmm-thread-container {
    margin-top: 50px !important; background: #fdfdfd; border: 1px solid #ddd; border-radius: 8px; overflow: hidden;
}
.dmm-thread-title {
    background: #efefef; padding: 10px 15px; font-size: 16px; font-weight: bold; color: #333; border-bottom: 2px solid #d30000; margin: 0 !important;
}
.dmm-thread-body .sidebar-chat-wrapper { border: none !important; background: transparent !important; margin: 0 !important; }
.dmm-thread-body .sidebar-chat-header { display: none !important; }
.dmm-thread-body .sidebar-chat-log { height: 400px !important; background: #fff; padding: 15px !important; }
.dmm-thread-body .sidebar-chat-form { background: #f9f9f9 !important; padding: 15px !important; border-top: 1px solid #eee; }
.dmm-thread-body .chat-res { margin-bottom: 15px !important; border-bottom: 1px solid #f0f0f0 !important; padding-bottom: 15px !important; }
.dmm-thread-body .chat-num { color: #000 !important; font-weight: bold; }
.dmm-thread-body .chat-name { color: #228b22 !important; font-weight: bold; }
.dmm-thread-body .chat-body { font-size: 15px !important; line-height: 1.6 !important; margin-top: 5px; color: #333; }
.chat-source-info { font-size: 11px; text-align: right; margin-top: 4px; }
.chat-source-info a { color: #007bff; text-decoration: none; background: #f0f8ff; padding: 2px 6px; border-radius: 3px; display: inline-block; }
.current-article-res { background-color: #fff9f9; border-left: 3px solid #d30000 !important; padding-left: 8px !important; }

/* --- 記事タイトル表示用 --- */
.chat-source-article {
    display: block;
    font-size: 10px;
    text-align: right;
    margin-top: 4px;
    color: #888;
}

.chat-source-article a {
    color: #999;
    text-decoration: none;
    border-bottom: 1px dotted #ccc;
    transition: color 0.2s;
}

.chat-source-article a:hover {
    color: #d30000;
    border-bottom: 1px solid #d30000;
}

/* 既存のレイアウト微調整 */
.dmm-thread-body .chat-res {
    /* 記事タイトルが入る分、少し余白を調整 */
    padding-bottom: 10px !important;
}
/************************************
** 6. 追尾ボタン [dmm_follow]
** (スマホ：極小コンパクト / PC：横幅自動調整)
************************************/
/* ▼ コンテナ共通設定 */
.dmm-floating-box {
    position: fixed !important;
    z-index: 99990 !important;
    background: #fff !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: flex-end; /* 下揃え */
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
    animation: slideUp 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    padding: 3px 6px !important; 
}

@keyframes slideUp {
    from { transform: translate(-50%, 150%); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

/* --------------------------------------------------
   ▼ スマホ用（画面下・中央）
-------------------------------------------------- */
.dmm-floating-box {
    bottom: 75px !important; 
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 96% !important;
    max-width: 480px !important;
}

/* 画像エリア（75px） */
.dmm-float-img-hero {
    flex: 0 0 75px !important;
    width: 75px !important;
    margin-right: 8px !important;
    position: relative;
    z-index: 5;
    text-decoration: none !important;
    transition: transform 0.1s;
}
.dmm-float-img-hero:active { transform: scale(0.95); }

.dmm-float-img-hero img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 4px !important;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.3) !important;
    margin-top: -30px !important; /* 飛び出し */
    border: 2px solid #fff;
    background: #000;
}

/* 再生マーク */
.play-overlay {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) translateY(-15px);
    font-size: 16px;
    color: #fff;
    background: rgba(0,0,0,0.6);
    width: 24px; height: 24px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid #fff;
    pointer-events: none;
}

/* テキスト・ボタンエリア */
.dmm-float-action-right {
    flex: 1 !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0px;
    padding-bottom: 0;
    min-width: 0; /* 文字あふれ防止 */
}

/* メインリンク */
.dmm-main-text-link {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    margin-bottom: 1px;
}

/* テキスト行 */
.dmm-text-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    overflow: hidden;
}

.main-copy {
    color: #d30000 !important;
    font-size: 12px !important; 
    font-weight: 900 !important;
    line-height: 1.1;
    text-shadow: 1px 1px 0 rgba(255,255,255,1);
    margin-right: 4px;
    white-space: nowrap; 
}
.sub-copy {
    color: #999 !important;
    font-size: 8px !important;
    font-weight: bold;
    line-height: 1;
}

/* バッジ */
.dmm-float-sale-badge {
    position: static !important;
    display: inline-block !important;
    background: #ffeb3b; color: #d30000;
    font-size: 8px !important;
    font-weight: bold;
    padding: 0px 4px !important;
    border-radius: 3px !important;
    border: 1px solid #e6b422 !important;
    box-shadow: none !important;
    animation: none !important;
    vertical-align: middle;
    white-space: nowrap;
    line-height: 1.2;
}

/* サブボタン群 */
.dmm-sub-btns { display: flex; gap: 4px; margin-top: 1px; }
.dmm-sub-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
    color: #444 !important;
    font-size: 9px !important;
    font-weight: bold;
    text-decoration: none !important;
    padding: 3px 0 !important;
    border-radius: 3px !important;
    border: 1px solid #ddd;
    box-shadow: 0 1px 1px rgba(0,0,0,0.05);
    white-space: nowrap;
}
.dmm-sub-btn.tw {
    background: #000 !important;
    color: #fff !important;
    border-color: #000;
}

/* --------------------------------------------------
   ▼ PC用（769px以上）設定
-------------------------------------------------- */
@media screen and (min-width: 769px) {
    .dmm-floating-box {
        bottom: 20px !important;
        left: 20px !important;
        transform: none !important;
        
        width: auto !important;
        min-width: 300px !important;
        max-width: 450px !important;
        
        padding: 4px 10px !important; 
        animation: none !important;
    }
}


/************************************
** 7. セールピックアップ (自動横スクロール)
************************************/
.dmm-sale-section-box {
    border: 3px solid #ffeb3b; border-radius: 8px; padding: 15px 0; margin-bottom: 30px;
    background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.05); overflow: hidden;
}
.dmm-sale-section-title {
    text-align: center; font-size: 18px; font-weight: bold; color: #d30000;
    margin: 0 0 15px 0; border: none; padding: 0 10px;
}
.sale-fire { font-size: 20px; margin-right: 5px; }
.sale-sub { font-size: 12px; color: #666; font-weight: normal; display: inline-block; }
.dmm-auto-slide-container { width: 100%; overflow: hidden; position: relative; }
.dmm-auto-slide-track { display: flex; width: max-content; animation: dmmAutoScroll 40s linear infinite; }
.dmm-auto-slide-track:hover, .dmm-auto-slide-track:active { animation-play-state: paused; }
@keyframes dmmAutoScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.dmm-custom-grid-item {
    flex: 0 0 auto; width: 160px; margin: 0 10px; text-decoration: none !important;
    color: #333; transition: opacity 0.2s; white-space: normal;
}
.dmm-custom-grid-item:hover { opacity: 0.8; color: #d30000; transform: translateY(-2px); }
@media (min-width: 769px) { .dmm-custom-grid-item { width: 200px; margin: 0 15px; } }
.dmm-custom-grid-thumb {
    position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
    border-radius: 5px; margin-bottom: 5px; background: #f0f0f0;
}
.dmm-custom-grid-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dmm-grid-sale-badge {
    position: absolute; top: 0; left: 0; background: #ff0000; color: #fff;
    font-size: 10px; font-weight: bold; padding: 2px 8px;
    border-bottom-right-radius: 5px; z-index: 2; animation: pulse 2s infinite;
}
.dmm-custom-grid-title {
    font-size: 12px; line-height: 1.4; font-weight: bold; height: 2.8em;
    overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}


/************************************
** 8. 自動作品スペック表 [dmm_product_info]
************************************/
.dmm-spec-details { margin: 20px 0; border: 1px solid #ddd; border-radius: 5px; background: #fff; }
.dmm-spec-summary {
    padding: 12px 15px; font-weight: bold; cursor: pointer; background: #f5f5f5;
    list-style: none; position: relative; outline: none; font-size: 14px;
}
.dmm-spec-summary::after { content: "＋"; position: absolute; right: 15px; font-weight: bold; color: #666; }
.dmm-spec-details[open] .dmm-spec-summary::after { content: "－"; }
.dmm-spec-summary::-webkit-details-marker { display: none; }
.dmm-product-info-box { padding: 0; border-top: 1px solid #ddd; margin: 0; }
.dmm-spec-table { width: 100%; border-collapse: collapse; background: #fff; border: none; margin: 0; }
.dmm-spec-table th, .dmm-spec-table td {
    border: 1px solid #ddd; border-left: none; border-right: none; padding: 10px 15px; font-size: 13px;
}
.dmm-spec-table th { background: #f9f9f9; width: 30%; font-weight: bold; color: #555; white-space: nowrap; }


/************************************
** 9. 年齢認証・検索・モーダルその他
************************************/
.age-modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95); z-index: 99999; justify-content: center; align-items: center; color: #fff; text-align: center;
}
.age-modal-content { background: #222; padding: 30px; border-radius: 10px; max-width: 90%; width: 400px; border: 1px solid #555; }
.age-modal-content h2 { margin-bottom: 20px; color: #ff4444; font-size: 20px; }
.age-btn-group { display: flex; gap: 20px; justify-content: center; }
.age-btn-yes { padding: 10px 30px; background: #d30000; color: #fff; border: none; border-radius: 5px; font-weight: bold; cursor: pointer; }
.age-btn-no { padding: 10px 30px; background: #666; color: #fff; border: none; border-radius: 5px; text-decoration: none; display: flex; align-items: center; }

.video-modal { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.95); justify-content: center; align-items: center; z-index: 999999; }
.video-modal.active { display: flex; }
.video-modal-wrapper { position: relative; width: 100%; max-width: 1000px; display: flex; align-items: center; justify-content: center; }
.video-modal video, .video-modal img { max-width: 100%; max-height: 80vh; outline: none; }
.modal-close { position: absolute; top: -50px; right: 10px; background: rgba(255,255,255,0.2); color: #fff; border: none; font-size: 30px; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; justify-content: center; align-items: center; }
.modal-nav-prev, .modal-nav-next { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 40px; padding: 20px; cursor: pointer; opacity: 0.7; background: rgba(0,0,0,0.3); border-radius: 5px; }
.modal-nav-prev:hover, .modal-nav-next:hover { opacity: 1; background: rgba(0,0,0,0.6); }
.modal-nav-prev { left: 10px; } .modal-nav-next { right: 10px; }
.modal-mute { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); background: #d30000; color: #fff; border: none; padding: 10px 25px; border-radius: 30px; font-weight: bold; cursor: pointer; font-size: 14px; }
@media screen and (max-width: 768px) {
    .modal-nav-prev, .modal-nav-next { font-size: 24px; padding: 10px; width: 40px; height: 40px; display: flex; justify-content: center; align-items: center; }
}

/* 検索オートコンプリート */
.ui-autocomplete { background: #fff; border: 1px solid #ccc; max-height: 200px; overflow-y: auto; overflow-x: hidden; z-index: 99999; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); border-radius: 0 0 4px 4px; padding: 0; margin: 0; }
.ui-autocomplete .ui-menu-item { list-style: none; padding: 0; margin: 0; }
.ui-autocomplete .ui-menu-item-wrapper { padding: 8px 12px; font-size: 14px; color: #333; cursor: pointer; border-bottom: 1px solid #eee; display: block; }
.ui-autocomplete .ui-menu-item-wrapper:hover, .ui-autocomplete .ui-state-active { background: #f0f0f0; color: #000; border: none; margin: 0; }

.dmm-static-btn-wrap { margin: 30px 0; text-align: center; }
.dmm-static-btn { display: inline-block; background: #d30000; color: #fff !important; font-size: 20px; font-weight: bold; text-decoration: none !important; padding: 15px 40px; border-radius: 50px; box-shadow: 0 5px 15px rgba(211, 0, 0, 0.4); width: 80%; max-width: 400px; }
.btn-arrow { margin-left: 10px; }
.dmm-btn-note { font-size: 11px; color: #888; margin-top: 5px; }

/************************************
** 女優タグのデザイン（ピンク色）
************************************/
a.actress-tag {
    background-color: #fff0f5 !important; /* 薄いピンクの背景 */
    border: 1px solid #ffb6c1 !important; /* ピンクの枠線 */
    color: #d30000 !important;             /* 文字色（濃い赤） */
    font-weight: bold !important;
}

/* マウスを乗せた時 */
a.actress-tag:hover {
    background-color: #ffb6c1 !important;
    color: #fff !important;
    transform: translateY(-2px);
}

/* アイコン（ハート）をつける */
a.actress-tag::before {
    content: "♥";
    margin-right: 4px;
    font-size: 10px;
    color: #ff69b4;
}
/* ==============================================
   【修正】購入エリアの画像とボタンを縦積みに強制
   ※画像の横に文字が来るのを防ぎます
============================================== */
.dmm-buy-box-link {
    display: flex !important;           /* フレックスボックス化 */
    flex-direction: column !important;  /* 縦並びに強制 */
    align-items: center !important;     /* 中央揃え */
    justify-content: center !important;
    text-decoration: none !important;
    width: 100% !important;
}

.dmm-buy-box-link img {
    display: block !important;          /* 画像をブロック要素化 */
    margin: 0 auto 20px auto !important;/* 上下左右中央 & 下に隙間20px */
    width: 100% !important;
    max-width: 500px !important;        /* 画像の最大幅 */
    height: auto !important;
    border-radius: 8px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important; /* 画像にもリッチな影 */
}

/* ボタン周りの余計なマージンをリセットして調整 */
.dmm-buy-box-btn {
    margin: 0 auto !important;
    /* 以下のデザインは維持 */
    background: linear-gradient(to bottom, #ff5555, #cc0000) !important;
    color: #fff !important;
    width: 90% !important; max-width: 450px !important; padding: 20px 10px !important;
    border-radius: 50px !important; font-size: 22px !important; font-weight: 900 !important;
    border-bottom: 6px solid #990000 !important; box-shadow: 0 6px 15px rgba(200, 0, 0, 0.4) !important;
}
/************************************
** 記事トップのアイキャッチ画像を中央寄せ
************************************/
/* アイキャッチエリア全体を中央揃え */
.eye-catch {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
}

/* 画像自体を中央配置＆リッチ化 */
.eye-catch img {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
    height: auto !important;
    
    /* ついでに少し影と角丸をつけて、ポン置き感をなくす */
    box-shadow: 0 5px 15px rgba(0,0,0,0.15); 
    border-radius: 6px; 
}
/* 
/* /* /************************************
** 19. 女優自動プロフィールカード
************************************/
.dmm-actress-profile-box {
    margin: 40px 0;
    border: 2px solid #ffb6c1; /* ピンクの枠線 */
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.dmm-actress-header {
    background: #fff0f5; /* 薄いピンク背景 */
    padding: 10px 15px;
    border-bottom: 1px solid #ffb6c1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dmm-actress-badge {
    background: #ff69b4;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
}

.dmm-actress-name {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: bold !important;
    color: #d30000 !important;
    border: none !important;
    padding: 0 !important;
}

.dmm-actress-body {
    padding: 15px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.dmm-actress-img {
    flex: 0 0 120px;
    width: 120px;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #eee;
    background: #fafafa;
}

.dmm-actress-img img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: cover;
    margin: 0 !important;
}

.dmm-actress-info {
    flex: 1;
}

.dmm-actress-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px !important;
    font-size: 13px;
    border: none !important;
}

.dmm-actress-table th, 
.dmm-actress-table td {
    padding: 6px;
    border-bottom: 1px solid #eee;
    text-align: left;
    background: transparent !important;
}

.dmm-actress-table th {
    width: 30%;
    color: #888;
    font-weight: normal;
}

.dmm-actress-table td {
    font-weight: bold;
    color: #333;
}

.dmm-actress-link-btn {
    display: block;
    background: #d30000;
    color: #fff !important;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 14px;
    transition: opacity 0.2s;
}

.dmm-actress-link-btn:hover {
    opacity: 0.8;
}

/* スマホ用調整 */
@media screen and (max-width: 480px) {
    .dmm-actress-body {
        flex-direction: column;
    }
    .dmm-actress-img {
        width: 100px;
        margin: 0 auto 10px auto;
    }
    .dmm-actress-table th {
        width: 35%;
    }
}
/* タグページ上部表示用の調整 */
.dmm-actress-profile-box.archive-top {
    margin: 0 0 30px 0 !important; /* 上の余白をなくし、下に余白を作る */
    width: 100%;
    box-sizing: border-box;
}
/* 読み仮名と名前の調整 */
.dmm-name-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.dmm-actress-ruby {
    font-size: 10px;
    color: #d30000;
    font-weight: normal;
    margin-bottom: 0px;
}

/* カップ数を少し強調 */
.dmm-cup {
    font-size: 0.9em;
    color: #ff69b4; /* ピンク色 */
    margin-right: 3px;
}

/* スマホレイアウト調整（趣味などが長くなった場合用） */
@media screen and (max-width: 480px) {
    .dmm-actress-table th {
        width: 30% !important;
        white-space: nowrap;
    }
    .dmm-actress-table td {
        font-size: 12px;
    }
}
/************************************
** 7. チャットモーダル（ポップアップ）
************************************/
/* 背景の黒いフィルター */
.dmm-chat-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2147483647 !important; /* 浮遊ボタン(99990)より確実に上に表示 */
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px); /* すりガラス効果 */
}

/* ポップアップウィンドウ本体 */
.dmm-chat-modal-window {
    background: #fff;
    width: 95%;
    max-width: 500px;
    height: 80vh; /* 画面の80%の高さ */
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: chatPopIn 0.2s ease-out;
}

/* ぽよんと出るアニメーション */
@keyframes chatPopIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ヘッダー部分 */
.dmm-chat-header {
    background: #f5f5f5;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0; /* 縮ませない */
}
.dmm-chat-title-text {
    font-weight: bold;
    color: #333;
    font-size: 14px;
}
.dmm-chat-close-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    padding: 0 5px;
}

/* モーダル内のコンテンツ調整 */
.dmm-chat-modal-window .sidebar-chat-wrapper {
    height: 100% !important;
    display: flex;
    flex-direction: column;
}
.dmm-chat-modal-window .sidebar-chat-log {
    flex: 1; /* 残りの高さを全部使う */
    height: auto !important; /* 固定高さを解除 */
    overflow-y: auto;
    padding: 15px;
}

/* 既存CSSとの競合回避（埋め込み版の高さ制限をモーダルでは解除） */
.dmm-chat-modal-window .sidebar-chat-log {
    max-height: none !important;
}
