/* news.css - お知らせページ（ルート） */

/* パンくずリスト */
.breadcrumb {
  padding: 2rem 0;
  font-size: 1.4rem;
  color: #999;
}

.breadcrumb a {
  color: #999;
}

.breadcrumb a:hover {
  opacity: 0.7;
}

/* Hero */
.news-hero {
  background: url(../img/index/kv.webp) no-repeat center center / cover;
  color: #fff;
  padding: 10rem 0 7rem;
  border-radius: 0 0 4rem 4rem;
  margin-bottom: 4rem;
}

.news-hero-inner {
  max-width: 112rem;
  margin: 0 auto;
  padding: 0 4rem;
}

.news-hero h1 {
  font-size: 3.4rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.news-current-category {
  margin-top: 1.6rem;
  margin-bottom: 2.4rem;
}

.news-hero .news-current-category {
  margin-bottom: 0;
}

.news-content {
  margin-bottom: 8rem;
}

/* Filters */
.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.filter-tag {
  padding: 0.7rem 1.6rem;
  border: 1px solid #d5dbe1;
  border-radius: 2rem;
  font-size: 1.3rem;
  background-color: #fff;
  cursor: pointer;
  transition: all 0.3s;
  color: #4a545d;
}

.filter-tag:hover,
.filter-tag.is-active {
  background-color: #4a545d;
  color: #fff;
  border-color: #4a545d;
}

/* List */
.news-list {
  list-style: none;
  background-color: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.news-item {
  border-bottom: 1px solid #eef1f3;
}

.news-item:last-child {
  border-bottom: none;
}

.news-link {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem 3rem;
  text-decoration: none;
}

.news-link:hover {
  background-color: #f7f9fb;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 22rem;
  flex-shrink: 0;
}

.news-date {
  font-size: 1.3rem;
  color: #7b8a96;
}

.news-category {
  background-color: #4a545d;
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 1.2rem;
  font-size: 1.1rem;
}

.news-title {
  font-size: 1.5rem;
  color: #4a545d;
  margin-top: 0;
  flex: 1;
}

.news-arrow {
  width: 2.6rem;
  height: 2.6rem;
  min-width: 2.6rem;
  min-height: 2.6rem;
  border-radius: 50%;
  border: 1px solid #cfd6dc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #7b8a96;
  transition: 0.3s;
}

.news-link:hover .news-arrow {
  background-color: #eb3b3b;
  border-color: #eb3b3b;
  color: #fff;
}

/* Pagination */
.news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
}

.news-pagination .pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-pagination .pager a,
.news-pagination .pager span {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  border: 1px solid #d5dbe1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #7b8a96;
  transition: 0.3s;
  text-decoration: none;
}

.news-pagination .pager a:hover {
  border-color: #eb3b3b;
  color: #eb3b3b;
}

.news-pagination .pager .current span,
.news-pagination .pager a:active {
  background-color: #eb3b3b;
  border-color: #eb3b3b;
  color: #fff;
}

.news-pagination .pager .ellipsis span {
  width: auto;
  min-width: 1.8rem;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #7b8a96;
}

.page-link {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  border: 1px solid #d5dbe1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #7b8a96;
  transition: 0.3s;
  text-decoration: none;
}

.page-link:hover {
  border-color: #eb3b3b;
  color: #eb3b3b;
}

.page-link.is-active,
.page-link:active {
  background-color: #eb3b3b;
  border-color: #eb3b3b;
  color: #fff;
}

/* Detail */
.news-detail {
  margin-bottom: 8rem;
}

.news-detail-card {
  background-color: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.06);
  padding: 3.5rem 4rem;
}

.news-detail-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.news-detail-title {
  font-size: 2.2rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  color: #4a545d;
}

.news-detail-image {
  background-color: #d8d8d8;
  border-radius: 1.2rem;
  min-height: 32rem;
  position: relative;
  margin-bottom: 2.5rem;
}

.news-detail-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 0.8rem;
  padding: 1rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: 0 0.6rem 1.6rem rgba(0, 0, 0, 0.08);
}

.badge-label {
  background-color: #eb3b3b;
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 0.6rem;
  font-size: 1.1rem;
}

.badge-text {
  font-size: 1.2rem;
  color: #4a545d;
}

.badge-author {
  font-size: 1.2rem;
  color: #4a545d;
}

.news-detail-body {
  font-size: 1.5rem;
  line-height: 2;
  color: #4a545d;
}

.news-detail-body p + p {
  margin-top: 1.6rem;
}

.news-detail-back {
  display: flex;
  justify-content: center;
  margin: 3rem 0 6rem;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2.4rem;
  border-radius: 10rem;
  border: 1px solid #d5dbe1;
  font-size: 1.4rem;
  color: #4a545d;
  background-color: #fff;
  transition: 0.3s;
  text-decoration: none;
}

.back-btn:hover {
  background-color: #f5f6f8;
}

.back-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background-color: #eb3b3b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

@media all and (max-width: 896px) {
  .news-hero-inner {
    padding: 0 2.4rem;
  }

  .news-hero {
    padding: 8rem 0 6rem;
    border-radius: 0 0 2.4rem 2.4rem;
  }

  .news-link {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-meta {
    min-width: auto;
  }

  .news-arrow {
    align-self: flex-end;
  }

  .news-detail-card {
    padding: 2.5rem 2.4rem;
  }

  .news-detail-image {
    min-height: 22rem;
  }
}

/* -------------------------------------------------------------------
   トップページ（Tower / Tank）用上書きスタイル
   （news.htmlとは異なる、各トップのセクション内に配置される際のデザイン）
---------------------------------------------------------------------- */
.page-tank-index .news-filters,
.page-tower-index .news-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.page-tank-index .filter-tag,
.page-tower-index .filter-tag {
  padding: 0.3rem 1.5rem;
  border: 1px solid #4a545d;
  color: #4a545d;
  border-radius: 6rem;
  font-size: 1.1rem;
  background-color: transparent;
  cursor: pointer;
  transition: all 0.3s;
}

.page-tank-index .filter-tag:hover,
.page-tank-index .filter-tag.is-active,
.page-tower-index .filter-tag:hover,
.page-tower-index .filter-tag.is-active {
  background-color: #4a545d;
  color: #fff;
  border-color: #4a545d;
}

.page-tank-index .news-list,
.page-tower-index .news-list {
  background-color: transparent;
  border-radius: 0;
  box-shadow: none;
}

.page-tank-index .news-item,
.page-tower-index .news-item {
  border-bottom: 1px solid #eee;
  padding: 2.5rem 0;
}

.page-tank-index .news-item:first-child,
.page-tower-index .news-item:first-child {
  padding-top: 0;
}

.page-tank-index .news-link,
.page-tower-index .news-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 0 4rem 0 0;
  position: relative;
}

.page-tank-index .news-link:hover,
.page-tower-index .news-link:hover {
  background-color: transparent;
}

.page-tank-index .news-meta,
.page-tower-index .news-meta {
  margin-bottom: 0;
  gap: 1.5rem;
}

.page-tank-index .news-date,
.page-tower-index .news-date {
  color: #7b8a96;
  font-size: 1.6rem;
  font-weight: 500;
  font-family: "Montserrat", sans-serif;
}

.page-tank-index .news-category,
.page-tower-index .news-category {
  padding: 0.3rem 1.5rem;
  border-radius: 6rem;
  font-size: 1.1rem;
}

.page-tank-index .news-title,
.page-tower-index .news-title {
  font-size: 1.6rem;
  line-height: 1.6;
}

.page-tank-index .news-arrow,
.page-tower-index .news-arrow {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

@media all and (max-width: 768px) {
  .page-tank-index .news-link,
  .page-tower-index .news-link {
    padding-right: 3rem;
  }

  .page-tank-index .news-title,
  .page-tower-index .news-title {
    font-size: 1.4rem;
  }

  .page-tank-index .news-arrow,
  .page-tower-index .news-arrow {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    min-height: 2rem;
    font-size: 1.2rem;
  }

}

@media all and (min-width: 897px) {
  .page-tower-index .section:has(.news-list) .news-filters,
  .page-tank-index .section:has(.news-list) .news-filters {
    justify-content: flex-start;
    margin-top: 0;
    margin-bottom: 3rem;
    position: static;
  }
}

@media all and (max-width: 896px) {
  .page-tower-index .section:has(.news-list) .news-filters,
  .page-tank-index .section:has(.news-list) .news-filters {
    justify-content: flex-start;
    margin-top: 0;
    margin-bottom: 2rem;
    position: static;
  }
}
