/**
 * FREBULL.net - 天気連動 関連記事・サイドバー天気 スタイル
 * ファイル設置場所: /wp-content/themes/frebull2026/css/weather-related.css
 */

/* =========================================================
   関連記事（詳細・一覧ページ）
   ========================================================= */
.weather-related-wrap {
	padding: 20px;
}

.weather-related-header {
	display: flex;
	align-items: center;
	margin-bottom: 20px;
	flex-wrap: wrap;
	gap: 32px;
}

.weather-related-label {
	font-size: 20px;
	font-weight: 800;
	color: #536174;
}

.weather-related-tags {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.weather-tag-label {
	background: #90caf9;
	color: #ffffff;
	font-size: 10px;
	padding: 2px 16px;
	border-radius: 100vmax;
}

.weather-related-cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 40px;
}

.weather-related-card {
	display: block;
	text-decoration: none;
	color: inherit;
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition:
		transform 0.2s,
		box-shadow 0.2s;
	padding: 20px;
	text-decoration: none !important;
}

.weather-related-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.weather-related-thumb img {
	width: 100%;
	aspect-ratio: 16/9;
	object-fit: cover;
	display: block;
	border-radius: 10px;
}

.weather-related-noimg {
	width: 100%;
	aspect-ratio: 16/9;
	background: #e8f0fe;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
}

.weather-related-title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
	color: #333;
}

.weather-related-type,
.weather-related-cat {
	font-size: 10px;
	background-color: #f0efe9;
	color: #8c8978;
	border-radius: 100vmax;
	padding: 4px 16px;
}

@media (max-width: 600px) {
	.weather-related-cards {
		grid-template-columns: 1fr;
	}
}

/* =========================================================
   サイドバー天気ウィジェット
   ========================================================= */
#sidebar-weather-widget {
	border-radius: 10px;
	border: 1px solid #e7ecf2;
	background-color: #fafcff;
	padding: 20px;
	color: #536174;
}

.sidebar-weather-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
	flex-wrap: wrap;
}

.sidebar-weather-header > span:first-child {
	font-size: 20px;
	font-weight: 800;
}

.sidebar-weather-header > span:first-child small {
	font-size: 12px;
}

.sidebar-weather-report {
	font-size: 10px;
	opacity: 0.7;
}

.sidebar-weather-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.sidebar-day-card {
	background: rgb(240 247 255);
	border-radius: 10px;
	padding: 16px;
	text-align: center;
	transition: background 0.2s;
}

.sidebar-day-card.today {
	background: rgba(255, 255, 255, 0.9);
	border: 2px solid rgba(255, 255, 255, 1);
}

.sidebar-day-label {
	font-size: 10px;
}

.sidebar-day-date {
	font-size: 14px;
	font-weight: 800;
	margin-bottom: 8px;
}

.sidebar-weather-icon {
	font-size: 24px;
	line-height: 1;
	margin-bottom: 4px;
}

.sidebar-weather-desc {
	font-size: 9px;
	opacity: 0.85;
	margin-bottom: 0px;
	min-height: 22px;
	line-height: 1.3;
}
.sidebar-temp {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 4px;
}
.sidebar-temp-sep {
	font-size: 10px;
	color: #888;
}

.sidebar-temp-max {
	font-size: 10px;
	font-weight: 700;
	color: #ff7f4f;
}

.sidebar-temp-min {
	font-size: 10px;
	opacity: 0.75;
	color: #008dff;
}

.sidebar-precip {
	font-size: 10px;
	margin-top: 4px;
	opacity: 0.9;
}

.sidebar-weather-loading {
	text-align: center;
	font-size: 12px;
	padding: 16px;
	opacity: 0.8;
}

/* =========================================================
   サイドバー関連記事
   ========================================================= */
.sidebar-related-wrap {
	margin-top: 20px;
}

.sidebar-related-header {
	font-size: 20px;
	font-weight: 800;
	margin-bottom: 8px;
}

.sidebar-related-cards {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.sidebar-related-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	text-decoration: none;
	border-radius: 10px;
}

.sidebar-related-card:hover {
}

.sidebar-related-thumb {
	width: 12%;
}

.sidebar-related-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	aspect-ratio: 1/1;
	border-radius: 10px;
}

.sidebar-related-txt {
	width: 84%;
}

.sidebar-related-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.sidebar-related-type,
.sidebar-related-cat {
	font-size: 10px;
	line-height: 1;
	background-color: #f0efe9;
	color: #8c8978;
	border-radius: 100vmax;
	padding: 4px 16px;
}
.sidebar-related-title {
	font-size: 14px;
	line-height: 1.4;
	font-weight: 700;
}

.sidebar-weather-geo-notice {
	color: #c03;
	font-weight: 700;
	background-color: #ffe6ec;
	padding: 10px;
	border-radius: 10px;
	text-align: center;
	font-size: 14px;
}

#sidebar-weather-widget {
	min-height: 524px;
}

@media (max-width: 576px) {
	.sidebar-related-card {
		gap: 16px;
	}
	.sidebar-related-thumb {
		width: 24%;
	}

	.sidebar-related-txt {
		width: 75%;
	}

	.sidebar-related-title {
		font-size: 16px;
	}

	.jma-weather-widget {
		padding: 10px !important;
	}

	.jma-weather-grid {
		display: flex;
		gap: 0px;
		justify-content: space-between;
	}
	.jma-weather-header {
		flex-direction: column;
		align-items: flex-start !important;
	}
	.jma-day-card {
		padding: 0 !important;
	}

	.jma-day-card.today {
		border: 0px solid rgba(255, 255, 255, 1);
	}
	.jma-day-date {
		font-size: 10px !important;
	}

	.weather-related-wrap {
		padding: 20px 0;
	}
	.weather-related-label {
		font-size: 18px;
	}
	.weather-related-cards {
		gap: 20px;
	}
}
