@charset "UTF-8";

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

/* Common Section Padding */
.news-archive-sec {
  padding: 0 0 clamp(60px, 8vw, 160px);
  position: relative;
}

/* ----------------------------------
   FILTER BUTTONS
   ---------------------------------- */
.news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: clamp(40px, 5vw, 60px);
}

.filter-btn {
  background: transparent;
  border: 1px solid #ddd;
  border-radius: 30px;
  padding: 10px 30px;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  color: #888;
  cursor: pointer;
  transition: all 0.3s;
}
.filter-btn:hover,
.filter-btn.is-active {
  background-color: var(--c-green);
  border-color: var(--c-green);
  color: #fff;
}

/* ----------------------------------
   GRID LAYOUT
   ---------------------------------- */
.news-grid-layout {
  display: grid;
  /* Fluid Column: 最小幅300px程度を確保 */
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(40px, 5vw, 60px) clamp(20px, 4vw, 40px);
  margin-bottom: clamp(60px, 10vw, 100px);
}

/* ----------------------------------
   NEWS CARD
   ---------------------------------- */
.n-card {
  text-decoration: none;
  color: #111;
  display: flex;
  flex-direction: column;
  /* Hover state handling */
}

.n-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: #eee;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
}

.n-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.n-card:hover .n-thumb img {
  transform: scale(1.05);
}

.n-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  background-color: #fff;
  color: #111;
  letter-spacing: 0.05em;
  z-index: 1;
}
.tag-news {
  color: #111;
}
.tag-blog {
  color: var(--c-green);
}

.n-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.n-date {
  display: block;
  font-family: var(--font-en);
  font-size: 14px;
  color: #888;
  margin-bottom: 10px;
  font-weight: 600;
}

.n-title {
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 700;
  line-height: 1.6;
  transition: color 0.3s;
}
.n-card:hover .n-title {
  color: var(--c-green);
}

/* ----------------------------------
   PAGINATION
   ---------------------------------- */
.news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.page-num {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  color: #111;
  text-decoration: none;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s;
}
.page-num:hover,
.page-num.is-current {
  background-color: #111;
  border-color: #111;
  color: #fff;
}

.page-dots {
  font-family: var(--font-en);
  color: #888;
  padding: 0 5px;
}

.page-next {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 14px;
  color: #111;
  text-decoration: none;
  margin-left: 10px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.page-next:hover {
  border-color: #111;
}
/* Nextと同じスタイルをPrevにも適用 */
.page-prev {
  display: inline-block;
  font-family: var(--font-en); /* フォント変数は環境に合わせてください */
  font-size: 16px;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  margin: 0 10px;
  transition: opacity 0.3s;
}

.page-prev:hover {
  opacity: 0.6;
}

/* もしNextボタンに矢印など特殊な装飾がある場合、ここも調整が必要ですが
   現状のコードを見る限り文字だけのシンプルなリンクとして定義しています */
/* =========================================
   RESPONSIVE MANAGER
   ========================================= */

/* --- 768px --- */
@media (max-width: 768px) {
  /* 1カラム化 */
  .news-grid-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
/* --- 480px --- */
@media (max-width: 480px) {
  .news-filter {
    gap: 10px;
  }
}
