/* ブログ共通の検索・目次・記事間ナビゲーション。 */
.blog-breadcrumbs {
  display: flex; align-items: center; gap: 8px;
  width: min(1200px, 100%); margin: 0 auto; padding: 24px 24px 12px;
  color: #8a734e; font-size: 12px;
}
.blog-breadcrumbs a { flex-shrink: 0; color: #96691c; text-decoration: none; }
.blog-breadcrumbs span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blog-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 288px;
  gap: 36px; max-width: 1200px; margin: 0 auto; padding: 0 24px 48px;
  align-items: start;
}
.blog-main { min-width: 0; }
.blog-main > .wrap, .blog-main > .wrap-wide { width: 100%; max-width: none; padding: 0 0 24px; }
.blog-main > .post-article { max-width: 760px; padding-top: 10px !important; }
.blog-main > .wrap-wide > header { padding-top: 6px !important; }
.blog-layout .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.blog-layout .post-card[hidden], .blog-no-results[hidden] { display: none; }
.blog-layout .post-card { min-width: 0; }
.blog-layout .post-card h3 { overflow-wrap: anywhere; }
.blog-sidebar { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; scrollbar-width: thin; }
.blog-directory { padding: 20px; background: rgba(255,250,240,.94); border: 1px solid #e3c98f; border-radius: 16px; }
.blog-directory > summary { font-weight: 700; color: #4a3826; cursor: pointer; }
.blog-directory-content { min-width: 0; }
.blog-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin: 0 0 22px; }
.blog-search label { grid-column: 1 / -1; font-size: 13px; font-weight: 700; }
.blog-search input { min-width: 0; width: 100%; padding: 11px 10px; font: inherit; font-size: 13px; background: #fff; color: #4a3826; border: 1px solid #c9a15a; border-radius: 8px; }
.blog-search button { padding: 10px 13px; border: 0; border-radius: 8px; background: #96691c; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.blog-sidebar-section + .blog-sidebar-section { margin-top: 24px; }
.blog-sidebar-section h2 { margin: 0 0 12px; font-size: 19px; line-height: 1.5; color: #4a3826; }
.blog-link-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.blog-link-list a { display: block; padding: 12px; border: 1px solid #e3c98f; border-radius: 9px; color: #765019; background: #fff; text-decoration: none; font-size: 13px; font-weight: 700; line-height: 1.7; overflow-wrap: anywhere; }
.blog-link-list a:hover, .blog-link-list a[aria-current="page"] { background: #f6ecd1; border-color: #bc934b; }
.blog-topic-list { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-topic-link { display: inline-block; padding: 7px 11px; border: 1px solid #e3c98f; border-radius: 999px; background: #fff; color: #765019; text-decoration: none; font-size: 12px; }
.blog-topic-link:hover, .blog-topic-link[aria-current] { background: #f6ecd1; border-color: #bc934b; }
.blog-toc { margin: 0 0 24px; padding: 16px 20px; border: 1px solid #e3c98f; border-radius: 12px; background: rgba(255,250,240,.9); }
.blog-toc > summary { color: #765019; font-size: 15px; font-weight: 700; cursor: pointer; }
.blog-toc-list { margin: 12px 0 0; padding-left: 24px; }
.blog-toc-list li { padding: 4px 0; font-size: 14px; line-height: 1.7; }
.blog-toc-list a { color: #765019; text-decoration-color: #d8b86a; text-underline-offset: 3px; }
.blog-has-navigation .post-article h2 { scroll-margin-top: 24px; }
.blog-results-status { margin: 20px 0 0; color: #8a734e; font-size: 13px; }
.blog-no-results { padding: 24px; border: 1px dashed #c9a15a; border-radius: 12px; background: #fffaf0; }
.blog-related { margin-top: 36px; padding-top: 14px; border-top: 1px solid #e3c98f; }
.blog-related-grid { display: grid; gap: 12px; }
.blog-related-card { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 12px; border: 1px solid #e3c98f; border-radius: 12px; text-decoration: none; color: #765019; background: #fffaf0; }
.blog-related-card:hover { border-color: #bc934b; background: #f6ecd1; }
.blog-related-card img { width: 88px; height: 66px; flex-shrink: 0; border-radius: 7px; object-fit: cover; background: #f3e1b8; }
.blog-related-card span { min-width: 0; font-size: 14px; font-weight: 700; line-height: 1.7; overflow-wrap: anywhere; }
.blog-post-pagination { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
.blog-post-pagination a { display: block; padding: 15px; border: 1px solid #e3c98f; border-radius: 12px; background: #fffaf0; color: #765019; text-decoration: none; font-size: 13px; font-weight: 700; line-height: 1.7; overflow-wrap: anywhere; }
.blog-post-pagination a:hover { background: #f6ecd1; }
.blog-all-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 24px 0 0; }
.blog-all-links a { display: inline-block; padding: 10px 19px; border: 1px solid #c9a15a; border-radius: 999px; background: #fffaf0; color: #765019; text-decoration: none; font-size: 13px; font-weight: 700; }
.blog-has-navigation :is(a, button, input, summary):focus-visible { outline: 3px solid #96691c; outline-offset: 3px; }
@media (min-width: 901px) { .blog-directory > summary { margin-bottom: 16px; font-size: 14px; } }
@media (max-width: 900px) {
  .blog-breadcrumbs { padding: 18px 18px 10px; }
  .blog-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 0 18px 30px; }
  .blog-sidebar { order: -1; position: static; max-height: none; overflow: visible; }
  .blog-directory { padding: 14px 16px; }
  .blog-directory[open] > summary { margin-bottom: 18px; }
  .blog-main > .post-article { max-width: 760px; }
}
@media (max-width: 560px) {
  .blog-breadcrumbs { padding-left: 14px; padding-right: 14px; }
  .blog-layout { padding-left: 14px; padding-right: 14px; }
  .blog-layout .post-grid { grid-template-columns: minmax(0, 1fr); }
  .blog-toc { padding: 14px 16px; }
  .blog-post-pagination { grid-template-columns: minmax(0, 1fr); }
  .blog-related-card img { width: 72px; height: 58px; }
}
