/* ショートコード専用スタイル */

/* 共通スタイル */
.shortcode-video-list,
.shortcode-categories,
.shortcode-tags {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 100%;
    box-sizing: border-box;
}

.shortcode-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color, #e91e63);
    color: var(--text-color, #333);
}

.shortcode-empty {
    padding: 30px;
    text-align: center;
    color: #666;
    background: #f8f9fa;
    border-radius: 8px;
}

/* グリッドデザイン */
.design-grid .video-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
}

.design-grid .video-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.3s;
    position: relative;
}

.design-grid .video-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.design-grid .rank-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #ff6b6b, #e91e63);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(233, 30, 99, 0.3);
}

.design-grid .video-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.design-grid .video-thumb {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    background: #f0f0f0;
}

.design-grid .video-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f5f5f5;
    transition: transform 0.3s;
}

.design-grid .video-item:hover .video-thumb img {
    transform: scale(1.1);
}

.design-grid .video-info {
    padding: 12px;
}

.design-grid .video-title {
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 8px 0;
    color: var(--text-color, #333);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.design-grid .video-views {
    font-size: 0.85rem;
    color: #666;
}

/* リストデザイン */
.design-list .video-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.design-list .video-item {
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: all 0.3s;
    position: relative;
}

.design-list .video-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.design-list .rank-badge {
    flex-shrink: 0;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b6b, #e91e63);
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

.design-list .video-link {
    display: flex;
    flex: 1;
    text-decoration: none;
    color: inherit;
    align-items: center;
}

.design-list .video-thumb {
    width: 120px;
    height: 80px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f0f0f0;
}

.design-list .video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f5f5f5;
}

.design-list .video-info {
    padding: 10px 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.design-list .video-title {
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 5px 0;
    color: var(--text-color, #333);
}

.design-list .video-views {
    font-size: 0.8rem;
    color: #999;
}

/* スライダーデザイン */
.design-slider {
    overflow: hidden;
}

.design-slider .video-items-slider {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color, #e91e63) #f0f0f0;
    width: 100%;
}

.design-slider .video-items-slider::-webkit-scrollbar {
    height: 8px;
}

.design-slider .video-items-slider::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.design-slider .video-items-slider::-webkit-scrollbar-thumb {
    background: var(--primary-color, #e91e63);
    border-radius: 4px;
}

.design-slider .video-item {
    flex: 0 0 240px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.3s;
    position: relative;
}

.design-slider .video-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.design-slider .rank-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #ff6b6b, #e91e63);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
    z-index: 10;
}

.design-slider .video-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.design-slider .video-thumb {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    background: #f0f0f0;
}

.design-slider .video-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f5f5f5;
}

.design-slider .video-info {
    padding: 12px;
}

.design-slider .video-title {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0 0 5px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.design-slider .video-views {
    font-size: 0.8rem;
    color: #999;
}

/* カテゴリリスト */
.shortcode-categories .category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.shortcode-categories .category-list li {
    margin: 0;
}

.shortcode-categories .category-list a {
    display: inline-block;
    padding: 8px 16px;
    background: #f5f5f5;
    color: var(--text-color, #333);
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s;
}

.shortcode-categories .category-list a:hover {
    background: var(--primary-color, #e91e63);
    color: white;
}

/* タグクラウド */
.shortcode-tags .tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.shortcode-tags .tag {
    display: inline-block;
    padding: 6px 14px;
    background: #f5f5f5;
    color: var(--text-color, #333);
    text-decoration: none;
    border-radius: 15px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.shortcode-tags .tag:hover {
    background: var(--primary-color, #e91e63);
    color: white;
    transform: translateY(-2px);
}

/* ポップアップスタイル */
.site-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.popup-container {
    position: relative;
    max-width: 500px;
    width: 90%;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.popup-close:hover {
    background: #e91e63;
    color: white;
}

.popup-header {
    padding: 25px 25px 0;
}

.popup-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.popup-body {
    padding: 20px 25px;
    line-height: 1.7;
    color: #555;
}

.popup-footer {
    padding: 0 25px 25px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.popup-cta {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-color, #e91e63), var(--secondary-color, #9c27b0));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s;
}

.popup-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
}

.popup-dismiss {
    padding: 12px 20px;
    background: #f5f5f5;
    color: #666;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.popup-dismiss:hover {
    background: #e0e0e0;
}

/* オーバーレイ広告スタイル */
.site-overlay {
    animation: overlaySlideIn 0.3s ease-out;
}

@keyframes overlaySlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.overlay-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.overlay-close {
    transition: all 0.3s;
}

.overlay-close:hover {
    background: rgba(255, 255, 255, 0.4) !important;
    transform: rotate(90deg);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .shortcode-video-list,
    .shortcode-categories,
    .shortcode-tags {
        padding: 15px;
        margin: 15px 0;
    }

    .shortcode-title {
        font-size: 1.2rem;
    }

    .design-grid .video-items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .design-list .video-thumb {
        width: 100px;
        height: 65px;
    }

    .design-list .video-info {
        padding: 8px 10px;
    }

    .design-slider .video-item {
        flex: 0 0 200px;
    }

    .popup-container {
        width: 95%;
        margin: 20px;
    }

    .popup-header h2 {
        font-size: 1.2rem;
        padding-right: 30px;
    }

    .popup-footer {
        flex-direction: column;
    }

    .overlay-content {
        flex-direction: column;
        text-align: center;
        padding: 15px !important;
    }
}

@media (max-width: 480px) {
    .design-grid .video-items-grid {
        grid-template-columns: 1fr;
    }

    .design-list .rank-badge {
        width: 30px;
        font-size: 0.9rem;
    }
}

/* ========================================
   DMM/FANZA ショートコード専用スタイル
   親コンテナ（メイン/サイドバー）に自動適応
   ======================================== */

.dmm-shortcode {
    margin: 15px 0;
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    /* 親コンテナ内に収める */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* サイドバー内のショートコード */
.sidebar .dmm-shortcode,
.freespace-widget .dmm-shortcode,
.widget .dmm-shortcode {
    padding: 10px;
    margin: 0;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
    overflow: hidden;
}

.dmm-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color, #e91e63);
    color: var(--text-color, #333);
    word-wrap: break-word;
}

.sidebar .dmm-title,
.widget .dmm-title {
    font-size: 1rem;
    margin-bottom: 10px;
    padding-bottom: 8px;
}

/* DMM グリッドデザイン - 親幅に自動適応 */
.dmm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

/* サイドバー内は2列固定 */
.sidebar .dmm-grid,
.freespace-widget .dmm-grid,
.widget .dmm-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.dmm-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.3s;
    position: relative;
}

.dmm-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.dmm-rank {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #ff6b6b, #e91e63);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(233, 30, 99, 0.3);
}

.dmm-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.dmm-thumb {
    position: relative;
    padding-top: 140%;
    overflow: hidden;
    background: #f0f0f0;
}

.dmm-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f0f0f0;
    transition: transform 0.3s;
}

.dmm-item:hover .dmm-thumb img {
    transform: scale(1.05);
}

.dmm-info {
    padding: 12px;
}

.dmm-item-title {
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0 0 8px 0;
    color: var(--text-color, #333);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.4em;
}

.dmm-price {
    font-size: 0.9rem;
    font-weight: bold;
    color: #e91e63;
    margin-right: 8px;
}

.dmm-review {
    font-size: 0.8rem;
    color: #ff9800;
}

/* DMM リストデザイン */
.dmm-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dmm-list-item {
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.dmm-list-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.dmm-list-rank {
    flex-shrink: 0;
    width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b6b, #e91e63);
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

.dmm-list-link {
    display: flex;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.dmm-list-thumb {
    width: 100px;
    height: 140px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f0f0f0;
}

.dmm-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f5f5f5;
}

.dmm-list-info {
    padding: 12px 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dmm-list-title {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 8px 0;
    color: var(--text-color, #333);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.dmm-list-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
}

.dmm-maker {
    margin-right: 10px;
}

.dmm-actress {
    color: #e91e63;
}

.dmm-list-bottom {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* DMM スライダーデザイン */
.dmm-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.dmm-slider-prev,
.dmm-slider-next {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--primary-color, #e91e63);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dmm-slider-prev:hover,
.dmm-slider-next:hover {
    background: #c2185b;
    transform: scale(1.1);
}

.dmm-slider {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.dmm-slider-track {
    display: flex;
    gap: 12px;
    transition: transform 0.3s ease;
}

.dmm-slider-item {
    flex: 0 0 240px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.dmm-slider-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.dmm-slider-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.dmm-slider-item img {
    width: 100%;
    height: 330px;
    object-fit: contain;
    background: #f5f5f5;
}

.dmm-slider-caption {
    padding: 8px;
}

.dmm-slider-caption h4 {
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0 0 5px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* DMM フィーチャードデザイン */
.dmm-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dmm-featured-main {
    grid-row: span 2;
}

.dmm-featured-main a {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.dmm-featured-main a:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.dmm-featured-image {
    position: relative;
    overflow: hidden;
}

.dmm-featured-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    background: #f5f5f5;
    transition: transform 0.3s;
}

.dmm-featured-main:hover .dmm-featured-image img {
    transform: scale(1.03);
}

.dmm-featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #ffd700, #ff9800);
    color: #333;
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

.dmm-featured-info {
    padding: 20px;
}

.dmm-featured-info h4 {
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0 0 10px 0;
    color: var(--text-color, #333);
}

.dmm-featured-info p {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    color: #666;
}

.dmm-featured-info .dmm-actress {
    color: #e91e63;
}

.dmm-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0;
}

.dmm-genre-tag {
    padding: 4px 10px;
    background: #f5f5f5;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #666;
}

.dmm-featured-footer {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.dmm-price-large {
    font-size: 1.3rem;
    font-weight: bold;
    color: #e91e63;
}

.dmm-review-large {
    font-size: 1rem;
    color: #ff9800;
}

/* フィーチャードサブアイテム */
.dmm-featured-sub {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dmm-featured-sub-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.dmm-featured-sub-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.dmm-featured-sub-item a {
    display: flex;
    text-decoration: none;
    color: inherit;
    align-items: center;
}

.dmm-sub-rank {
    flex-shrink: 0;
    width: 35px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff8a80, #e91e63);
    color: white;
    font-weight: bold;
    font-size: 1rem;
}

.dmm-featured-sub-item img {
    width: 60px;
    height: 80px;
    object-fit: contain;
    background: #f5f5f5;
    flex-shrink: 0;
}

.dmm-sub-info {
    padding: 8px 12px;
    flex: 1;
}

.dmm-sub-info h5 {
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0 0 5px 0;
    color: var(--text-color, #333);
}

/* DMM レスポンシブ */
@media (max-width: 768px) {
    .dmm-shortcode {
        padding: 15px;
    }

    .dmm-title {
        font-size: 1.2rem;
    }

    .dmm-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .dmm-list-thumb {
        width: 80px;
        height: 112px;
    }

    .dmm-slider-prev,
    .dmm-slider-next {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .dmm-slider-item {
        flex: 0 0 200px;
    }

    .dmm-slider-item img {
        height: 280px;
    }

    .dmm-featured {
        grid-template-columns: 1fr;
    }

    .dmm-featured-main {
        grid-row: auto;
    }

    .dmm-featured-sub {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .dmm-featured-sub-item {
        flex: 1 1 calc(50% - 6px);
    }
}

@media (max-width: 480px) {
    .dmm-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dmm-slider-wrapper {
        gap: 5px;
    }

    .dmm-slider-item {
        flex: 0 0 170px;
    }

    .dmm-slider-item img {
        height: 240px;
    }

    .dmm-featured-sub-item {
        flex: 1 1 100%;
    }
}

/* ================================================
   モバイル完全対応（768px以下）- 最優先
   ================================================ */
@media (max-width: 768px) {
    /* DMM グリッド - 全data-countを2列に強制 */
    .dmm-grid,
    .dmm-grid[data-count],
    .dmm-grid[data-count="1"],
    .dmm-grid[data-count="2"],
    .dmm-grid[data-count="3"],
    .dmm-grid[data-count="4"],
    .dmm-grid[data-count="5"],
    .dmm-grid[data-count="6"],
    .dmm-grid[data-count="7"],
    .dmm-grid[data-count="8"],
    .dmm-grid[data-count="9"],
    .dmm-grid[data-count="10"],
    .dmm-grid[data-count="12"],
    .dmm-grid[data-count="15"],
    .dmm-grid[data-count="20"] {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    /* DMM ショートコード全体 */
    .dmm-shortcode {
        max-width: 100% !important;
        overflow: hidden !important;
        padding: 10px !important;
        box-sizing: border-box !important;
    }

    /* DMM アイテム */
    .dmm-item {
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .dmm-thumb {
        max-width: 100% !important;
    }

    .dmm-thumb img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }

    /* スライダー - タッチスクロール対応 */
    .dmm-slider-wrapper {
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .dmm-slider {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .dmm-slider-track {
        transform: none !important;
    }

    .dmm-slider-prev,
    .dmm-slider-next {
        display: none !important;
    }

    .dmm-slider-item {
        flex: 0 0 45vw !important;
        max-width: 45vw !important;
    }

    .dmm-slider-item img {
        width: 100% !important;
        height: auto !important;
        max-height: 180px !important;
    }

    /* ビデオリスト系 */
    .shortcode-video-list,
    .shortcode-categories,
    .shortcode-tags {
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .design-grid .video-items-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .design-slider {
        overflow: hidden !important;
    }

    .design-slider .video-items-slider {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .design-slider .video-item {
        flex: 0 0 45vw !important;
        max-width: 45vw !important;
    }
}

/* 480px以下 */
@media (max-width: 480px) {
    .dmm-grid,
    .dmm-grid[data-count],
    .dmm-grid[data-count="10"] {
        gap: 6px !important;
    }

    .dmm-slider-item {
        flex: 0 0 55vw !important;
        max-width: 55vw !important;
    }

    .design-slider .video-item {
        flex: 0 0 60vw !important;
        max-width: 60vw !important;
    }

    .dmm-item-title {
        font-size: 0.75rem !important;
    }

    .dmm-price,
    .dmm-review {
        font-size: 0.7rem !important;
    }

    .dmm-rank {
        width: 20px !important;
        height: 20px !important;
        font-size: 10px !important;
        top: 5px !important;
        left: 5px !important;
    }
}
