@charset "utf-8";

.news-page-heading {
  font-family: "EB Garamond", serif;
  font-size: 400%;
  font-weight: bold;
  line-height: 1em;
  letter-spacing: 0.05em;
  color: #111;
}

.news-list {
  list-style: none;
  margin: 0;
  margin-top: 40px;
  padding: 0;
}

.news-item {
  border-top: 1px solid #ccc;
}

.news-item:last-child {
  border-bottom: 1px solid #ccc;
}

.news-item-link {
  padding: 24px 0;
}

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

.news-date {
  color: #888;
  font-size: 90%;
  line-height: 1;
  transition: color 0.4s ease-in-out;
}

.news-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.news-badge {
  background-color: #ab191f;
  color: white;
  font-size: 78%;
  font-weight: bold;
  padding: 3px 10px;
  white-space: nowrap;
  line-height: 1.4;
  transition: background-color 0.4s ease-in-out;
}

.news-item-link {
  display: block;
  color: #111;
  font-weight: normal;
  text-decoration: none;
  transition: color 0.4s ease-in-out;
}

.news-item-link:link,
.news-item-link:visited {
  color: #111;
  font-weight: normal;
}

.news-item-link:hover,
.news-item-link:active {
  color: #cd2922;
}

.news-item-link:hover .news-date,
.news-item-link:active .news-date {
  color: #cd2922;
}

.news-item-link:hover .news-badge,
.news-item-link:active .news-badge {
  background-color: #cd2922;
}

.news-item-title {
  font-size: 108%;
  font-weight: bold;
  line-height: 2;
}

.news-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  list-style: none;
  padding: 0;
}

.news-pager-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  transition: color 0.2s ease;
  padding: 0 0 2px 1px;
  box-sizing: border-box;
}

.news-pager-btn,
.news-pager-btn:link,
.news-pager-btn:visited {
  color: #111;
  font-weight: normal;
  text-decoration: none;
}

.news-pager-btn:hover,
.news-pager-btn:active {
  color: #ab191f;
  font-weight: bold;
}

.news-pager-btn.is-current,
.news-pager-btn.is-current:link,
.news-pager-btn.is-current:visited,
.news-pager-btn.is-current:hover,
.news-pager-btn.is-current:active {
  background-color: #ab191f;
  color: white !important;
  font-weight: bold;
}

/* ===== news-single ===== */

.news-single {
  margin-top: 40px;
}

.news-single-header {
  border-top: 1px solid #ab191f;
  border-bottom: 1px solid #ab191f;
  padding: 32px 0;
  margin-bottom: 36px;
}

.news-single-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.news-single-title {
  font-size: 140%;
  font-weight: bold;
  line-height: 1.7;
  color: #111;
}

.news-single-body figure.wp-block-image {
  margin: 0 0 2.5em;
}

.news-single-body figure.wp-block-image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.news-single-body figure.wp-block-image figcaption {
  font-size: 85%;
  color: #888;
  text-align: center;
  margin-top: 6px;
}

/* 本文欄: クラスなしタグでスタイルが付く */
.news-single-body {
  line-height: 2;
  padding-bottom: 40px;
  border-bottom: 1px solid #ab191f;
}

.news-single-body p {
  margin-bottom: 1.5em;
}

.news-single-body h2 {
  font-size: 100%;
  font-weight: bold;
  margin-bottom: 0.4em;
}

.news-single-body h3 {
  font-size: 100%;
  font-weight: bold;
  margin-bottom: 0.4em;
}

.news-single-body a {
  color: #ab191f;
  text-decoration: underline;
  word-break: break-all;
}

.news-single-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1.5em;
}

.news-single-body ul,
.news-single-body ol {
  padding-left: 1.5em;
  margin-bottom: 1.5em;
}

.news-single-body li {
  margin-bottom: 0.4em;
}

/* 一覧へ戻るボタン */
.news-single-back {
  text-align: center;
  margin-top: 60px;
}

.news-back-btn,
.news-back-btn:link,
.news-back-btn:visited {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #111 !important;
  font-weight: bold;
  text-decoration: none !important;
  transition: opacity 0.2s ease;
}

.news-back-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #ab191f;
  color: white !important;
  font-size: 100%;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}

.news-back-icon i {
  color: white !important;
}

.news-back-btn:hover .news-back-icon,
.news-back-btn:active .news-back-icon {
  background-color: #cd2922;
}

/* WordPress paginate_links() 対応 */
.news-pager .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 95%;
  color: #111;
  font-weight: normal;
  text-decoration: none;
  transition: color 0.2s ease;
}
.news-pager .page-numbers:hover,
.news-pager .page-numbers:active {
  color: #ab191f;
  font-weight: bold;
}
.news-pager span.current {
  background-color: #ab191f;
  color: white !important;
  font-weight: bold;
}
.news-pager .page-numbers.dots {
  width: auto;
}
