
/* archive-news.css */

/* タイトル部分（セクションタイトル） */
.archive-title {
  position: relative;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  margin: 100px 0 8px;
  color: #002b7f;
  padding-bottom: 10px;
}

.archive-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 60px;
  height: 3px;
  background-color: #002b7f;
  transform: translateX(-50%);
}

/* サブタイトル */
.archive-subtitle {
  text-align: center;
  color: #777;
  font-size: 16px;
  margin-bottom: 40px;
}

/* 戻るボタン（一覧へ戻る） */
.back-to-home {
  margin-top: 40px;
  text-align: center;
}

.back-to-home a {
  display: inline-block;
  padding: 12px 24px;
  background-color: #4caf50;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.3s;
}

.back-to-home a:hover {
  background-color: #388e3c;
}

.no-news-message {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  margin: 60px 0;
}

.news-archive-list {
  padding: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.news-archive-list img {
  display: block;
  margin: 16px auto; 
  max-width: 100%;
  height: auto;
}

/* 戻るボタン（一覧へ戻る） */
.back-to-home {
  margin: 40px auto;
  text-align: center;
}

.back-to-home a {
  display: inline-block;
  padding: 12px 24px; 
  background-color: #4caf50; 
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  border-radius: 6px; 
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: background-color 0.3s, transform 0.2s;
}

.back-to-home a:hover {
  background-color: #388e3c;
  transform: translateY(-2px);
}



.back-to-home a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  z-index: 2;
}

.back-to-home a:hover::before {
  animation: shine 0.75s ease forwards;
}

@keyframes shine {
  0% {
    left: -75%;
  }
  100% {
    left: 125%;
  }
}

.archive-home-link {
  display: inline-block;
  margin-top: 20px;
  text-align: center;
  font-size: 16px;
  color: #007cba;
  text-decoration: underline;
}

/* ================================
   NEWSアーカイブ：スマホ用だけ
================================ */
@media (max-width: 768px) {
  .archive-title {
    font-size: 1.6rem;
    margin: 90px 0 6px;
    line-height: 1.3;
    text-wrap: balance;
  }

  .archive-subtitle {
    font-size: 0.9rem;
    margin-bottom: 18px;
    color: #666;
    text-wrap: balance;
  }

  .news-list {
    margin: 0 auto 16px;
    padding: 0 12px;
  }

  .news-list {
    margin-bottom: 10px;
  }

  .back-to-home {
    margin-top: 10px; 
  }

  .news-item a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 12px 0;
    text-decoration: none;
    color: inherit;
  }

  .news-date {
    font-size: 0.9rem;
    color: #888;
    line-height: 1.3;
    word-break: keep-all;
    text-wrap: balance;
  }

  .news-label {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
  }

  .news-title {
    font-size: 0.95rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: keep-all;
    text-wrap: pretty;
  }

  .news-title .new {
    font-size: 0.6rem;
    padding: 1px 5px;
    margin-left: 6px;
    border-radius: 2px;
  }

  /* ページネーション：指で押しやすく */
  .pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    margin: 0 4px;
    padding: 0 8px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
  }

  /* 戻るボタン：幅を確保してタップしやすく */
  .back-to-home a {
    width: 100%;
    max-width: 420px;
    font-size: 1rem;
    padding: 12px 0;
  }
}

/* 極小端末（iPhone SE等）向け微調整 */
@media (max-width: 420px) {
  .archive-title { font-size: 1.5rem; }
  .archive-subtitle { font-size: 0.88rem; }
  .news-title { font-size: 0.92rem; }
}

