/* ***********************************************************************
	NEWS Tabs
*********************************************************************** */
.news-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  list-style: none;
  padding: 15px;
  font-size: 16px;
  background:#e5e0e0;
  border-radius: 4px;
}

.news-tabs li {
  padding: 4px 10px;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 16px;
  width: calc(100% / 6);
  text-align:center;
}

.news-tabs li.active {
  background: #2aaa40;
  color: #fff;
}

/* ニュースカードのグリッドレイアウト */
#news-list.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* PC：4列 */
  gap: 24px;
}


/* カード基本構造 */
.news-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.20);
}

/* サムネイル */
.news-thumb img {
  width: 100%;
  height: 158px;
  object-fit: cover;
  display: block;
}

/* 中身 */
.news-card-content {
  padding: 12px 14px;
}

.tag-label {
  display: inline;
  background: #2aaa40;
  color: #fff;
  font-size: 0.8em;
  font-weight: 500;
  padding: 5px;
  margin-right: 8px;
  border-radius: 4px;
  text-align: center;
}

.tag-link {
  color: #fff !important;
}

.news-date {
  font-size: 13px;
  color: #777;
  margin-bottom: 4px;
  display: inline;
}

.news-title {
  margin-top:10px;
  font-size: 15px;
  line-height:1.6em;
}

.news-title a{
  color: #333;
  text-decoration: none;
}

.news-title a:hover {
color:#999;
}


/* スマホは2列表示 */
@media (max-width: 768px) {
  #news-list.news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

.news-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .news-tabs li {
    width: 100%; /* ← grid の場合は width 指定不要なので100% */
    font-size:13px;
  }

  .news-thumb img {
    height: 140px;
  }
}


#load-more {
  display: block;
  width:200px;
  margin: 40px auto;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  background: #2aaa40;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: color 0.3s ease;
  gap: 6px; /* テキストとアイコンの間隔 */
}
#load-more:hover {
  opacity: 0.8;
}

#load-more i {
  transition: transform 0.3s ease;
}

#load-more:hover i {
  transform: translateX(4px); /* 右に4px動く */
}


#btn-more {
  display: block;
  width:200px;
  margin: 40px auto;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  background: #2aaa40;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  text-align: center;
  transition: color 0.3s ease;
  gap: 6px; /* テキストとアイコンの間隔 */
}

#btn-more a {
  color: #fff;
}

#btn-more:hover {
  opacity: 0.8;
}

#btn-more i {
  transition: transform 0.3s ease;
}

#btn-more:hover i {
  transform: translateX(4px); /* 右に4px動く */
}



/* ============================
   シンプルリスト表示（トップページ）
   ============================ */

.news-item-simple {
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid #e5e5e5;
  font-size: 15px;
}



.news-item-simple .news-date {
  color: #888;
  white-space: nowrap;
  font-weight: 500;
}

.news-item-simple .news-tag {
display:inline-block;
  background: #2aaa40;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
margin:0 10px;
width:100px;
text-align:center;
}

.news-item-simple .news-title {
  color: #333;
  text-decoration: none;
  line-height: 1.4;
}

.news-item-simple .news-title:hover {
  opacity: .7;
}

/* ============================
   スマホ
   ============================ */
@media (max-width: 768px) {

  .news-item-simple {
    display: block;
    padding:10px 15px;
  }

  .news-item-simple .news-date,
  .news-item-simple .news-tag {
    display: inline-block;
    margin-bottom: 6px;
    padding: 0 4px !important;
    width: 80px !important;
  }

  .news-item-simple .news-tag  a{
    font-size: 10px !important;
    width: 80px !important;
  }

  .news-item-simple .news-title {
    display: block;
    margin-top: 2px;
    line-height: 140%;
  }
}
