.share_list_container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px 10px;
    list-style: none;
    padding: 0;
    margin: 20px auto !important;
    max-width: 780px !important;
    box-sizing: border-box;
}

.share_list_container li {
    width: 100%;
    min-width: 0;
    display: block;
    box-sizing: border-box;
}

.share_list_container .share-list-item {
    width: 100%;
    max-height: 381px;
    box-sizing: border-box;
}

/* Myシェアリスト画面でのカードサイズ調整 */
.share_list_container .share-list-item.my-share-list-content {
    max-height: 500px;
}

/* シェアリスト作成編集完了画面でのカードサイズ調整 */
.share_list_container .share-list-item.edit-complete {
    max-height: 435px;
}

/* Completeページ専用：カード一枚を中央揃え */
.share-list-edit-complete {
    grid-template-columns: 1fr !important;
    justify-items: center;
}

.share-list-edit-complete li {
    width: 50%;
    max-width: 500px;
    min-width: 300px;
}

/* PC表示のみ、edit-completeページでのシェアリストカードのサイズを340pxに固定 */
@media screen and (min-width: 769px) {
    .share-list-edit-complete .share-list-item {
        width: 340px;
    }
}

/* シェアリストカード外観 */
.share-list-item {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0px 0px 2px 1px rgba(0, 0, 0, 0.15);
}

.share-list-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    border-color: #CCCCCC;
}

/* タイトル・説明表示エリア  */
.share-list-header {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
}

/* リストタイトル */
.share-list-title {
    font-size: 15px;
    font-weight: bold;
    overflow-wrap: break-word;
    text-align: left;
    height: 33px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

/* リスト説明 */
.share-list-description {
    font-size: 12px;
    color: #777777;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.2;
    max-height: 2.4em;
    min-height: 2.4em;
}

/* Safari専用の追加対策 */
@supports (-webkit-line-clamp: 2) {
    .share-list-description {
        /* Safari対策 descriptionの表示崩れを防ぐ */
        max-height: 2.3em; /* 1.15 × 2行 = 2.3em */
        min-height: 2.3em;
    }
}

/* 書影表示エリア  */
.share-list-covers {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
    padding-bottom: 5px;
    height: 160px;
}

.cover-item {
    position: relative;
    overflow: hidden;
    background: #FFFFFF;
    flex: 1;
    max-width: calc((100% - 12px) / 3);
    flex-shrink: 0;
    height: 160px; /* 高さを明示的に指定 */
}

.cover-item img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* アスペクト比を保ちながら要素内に収める */
    object-position: center; /* 画像を中央に配置 */
    display: block;
}

.cover-item.empty {
    background: #F0F0F0;
    border: 1px dashed #D0D0D0;
}

/* マスクカバー(センシティブコンテンツ用) */
.mask-cover-item {
    width: 100%;
    height: 140px;
    background-color: #999999;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mask-cover-text {
    color: #FFFFFF;
    font-size: 13px;
    text-align: center;
    padding: 0 10px;
    line-height: 1.5;
}

/* カード上部:書影＋リスト情報 */
.share-list-content {
    display: flex;
    flex-direction: column;
    padding: 12px;
    flex: 1;
    justify-content: flex-start;
    align-items: stretch;
}

.share-list-footer {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    width: 100%;
}

/* 書影以外の情報 */
/* タグ */
.tag-area {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.tag-item {
    display: inline-block;
    padding: 3px 8px;
    background-color: #FFE9DD;
    color: #FF5A00;
    border-radius: 16px;
    font-size: 11px;
    text-decoration: none;
}

.share-list-count {
    padding: 1px 5px;
    border-radius: 4px;
    min-width: 44px;
    font-size: 11px;
    background-color: #777777;
    color: #FFFFFF;
    text-align: center;
}

/* アイコン */
.share-list-has-user {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

/* ユーザー名 */
.share-list-has-user span {
    font-size: 11px;
    color: #777777;
    padding-top: 3px;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.3;
    min-width: 0;
}

.user-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #F5D5B0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.share-list-reaction {
    display: flex;
    gap: 10px;
}

.share-list-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 5px;
    width: 100%;
    margin-bottom: 5px;
    height: 75px;
    overflow: hidden;
}

.share-list-user {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 5px;
    width: 100%;
    height: 28px;
}

/* My公開リストの表示関連 */
/* 強制非公開メッセージ */
.share-list-force-unpublish {
    color: #D32F2F;
    font-weight: bold;
    margin: 0 auto 0 auto;
    font-size: 11px;
    height: 22px;
}

/* ステータス表示 */
.share-list-status-public {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid #FF6600;
    background: #FF6600;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    align-self: flex-start;
}

.share-list-status-unpublic {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid #333333;
    background: #333333;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    align-self: flex-start;
}

.share-list-status-draft {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid rgba(0, 0, 0, 0.5);
    background: #FFFFFF;
    color: rgba(0, 0, 0, 0.5);
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    align-self: flex-start;
}

/* ボタンエリア */
.share-list-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.share-list-actions button {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #DDDDDD;
    border-radius: 4px;
    background: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* タブレット・SP横画面対応 */
@media screen and (max-width: 950px) {
    .share_list_container .share-list-item {
        width: 100%;
        max-height: 381px;
        box-sizing: border-box;
    }

    /* Myシェアリスト画面でのカードサイズ調整 */
    .share_list_container .share-list-item.my-share-list-content {
        max-height: 500px;
    }

    /* シェアリスト作成編集完了画面でのカードサイズ調整 */
    .share_list_container .share-list-item.edit-complete {
        max-height: 435px;
    }

    .cover-item img {
        height: 160px;
    }
}

/* SP対応 */
@media screen and (max-width: 768px) {
    /* コンテナをSP版は1列表示に */
    .blcomp-partition.share-list-wide-padding {
        padding-left: 10px;
        padding-right: 10px;
    }

    .share_list_container {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    .share_list_container .share-list-item {
        max-height: none;
    }

    /* Myシェアリスト画面でのカードサイズ調整 */
    .share_list_container .share-list-item.my-share-list-content {
        max-height: none;
    }

    /* シェアリスト作成編集完了画面でのカードサイズ調整 */
    .share_list_container .share-list-item.edit-complete {
        max-height: none;
    }

    .share-list-content {
        align-items: stretch;
    }

    .share-list-footer {
        width: 100%;
    }

    /* タイトル・説明表示エリア（SP版では幅制限を追加） */
    .share-list-header {
        width: 100%;
        min-width: 0;
    }

    /* リストタイトル */
    .share-list-title {
        font-weight: bold;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow-wrap: break-word;
        width: 100%;
        height: auto;
        line-height: 1.2;
    }

    /* リスト説明 */
    .share-list-description {
        font-size: 13px;
        width: 100%;
        /* PC版の複数行表示プロパティを上書き */
        display: block;
        -webkit-box-orient: initial;
        -webkit-line-clamp: initial;
        line-clamp: initial;
        white-space: nowrap;
        height: auto;
        max-height: none !important;
        min-height: 0 !important;
    }

    /* 書影表示エリア  */
    .share-list-covers {
        height: auto;
    }

    .cover-item {
        flex: 1;
        max-width: calc((100% - 12px) / 3); /* 3つの画像 + 2つのgap(6px × 2) */
        height: auto !important;
    }

    .cover-item img {
        height: auto !important;
    }

    .mask-cover-item {
        width: 100%;
        height: 140px;
    }

    .tag-item {
        padding: 1px 8px;
        font-size: 10px;
    }

    .share-list-count {
        padding: 1px 0px;
        font-size: 10px;
    }

    .share-list-meta {
        height: auto;
    }

    .share-list-user {
        align-items: center;
        gap: 5px;
        height: auto;
    }

    .share-list-has-user {
        align-items: center;
        min-width: 0;
        flex: 1;
        font-size: 10px;
    }

    .share-list-has-user img {
        flex-shrink: 0;
    }

    .share-list-has-user span {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        min-width: 0;
        line-height: 25px;
        padding-top: 0;
    }

    .share-list-count {
        width: 48px;
    }

}
