/**
 * Mix News Block Styles
 */

.wp-block-mix-news-news-list {
  margin: 2rem 0;
}

.mix-news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mix-news-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #e0e0e0;
}

.mix-news-item:first-child {
  padding-top: 0;
}

.mix-news-item:last-child {
  border-bottom: none;
}

.mix-news-date {
  flex-shrink: 0;
  min-width: 100px;
}

.mix-news-date a {
  color: inherit;
  text-decoration: none;
}

.mix-news-date a:hover {
  text-decoration: underline;
}

.mix-news-type {
  flex-shrink: 0;
}

.mix-news-type-label {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  background-color: #f0f0f0;
  border-radius: 3px;
  color: #333;
}

.mix-news-content {
  flex: 1;
  min-width: 0;
}

.mix-news-title a {
  color: inherit;
  text-decoration: none;
}

.mix-news-title a:hover {
  text-decoration: underline;
}

.mix-news-new-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.4rem;
  font-size: 0.7rem;
  font-weight: bold;
  color: #fff;
  background-color: #e74c3c;
  border-radius: 3px;
  vertical-align: middle;
}

.mix-news-excerpt {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

.mix-news-excerpt p {
  margin: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .mix-news-item {
    flex-direction: column;
    gap: 0.5rem;
  }

  .mix-news-date {
    min-width: auto;
  }
}
