#custom_header {
  margin-top: 0;
  background-size: cover !important;
  max-width: 1166px;
  width: 100%;
  aspect-ratio: 1160 / 200;
  margin-inline: auto;

  @media (max-width: 576px) {
    background-image: url(https://gmtm.palette-design.net/wp-content/uploads/2025/02/fv_sp2.png) !important;
    aspect-ratio: 430 / 497;
  }
}

body.pd-page-full-template .page-title.entry-title {
  display: none;
}

.wp-block-heading,
.pd-newPost__title,
.pd-categoryPost__title,
.pd-popularPost__title {
  padding: 0.5em;
  font-size: 1.3em;
  color: #ffffff;
  background: #fb481a;
  border-bottom: solid 3px #ffd700;
  margin-top: 2.1em;
  margin-bottom: 1em;
}

.pd-newPost__list,
.pd-categoryPost__list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
}

.pd-newPost__item,
.pd-categoryPost__item {
  flex-grow: 1;
  max-width: calc(20% - 16px);

  /* 中画面: 画面幅の33.33%の幅で、左右に2%のマージン */
  @media (max-width: 992px) {
    max-width: calc(33.33% - 14px);
  }

  /* 小画面: 画面幅の50%の幅で、左右に2%のマージン */
  @media (max-width: 576px) {
    max-width: calc(50% - 10px);
  }
}

.pd-card__item {
  color: transparent;
}

.pd-card__item:hover {
  opacity: 0.8;
  color: transparent;
}

.pd-card__thumbnail {
  width: 100%;
  aspect-ratio: 189 / 126;
  overflow: hidden;
  display: grid;
  place-content: center;
}

.pd-card__thumbnail img {
  border: none;
  height: auto;
  vertical-align: middle;
  width: 100%;
}

.pd-card__body {
  padding: 10px 4px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

.pd-card__category {
  font-size: 0.875rem;
  align-self: flex-start;
  color: #444;
  background: #fcee21;
  padding: 2px 8px;
  border-radius: 2px;
}

.pd-card__title {
  color: #444;
  font-size: 1rem;
  text-decoration: none;
}

.pd-card__info {
  margin-top: auto;
}

.pd-card__date {
  color: #3e3e3e;
  font-size: 0.875rem;
}

.pd-btn {
  @media (max-width: 576px) {
    justify-content: center;
  }
}

.pd-btn a {
  background-color: #fb481a !important;
}

.pd-categoryPost__btn {
  margin-top: 30px;
  text-align: right;

  @media (max-width: 576px) {
    text-align: center;
  }
}

.pd-more-btn {
  color: #fff;
  background-color: #fb481a;
  border-radius: 9999px;
  box-shadow: none;
  text-decoration: none;
  padding: calc(0.667em + 2px) calc(1.333em + 2px);
  font-size: 1.125em;
}
