/* お知らせページ専用CSS */

.news-page main {
  padding-top: 0;
  padding-bottom: 40px;
}

.news-kv {
  position: relative;
  width: 100%;
  height: clamp(240px, 34vw, 420px);
  margin: 0 0 48px;
  overflow: hidden;
}

.news-kv::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 24, 53, 0.5), rgba(8, 24, 53, 0.14));
}

.news-kv-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-kv-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  padding: 0 56px 44px;
  box-sizing: border-box;
}

.news-kv-title {
  margin: 0;
  color: var(--hanagasa-white);
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 700;
  letter-spacing: 3px;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.news-section-inner {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}

/* カテゴリーフィルター */
.news-category-filter {
  margin-bottom: 32px;
}

.category-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-filter-btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--hanagasa-blue);
  background-color: var(--hanagasa-white);
  color: var(--hanagasa-blue);
  font-family: var(--font-rounded);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.18s, color 0.18s;
  white-space: nowrap;
}

.category-filter-btn:hover {
  background-color: rgba(0, 91, 187, 0.08);
}

.category-filter-btn.is-active {
  background-color: var(--hanagasa-blue);
  color: var(--hanagasa-white);
}

.news-list {
  margin-top: 26px;
  border-top: 1px solid rgba(0, 91, 187, 0.2);
}

.news-pagination-wrap {
  margin-top: 22px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--hanagasa-blue);
}

.pagination__item {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--hanagasa-blue);
  border-radius: 999px;
  background-color: var(--hanagasa-white);
  color: var(--hanagasa-blue);
  font-family: var(--font-rounded);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.pagination__item:hover:not(:disabled),
.pagination__item:focus-visible:not(:disabled) {
  background-color: var(--hanagasa-blue);
  color: var(--hanagasa-white);
  border-color: var(--hanagasa-blue);
}

.pagination__item:disabled {
  opacity: 0.45;
  cursor: default;
}

.pagination__item--number {
  min-width: 42px;
  padding: 0;
  border-radius: 50%;
}

.pagination__item--current {
  background-color: var(--hanagasa-blue);
  color: var(--hanagasa-white);
}

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

.pagination__list-item {
  margin: 0;
  padding: 0;
}

.pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 42px;
  color: var(--hanagasa-blue);
  font-size: 18px;
  font-weight: 700;
}

.news-item {
  border-bottom: 1px solid rgba(0, 91, 187, 0.12);
}

.news-row {
  width: 100%;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) 24px;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.news-item:not(.news-item--expandable) {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px 0;
}

.news-date {
  font-size: 20px;
  font-weight: 700;
  color: var(--hanagasa-blue);
  white-space: nowrap;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.news-category {
  display: inline-block;
  padding: 3px 15px;
  margin: 0px 10px;
  border-radius: 999px;
  background-color: rgba(0, 91, 187, 0.1);
  color: var(--hanagasa-blue);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.news-title {
  margin: 0;
  min-width: 0;
  font-size: 20px;
  color: var(--text-dark);
  line-height: 1.8;
}

.news-arrow {
  width: 24px;
  height: 24px;
  justify-self: end;
  display: grid;
  place-items: center;
  color: transparent;
  font-size: 0;
  line-height: 0;
}

.news-arrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2.5px solid var(--hanagasa-blue);
  border-bottom: 2.5px solid var(--hanagasa-blue);
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 0.2s ease;
}

.news-row[aria-expanded="true"] .news-arrow::before {
  transform: rotate(-135deg) translate(-1px, -1px);
}

.news-detail {
  padding: 0 0 0 156px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding-bottom 0.35s ease;
}

.news-detail.is-open {
  opacity: 1;
  padding-bottom: 18px;
}

.news-detail-text {
  margin: 0;
  color: var(--text-dark);
  line-height: 1.85;
}

.news-detail-text + .news-detail-text {
  margin-top: 8px;
}

.news-pdf-link {
  margin-top: 16px;
}

.news-pdf-link .efforts-file-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  gap: 12px;
  margin: 0;
  padding: 14px 18px;
  border: 1px solid rgba(0, 91, 187, 0.12);
  border-radius: 18px;
  background-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(0, 50, 110, 0.06);
  color: var(--hanagasa-blue);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: none;
}

.news-pdf-link .efforts-file-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.news-detail-images-container {
  margin-top: 12px;
  position: relative;
}

.news-detail-images-list {
  display: flex;
  gap: 10px;
}

.news-detail-images-list.is-scrollable {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}

.news-detail-image {
  margin-top: 0;
  width: auto;
  height: 220px;
  flex: 0 0 auto;
  max-width: none;
  object-fit: contain;
  display: block;
  border-radius: 0;
}

.news-detail-image.standard-border-radius {
  border-radius: 10px;
}

.news-detail-image.no-border-radius {
  border-radius: 0 !important;
}

.news-slider-arrow {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 91, 187, 0.12);
  color: var(--hanagasa-blue);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  pointer-events: none;
}

@media (max-width: 576px) {
  .category-filter-btn {
    font-size: 16px;
    padding: 7px 14px;
  }

  .news-kv {
    height: 220px;
    margin-bottom: 32px;
  }

  .news-kv-overlay {
    align-items: flex-end;
    padding: 0 24px 28px;
  }

  .news-kv-title {
    font-size: 29px;
    letter-spacing: 2px;
  }

  .news-section-inner {
    padding: 0 20px;
  }

  .news-row,
  .news-item:not(.news-item--expandable) {
    grid-template-columns: 1fr;
    gap: 6px;
    align-items: flex-start;
  }

  .news-meta {
    flex-wrap: wrap;
  }

  .news-row {
    padding-right: 28px;
    position: relative;
  }

  .news-arrow {
    position: absolute;
    right: 0;
    top: 18px;
  }

  .news-detail {
    padding: 0;
  }

  .news-detail.is-open {
    padding-bottom: 16px;
  }

  .news-detail-image {
    height: 180px;
  }

  .news-pdf-link .efforts-file-link {
    gap: 10px;
    padding: 12px 14px;
    font-size: 13px;
  }

  .news-pdf-link .efforts-file-icon {
    width: 20px;
    height: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pagination__item,
  .news-arrow::before,
  .news-detail {
    transition: none;
  }
}
