@charset "utf-8";

/* ========== News / 更新情報・お知らせ ========== */
.news-section {
  text-align: left;
  margin: 0 auto 28px;
  max-width: 100%;
  padding: 0;
}

.news-section-home {
  margin-bottom: 20px;
  margin-top: 8px;
}

.news-section h2 {
  display: inline-block;
  margin: 8px 0 14px;
  padding: 10px 28px;
  background-color: #00e667;
  border-radius: 16px; /* 999px → 16px でボタン感を軽減 */
  color: #fff;
  font-size: 1.25rem;
  font-weight: bold;
  text-align: center;
  box-shadow: none; /* 影を削除 */
  letter-spacing: 0.05em;
}

.news-lead {
  margin: 0 0 14px;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

.news-container {
  margin: 0;
}

.news-loading,
.news-empty {
  margin: 8px 0;
  padding: 12px;
  text-align: center;
  color: #888;
  font-size: 0.95rem;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-item {
  background: #fff;
  border: 2px solid #c8f0c8;
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 160, 80, 0.08);
  text-align: left;
}

.news-item-compact {
  /* padding controlled by children */
}

.news-item-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0;
  padding: 10px 14px 8px;
  background: #fff;
  position: relative;
}

/* 日付行の下に細い緑ストライプ（区切り線） */
.news-item-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 7px;
  background-image: repeating-linear-gradient(135deg, transparent, transparent 6px, #7ee617 6px, #7ee617 12px);
  background-color: #e8ffe8;
  pointer-events: none;
}

.news-date {
  font-size: 0.85rem;
  color: #007a3d;
  font-weight: bold;
}

.news-type {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: bold;
  line-height: 1.4;
}

.news-type-update {
  background: #e8ffe8;
  color: #00a050;
  border: 1px solid #00e667;
}

.news-type-notice {
  background: #fff8e0;
  color: #b07a00;
  border: 1px solid #f0d060;
}

.news-title {
  margin: 0;
  padding: 12px 14px 4px;
  font-size: 1.05rem;
  font-weight: bold;
  color: #333;
  line-height: 1.4;
}

.news-item-compact .news-title {
  font-size: 1rem;
  padding: 10px 14px 2px;
}

.news-body {
  margin: 0;
  padding: 0 14px 8px;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.65;
}

.news-item-compact .news-body {
  font-size: 0.85rem;
  padding-bottom: 10px;
  line-height: 1.6;
}

.news-link {
  margin: 0;
  padding: 0 14px 12px;
  font-size: 0.9rem;
}

.news-link a {
  color: #00a050;
  font-weight: bold;
  text-decoration: none;
}

.news-link a:hover {
  text-decoration: underline;
  color: #007a3d;
}

.news-more {
  margin: 16px 0 4px;
  text-align: center;
}

.news-more-btn {
  display: inline-block;
  padding: 8px 22px;
  background: #fff;
  color: #00b050;
  border: 2px solid #00e667;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: bold;
  transition:
    background 0.15s,
    transform 0.15s;
}

.news-more-btn:hover {
  background: #e8ffe8;
  transform: translateY(-1px);
}

.news-more-btn:focus-visible,
.news-link a:focus-visible {
  outline: 3px solid #00b050;
  outline-offset: 2px;
}

@media screen and (max-width: 520px) {
  .news-section h2 {
    font-size: 1.05rem;
    padding: 7px 18px;
  }

  .news-item-header {
    padding: 8px 12px 7px;
  }

  .news-title {
    font-size: 0.98rem;
    padding: 10px 12px 2px;
  }

  .news-body {
    font-size: 0.85rem;
    padding: 0 12px 6px;
  }

  .news-link {
    padding: 0 12px 10px;
  }

  /* スマホのみ本文を2行に省略（固定heightは使わず、半端な切れを防ぐ） */
  .news-item-compact .news-body {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    /* height / max-height は指定しない */
  }
}
