/* 展示・イベント情報（news）— Figma 221:3316 / 221:6056 / 221:6059 / 221:6196 */

.newsPage {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  --news-page-pad-x: var(--sp-pad-x, 16px);
  --news-content-w-pc: 86%;
  padding: 48px var(--news-page-pad-x) 64px;
}

.newsPageHead {
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  max-width: 880px;
  margin: 0 auto 48px;
  text-align: center;
}

.newsPageHead__title {
  margin: 0;
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
  font-size: clamp(36px, 8vw, 54px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #231815;
}

.newsPageHead__accent {
  color: #d80c18;
}

.newsPageHead__sub {
  margin: 8px 0 0;
  font-family: "Noto Sans JP", "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: #1d1d1d;
}

.newsPage__inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 880px;
  margin-right: auto;
  margin-left: auto;
}

.newsGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  /* Figma 221:6059（Frame 3）: gap-x 24px / gap-y 24px */
  column-gap: 24px;
  row-gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.newsGrid__item {
  margin: 0;
  min-width: 0;
  width: 100%;
}

.newsCard {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #d80c18;
  border-radius: 4px 4px 0 4px;
  background-color: #ffffff;
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.2s ease, opacity 0.2s ease;
}

.newsCard:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.newsCard:focus-visible {
  outline: 2px solid #231815;
  outline-offset: 3px;
}

.newsCard__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 22px;
  font-family: "Noto Sans JP", "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  color: #000000;
}

.newsCard__date {
  flex-shrink: 0;
  white-space: nowrap;
}

.newsCard__title {
  display: -webkit-box;
  margin: 0;
  max-height: 3.2em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.45;
}

.newsCard__corner {
  position: absolute;
  right: 0;
  bottom: 0;
  display: block;
  width: 15px;
  height: 15px;
  color: #d80c18;
  pointer-events: none;
}

.newsCard__cornerSvg {
  display: block;
  width: 100%;
  height: 100%;
}

.newsBack {
  margin: 48px 0 0;
  text-align: center;
}

/* トップ「もっとみる」（.aboutPanel__link）と同じホバー: 赤レイヤーが右へスライド */
.newsBack__link {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 46px;
  padding: 12px 32px;
  border-radius: 999px;
  background-color: #141414;
  color: #ffffff;
  font-family: "Noto Sans JP", "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}

.newsBack__link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background-color: #d80c18;
  transform: translateX(0);
  transition: transform 0.38s ease;
}

.newsBack__link:hover::before,
.newsBack__link:focus-visible::before {
  transform: translateX(100%);
}

.newsBack__label {
  position: relative;
  z-index: 1;
}

.newsBack__link:focus-visible {
  outline: 2px solid #231815;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .newsBack__link::before {
    transition: none;
  }
}

@media (max-width: 950px) {
  .newsBack__link {
    background-color: #d80c18;
  }

  .newsBack__link::before {
    display: none;
  }

  .newsBack__link:hover,
  .newsBack__link:focus-visible {
    opacity: 0.9;
  }

  .newsBack__link:hover::before,
  .newsBack__link:focus-visible::before {
    transform: none;
  }
}

@media (max-width: 720px) {
  .newsGrid {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 12px;
  }
}

@media (max-width: 540px) {
  .newsPage {
    padding-top: 44px;
    padding-bottom: 48px;
  }

  .newsPageHead {
    margin-top: 16px;
    margin-bottom: 40px;
  }

  .newsBack {
    margin-top: 40px;
  }
}

@media (min-width: 951px) {
  .newsPage {
    --news-page-pad-x: 7%;
  }

  .newsPageHead,
  .newsPage__inner {
    /* width: var(--news-content-w-pc); */
    max-width: none;
  }
}

/* WordPress: 投稿なし・ページネーション */
.newsGrid__item--empty {
  grid-column: 1 / -1;
  list-style: none;
}

.newsPage__empty {
  margin: 0;
  padding: 24px 0;
  text-align: center;
  color: #231815;
  font-family: "Noto Sans JP", "Montserrat", sans-serif;
}

.newsPage__pager {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.newsPage__pager .page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.newsPage__pager a,
.newsPage__pager span:not(.dots) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
  font-size: 14px;
  color: #231815;
  text-decoration: none;
  border: 1px solid #c4c4c4;
  box-sizing: border-box;
}

.newsPage__pager a:hover,
.newsPage__pager a:focus-visible {
  border-color: #d80c18;
  color: #d80c18;
}

.newsPage__pager .current {
  border-color: #231815;
  background: #231815;
  color: #ffffff;
}
