@charset "UTF-8";
.news-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5em;
}

.news-section h2 {
  font-size: 1.6em;
  margin-bottom: 1em;
  border-left: 6px solid #5cb85c;
  padding-left: 0.5em;
  color: #333;
}

.news-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2em;
  justify-content: space-between;
}

/* ▼ 共通デザイン（aとdiv両方に適用） */
.news-item {
  display: flex;
  background: #fafafa;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  flex: 1 1 calc(50% - 0.6em);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* ▼ hover時の効果はリンク付きのみ */
.news-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ▼ リンクなし（no-link）は hover無効＆カーソル変更 */
.news-item.no-link {
  cursor: default;
}

.news-item.no-link:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.news-item img {
  width: 40%;
  height: 120px;
  object-fit: cover;
}

.news-content {
  padding: 1em;
  width: 60%;
}

.news-content h3 {
  margin: 0 0 0.3em;
  font-size: 0.9em;
  color: #666;
}

.news-content p {
  margin: 0;
  font-size: 1em;
  color: #333;
}

/* ▼ スマホ（1列表示） */
@media (max-width: 768px) {
  .news-item {
    flex: 1 1 100%;
    flex-direction: column;
  }

  .news-item img {
    width: 100%;
    height: 180px;
  }

  .news-content {
    width: 100%;
  }
}

/* /end/ */
