/* ===== ニュース一覧（罫線＋横並び） ===== */
.custom-news-list {
  width: 100%;
  max-width: 900px;
  margin: 30px auto;
  border-top: 2px solid #50C8C6;
  border-bottom: 2px solid #50C8C6;
  font-family: "Noto Sans JP", sans-serif;
}

.news-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 5px;
  border-bottom: 1px solid #ddd;
  transition: background 0.2s ease;
}
.news-row:last-child { border-bottom: none; }
.news-row:hover { background: #f5fdfd; }

.news-date {
  color: #777;
  font-size: 0.85rem;
  min-width: 90px;
}
.news-title {
  flex: 1;
  padding: 0 8px;
  color: #333;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.4;
}
.news-title:hover { color: #00a99d; }

.new-icon {
  background: #50C8C6;
  color: #fff;
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 0.7rem;
  margin-left: 4px;
  display: inline-block;
  line-height: 1.2;
}

.more-link {
  text-align: right;
  margin-top: 10px;
}
.more-link a {
  color: #50C8C6;
  font-weight: bold;
  text-decoration: none;
}
.more-link a:hover { text-decoration: underline; }

/* ===== 詳細ページ ===== */
/* ===== 詳細ページ レイアウト調整 ===== */
.news-detail {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  max-width: 900px;
  margin: 50px auto;
  padding: 0 20px;
  font-family: "Noto Sans JP", sans-serif;
}

/* 左側：サムネイル */
.news-detail-thumb {
  flex: 0 0 250px;
  text-align: center;
}

.news-thumb-img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.news-thumb-img:hover { transform: scale(1.03); }

/* 右側：本文 */
.news-detail-body {
  flex: 1;
}

.news-detail-body h2 {
  font-size: 1.6rem;
  border-bottom: 2px solid #50C8C6;
  padding-bottom: 5px;
  margin-bottom: 10px;
}

.news-detail-date {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.news-detail-content {
  line-height: 1.8;
}

/* ===== スマホ対応 ===== */
@media (max-width: 768px) {
  .news-detail {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .news-detail-thumb {
    flex: none;
  }
  .news-thumb-img {
    max-width: 80%;  /* ← スマホでは少し小さく */
  }
  .news-detail-body {
    width: 100%;
  }
}

.news-detail-body h2 {
  font-size: 1.6rem;
  border-bottom: 2px solid #50C8C6;
  padding-bottom: 5px;
  margin-bottom: 10px;
}
.news-detail-date {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 15px;
}
.news-detail-content { line-height: 1.8; }

/* ===== 画像ポップアップ ===== */
.popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.popup img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
}
