.news-filter {
  margin-bottom: 3rem;
}

@media screen and (min-width: 768px) {
  .news-filter {
    margin-bottom: 4rem;
  }
}

.news-filter__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: left;
}

@media screen and (min-width: 768px) {
  .news-filter__buttons {
    gap: 1.2rem;
  }
}

.news-filter__button {
  background-color: #fff;
  border: 1px solid #ddd;
  color: #333;
  padding: 0.5rem 1.5rem;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 20px;
  font-family: inherit;
  text-transform: uppercase;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

@media screen and (min-width: 768px) {
  .news-filter__button {
    padding: 0.5rem 1.5rem;
    font-size: 1.2rem;
    height: 30px;
  }
}

.news-filter__button:hover {
  background-color: #f5f5f5;
  border-color: #999;
}

.news-filter__button.active {
  background-color: #000;
  color: #fff;
  border-color: #000;
}

.news-filter__button.active:hover {
  background-color: #333;
}

/* カテゴリーラベルのスタイル */
.post-categories {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
}

.post-category {
  background-color: #000;
  color: #fff;
  padding: 0.3rem 0.6rem;
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
  display: inline-block;
  border-radius: 4px;
}

@media screen and (min-width: 768px) {
  .post-category {
    font-size: 1.1rem;
    padding: 0.4rem 0.8rem;
  }
}

/* カードのレイアウト調整 */
.p-bottom-blog2__item {
  border: 1px solid #e0e0e0;
  background-color: #fff;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.p-bottom-blog2__item.hidden {
  display: none;
}

.p-bottom-blog2__img {
  position: relative;
}

.p-bottom-blog2__body {
  padding: 2rem 1.5rem;
}

@media screen and (min-width: 768px) {
  .p-bottom-blog2__body {
    padding: 2.5rem 2rem;
  }
}

.p-bottom-blog2__title {
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 1rem;
  color: #333;
}

@media screen and (min-width: 768px) {
  .p-bottom-blog2__title {
    font-size: 1.8rem;
  }
}

.p-bottom-blog2__text {
  color: #666;
  line-height: 1.6;
  font-size: 1.4rem;
}

.p-bottom-blog2__items {
  transition: all 0.3s ease;
}