/* =======================================
   PC表示用スタイル（幅768px以上）
======================================= */
body.blog {
  background-color: #000;
  color: #fff;
}

/* ▼ メイン構造 */
.news-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1140px;
  margin: 0 auto;
  padding: 160px 1rem 2rem;
}

.news-entries {
  flex: 3;
}

.news-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #ccc;
}

.news-thumbnail {
  width: 30%;
  flex-shrink: 0;
}

.news-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.news-text {
  flex-grow: 1;
}

.news-date {
  font-size: 0.9em;
  color: #fff;
  margin-bottom: 0.3em;
  display: block;
}

.news-text h2 {
  font-size: 1.2em;
  margin: 0 0 0.3em;
}

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

.news-text a:hover {
  text-decoration: underline;
}

.news-excerpt {
  font-size: 1em;
  color: #fff;
  line-height: 1.4;
}

.news-read-more {
  display: inline-block;
  margin-top: 0.5em;
  font-size: 0.9em;
  color: #509fed;
  text-decoration: underline;
}

/* ▼ サイドバー */
.news-sidebar {
  flex: 1;
}

.news-sidebar h3 {
  font-size: 1.1em;
  border-bottom: 3px solid #509fed;
  padding-bottom: 0.5em;
  margin-bottom: 1em;
  color: #509fed;
  margin-top: 20px;
}

.news-sidebar ul {
  list-style: none;
  padding-left: 0;
}

.news-sidebar ul li {
  margin-bottom: 0.5em;
}

.news-sidebar ul li a {
  color: #fff;
  text-decoration: none;
}

.news-sidebar ul li a:hover {
  text-decoration: underline;
}

/* =======================================
   モバイル表示用スタイル（幅768px以下）
======================================= */
@media screen and (max-width: 768px) {
  .news-container {
    flex-direction: column;
    padding: 100px 1rem 2rem;
  }

  .news-item {
    flex-direction: column;
  }

  .news-thumbnail,
  .news-text {
    width: 100%;
  }

  .news-sidebar {
    margin-top: 2rem;
  }
}
