/**
 * Section File: news-archive.css
 * 2026-05-18 | Final checked
 */

.news-archive-wrapper {
  position: relative;
  background: #fff;
  min-height: 100vh;
  font-family:
    "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    Meiryo, sans-serif;
  color: #333;
  margin: 0;
  padding: 0;
  z-index: var(--z_0-base);
}

/* ==========================================================================
   Hero Section (固定1枚画像用に最適化)
   ========================================================================== */
.news-archive-hero {
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #222;
}

.news-archive-hero__image-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.news-archive-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.news-archive-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.news-archive-hero__content {
  position: relative;
  top: 50px;
  z-index: 3;
  text-align: center;
  padding: 0 20px;
  color: #fff;
  max-width: 800px;
}

.news-archive-hero__title {
  font-size: 2.4rem;
  font-weight: 900;
  margin: 0 0 12px;
  color: #fff;
  letter-spacing: 0.1em;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.news-archive-hero__sub {
  font-size: 0.75rem;
  font-weight: bold;
  margin: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  display: inline-block;
  padding: 8px 18px;
  border-radius: 6px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Main Section & Controls
   ========================================================================== */
.news-archive-main-section {
  position: relative;
  padding-top: 80px;
  padding-bottom: 80px;
  z-index: 10;
  background: transparent;
}

.news-archive-main-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    #ffdbdb 0%,
    #ffead0 15%,
    #fbffdb 30%,
    #dbffea 45%,
    #dbf4ff 60%,
    #dee1ff 80%,
    #f2dbff 100%
  );
  background-size: 100% 100%;
  animation: archiveRainbowHueRotate 25s linear infinite;
  pointer-events: none;
}

@keyframes archiveRainbowHueRotate {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}

.news-archive-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.news-archive-controls {
  margin-top: -110px;
  position: relative;
  margin-bottom: 40px;
}

.news-archive-search-form {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 0 20px;
  border-radius: 99px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  max-width: 580px;
  margin: 0 auto 20px;
  height: 56px;
  box-sizing: border-box;
}

.news-archive-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  height: 100%;
  background: transparent;
}

.news-archive-search-submit {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0 0 0 10px;
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.news-archive-search-submit:hover {
  transform: scale(1.1);
}

.news-archive-filter-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.news-archive-filter-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0 20px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 99px;
  font-size: 0.875rem;
  background: rgba(255, 255, 255, 0.9);
  color: #666;
  font-weight: bold;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  white-space: nowrap;
}

.news-archive-filter-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: #f69381;
  color: #f69381;
}

.news-archive-filter-link.is-active {
  background: #f69381;
  color: #fff;
  border-color: #f69381;
  box-shadow: 0 6px 15px rgba(246, 147, 129, 0.4);
}

/* ==========================================================================
   Cards & Loop
   ========================================================================== */
.news-archive-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.6);
  margin-bottom: 25px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.news-archive-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.95);
}

.news-archive-card__thumbnail {
  flex-shrink: 0;
  width: 100%;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
}

.news-archive-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-archive-card:hover .news-archive-card__img {
  transform: scale(1.05);
}

.news-archive-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-archive-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.news-archive-card__date {
  color: #888;
  font-size: 0.85rem;
  font-weight: 500;
}

.news-archive-card__label {
  padding: 4px 12px;
  border-radius: 5px;
  font-size: 0.6875rem;
  font-weight: bold;
  color: #fff;
  background-color: #666;
}

.news-archive-category-recruit .news-archive-card__label {
  background: #f69381;
}
.news-archive-category-event .news-archive-card__label {
  background: #34c759;
}
.news-archive-category-notice .news-archive-card__label {
  background: #007aff;
}

.news-archive-card__title {
  font-size: 1.2rem;
  margin: 0 0 12px;
  font-weight: 800;
  line-height: 1.4;
}

.news-archive-card__title a {
  color: #222;
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-archive-card__excerpt {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 15px;
}

.news-archive-more-link {
  display: inline-block;
  color: #f69381;
  font-weight: 800;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.news-archive-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 50px;
}

.news-archive-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 12px;
  text-decoration: none;
  color: #444;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  transition: all 0.3s;
}

.news-archive-pagination .page-numbers.current {
  background: #f69381;
  color: #fff;
}

.news-archive-page-footer {
  text-align: center;
  margin-top: 60px;
}

.news-archive-back-to-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 300px;
  height: 56px;
  border: 2px solid #f69381;
  color: #f69381;
  text-decoration: none;
  border-radius: 99px;
  font-weight: 900;
  font-size: 1rem;
  background: #fff;
  transition: all 0.3s ease;
}

.news-archive-back-to-home:hover {
  background: #f69381;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(246, 147, 129, 0.3);
}

/* ==========================================================================
   Responsive (PC・タブレットサイズ)
   ========================================================================== */
@media (min-width: 768px) {
  .news-archive-hero {
    height: 400px;
  }
  .news-archive-hero__title {
    font-size: 3.2rem;
  }
  .news-archive-hero__sub {
    font-size: 1.15rem;
  }

  .news-archive-hero__img {
    object-position: center 60%;
  }
  .news-archive-main-section {
    padding-top: 80px;
    padding-bottom: 100px;
  }
  .news-archive-controls {
    margin-bottom: 60px;
  }
  .news-archive-search-form {
    height: 64px;
    margin-bottom: 30px;
  }

  .news-archive-filter-nav {
    gap: 12px;
  }
  .news-archive-filter-link {
    padding: 0 28px;
    height: 48px;
    font-size: 0.9375rem;
  }
  .news-archive-card {
    flex-direction: row;
    padding: 40px;
    gap: 35px;
    border-radius: 28px;
  }
  .news-archive-card__thumbnail {
    width: 280px;
    height: 180px;
    flex-shrink: 0;
  }
  .news-archive-card__title {
    font-size: 1.35rem;
  }
  .news-archive-pagination {
    gap: 12px;
  }
  .news-archive-pagination .page-numbers {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }
  .news-archive-back-to-home {
    width: auto;
    padding: 0 60px;
    height: 64px;
    font-size: 1.1rem;
  }
}

@media screen and (max-height: 500px) and (orientation: landscape) {
  .news-archive-hero__img {
    object-position: center 100%;
  }
}
