/* 全体のコンテナ */
.news-list-container {
    position: relative;  
    max-width: 1400px; 
    margin: 0 auto;
	padding-left:5%;
	padding-right:5%;
	min-height: 1000px;
    padding-top: 50px;
    color: #fff;
    z-index: 100;
}

/* 全体のリセット */
* {
    text-decoration: none !important;
    text-decoration-skip-ink: none !important;
    text-decoration-thickness: 0 !important;
}

/* カテゴリボタンコンテナ */
.category-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto 50px;
    gap: 10px;
}

/* カテゴリボタン */
.category-btn {
    flex: 1;
    min-width: 120px;
    max-width: 200px;
    padding: 10px 15px;
    font-size: 2rem;
    border: 1px solid #FF3300;
    background-color: transparent;
    color: #FF3300;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, border 0.3s;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-family: "Barlow Condensed", sans-serif;
}

/* ホバー時とアクティブ時（選択中） */
.category-btn:hover,
.category-btn.active {
    background-color: #FF3300;
    color: #fff;
}

/* ニュースリスト */
#newsList {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* PC時に4カラム固定 */
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

  .news-title-wrapper {
    margin-top: 6px;
  }

/* ニュースアイテム */
.news-item {
    padding: 0;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    overflow: hidden;
}
.news-link img {
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.news-link:hover img {
  opacity: 0.8; /* または */
  filter: brightness(0.7); /* 好みに応じて */
}


/* ニュースリンク（全体をクリック可能に） */
.news-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* サムネイル */
.news-thumbnail {
    width: 100%;
    height: auto;
    display: block;
}

/* テキスト部分 */
.news-text {
    padding-top: 15px;
}

 /* タイトル */
.news-title {
    font-size: 1.4rem;
    line-height: 1.4em;
    font-weight: 500;
    margin-bottom: 8px;
		margin-top: 5px;
    color: #fff;
    transition: color 0.3s;
    text-align: left;
	
}

.news-title a {
    font-size: 1.4rem;
    line-height: 1.4em;
    font-weight: 500;
    margin-bottom: 8px;
		margin-top: 5px;
    color: #fff;
    transition: color 0.3s;
    text-align: left;
	
}

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

/* メタ情報（カテゴリ＋日付） */
.news-meta {
    display: flex;
    justify-content: flex-start;
	gap: 15px;
    align-items: center;
    font-size: 1.1rem;
    color: #bbb;
    margin-top: 0px;
}

/* カテゴリのアイコン */
.news-category {
    font-size: 1rem;
    font-weight: bold;
    padding: 2px 10px;
    display: inline-block;
    background-color: #FF3300;
    color: #000;
}




/* ▼ スマホ時（1カラム） */
@media (max-width: 1050px) {
	.news-list-container {
    position: relative;  
    max-width: 1400px; 
    margin: 0 auto;
	padding-left:0%;
	padding-right:0%;
	min-height: 1000px;
    padding-top: 50px;
    color: #fff;
    z-index: 100;
}
	/* テキスト部分 */
.news-text {
    padding-top: 15px;
	padding-left:20px;
}
	.news-title {
    font-size: 1.7rem;
    line-height: 1.5em;
    font-weight: bold;
    margin-bottom: 8px;
    color: #fff;
    transition: color 0.3s;
    text-align: left;
}
	
 #newsList {
    grid-template-columns: repeat(1, 1fr);
    gap: 0; 
    padding-left: 6%;
    padding-right: 6%;
  }
	.category-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
        padding-left: 6%;
        padding-right: 6%;
        margin: 0 auto 30px;
        gap: 10px;
    }

/* カテゴリのアイコン */
.news-category {
    font-size: 1.5rem;
    font-weight: bold;
    padding: 2px 10px;
    display: inline-block;
    background-color: #FF3300;
    color: #000;
}
}

/* ニュースリストのフェードアニメーション */
#newsList {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease-in-out, transform 0.4s ease-in-out;
}

/* フェードアウト時 */
.news-list-hidden {
    opacity: 0;
    transform: translateY(10px);
}

/* スクロールバーがあるなしで全体がズレる問題を防ぐ */
html {
    overflow-y: scroll;
}

/* ページネーション */
.pagination {
    position: relative;
    margin-top: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

/* ページボタン（四角・透明背景） */
.pagination-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    border: 2px solid #FF3300;
    background-color: transparent;
    color: #FF3300;
    font-weight: bold;
    cursor: pointer;
}
.news-date {
	font-size: 14px;
	color: #fff;
	font-weight: 600;
}
/* ホバー時 */
.pagination-btn:hover {
    background-color: #FF3300;
    color: #fff;
}
 .news-tag {
    background-color: #FF3300;
    color: black;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 8px;
    display: inline-block;
    white-space: nowrap;
  }

/* アクティブなページ */
.pagination-btn.active {
    background-color: #FF3300;
    color: #fff;
}
@media (max-width: 1050px) {
	/* ページネーション */
.pagination {
    position: relative;
    margin-top: 50px;
	margin-bottom: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
}

@media screen and (max-width: 1050px) {
  .news-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #666;
  }

  .news-link {
    flex-shrink: 0;
  }

  .news-link img {
    width: 40vw;
    height: auto;
    object-fit: cover;
    border: 1px solid #666;
    margin-bottom: 0;
  }

  .news-content {
    padding-left: 4vw;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .news-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 4px;
    font-size: 1.3rem;
    line-height: 1;
  }

  .news-category {
    background-color: #FF3300;
    color: black;
    font-size: 1.3rem;
    font-weight: 800;
    padding: 1px 8px;
    white-space: nowrap;
  }

  .news-date {
    font-size: 1.3rem;
    color: #fff;
    font-weight: 600;
    line-height: 1;
  }

  .news-title-wrapper {
    margin-top: 4px;
  }
	 .news-tag {
    background-color: #FF3300;
    color: black;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 8px;
    display: inline-block;
    white-space: nowrap;
  }

  .news-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #fff;
    text-align: left;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.3s ease-in-out;
  }

  .news-title:hover {
    color: #FF3300;
  }
}

.news-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.news-item.visible {
  opacity: 1;
  transform: translateY(0);
}

