/* ブログ一覧専用。共通のstyle.cssの後に読み込みます。 */
.blog-listing-page {
  overflow: clip;
  background: #fffcf9;
}

.blog-listing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: start;
  gap: 40px;
  padding-block: 60px 85px;
}

.blog-listing-results {
  min-width: 0;
}

.blog-listing-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 24px;
}

.blog-listing-heading h2 {
  margin: 0;
  color: #374249;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 23px;
}

.blog-listing-heading p {
  margin: 0;
  color: #79857d;
  font-size: 12px;
}

.blog-post-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.blog-post-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #eee8e1;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(65, 60, 45, .035);
}

.blog-post-photo {
  display: block;
  overflow: hidden;
  background: #eef5ef;
}

.blog-post-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .35s ease;
}

.blog-post-photo:hover img {
  transform: scale(1.035);
}

.blog-post-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.blog-post-content h3 {
  margin: 0 0 15px;
  color: #374249;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 19px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.blog-post-content h3 a:hover {
  color: #348775;
}

.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.blog-post-category {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.blog-post-category.category-chouchou {
  background: #f27609;
  color: #fff;
}

.blog-post-category.category-daisy {
  background: #f7d600;
  color: #374249;
}

.blog-post-category.category-luce {
  background: #8224e3;
  color: #fff;
}

.blog-post-meta time {
  color: #858d87;
  font-size: 12px;
}

.blog-post-excerpt {
  display: -webkit-box;
  margin: 0 0 20px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: #6d7870;
  font-size: 13px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.blog-post-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #eef0e9;
  color: #348775;
  font-size: 13px;
  font-weight: 600;
}

.blog-post-more span {
  position: relative;
  display: block;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #edf7ef;
  font-size: 0;
  line-height: 0;
}

.blog-post-more span::after {
  content: "";
  position: absolute;
  top: calc(50% - 1px);
  left: calc(50% - 2px);
  width: 7px;
  height: 7px;
  box-sizing: border-box;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}

.blog-categories {
  padding: 26px 22px;
  border: 1px solid #e6ede3;
  border-radius: 22px;
  background: #f4f9f2;
}

.blog-categories-en {
  margin: 0 0 4px;
  color: #59bda5;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 15px;
}

.blog-categories h2 {
  margin: 0 0 18px;
  color: #374249;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 21px;
}

.blog-category-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-category-list li + li {
  border-top: 1px solid #e0e8dd;
}

.blog-category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 12px 0;
  border: 0;
  background: transparent;
  color: #55655a;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.blog-category-list a[aria-current="page"] {
  color: #287855;
  font-weight: 700;
}

.blog-category-count {
  flex-shrink: 0;
  min-width: 28px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff;
  color: #65786a;
  font-size: 11px;
  text-align: center;
}

.blog-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 42px;
}

.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #dbe7d7;
  border-radius: 12px;
  background: #fff;
  color: #54645a;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.blog-pagination .page-numbers.current {
  border-color: #59bda5;
  background: #59bda5;
  color: #fff;
}

.blog-pagination span.page-numbers {
  cursor: default;
}

.blog-pagination .is-disabled {
  opacity: .4;
  cursor: default;
  pointer-events: none;
}

.blog-pagination a.page-numbers:hover,
.blog-category-list a:hover {
  color: #287855;
}

/* PC：カテゴリー欄を固定ヘッダーの下で追従 */
@media (min-width: 761px) {
  .blog-categories {
    position: sticky;
    top: calc(var(--header-height, 81px) + 24px);
    max-height: calc(100dvh - var(--header-height, 81px) - 48px);
    overflow-y: auto;
  }
}

@media (max-width: 980px) {
  .blog-listing-layout {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 24px;
  }

  .blog-post-list {
    gap: 20px;
  }

  .blog-post-content {
    padding: 18px;
  }
}

@media (max-width: 760px) {
  .blog-listing-layout {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 36px 50px;
  }

  .blog-categories {
    grid-row: 2;
    padding: 20px;
  }

  .blog-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .blog-category-list li + li {
    border: 0;
  }

  .blog-category-list a {
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid #dbe7d7;
    border-radius: 999px;
    background: #fff;
  }

  .blog-category-list a[aria-current="page"] {
    border-color: #74b997;
    background: #eaf5e7;
  }
}

@media (max-width: 480px) {
  .blog-post-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .blog-post-content {
    padding: 22px;
  }

  .blog-listing-heading h2 {
    font-size: 21px;
  }

  .blog-pagination {
    gap: 6px;
    margin-top: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-post-photo img {
    transition: none;
  }
}
