@charset "utf-8";

/* Extracted feature; retain declaration order, no legacy core dependency. */
/* =========================================================
   天気予報バッジ統一デザイン
   天気・気温・風速・風向き・降水確率を同じ形にそろえる
========================================================= */

.weather-badge,
.weather-display,
.circle-display,
.weather-probability,
.wind-direction {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 72px;
	height: 36px;
	padding: 0 12px;
	border-radius: 9999px;
	box-sizing: border-box;
	margin: 0 auto;
	text-align: center;
	font-weight: bold;
	font-size: 14px;
	line-height: 1.2;
	color: #111;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
	white-space: nowrap;
}

.weather-badge span,
.weather-display span,
.circle-display span,
.weather-probability span,
.wind-direction span {
	display: inline-block;
	color: #111 !important;
	line-height: 1.2;
	white-space: nowrap;
}

.event-info-tab-list {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 8px;
	margin: 0 0 14px;
}

.event-info-tab {
	min-height: 46px;
	padding: 9px 14px;
	border: 1px solid #c9d5e3;
	border-radius: 9px;
	background: #f5f8fb;
	color: #24558f;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.event-info-tab:hover,
.event-info-tab:focus-visible {
	background: #eaf2fb;
}

.event-info-tab.is-active {
	border-color: #2d64a3;
	background: #2d64a3;
	color: #fff;
}

.event-info-tabs--ready .event-info-tab-panel:not(.is-active) {
	display: none;
}

#nearest-event-date .weather-history-date-row {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

#nearest-event-date .weather-history-date-row::first-letter {
	padding-left: 0;
	border-left: 0;
}

#nearest-event-weather .weather-history-main,
#nearest-event-weather .weather-history-wind {
	max-width: 420px;
}

#event-dates-panel table.design01 tr > td:first-child {
	vertical-align: top !important;
}

.weather-visual {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}

.weather-icon {
	display: block;
	width: 48px;
	height: 48px;
	flex: 0 0 48px;
	object-fit: contain;
}

.weather-history-section {
	margin-top: 10px;
}

.weather-history-list {
	display: grid;
	gap: 10px;
	margin-top: 10px;
}

.weather-year-heading {
	margin: 0 0 6px;
	font-size: 1.15rem;
	line-height: 1.5;
	color: #31465a;
}

.weather-year-summary {
	margin: 0 0 10px;
	color: #5b6978;
	font-size: 0.92rem;
}

.weather-history-list .is-year-card-hidden {
	display: none;
}

.weather-history-list.is-expanded .is-year-card-hidden {
	display: block;
}

.weather-year-toggle {
	display: block;
	width: min(100%, 360px);
	margin: 14px auto 4px;
	padding: 10px 18px;
	border: 1px solid #9bb9dc;
	border-radius: 999px;
	background: #fff;
	color: #18518f;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

	.weather-month-group + .weather-month-group {
	margin-top: 14px;
}

.weather-month-heading {
	margin: 4px 0 8px;
	padding: 5px 9px;
	border-left: 4px solid #4b83bd;
	background: #f2f7fc;
	font-weight: 700;
	color: #31465a;
}

.weather-history-list .weather-history-section {
	margin-top: 0;
}

.weather-history-fields {
	margin: 0;
}

.weather-history-fields > div {
	display: grid;
	grid-template-columns: minmax(6em, auto) 1fr;
	gap: 8px;
	margin-top: 6px;
}

.weather-history-fields dt {
	font-weight: 600;
}

.weather-history-fields dd {
	min-width: 0;
	margin: 0;
	overflow-wrap: anywhere;
}

/* 既存のbtn5はblock指定のため、開催日カード内だけカード幅に収める。 */
.weather-history-fields a.btn5 {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	max-width: 100%;
	box-sizing: border-box;
	white-space: normal;
	overflow-wrap: anywhere;
}

.weather-history-fields {
	margin-bottom: 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid #eee;
}

.weather-history-all-fields {
	display: none !important;
}

.weather-history-shop-buttons {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.weather-history-shop-button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: fit-content !important;
	min-width: 0 !important;
	max-width: 100% !important;
	padding: 6px 10px !important;
	border-radius: 8px !important;
	line-height: 1.4 !important;
	box-sizing: border-box;
	white-space: normal;
}

.weather-history-shop-buttons button.btn4.weather-history-shop-button {
	margin: 0 !important;
	background: #fff !important;
	background-image: none !important;
	border: 1px solid #cfd9e6 !important;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06) !important;
	color: #1f4f8a !important;
	font-size: 14px;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.weather-history-shop-buttons button.btn4.weather-history-shop-button:hover {
	background: #f7fbff !important;
	border-color: #9eb9d8 !important;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
}

span.weather-history-shop-button {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 2px;
	background: linear-gradient(#a0d8ef, #0068b7);
	color: #fff;
	font-size: 14px;
	text-align: center;
}

.weather-history-card {
	max-width: 360px;
	padding: 14px 16px;
	border: 1px solid #ddd;
	border-radius: 10px;
	background: #fff;
	box-sizing: border-box;
}

.weather-history-date-row {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin: 0 0 8px;
	font-size: 1rem;
	line-height: 1.5;
}

#main .weather-history-card > .weather-history-date-row {
	padding: 0;
	border: 0;
	background: transparent;
}

#main .weather-history-card > .weather-history-date-row::first-letter {
	padding-left: 0;
	border-left: 0;
}

.weather-history-date {
	font-size: 1em;
	font-weight: 700;
}

.weather-history-event-name {
	margin: -2px 0 9px;
	color: #31465a;
	font-weight: 700;
	line-height: 1.5;
}

a.weather-history-date {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.event-status {
	font-weight: 700;
}

.event-status-cancelled {
	color: #d00;
}

.event-status-postponed {
	color: #b45309;
}

.event-status-undecided {
	color: #666;
}

.weather-history-main {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.weather-history-icon {
	display: block;
	width: 52px;
	height: 52px;
	flex: 0 0 52px;
	object-fit: contain;
}

.weather-history-condition,
.weather-history-temp {
	font-weight: 600;
}

.weather-history-condition {
	min-width: 0;
	justify-self: start;
	line-height: 1.35;
}

.weather-history-condition--colored {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 3px 9px;
	border-radius: 7px;
	box-sizing: border-box;
}

.weather-history-condition--colored.weather-thick-cloud,
.weather-history-condition--colored.weather-heavy-rain {
	color: #fff;
}

.weather-history-temp {
	margin-left: 0;
	justify-self: end;
	white-space: nowrap;
}

.weather-history-metric {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 30px;
	padding: 3px 9px;
	border-radius: 7px;
	box-sizing: border-box;
}

.weather-history-temp.temperature-hot,
.weather-history-wind-speed.probability-70 {
	color: #fff;
}

.weather-history-wind {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 8px;
	font-size: 0.95em;
}

.weather-history-pop-label {
	margin-left: auto;
	white-space: nowrap;
}

.weather-history-updated {
	margin-top: 7px;
	color: #667085;
	font-size: 0.78em;
}

.weather-history-empty {
	color: #666;
}

/* PCでは開催日をカードではなく、年ごとの横長一覧として見せる。 */
@media screen and (min-width: 901px) {
	.weather-history-list {
		gap: 0;
	}

.weather-month-group + .weather-month-group {
		margin-top: 10px;
	}

	.weather-history-section {
		border-bottom: 1px solid #dfe5eb;
	}

	.weather-history-card {
		display: grid;
		grid-template-columns: minmax(170px, 0.8fr) minmax(0, 1.25fr) minmax(0, 1fr);
		grid-template-areas:
			"date weather wind"
			"name updated updated"
			"fields fields fields";
		gap: 3px 22px;
		align-items: center;
		max-width: none;
		width: 100%;
		min-width: 0;
		padding: 10px 6px;
		border: 0;
		border-radius: 0;
		background: transparent;
	}

	.weather-history-date-row {
		grid-area: date;
		margin: 0;
	}

	.weather-history-event-name {
		grid-area: name;
		margin: 0;
		font-size: 0.9em;
	}

	.weather-history-fields {
		grid-area: fields;
		margin: 4px 0 0;
		padding: 5px 0 0;
		border-top: 1px dashed #e1e6eb;
		border-bottom: 0;
	}

	.weather-history-main {
		grid-area: weather;
		grid-template-columns: 44px minmax(0, 1fr) auto;
		gap: 8px;
		min-width: 0;
	}

	.weather-history-icon {
		width: 44px;
		height: 44px;
		flex-basis: 44px;
	}

	.weather-history-wind {
		grid-area: wind;
		margin-top: 0;
		min-width: 0;
		justify-content: flex-start;
	}

	.weather-history-wind .weather-history-pop-label {
		margin-left: 0;
	}

	.weather-history-updated {
		grid-area: updated;
		margin-top: 0;
		text-align: right;
	}

	.weather-history-empty {
		grid-column: 2 / -1;
	}
}

/* スマホ時は少しだけ詰める */
@media screen and (max-width: 600px) {
	.weather-badge,
	.weather-display,
	.circle-display,
	.weather-probability,
	.wind-direction {
		min-width: 68px;
		height: 34px;
		padding: 0 10px;
		font-size: 13px;
	}

	.weather-icon {
		width: 40px;
		height: 40px;
		flex-basis: 40px;
	}

	.weather-history-card {
		max-width: 100%;
		padding: 12px 14px;
	}

	.weather-history-fields > div {
		grid-template-columns: 1fr;
		gap: 2px;
	}

	.weather-history-icon {
		width: 48px;
		height: 48px;
		flex-basis: 48px;
	}

	.weather-history-main {
		grid-template-columns: 48px minmax(0, 1fr) auto;
		gap: 8px;
	}

	.weather-history-wind {
		gap: 6px;
	}
}

/* -------------------------
   降水確率・風速の色
------------------------- */
.probability-0 {
	background-color: #8bc34a;
}

.probability-10 {
	background-color: #d4b17e;
}

.probability-30 {
	background-color: #ffa726;
}

.probability-50 {
	background-color: #ff7043;
}

.probability-70 {
	background-color: #ef5350;
}

/* -------------------------
   気温の色
------------------------- */
.temperature-freezing {
	background-color: #00bfff;
}

.temperature-cold {
	background-color: #87cefa;
}

.temperature-comfortable {
	background-color: #32cd32;
}

.temperature-warm {
	background-color: #ffa500;
}

.temperature-hot {
	background-color: #ff4500;
}

/* -------------------------
   天候の色
------------------------- */
.weather-clear {
	background-color: #32cd32;
}

.weather-cloudy {
	background-color: #87ceeb;
}

.weather-thick-cloud {
	background-color: #4682b4;
}

.weather-light-rain {
	background-color: #ffa07a;
}

.weather-heavy-rain {
	background-color: #dc143c;
}

.weather-snow {
	background-color: #add8e6;
}

.weather-fog {
	background-color: #d3d3d3;
}

.weather-mixed {
	background-color: #b0c4de;
}

/* -------------------------
   風向きの色
------------------------- */
.wind-none {
	background-color: #e0e0e0;
	color: #333;
}

.wind-safe {
	background-color: #32cd32;
}

.wind-warning {
	background-color: #ffa500;
}

.wind-danger {
	background-color: #dc143c;
}
/* 天候詳細リンク */
.weather-detail-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 108px;
	height: 36px;
	padding: 0 12px;
	border-radius: 9999px;
	background: #eef5ff;
	border: 1px solid #bfd3ee;
	box-sizing: border-box;
	text-decoration: none !important;
	color: #1f5ea8 !important;
	font-size: 14px;
	font-weight: bold;
	line-height: 1;
	white-space: nowrap;
	max-width: 100%;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
	transition: all 0.2s ease;
}

.weather-detail-link:hover {
	background: #dfeeff;
	border-color: #97b8e3;
	color: #184c8c !important;
	text-decoration: none !important;
	transform: translateY(-1px);
}

.weather-detail-label {
	display: inline-block;
	line-height: 1;
}

.weather-detail-arrow {
	display: inline-block;
	line-height: 1;
	font-size: 16px;
	margin-top: -1px;
}

.weather-detail-empty {
	display: inline-block;
	min-width: 24px;
	text-align: center;
	color: #888;
	font-size: 14px;
	font-weight: bold;
	line-height: 1.4;
}

@media screen and (max-width: 600px) {
	.weather-detail-link {
		min-width: 96px;
		height: 34px;
		padding: 0 10px;
		font-size: 13px;
	}
}

.weather-section {
        display: flex;
        gap: 8px;
        margin-bottom: 5px;
    }


