/* News Page Styles */

.news-page {
  background: white;
  min-height: 100vh;
}

/* Hero Section */
.hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-text {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 55px;
  font-weight: 500;
  color: #ff00ee;
  text-align: center;
  letter-spacing: 11px;
  line-height: 1.3;
}

/* Breadcrumb */

/* Page Title Section */
.page-title-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0 30px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.page-title {
  font-family: "Inter", sans-serif;
  font-size: 89px;
  font-weight: 700;
  color: #2b39d5;
  line-height: 1.3;
  margin: 0;
}

.page-subtitle {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #4a4459;
  line-height: 26px;
  letter-spacing: 1.44px;
  margin: 0;
  align-self: flex-end;
  padding-bottom: 10px;
}

/* News Filter */
.news-filter {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 0;
  display: flex;
  justify-content: flex-end;
}

.year-filter {
  width: 160px;
  height: 39px;
  border: 1px solid #2b39d5;
  border-radius: 10px;
  padding: 0 15px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  color: #2b39d5;
  letter-spacing: 1.2px;
  background: white;
  cursor: pointer;
}

.year-filter:focus {
  outline: none;
  border-color: #2b39d5;
}

/* News List Section */
.news-list-section {
  width: 100%;
  padding: 0 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.news-container {
  width: 1200px;
  margin: 0 auto;
  background: #f7f6f8;
  padding: 111px 85px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

/* News Item */
.news-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

.news-item a {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.news-meta {
  display: flex;
  align-items: center;
}

.news-date {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #4a4459;
  line-height: 28px;
  min-width: 110px;
}

.news-category {
  display: inline-block;
  padding: 2px 0;
  width: auto;
  min-width: 140px;
  text-align: center;
  border: 2px solid #2b39d5;
  background: white;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #2b39d5;
  line-height: 26px;
  letter-spacing: 1.2px;
}

.news-content {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #4a4459;
  line-height: 28px;
  margin: 0;
  display: block;
  width: 100%;
}

/* Pagination */
.pagination {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0 80px;
  width: 100%;
}

.pagination > button,
.pagination > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-right: 1px solid #2b39d5;
  background: white;
  color: #2b39d5;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 27px;
  letter-spacing: 1.12px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0;
  padding: 0;
}

.page-btn:first-of-type {
  border-radius: 10px 0 0 10px;
  border-left: 1px solid #2b39d5;
  border-top: 1px solid #2b39d5;
  border-bottom: 1px solid #2b39d5;
}

.page-btn:last-of-type {
  border-radius: 0 10px 10px 0;
  border: 1px solid #2b39d5;
  border-left: 0px;
}

.page-btn:not(:first-of-type):not(:last-of-type) {
  border-top: 1px solid #2b39d5;
  border-bottom: 1px solid #2b39d5;
}

.page-btn.active {
  background: #2b39d5;
  color: white;
}

.page-btn:hover:not(.active) {
  background: #e3e5ff;
}

.page-dots {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: #2b39d5;
  padding: 0 10px;
}

.page-next {
  width: auto;
  padding: 0 12px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.page-next svg {
  display: block;
}

/* Footer Placeholder */

/* Footer adjustments for news page */
.news-page .footer {
  position: relative;
  /* margin-top: 100px; */
}

/* Responsive Styles for Mobile */
@media (max-width: 768px) {
  .placeholder-text {
    font-size: 24px;
    letter-spacing: 4px;
  }

  .page-title-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-left: 16px;
    padding: 20px 0;
  }

  .page-title {
    font-size: 30px;
  }

  .page-subtitle {
    font-size: 18px;
    align-self: flex-start;
    padding-bottom: 0;
  }

  .news-filter {
    display: none;
  }

  .news-list-section {
    width: 100%;
    max-width: 100vw;
    padding: 0;
    overflow-x: hidden;
  }

  .news-container {
    margin: 0 15px 100px;
    padding: 0;
    background: #f7f6f8;
    max-width: calc(100vw - 30px);
    height: auto;
  }

  .news-item {
    padding: 20px 15px;
    box-sizing: border-box;
  }

  .news-item a {
    display: block;
    width: 100%;
  }

  .news-item:nth-child(n + 5) {
    display: none;
  }

  .news-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    margin-bottom: 15px;
  }

  .news-date {
    font-size: 15px;
    line-height: 28px;
    min-width: auto;
  }

  .news-category {
    width: 160px;
    height: 30px;
    padding: 2px 0;
    font-size: 15px;
    line-height: 26px;
    letter-spacing: 1.2px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .news-content {
    padding-left: 0;
    font-size: 15px;
    line-height: 28px;
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
  }

  .news-item .news-content {
    max-height: none;
    overflow: visible;
    text-overflow: clip;
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    -webkit-box-orient: unset;
  }

  .pagination {
    padding: 30px 0 50px;
    justify-content: center;
    width: 100%;
  }

  .page-btn {
    width: 40px;
    height: 40px;
  }
}
