/* NEWS archive and article: St. poupee renewal */
.stp-news-page .p-pageHero,
.stp-news-single .p-pageHero {
  margin-top: 0;
}

/* Preview に合わせ、NEWS本体は少しコンパクトな横幅に固定 */
.stp-news-page__breadcrumb,
.stp-news .l-container {
  max-width: 820px;
}

.stp-news {
  padding-bottom: 12px;
}

.stp-news__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 20px;
}

.stp-newsCard {
  min-width: 0;
  margin: 0;
  content-visibility: auto;
  contain-intrinsic-size: auto 300px;
}

.stp-newsCard__link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.stp-newsCard__thumb {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #f0ebe4;
}

.stp-newsCard__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.stp-newsCard__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #c8c0b8;
  font-size: 12px;
  letter-spacing: .06em;
}

.stp-newsCard__body {
  padding: 11px 2px 0;
}

.stp-newsCard__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 9px;
  margin: 0 0 5px;
  color: #999;
  font-size: 12px;
  line-height: 1.6;
}

.stp-newsCard__meta span::before {
  content: '・';
  margin-right: 9px;
}

.stp-newsCard__title {
  margin: 0;
  color: #333;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: .03em;
  transition: color .25s ease;
}

.stp-newsCard__link:hover .stp-newsCard__thumb img {
  transform: scale(1.045);
}

.stp-newsCard__link:hover .stp-newsCard__title {
  color: #c4171b;
}

.stp-news__empty {
  margin: 0;
  padding: 64px 20px;
  background: #faf8f4;
  color: #888;
  text-align: center;
}

.stp-news__pagination {
  margin-top: 42px;
  text-align: center;
}

.stp-news__pagination .page-numbers {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stp-news__pagination a,
.stp-news__pagination span {
  display: grid;
  min-width: 32px;
  min-height: 32px;
  place-items: center;
  border: 1px solid #ddd;
  color: #555;
  font-size: 12px;
  text-decoration: none;
}

.stp-news__pagination .current,
.stp-news__pagination a:hover {
  border-color: #c4171b;
  background: #c4171b;
  color: #fff;
}

/* NEWS detail */
.stp-newsArticle .p-article {
  max-width: 800px;
}

.stp-newsArticle__featured {
  margin: 0 0 34px;
}

.stp-newsArticle__featured img {
  display: block;
  width: 100%;
  height: auto;
}

.stp-newsArticle .p-article__nav {
  align-items: stretch;
}

.stp-newsArticle .p-article__navPrev,
.stp-newsArticle .p-article__navNext {
  flex: 1;
  min-width: 0;
}

.stp-newsArticle .p-article__nav a {
  display: block;
  height: 100%;
}

.stp-newsArticle .p-article__navPrev a::before {
  content: '← ';
  color: #aaa;
}

.stp-newsArticle .p-article__navNext a {
  text-align: right;
}

.stp-newsArticle .p-article__navNext a::after {
  content: ' →';
  color: #aaa;
}

@media (max-width: 899px) {
  .stp-news__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 18px;
  }
}

@media (max-width: 767px) {
  .stp-news {
    padding-bottom: 0;
  }

  .stp-news__grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .stp-newsCard__body {
    padding-top: 12px;
  }

  .stp-newsCard__meta {
    font-size: 13px;
  }

  .stp-newsCard__title {
    font-size: 17px;
  }

  .stp-newsArticle .p-article__nav {
    flex-direction: column;
  }

  .stp-newsArticle .p-article__navPrev:empty,
  .stp-newsArticle .p-article__navNext:empty {
    display: none;
  }
}

/* NEWS detail final parity */
.stp-news-single .stp-newsArticle {
  padding-top: 58px;
  padding-bottom: 72px;
}

.stp-news-single .stp-newsArticle .l-container {
  max-width: 700px;
}

.stp-newsArticle .p-article {
  max-width: 100%;
  margin: 0 auto;
}

.stp-newsArticle .p-article__header {
  margin-bottom: 34px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5dfd8;
}

.stp-newsArticle .p-article__cat {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 11px;
  background: #2d8b57;
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .04em;
}

.stp-newsArticle .p-article__title {
  margin: 0 0 12px;
  color: #252525;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: .04em;
}

.stp-newsArticle .p-article__meta {
  margin: 0;
  color: #a49a92;
  font-size: 13px;
  line-height: 1.8;
}

.stp-newsArticle__featured {
  margin: 0 0 34px;
}

.stp-newsArticle__featured img {
  display: block;
  width: 100%;
  height: auto;
}

.stp-newsArticle .p-article__body {
  color: #333;
  font-size: 15px;
  line-height: 2.15;
  letter-spacing: .03em;
}

.stp-newsArticle .p-article__body p {
  margin: 0 0 1.65em;
}

.stp-newsArticle .p-article__body h2,
.stp-newsArticle .p-article__body h3 {
  margin: 38px 0 22px;
  padding: 15px 18px;
  border-left: 4px solid #2d8b57;
  background: #f5fbf7;
  color: #2f3a34;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: .05em;
}

.stp-newsArticle .p-article__body h4,
.stp-newsArticle .p-article__body strong {
  font-weight: 700;
}

.stp-newsArticle .p-article__body ul,
.stp-newsArticle .p-article__body ol {
  margin: 0 0 2em;
  padding-left: 1.4em;
}

.stp-newsArticle .p-article__body li {
  margin-bottom: .5em;
}

.stp-newsArticle .p-article__body figure {
  margin: 32px 0;
}

.stp-newsArticle .p-article__body img {
  max-width: 100%;
  height: auto;
}

.stp-newsArticle .p-article__body .wp-block-group,
.stp-newsArticle .p-article__body .wp-block-columns,
.stp-newsArticle .p-article__body .wp-block-table,
.stp-newsArticle .p-article__body blockquote {
  margin: 32px 0;
}

.stp-newsArticle .p-article__body blockquote {
  padding: 18px 22px;
  border-left: 4px solid #d7a13b;
  background: #fbf8f0;
}

.stp-newsArticle .p-article__nav {
  display: flex;
  gap: 16px;
  margin-top: 54px;
  padding-top: 28px;
  border-top: 1px solid #e5dfd8;
  align-items: stretch;
}

.stp-newsArticle .p-article__navPrev,
.stp-newsArticle .p-article__navNext {
  flex: 1;
  min-width: 0;
}

.stp-newsArticle .p-article__nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid #d9d2ca;
  color: #8f8279;
  font-size: 13px;
  line-height: 1.6;
  text-decoration: none;
}

.stp-newsArticle .p-article__navPrev a::before {
  content: '← ';
  margin-right: 4px;
  color: #aaa;
}

.stp-newsArticle .p-article__navNext a {
  justify-content: flex-end;
  text-align: right;
}

.stp-newsArticle .p-article__navNext a::after {
  content: ' →';
  margin-left: 4px;
  color: #aaa;
}

.stp-newsArticle .p-article__back {
  display: block;
  width: 142px;
  margin: 24px auto 0;
  padding: 10px 14px;
  border: 1px solid #8d827a;
  color: #5b514b;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
  text-decoration: none;
}

.stp-newsArticle .p-article__back:hover,
.stp-newsArticle .p-article__nav a:hover {
  border-color: #c4171b;
  color: #c4171b;
}

@media (max-width: 767px) {
  .stp-news-single .stp-newsArticle {
    padding-top: 42px;
    padding-bottom: 56px;
  }

  .stp-news-single .stp-newsArticle .l-container {
    max-width: none;
  }

  .stp-newsArticle .p-article__title {
    font-size: 21px;
  }

  .stp-newsArticle .p-article__body {
    font-size: 14px;
    line-height: 2;
  }

  .stp-newsArticle .p-article__nav {
    flex-direction: column;
  }

  .stp-newsArticle .p-article__navPrev:empty,
  .stp-newsArticle .p-article__navNext:empty {
    display: none;
  }
}


/* NEWS archive/link balance patch v0.19
   NEWS一覧とLINKセクションの横幅を揃え、サムネイルをpreview寄りに大きく表示。 */
.stp-news-page__breadcrumb,
.stp-news .l-container,
.stp-news-page .s-link .l-container {
  max-width: 960px;
}

.stp-news__grid {
  gap: 42px 24px;
}

.stp-newsCard__thumb {
  aspect-ratio: 16 / 10;
}

.stp-newsCard__body {
  padding-top: 12px;
}

.stp-newsCard__meta {
  margin-bottom: 6px;
  font-size: 12px;
}

.stp-newsCard__title {
  font-size: 15px;
  line-height: 1.65;
}

.stp-news-page .s-link {
  padding-top: 54px;
}

.stp-news-page .s-link__banners {
  gap: 24px;
}

@media (max-width: 1024px) {
  .stp-news-page__breadcrumb,
  .stp-news .l-container,
  .stp-news-page .s-link .l-container {
    max-width: 860px;
  }
}

@media (max-width: 767px) {
  .stp-news-page__breadcrumb,
  .stp-news .l-container,
  .stp-news-page .s-link .l-container {
    max-width: none;
  }

  .stp-news__grid {
    gap: 30px;
  }
}
