/* ================================================
   NEWS PAGE STYLES
   ================================================ */

/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=M+PLUS+1p:wght@500;700;800&display=swap');

/* ================================================
   Page Header
   ================================================ */

.page-header {
  padding: 5rem 1rem;
  border-bottom: 1px solid #f7fafc;
}

.page-header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.page-header-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  color: var(--wedo-vibrant-blue);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.page-header-title {
  font-family: 'M PLUS 1p', 'Noto Sans JP', sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  color: #000000;
  margin-bottom: 1.5rem;
}

.page-header-description {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #718096;
  max-width: 42rem;
}

/* ================================================
   News List Section
   ================================================ */

.news-list-section {
  padding: 4rem 1rem;
}

.news-list-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

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

/* News Item */
.news-item {
  padding: 2rem 0;
  border-bottom: 1px solid #f7fafc;
  transition: all 0.3s ease;
}

.news-item:hover .news-title {
  color: var(--wedo-vibrant-blue);
}

.news-item:hover .news-read-more {
  opacity: 1;
}

.news-item-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-date-col {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.news-date {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  color: #a0aec0;
}

.news-content-col {
  flex: 1;
}

.news-title {
  font-family: 'M PLUS 1p', 'Noto Sans JP', sans-serif;
  font-size: 18px;
  line-height: 1.4;
  color: #000000;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
  cursor: pointer;
}

.news-excerpt {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #a0aec0;
}

.news-action-col {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  color: var(--wedo-vibrant-blue);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* ================================================
   Pagination
   ================================================ */

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
  align-items: center;
}

.pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pagination-btn.active {
  background-color: var(--wedo-vibrant-blue);
  color: #ffffff;
}

.pagination-btn:not(.active) {
  background-color: #ffffff;
  border: 1px solid #d2d6dc;
  color: #718096;
}

.pagination-btn:not(.active):hover {
  border-color: var(--wedo-vibrant-blue);
  color: var(--wedo-vibrant-blue);
}

.pagination .current {
  font-weight: bold;
  background-color:var(--wedo-vibrant-blue);
  color: #FFFFFF;
}
.pagination .current:not(.active):hover {
  font-weight: bold;
  background-color:var(--wedo-vibrant-blue);
  color: #FFFFFF;
}

/* ================================================
   Back Section
   ================================================ */

.back-section {
  padding: 3rem 1rem;
  border-top: 1px solid #f7fafc;
}

.back-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.back-link {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  color: #a0aec0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: var(--wedo-vibrant-blue);
}


/* ================================================
   for page top
   ================================================ */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #009dbd;
  color: #ffffff;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: 50%;
  box-shadow:
    0 8px 24px rgba(0, 157, 189, 0.35);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 32px rgba(0, 157, 189, 0.45);
  background: #00b7db; /* 少しだけ明るく */
}

.back-to-top:active {
  transform: translateY(0);
  box-shadow:
    0 6px 16px rgba(0, 157, 189, 0.35);
}



/* ================================================
   Tablet Responsive (max-width: 1024px)
   ================================================ */

@media (max-width: 1024px) {
  .page-header-title {
    font-size: 40px;
  }

  .page-header-description {
    font-size: 16px;
  }

  .news-title {
    font-size: 17px;
  }
}

/* ================================================
   Desktop Responsive (min-width: 768px)
   ================================================ */

@media (min-width: 768px) {
  .news-item-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
  }

  .news-date-col {
    width: 10rem;
  }

  .news-content-col {
    flex: 1;
  }

  .news-title {
    font-size: 18px;
  }

  .page-header-title {
    font-size: 48px;
  }

  .page-header-description {
    font-size: 18px;
  }
}

/* ================================================
   Mobile Responsive (max-width: 767px)
   ================================================ */

@media (max-width: 767px) {
  .page-header {
    padding: 3rem 1rem;
  }

  .page-header-label {
    font-size: 12px;
  }

  .page-header-title {
    font-size: 32px;
    margin-bottom: 1rem;
  }

  .page-header-description {
    font-size: 15px;
  }

  .news-list-section {
    padding: 2rem 1rem;
  }

  .news-item {
    padding: 1.5rem 0;
  }

  .news-item-layout {
    gap: 0.75rem;
  }

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

  .news-title {
    font-size: 16px;
  }

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

  .news-read-more {
    font-size: 13px;
  }

  .pagination {
    margin-top: 2rem;
  }

  .back-section {
    padding: 2rem 1rem;
  }

  .back-link {
    font-size: 13px;
  }
}
