/* ========================================
   サイドバー最新記事 - 画像サイズ修正 ULTRA版
   （超高詳細度で確実にマッチ）
   ======================================== */

/* .wp-block-latest-posts__list 内の画像（最も特定的） */
.wp-block-latest-posts__list .wp-block-latest-posts__featured-image img {
    width: 150px !important;
    height: 150px !important;
    max-width: 150px !important;
    max-height: 150px !important;
    min-width: 150px !important;
    min-height: 150px !important;
    object-fit: cover !important;
}

/* .wp-block-latest-posts__featured-image の親要素も制限 */
.wp-block-latest-posts__list .wp-block-latest-posts__featured-image {
    width: 150px !important;
    height: 150px !important;
    max-width: 150px !important;
    max-height: 150px !important;
    flex-shrink: 0 !important;
}

/* alignleft クラスを持つ画像コンテナ */
.wp-block-latest-posts__list .wp-block-latest-posts__featured-image.alignleft img {
    width: 150px !important;
    height: 150px !important;
    max-width: 150px !important;
    max-height: 150px !important;
}

/* has-dates クラスを持つリスト内の画像 */
.wp-block-latest-posts__list.has-dates .wp-block-latest-posts__featured-image img {
    width: 150px !important;
    height: 150px !important;
    max-width: 150px !important;
    max-height: 150px !important;
}

/* ul要素の wp-block-latest-posts 内の画像 */
ul.wp-block-latest-posts .wp-block-latest-posts__featured-image img {
    width: 150px !important;
    height: 150px !important;
    max-width: 150px !important;
    max-height: 150px !important;
}

/* 超高詳細度セレクタ（html body から開始） */
html body .wp-block-latest-posts__list .wp-block-latest-posts__featured-image img {
    width: 150px !important;
    height: 150px !important;
    max-width: 150px !important;
    max-height: 150px !important;
    min-width: 150px !important;
    min-height: 150px !important;
}

/* さらに詳細度を上げる */
html body ul.wp-block-latest-posts.wp-block-latest-posts__list .wp-block-latest-posts__featured-image.alignleft img {
    width: 150px !important;
    height: 150px !important;
    max-width: 150px !important;
    max-height: 150px !important;
    min-width: 150px !important;
    min-height: 150px !important;
    object-fit: cover !important;
}

/* attachment-thumbnail クラスを持つ画像（サムネイル画像） */
.wp-block-latest-posts__list img.attachment-thumbnail {
    width: 150px !important;
    height: 150px !important;
    max-width: 150px !important;
    max-height: 150px !important;
}

/* size-thumbnail クラスを持つ画像 */
.wp-block-latest-posts__list img.size-thumbnail {
    width: 150px !important;
    height: 150px !important;
    max-width: 150px !important;
    max-height: 150px !important;
}

/* wp-post-image クラスを持つ画像 */
.wp-block-latest-posts__list img.wp-post-image {
    width: 150px !important;
    height: 150px !important;
    max-width: 150px !important;
    max-height: 150px !important;
}

/* 3つのクラス全てを持つ画像（最も特定的） */
.wp-block-latest-posts__list img.attachment-thumbnail.size-thumbnail.wp-post-image {
    width: 150px !important;
    height: 150px !important;
    max-width: 150px !important;
    max-height: 150px !important;
    min-width: 150px !important;
    min-height: 150px !important;
    object-fit: cover !important;
}

/* メインコンテンツ内は除外（念のため） */
main .wp-block-latest-posts__list .wp-block-latest-posts__featured-image img,
article .wp-block-latest-posts__list .wp-block-latest-posts__featured-image img,
.entry-content .wp-block-latest-posts__list .wp-block-latest-posts__featured-image img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
}
