.sf-news-section {
	position: relative;
	width: 100%;
	overflow: hidden;
	padding: 6rem 0;
	color: #fff;
}

.news-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}

.news-bg-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 1s ease;
}

.news-bg-img.active {
	opacity: 1;
}

.sf-news-inner {
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem;
}

@media (min-width: 769px) {
	.sf-news-grid {
	    display: grid;
	    grid-template-columns: repeat(2, 1fr);
	    gap: 1.5rem;
	}
}

@media (max-width: 768px) {
	.sf-news-grid {
	    display: grid;
	    grid-template-columns: 1fr;
	    gap: 1rem;
	}
	.sf-news-item table {
		width: 100%;
		table-layout: fixed; /* ← これが最重要 */
	}
	.sf-news-item td {
		word-break: break-word; /* 長い文字列を折り返す */
		white-space: normal !important; /* nowrap を解除 */
	}
	.sf-news-item span {
		white-space: normal !important; /* タイトルの nowrap を解除 */
	}
}
/*
.sf-news-item a {
	display: block;
	padding: 1rem;
	background: rgba(0,0,0,0.4);
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
	color: #fff;
	transition: background 0.2s ease, box-shadow 0.2s ease;
}

.sf-news-item a:hover {
	background: rgba(0,0,0,0.6);
	box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
*/

/* --- お知らせ（大項目） --- */
.sf-news-item {
	font-size: 1.4rem;	   /* 大項目 */
	font-weight: 700;
	margin-bottom: 1rem;
	padding: 0.6rem 1rem;
	background: rgba(0,0,0,0.55);
	border-radius: 6px;
	color: #fff;
	position: static !important;
	z-index: auto !important;
	transform: none !important;
	overflow: visible !important;
}

/* --- table 全体 --- */
.sf-news-item table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0 0.5rem;
}

/* --- 小項目（行） --- */
.sf-news-item td {
	padding: 0.8rem 1rem;
	background: rgba(0,0,0,0.35);
	border-radius: 6px;
	transition: background 0.2s ease, transform 0.2s ease;
}

/* --- hover（PCのみ） --- */
@media (hover: hover) {
	.sf-news-item td:hover {
		background: rgba(0,0,0,0.35);
		transform: translateX(4px);
	}
}

/* --- お知らせ（大項目） --- */
.sf-news-item {
	font-size: 1.4rem;
	font-weight: 700;
	margin-top: 1rem;
	padding: 0.6rem 1rem;
	background: rgba(0,0,0,0.35); /* 金貨背景でも読みやすい */
	border-radius: 6px;
	color: #fff;
}

/* --- table 全体 --- */
.sf-news-item table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0 0.5rem; /* 行間を広げて読みやすく */
	margin-top: 1rem; /* ← これが一番自然に効く */
}

/* --- 小項目（行） --- */
.sf-news-item td {
	padding: 0.8rem 1rem;
	background: rgba(0,0,0,0.00); /* 金貨背景に負けない濃さ */
	border-radius: 6px;
	transition: background 0.2s ease, transform 0.2s ease;
}

/* --- hover（PCのみ） --- */
@media (hover: hover) {
	.sf-news-item td:hover {
		background: rgba(0,0,0,0.35);
		transform: translateX(4px);
	}
}

/* --- 小項目の文字サイズ（大項目より少し小さく） --- */
.sf-news-item td a {
	display: block;
	padding-left: 1.2rem;
	font-size: 1.2rem;	   /* ← 大項目より少し小さい */
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	line-height: 1.5;
}

.sf-news-item td a:hover {
	text-decoration: underline;
}

/* --- soon バッジ（読みやすく大きく、薄い背景） --- */
.sf-news-item .soon {
	display: inline-block;
	padding: 4px 8px;
	font-size: 1.2rem;		 /* ← 小項目より少し小さいが十分読める */
	border-radius: 6px;
	background: rgba(255,255,255,0.25); /* 金貨背景に合う薄い白 */
	color: #fff;
	margin-left: 0.2rem;
	animation: soonblue 1s cubic-bezier(.77,0,.18,1) infinite alternate; 
}

@keyframes soonblue { 
	0% { 
		text-shadow: 0 0 10px #ff1493, 0 0 5px #fff, 0 0 13px #ffc0cb; 
	} 
	90% { 
		text-shadow: 0 0 60px #ff1493, 0 0 15px #fff, 0 0 40px #ffc0cb; 
	} 
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 0.5rem;
}

.news-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 1rem;
  transition: transform 0.3s ease;
}

.news-card:hover {
  transform: translateY(-4px);
}

.news-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.news-card .category {
  font-size: 0.9rem;
  color: #666;
}

.news-card .date {
  font-size: 0.8rem;
  color: #999;
}

.news-card.gold {
  border-left: 4px solid #B29400;
}

.news-card.green {
  border-left: 4px solid #78BE21;
}
