/* CSS Document */

#news{
	background: url("../img/grass-bk.jpg") repeat center;
	background-size: cover;
	position: relative;
  padding: 80px 0 120px;
}

#news .main-area{
  padding : 0 30px;
  max-width: 1200px;
  margin: 0 auto;
}

#news::after{
  position: absolute;
  content: '';
  background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
  width: 100%;
  height: 60px;
  bottom: 0;
  left: 0;
  display: block;
}

.news {
  position: relative;
  width: 100%;
  margin: 0 auto;
  background: rgba(255,255,255,0.95);
  border-radius: 50px;
  padding:30px 50px;
}

.news::after {
  position: absolute;
  content: '';
  display: block;
  background: url("../img/blue-pin.png") no-repeat;
  background-size: cover;
  right: 15px;
  top: -10px;
  width: 50px;
  aspect-ratio: 1 / 1;
  transform: scaleX(-1);
}

.news::before {
  position: absolute;
  content: '';
  display: block;
  background: url("../img/blue-pin.png") no-repeat;
  background-size: cover;
  left: 15px;
  top: -10px;
  width: 50px;
  aspect-ratio: 1 / 1;;
}

/* タイトル */
.news-title {
  text-align: center;
}

.news-title p {
  font-size: 0.95rem;
  color: var(--sky);
}

.news-title h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 800;
}

/* リスト全体 */
.newsList {
  list-style: none;
  overflow: auto;
  max-height: 250px;
  scrollbar-color: #a8d8ea rgba(255,255,255,0);
  scrollbar-width: thin;
}

/* 各アイテム */
.newsList li {
  border-bottom: 1px solid rgba(168, 216, 234, 0.4);
  transition: background 0.2s;
}

.newsList a {
  display: block;
  text-decoration: none;
  color: var(--text);
}

.newsList a:hover li,
.newsList li:hover {
  background: var(--sky-pale);
}

/* アイテム内レイアウト */
.news-item-info {
  padding: 18px 24px;
}

.news-item-info .up {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.newsList a{
  position: relative;
}

.newsList a::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  background: url(../img/traingle-tri.png) no-repeat center;
  background-size: cover;
  width: 30px;
  aspect-ratio: 9 / 5;
  display: block;
  transform: translateY(-50%);
  transition: 0.3s ease;
  z-index: 1;
  opacity: 0;
}

.newsList a:hover::after {
  opacity: 1;
  width: 30px;
  animation: moving 1s ease-in infinite;
}

.news-item-info-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* 日付 */
.up_ymd {
  font-size: 0.85rem;
  color: #555;
  white-space: nowrap;
  letter-spacing: 0.1rem;
}

/* カテゴリタグ */
.catName {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #7cc6ee;
  color: #fff;
  white-space: nowrap;
}

/* タイトル */
.newsList .title {
  font-size:1rem;
  color: #555;
  line-height: 1.6;
  font-weight: 600;
}

/* ===== FADEUP / FADEIN アニメーション ===== */
.fadeUp {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fadeUp.active {
  opacity: 1;
  transform: translateY(0);
}

.fadeIn {
  opacity: 0;
  transition: opacity 0.8s ease;
}
.fadeIn.active {
  opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1460px) {
  .newsList .title {
    font-size: 0.9rem;
  }
}
  
@media (max-width: 1200px) {
  
    
  #news {
    position: relative;
    padding: 30px 0 60px;
    top: -1px;
  }
  
  
  #news .main-area {
    padding: 0 20px;
  }
  
  .news {
    border-radius: 20px;
    padding: 30px 20px 40px;
  }
  
  .news::before {
    left: -5px;
    top: -5px;
    width: 40px;
  }
  
  .news::after {
    right: -5px;
    top: -5px;
    width: 40px;
  }
}

@media (max-width: 768px) {
  

  #news {
    padding: 80px 0 60px;
  }
  
  .news::after,
  .news::before {
    width: 25px;
  }
  
  .news-item-info .up {
    flex-direction: column;
  }
  
  .news-item-info {
    padding: 14px 0;
  }

  .news-item-info-detail {
    gap: 8px;
  }
  
  
  .news {
    border-radius: 30px;
    padding: 20px 20px 40px;
  }
  
  .up_ymd {
    font-size: 0.7rem;
    color: #555;
    white-space: nowrap;
    letter-spacing: 0.05rem;
  }
  
  .newsList .title {
    color: #333;
    font-weight: 500;
  }
  
  
  
}