/* お知らせページ専用スタイル */

.news-tabs {
  max-width: 900px;
  margin: 0 auto 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.news-tab {
  appearance: none;
  border: none;
  background: #fff;
  color: var(--base);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.news-tab:hover {
  transform: translateY(-1px);
}

.news-tab.is-active {
  background: var(--deep-red);
  color: #fff;
  border-color: var(--deep-red);
}

.news-tab:focus-visible {
  outline: 3px solid rgba(0, 0, 0, 0.25);
  outline-offset: 2px;
}

.news-list-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-item.is-hidden {
  display: none;
}

.news-empty {
  max-width: 900px;
  margin: 12px auto 0;
  color: var(--base);
  font-size: 14px;
}

.news-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 36px 40px;
  background: #fff;
  border-radius: 8px;
}

.news-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.news-date {
  flex-shrink: 0;
  font-size: 14px;
  color: var(--base);
  font-weight: normal;
}

.news-item .tag {
  flex-shrink: 0;
  min-width: 64px;
  color: var(--base);
}

.news-item .news-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--base);
  padding-bottom: 12px;
  border-bottom: 2px solid #ffd600;
}

.news-body {
  font-size: 14px;
  line-height: 1.8;
  color: #555;
}

.news-body p {
  margin: 0 0 8px;
}

.news-body p:last-child {
  margin-bottom: 0;
}

.news-body img {
  display: block;
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 30px auto 12px;
}

/* ページネーション */
.news-pagination {
  max-width: 900px;
  margin: 24px auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pagination-btn {
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: var(--base);
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  line-height: 40px;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pagination-btn:hover {
  background: var(--light-beige);
  border-color: rgba(0, 0, 0, 0.2);
}

.pagination-btn.is-current {
  background: var(--deep-red);
  color: #fff;
  border-color: var(--deep-red);
  cursor: default;
  font-weight: 700;
}

.pagination-btn:focus-visible {
  outline: 3px solid rgba(0, 0, 0, 0.25);
  outline-offset: 2px;
}

.pagination-prev,
.pagination-next {
  font-size: 13px;
}

@media (max-width: 767px) {
  .news-page.second-layer .second-section,
  .news-page.second-layer .second-page > .second-section:first-of-type {
    padding-left: 0;
    padding-right: 0;
  }

  .news-page.second-layer .second-section-inner {
    padding: 0;
  }

  .news-list-page {
    width: 95%;
    margin: 0 auto;
    padding: 20px 0;
  }

  .news-tabs {
    width: 95%;
    margin-left: auto;
    margin-right: auto;
  }

  .news-pagination {
    width: 95%;
    margin-left: auto;
    margin-right: auto;
  }

  .news-tab {
    padding: 10px 12px;
    font-size: 13px;
  }

  .news-item {
    padding: 16px;
  }

  .news-date {
    font-size: 13px;
  }

  .news-item .news-title {
    font-size: 15px;
  }

  .news-body {
    font-size: 14px;
  }
}
