/* スライダー全体の余白と幅広対応 */
.universal-post-slider { margin: 2em auto; padding-bottom: 2.5em; width: 100%; }

/* ズレを解消して強制的に中央から広げる魔法のコード */
.universal-post-slider.alignfull,
.universal-post-slider.alignwide {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.universal-post-slider.alignfull { max-width: 100vw !important; }
.universal-post-slider.alignwide { max-width: 1200px !important; }

/* カード本体 */
.ups-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}
.ups-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* サムネイルとカテゴリーバッジ */
.ups-thumbnail { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; background: #f9f9f9; }
.ups-thumbnail a { display: block; width: 100%; height: 100%; }
.ups-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.ups-card:hover .ups-thumbnail img { transform: scale(1.05); }
.ups-no-image { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #aaa; font-size: 14px; }

.ups-cat-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #fff;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 4px;
    z-index: 2;
    pointer-events: none;
    letter-spacing: 0.5px;
}

/* テキストエリア（flexboxで隙間をきれいに調整） */
.ups-content { padding: 16px; flex-grow: 1; display: flex; flex-direction: column; gap: 8px; }
.ups-date { font-size: 0.8rem; color: #888; margin: 0; line-height: 1; }

/* タイトル（テーマの影響を受けないdiv設定） */
.ups-title { 
    font-size: 1.05rem; 
    margin: 0; 
    padding: 0;
    line-height: 1.4; 
    font-weight: bold; 
    border: none !important; 
    background: transparent !important;
}
.ups-title a { color: #333; text-decoration: none; box-shadow: none; border: none; }
.ups-title a:hover { opacity: 0.7; }

/* 抜粋文 */
.ups-excerpt { font-size: 0.85rem; color: #666; margin: 0; line-height: 1.5; }