/* =========================================
   全体共通
========================================= */
body {
  background: #000;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
}

h1, h2, h3 {
  margin: 0;
  padding: 0;
}

.mainnews{
  text-align: center;
  padding: 100px 0 50px 0;
}
/* =========================================
   NEWS セクション（トップページ）
========================================= */
.top-news-section {
  padding: 40px 20px;
  background: #000;
  color: #fff;
}

.news-title {
  font-size: 28px;
  margin-bottom: 20px;
  border-left: 4px solid #0af;
  padding-left: 10px;
}

/* ▼ トップページ：PCは4列、モバイルは1列 */
.news-area {
  display: grid;
  gap: 20px;
}

/* PC：横4つ */
@media (min-width: 900px) {
  .news-area {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* モバイル：縦並び */
@media (max-width: 899px) {
  .news-area {
    grid-template-columns: repeat(2,1fr);
  }


  .news-title{
    font-size: 20px;
  }
}

/* =========================================
   NEWS一覧ページ
========================================= */
.news-list {
  display: grid !important; /* ← 他CSSに負けないように */
  gap: 25px;
  padding: 20px;
}

/* PC：3列 */
@media (min-width: 900px) {
  .news-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* モバイル：1列 */
@media (max-width: 899px) {
  .news-list {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   NEWSカード共通（トップ・一覧）
========================================= */
.news-card {
  background: #111;
  border: 1px solid #333;
  padding: 15px;
  transition: 0.3s;
  border-radius: 6px;
}

.news-card:hover {
  transform: translateY(-5px);
  border-color: #0af;
}

/* 画像サイズ統一 */
.news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
}

.news-info {
  margin-top: 10px;
}

.news-info .date {
  color: #aaa;
  font-size: 14px;
}

.news-info h3 {
  font-size: 18px;
  margin: 8px 0;
}

.news-info p {
  font-size: 14px;
  color: #ddd;
}

.more {
  display: inline-block;
  margin-top: 10px;
  color: #0af;
  text-decoration: underline;
  transition: 0.3s;
}

.more:hover {
  color: #08c;
}

/* =========================================
   NEWS一覧へのバナー（トップページ下）
========================================= */
.news-more-banner {
  margin-top: 30px;
  text-align: center;
}

.news-more-banner a {
  display: inline-block;
  padding: 12px 30px;
  background: #0af;
  color: #000;
  font-weight: bold;
  border-radius: 4px;
  transition: 0.3s;
}

.news-more-banner a:hover {
  background: #08c;
}

/* =========================================
   NEWS詳細ページ
========================================= */
.news-detail {
  background: #111;
  padding: 20px;
  border: 1px solid #333;
  margin: 20px;
  border-radius: 6px;
}

.news-detail img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 20px;
}

.news-detail h1 {
  font-size: 26px;
  margin-bottom: 10px;
}

.news-detail .date {
  color: #aaa;
  font-size: 14px;
}

.news-detail .content {
  margin-top: 20px;
  line-height: 1.8;
  color: #ddd;
}
