/* コラム一覧と記事下部関連記事だけ。本文・商品・絵本・カテゴリー一覧は対象外。 */
#body_wrap.page-id-59 .ak-column-query .wp-block-post-featured-image {
  aspect-ratio:16 / 9; overflow:hidden; background:#faf5f1;
}
#body_wrap.page-id-59 .ak-column-query .wp-block-post-featured-image a {
  display:flex; align-items:center; justify-content:center; width:100%; height:100%;
}
#body_wrap.page-id-59 .ak-column-query .wp-block-post-featured-image img {
  display:block; width:100%!important; height:100%!important;
  max-width:100%!important; max-height:100%!important;
  aspect-ratio:auto!important; object-fit:contain!important;
  object-position:center center!important; margin:0; transform:none!important;
}
#body_wrap.single-post .l-articleBottom__section.-related .p-relatedPosts .c-postThumb__figure {
  aspect-ratio:16 / 9; overflow:hidden; background:#faf5f1;
}
#body_wrap.single-post .l-articleBottom__section.-related .p-relatedPosts .c-postThumb__figure::before {
  display:none!important; padding-top:0!important;
}
#body_wrap.single-post .l-articleBottom__section.-related .p-relatedPosts .c-postThumb__img {
  display:block; position:absolute; inset:0;
  width:100%!important; height:100%!important;
  max-width:100%!important; max-height:100%!important;
  object-fit:contain!important; object-position:center center!important;
  transform:none!important;
}
@media (max-width:600px) {
  #body_wrap.page-id-59 .ak-column-query .wp-block-post-featured-image,
  #body_wrap.single-post .l-articleBottom__section.-related .p-relatedPosts .c-postThumb__figure {
    aspect-ratio:1 / 1!important;
  }
}

/* 既存サムネ全体表示CSSの後へ追加。固定ページ59の記事Query Loopだけ。 */
@media (min-width:360px) and (max-width:600px) {
 #body_wrap.page-id-59 .ak-column-query .wp-block-post-template {
  display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:18px 12px!important;
 }
}
@media (max-width:359px) {
 #body_wrap.page-id-59 .ak-column-query .wp-block-post-template {
  display:grid!important; grid-template-columns:minmax(0,1fr)!important;
  gap:20px!important;
 }
}
@media (max-width:600px) {
 #body_wrap.page-id-59 .ak-column-query .wp-block-post-template > .wp-block-post {min-width:0;}
 #body_wrap.page-id-59 .ak-column-query .wp-block-post-title {
  margin:10px 10px 6px!important; padding:0!important; font-size:15px!important; line-height:1.6!important;
 }
 #body_wrap.page-id-59 .ak-column-query .wp-block-post-title a {
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3;
  overflow:hidden; min-height:48px; overflow-wrap:anywhere;
 }
 #body_wrap.page-id-59 .ak-column-query .wp-block-post-excerpt {margin:0 10px 10px!important;font-size:13px!important;line-height:1.65!important;}
 #body_wrap.page-id-59 .ak-column-query .wp-block-post-excerpt__excerpt {
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2;
  overflow:hidden; margin:0!important; font-size:13px!important;line-height:1.65!important;
 }
 #body_wrap.page-id-59 .ak-column-query .wp-block-post-excerpt__more-text {margin:4px 0 0!important;}
 #body_wrap.page-id-59 .ak-column-query .wp-block-post-excerpt__more-link {
  display:inline-flex;align-items:center;min-height:44px;padding:4px 0;font-size:13px;
 }
 #body_wrap.page-id-59 .ak-column-query .wp-block-post-title a:focus-visible,
 #body_wrap.page-id-59 .ak-column-query .wp-block-post-excerpt__more-link:focus-visible {
  outline:2px solid #a85f55;outline-offset:2px;
 }
}

/* お食い初めカテゴリのメイン一覧だけ。ほかのカテゴリ・サイドバーは変更しない。 */
#body_wrap.category-okuizome #main_content .p-termContent .p-postList .c-postThumb__figure {
 aspect-ratio:16 / 9; background:#faf5f1; overflow:hidden;
}
#body_wrap.category-okuizome #main_content .p-termContent .p-postList .c-postThumb__figure::before {display:none!important;padding-top:0!important;}
#body_wrap.category-okuizome #main_content .p-termContent .p-postList .c-postThumb__img {
 width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;transform:none!important;
}
@media(max-width:600px) {
 #body_wrap.category-okuizome #main_content .p-termContent .p-postList {
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px 12px!important;margin:0!important;
 }
 #body_wrap.category-okuizome #main_content .p-termContent .p-postList > .p-postList__item {
  width:auto!important;min-width:0;margin:0!important;padding:0!important;
 }
 #body_wrap.category-okuizome #main_content .p-termContent .p-postList .c-postThumb__figure {aspect-ratio:1 / 1!important;}
 #body_wrap.category-okuizome #main_content .p-termContent .p-postList .c-postThumb__cat {display:none;}
 #body_wrap.category-okuizome #main_content .p-termContent .p-postList .p-postList__title {
  font-size:15px!important;line-height:1.6!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;overflow-wrap:anywhere;margin:10px 0 6px!important;
 }
 #body_wrap.category-okuizome #main_content .p-termContent .p-postList .p-postList__excerpt {
  display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:13px!important;line-height:1.65!important;margin-top:0!important;
 }
 #body_wrap.category-okuizome #main_content .p-termContent .p-postList .p-postList__link {min-height:44px;}
 #body_wrap.category-okuizome #main_content .p-termContent .p-postList .p-postList__link:focus-visible {outline:2px solid #a85f55;outline-offset:2px;}
}
@media(max-width:359px) {
 #body_wrap.category-okuizome #main_content .p-termContent .p-postList {grid-template-columns:minmax(0,1fr)!important;}
}

/* v0.3.0: Search result thumbnails only. Keep result order, columns and text.
 * The source image is contained, never enlarged on hover. No image URL changes.
 * Preserve the existing 16:9 desktop frame. Add square search frames below
 * 601px, following the existing column/category/related-image convention.
 */
#body_wrap.search #main_content .p-searchContent > .p-postList .c-postThumb__figure {
  position:relative; aspect-ratio:16 / 9; overflow:hidden; background:#faf5f1;
}
#body_wrap.search #main_content .p-searchContent > .p-postList .c-postThumb__figure::before {
  display:none!important; padding-top:0!important;
}
#body_wrap.search #main_content .p-searchContent > .p-postList .c-postThumb__img {
  display:block; position:absolute; inset:0;
  width:100%!important; height:100%!important;
  max-width:100%!important; max-height:100%!important;
  object-fit:contain!important; object-position:center center!important;
  transform:none!important;
}
@media (max-width:600px) {
  #body_wrap.search #main_content .p-searchContent > .p-postList .c-postThumb__figure {
    aspect-ratio:1 / 1!important;
  }
}
