/* お知らせ一覧（/news/・boys-/news/）共通
 * 通常の指定 → 条件別の調整の順序を保っています。
 * @media は画面幅などの条件です。追記前に同じセレクター名を検索してください。
 */

/* 基本設定・共通の色と画像 */

.news-page {
  background: #f6f3ee;
}

.news-page-hero {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(118deg, #9d080d 0%, #790006 48%, #430002 100%);
  color: #fff;
}

.news-page-hero-pattern {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 30%, rgba(255, 255, 255, 0.11), transparent 26%),
    linear-gradient(120deg, transparent 58%, rgba(255, 255, 255, 0.045) 58% 59%, transparent 59%);
}

.news-page-hero-word {
  position: absolute;
  left: 50%;
  bottom: -0.22em;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.07);
  font-size: clamp(106px, 14.5vw, 228px);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.075em;
  white-space: nowrap;
  pointer-events: none;
}

/* メインビジュアル */

.news-page-hero-inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.news-page-hero-inner p {
  margin: 0 0 10px;
  color: #efc5c7;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.news-page-hero-inner h1,
.news-page-hero-title {
  display: block;
  margin: 0;
  font-size: clamp(32px, 4.3vw, 54px);
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.news-page-hero-inner .news-page-hero-meta {
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 24px;
  color: #fff;
  font-size: 9px;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

/* お知らせ */

.news-page-hero-meta i {
  display: block;
  width: 34px;
  height: 1px;
  background: rgba(255, 255, 255, 0.7);
}

.news-breadcrumb {
  background: #fff;
  border-bottom: 1px solid #e4ddd5;
}

.news-breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  font-size: 10px;
  color: #8a837b;
}

.news-breadcrumb a {
  font-weight: 800;
  transition: color 0.3s;
}

.news-breadcrumb a:hover {
  color: var(--red);
}

.news-breadcrumb b {
  color: #b9b0a8;
}

.news-breadcrumb span {
  color: var(--red);
  font-weight: 800;
}

.news-archive {
  padding: clamp(36px, 4vw, 54px) 0 clamp(46px, 5vw, 68px);
}

.news-archive-head {
  margin-bottom: 32px;
}

.news-archive-head h2 {
  margin: 0;
  font-size: clamp(33px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.news-archive-head h2 span {
  display: block;
  margin-bottom: 12px;
  color: var(--red);
  font-size: 10px;
  letter-spacing: 0.22em;
}

.news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 32px;
  padding: 8px;
  background: #ede8e1;
  border: 1px solid #ddd5cc;
}

.news-filter :is(button, a, .news-filter-disabled) {
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  background: transparent;
  color: #625b55;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.3s,
    color 0.3s,
    box-shadow 0.3s;
}

.news-filter :is(button, a, .news-filter-disabled):hover,
.news-filter :is(button, a, .news-filter-disabled).is-active {
  background: #fff;
  color: var(--red);
  box-shadow: 0 6px 18px rgba(31, 22, 17, 0.08);
}

.news-filter :is(button, a, .news-filter-disabled)[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.news-archive-list {
  border-top: 1px solid #cfc8c0;
}

.news-empty {
  margin: 0;
  padding: 48px 8px;
  border-bottom: 1px solid #cfc8c0;
  color: #6f6760;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 42px;
}

.news-pagination[hidden] {
  display: none;
}

.news-page-numbers {
  display: flex;
  align-items: center;
  gap: 7px;
}

.news-pagination button {
  height: 44px;
  border: 1px solid #c9c0b8;
  background: transparent;
  color: #3b3632;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.3s,
    color 0.3s,
    border-color 0.3s,
    transform 0.3s;
}

.news-page-numbers button {
  width: 44px;
}

.news-pagination button:is(:hover, .is-hover):not(:disabled),
.news-pagination button.is-current {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateY(-2px);
}

.news-pagination button:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

.news-page-arrow {
  display: flex;
  min-width: 92px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 14px;
}

.news-page-arrow span {
  font-size: 8px;
  letter-spacing: 0.12em;
}

.news-page-ellipsis {
  display: grid;
  width: 26px;
  place-items: center;
  color: #8a8179;
  font-weight: 900;
}

@media (max-width: 900px) {
  /* レスポンシブ時：MVの高さを140pxに圧縮し、タイトル位置・文字サイズを調整 */

  .news-page-hero {
    height: 140px;
  }

  .news-page-hero-word {
    left: 48%;
    bottom: -0.08em;
    font-size: 26vw;
  }

  .news-page-hero-inner {
    align-items: flex-start;
    padding-top: 26px;
  }

  .news-page-hero-inner p {
    margin-bottom: 6px;
  }

  .news-page-hero-inner h1,
  .news-page-hero-title {
    font-size: 26px;
  }

  .news-page-hero-inner .news-page-hero-meta {
    position: absolute;
    right: 0;
    bottom: 8px;
    margin: 0;
    font-size: 6.5px;
    letter-spacing: 0.1em;
  }

  .news-page-hero-meta i {
    width: 14px;
  }
}

@media (max-width: 650px) {

  .news-page-arrow {
    min-width: 44px;
    width: 44px;
    padding: 0;
  }

  .news-page-arrow span {
    display: none;
  }

  .news-page-numbers {
    gap: 5px;
  }

  .news-page-numbers button {
    width: 40px;
    height: 40px;
  }

  .news-page-ellipsis {
    width: 18px;
  }
}

@media (max-width: 560px) {
  .news-archive {
    padding: 32px 0 46px;
  }

  .news-filter {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-filter :is(button, a, .news-filter-disabled) {
    padding-inline: 9px;
    font-size: 12.5px;
  }

  /* 5項目のため「すべて」を1行使いにして 1＋2＋2 で揃える */
  .news-filter :is(button, a, .news-filter-disabled)[data-news-filter="all"] {
    grid-column: 1/-1;
  }
}

@media (max-width: 370px) {
  .news-page-numbers button {
    width: 36px;
  }

  .news-page-ellipsis {
    width: 12px;
  }
}

/* お知らせ詳細（投稿詳細） */

.news-detail {
  padding: clamp(40px, 5vw, 72px) 0 clamp(56px, 6vw, 88px);
}

.news-detail-inner {
  max-width: 880px;
}

.news-detail-head {
  padding-bottom: clamp(22px, 3vw, 32px);
  border-bottom: 2px solid var(--ink);
}

.news-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.news-detail-meta time {
  color: #2b2724;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.045em;
}

.news-detail-head h1 {
  margin: 16px 0 0;
  color: var(--ink);
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.news-detail-body {
  padding-top: clamp(28px, 3.4vw, 40px);
  color: #2b2724;
  font-size: 15px;
  font-weight: 500;
  line-height: 2;
}

.news-detail-body > p {
  margin: 0 0 1.4em;
}

.news-detail-body a {
  color: var(--red);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.news-detail-body h2 {
  position: relative;
  margin: clamp(36px, 4vw, 48px) 0 18px;
  padding-left: 18px;
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.5;
}

.news-detail-body h2:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 5px;
  background: var(--red);
}

.news-detail-note {
  padding: 12px 16px;
  background: #fff4d8;
  border-left: 4px solid #d6a21e;
  color: #6b5414;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}

.news-detail-figure {
  margin: 0 0 clamp(26px, 3vw, 36px);
}

.news-detail-figure img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.news-detail-figure figcaption {
  margin-top: 10px;
  color: #817970;
  font-size: 12px;
  line-height: 1.6;
}

.news-detail-table {
  margin: 0 0 1.4em;
  border-top: 1px solid #cfc8c0;
}

.news-detail-table div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  border-bottom: 1px solid #cfc8c0;
}

.news-detail-table dt {
  padding: 14px 18px;
  background: #ede8e1;
  font-size: 14px;
  font-weight: 900;
}

.news-detail-table dd {
  margin: 0;
  padding: 14px 18px;
  background: #fff;
  font-size: 14px;
  line-height: 1.8;
}

.news-detail-score-wrap {
  margin: 0 0 1.4em;
  overflow-x: auto;
}

.news-detail-score {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
  line-height: 1.6;
}

.news-detail-score th {
  padding: 12px 14px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-align: left;
}

.news-detail-score td {
  padding: 13px 14px;
  border-bottom: 1px solid #ddd5cc;
}

.news-detail-footer {
  display: flex;
  justify-content: center;
  margin-top: clamp(40px, 5vw, 60px);
  padding-top: clamp(32px, 4vw, 44px);
  border-top: 1px solid #cfc8c0;
}

.news-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding: 0 34px;
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.06em;
  transition: background 0.3s,
    color 0.3s,
    border-color 0.3s;
}

.news-detail-back b {
  color: var(--red);
  transition: transform 0.3s,
    color 0.3s;
}

.news-detail-back:hover,
.news-detail-back:focus-visible {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.news-detail-back:hover b,
.news-detail-back:focus-visible b {
  color: #fff;
  transform: translateX(-5px);
}

@media (max-width: 650px) {
  .news-detail-body {
    font-size: 14px;
    line-height: 1.95;
  }

  .news-detail-table div {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .news-detail-table dt,
  .news-detail-table dd {
    padding: 12px;
    font-size: 13px;
  }

  .news-detail-score {
    min-width: 0;
    font-size: 13px;
  }

  .news-detail-score th,
  .news-detail-score td {
    padding: 11px 8px;
  }

  .news-detail-back {
    width: 100%;
    justify-content: center;
  }
}

/* WordPress：リンク式カテゴリー・標準ページ送り・投稿本文 */
.news-filter > a, .news-filter-disabled { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.news-filter-disabled { opacity: .45; cursor: default; }
.news-filter > a:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.news-pagination { flex-wrap: wrap; gap: 7px; }
.news-pagination .page-numbers { display: inline-flex; justify-content: center; align-items: center; min-width: 40px; height: 44px; padding: 0 10px; border: 1px solid #c9c0b8; color: #3b3632; font-size: 12px; font-weight: 900; text-decoration: none; }
.news-pagination a.page-numbers:hover, .news-pagination a.page-numbers:focus-visible, .news-pagination .current { color: #fff; background: var(--red); border-color: var(--red); }
.news-pagination .dots { min-width: 20px; padding: 0; border: 0; }
.news-breadcrumb .container { flex-wrap: wrap; padding-block: 12px; }
.news-breadcrumb span, .news-detail-head h1, .news-detail-body { overflow-wrap: anywhere; }
.news-detail-body img { max-width: 100%; height: auto; }
.news-detail-body .news-detail-figure img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
.news-detail-body figure { max-width: 100%; margin-inline: 0; }
.news-detail-body figcaption { font-size: 12px; color: #817970; }
.news-detail-body ul, .news-detail-body ol { padding-left: 1.6em; margin-bottom: 1.4em; }
.news-detail-body blockquote { margin: 1.4em 0; padding: 16px 20px; border-left: 4px solid var(--red); background: #fff; }
.news-detail-body .wp-block-table { overflow-x: auto; }
.news-detail-body table { width: 100%; border-collapse: collapse; }
.news-detail-body table th, .news-detail-body table td { padding: 10px 12px; border: 1px solid #ddd5cc; }
.news-detail-body .wp-block-image.alignleft { float: left; margin-right: 1.5em; }
.news-detail-body .wp-block-image.alignright { float: right; margin-left: 1.5em; }
.news-detail-body::after { content: ""; display: block; clear: both; }
.news-content-pages { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (max-width: 370px) { .news-pagination .page-numbers { min-width: 32px; height: 36px; padding-inline: 7px; } }
