.p-news-page {
  background: #fff;
}

.p-news-page .l-container {
  max-width: 1240px;
}

.p-news-hero {
  --sub-hero-height: 268px;
  --sub-hero-overflow: visible;
  --sub-hero-image: url("../images/news-bg.jpg");
  --sub-hero-image-height: 268px;
  --sub-hero-image-position: center 55%;
  --sub-hero-panel-height: 268px;
  --sub-hero-inner-display: block;
  --sub-hero-inner-padding-top: 56px;
  --sub-hero-breadcrumb-bottom: -36px;
}

.p-news-content {
  padding: 126px 0 155px;
}

.p-news-content__grid {
  display: grid;
  grid-template-columns: minmax(0, 792px) minmax(240px, 287px);
  gap: clamp(44px, 8vw, 121px);
  align-items: start;
}

.p-news-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px 16px;
}

.p-news-card a {
  display: block;
  color: #000;
}

.p-news-card figure {
  width: 100%;
  aspect-ratio: 388 / 258;
  margin: 0;
  border-radius: 5px;
  overflow: hidden;
}

.p-news-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.p-news-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 22px 0 14px;
  font-size: 14px;
  line-height: 1.45;
}

.p-news-meta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 103px;
  min-height: 30px;
  border: 1px solid #165e83;
  border-radius: 5px;
  color: #005f7b;
  padding: 2px 12px;
}

.p-news-card h2 {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.45;
  margin: 0 0 22px;
}

.p-news-card p:last-child {
  width: 100%;
  min-height: 72px;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.p-news-sidebar {
  top: 120px;
}

.p-news-category {
  margin-top: 0;
}

.p-news-pagination {
  grid-column: 1 / -1;
  margin-top: 21px;
}

.p-news-pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.p-news-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  height: 50px;
  border: 1px solid #165e83;
  border-radius: 10px;
  color: #165e83;
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  padding: 0 14px;
}

.p-news-pagination .page-numbers.current {
  background: #165e83;
  color: #fff;
}

.p-news-contact .p-blog-contact__bg {
  background:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../images/contact-cta.jpg") center / cover no-repeat;
}

@media (max-width: 1023.98px) {
  .p-news-content__grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .p-news-list {
    grid-template-columns: repeat(2, minmax(0, 388px));
    justify-content: center;
  }

  .p-news-sidebar {
    position: static;
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .p-news-hero {
    --sub-hero-sp-height: 390px;
    --sub-hero-overflow: hidden;
    --sub-hero-inner-padding-top: 88px;
    --sub-hero-breadcrumb-bottom: 12px;
    --sub-hero-sp-image-right: -250px;
    --sub-hero-sp-panel-left: -250px;
  }

  .p-news-content {
    padding: 48px 0 64px;
  }

  .p-news-list {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .p-news-card figure,
  .p-news-card p:last-child {
    width: 100%;
  }

  .p-news-card figure {
    aspect-ratio: 388 / 258;
  }

  .p-news-category {
    width: 100%;
  }

  .p-news-pagination {
    margin-top: 6px;
  }
}
