/* ==================================================
   USJ混雑予想・チケット価格 6か月カレンダー
   Shortcode: [usj_crowd_calendar]
================================================== */
.usjrn-forecast-calendar {
	width: 100%;
	margin: 24px 0;
	padding: 18px;
	border: 1px solid #efd8c2;
	border-radius: 20px;
	background: #fffdf9;
	box-sizing: border-box;
	color: #3f2718;
}

.usjrn-forecast-calendar *,
.usjrn-forecast-calendar *::before,
.usjrn-forecast-calendar *::after {
	box-sizing: border-box;
}

.usjrn-forecast-calendar [hidden] {
	display: none !important;
}

.usjrn-forecast-calendar__header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px 18px;
	margin-bottom: 14px;
}

.usjrn-forecast-calendar__title {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: #4b2a18 !important;
	font-size: 21px !important;
	font-weight: 700 !important;
	line-height: 1.45 !important;
}

.usjrn-forecast-mode-switch {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	width: min(100%, 330px);
	padding: 3px;
	border: 1px solid #efc9a9;
	border-radius: 999px;
	background: #fff4e9;
}

.usjrn-forecast-mode-switch button {
	min-height: 40px;
	margin: 0;
	padding: 7px 12px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #714225;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
	cursor: pointer;
}

.usjrn-forecast-mode-switch button.is-active {
	background: #e85f2c;
	color: #fff;
	box-shadow: 0 3px 10px rgba(177, 69, 28, .2);
}

.usjrn-forecast-calendar__price-note {
	grid-column: 1 / -1;
	display: none;
	margin: 0 !important;
	font-size: 12px !important;
	line-height: 1.6 !important;
	color: #6e5849;
}

.usjrn-forecast-calendar[data-mode="price"] .usjrn-forecast-calendar__price-note {
	display: block;
}

.usjrn-forecast-month-nav {
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr) 38px;
	align-items: center;
	gap: 7px;
	margin-bottom: 12px;
}

.usjrn-forecast-month-nav__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 1px solid #e5cbb6;
	border-radius: 50%;
	background: #fff;
	color: #9a4b20;
	font-size: 27px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
}

.usjrn-forecast-month-nav__arrow:disabled {
	opacity: .28;
	cursor: default;
}

.usjrn-forecast-month-tabs {
	display: flex;
	gap: 7px;
	min-width: 0;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 2px 1px 5px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.usjrn-forecast-month-tabs button {
	flex: 0 0 auto;
	min-height: 36px;
	margin: 0;
	padding: 7px 13px;
	border: 1px solid #ead4c2;
	border-radius: 999px;
	background: #fff;
	color: #63402b;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
}

.usjrn-forecast-month-tabs button.is-active {
	border-color: #e85f2c;
	background: #fff0e5;
	color: #b03e16;
}

.usjrn-forecast-panel__title {
	margin: 0 0 10px !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: #4b2a18 !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	line-height: 1.45 !important;
	text-align: center;
}

.usjrn-forecast-weekdays,
.usjrn-forecast-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	width: 100%;
}

.usjrn-forecast-weekdays {
	border-top: 1px solid #ead9ca;
	border-left: 1px solid #ead9ca;
	background: #fff7ef;
}

.usjrn-forecast-weekdays span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	height: 34px;
	border-right: 1px solid #ead9ca;
	border-bottom: 1px solid #ead9ca;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}

.usjrn-forecast-weekdays .is-sunday {
	color: #c23d3d;
}

.usjrn-forecast-weekdays .is-saturday {
	color: #2d61b5;
}

.usjrn-forecast-grid {
	border-left: 1px solid #ead9ca;
}

.usjrn-forecast-day {
	display: block;
	min-width: 0;
	height: 92px;
	margin: 0;
	padding: 0;
	border: 0;
	border-right: 1px solid #ead9ca;
	border-bottom: 1px solid #ead9ca;
	background: #fff;
	color: #3e2a1e;
	text-align: center;
	text-decoration: none !important;
	overflow: hidden;
}

.usjrn-forecast-day:hover,
.usjrn-forecast-day:focus {
	background: #fff8f2;
	color: #3e2a1e;
	text-decoration: none !important;
}

.usjrn-forecast-day.is-empty {
	background: #faf7f4;
	pointer-events: none;
}

.usjrn-forecast-day.is-sunday {
	background: #fff7f7;
}

.usjrn-forecast-day.is-saturday {
	background: #f6f9ff;
}

.usjrn-forecast-day.is-today {
	box-shadow: inset 0 0 0 2px #f08c2f;
}

.usjrn-forecast-day.is-disabled {
	cursor: default;
}

.usjrn-forecast-day__svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.usjrn-forecast-day__svg text {
	text-anchor: middle;
	font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
	font-weight: 700;
}

.usjrn-forecast-day-svg__date {
	font-size: 31px;
	fill: #3e2a1e;
}

.usjrn-forecast-day.is-sunday .usjrn-forecast-day-svg__date {
	fill: #c23d3d;
}

.usjrn-forecast-day.is-saturday .usjrn-forecast-day-svg__date {
	fill: #2d61b5;
}

.usjrn-forecast-day-svg__main-bg {
	fill: #ece8e5;
}

.usjrn-forecast-day__svg.is-level-1 .usjrn-forecast-day-svg__main-bg { fill: #bce9e0; }
.usjrn-forecast-day__svg.is-level-2 .usjrn-forecast-day-svg__main-bg { fill: #cce9b9; }
.usjrn-forecast-day__svg.is-level-3 .usjrn-forecast-day-svg__main-bg { fill: #fff0a8; }
.usjrn-forecast-day__svg.is-level-4 .usjrn-forecast-day-svg__main-bg { fill: #ffd09d; }
.usjrn-forecast-day__svg.is-level-5 .usjrn-forecast-day-svg__main-bg { fill: #ffaaa3; }
.usjrn-forecast-day__svg.is-level-6 .usjrn-forecast-day-svg__main-bg { fill: #8b1f24; }

.usjrn-forecast-day-svg__main-text {
	font-size: 29px;
	fill: #33251c;
}

.usjrn-forecast-day__svg.is-level-6 .usjrn-forecast-day-svg__main-text {
	fill: #fff;
}

.usjrn-forecast-day-svg__price-bg {
	fill: #fff1e8;
}

.usjrn-forecast-day__svg.is-price-level-1 .usjrn-forecast-day-svg__price-bg { fill: #7cfdff; }
.usjrn-forecast-day__svg.is-price-level-2 .usjrn-forecast-day-svg__price-bg { fill: #0ff; }
.usjrn-forecast-day__svg.is-price-level-3 .usjrn-forecast-day-svg__price-bg { fill: #b6d7a8; }
.usjrn-forecast-day__svg.is-price-level-4 .usjrn-forecast-day-svg__price-bg { fill: #f9cb9c; }
.usjrn-forecast-day__svg.is-price-level-5 .usjrn-forecast-day-svg__price-bg { fill: #ea9999; }
.usjrn-forecast-day__svg.is-price-level-6 .usjrn-forecast-day-svg__price-bg { fill: #fb2200; }
.usjrn-forecast-day__svg.is-price-level-7 .usjrn-forecast-day-svg__price-bg { fill: #980000; }

.usjrn-forecast-day-svg__price-text {
	font-size: 27px;
	fill: #b33d18;
}

.usjrn-forecast-day__svg.is-price-level-6 .usjrn-forecast-day-svg__price-text,
.usjrn-forecast-day__svg.is-price-level-7 .usjrn-forecast-day-svg__price-text {
	fill: #fff;
}

.usjrn-forecast-day-svg__label {
	font-size: 19px;
	font-weight: 600 !important;
	fill: #755944;
}

.usjrn-forecast-day-svg__time {
	font-size: 34px;
	fill: #3d2a1f;
}

.usjrn-forecast-svg-mode--price {
	display: none;
}

.usjrn-forecast-calendar[data-mode="price"] .usjrn-forecast-svg-mode--crowd {
	display: none;
}

.usjrn-forecast-calendar[data-mode="price"] .usjrn-forecast-svg-mode--price {
	display: inline;
}

.usjrn-forecast-calendar__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 13px;
}

.usjrn-forecast-calendar__legend span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 26px;
	padding: 4px 9px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
}

.usjrn-forecast-calendar__legend .is-level-1 { background: #bce9e0; }
.usjrn-forecast-calendar__legend .is-level-2 { background: #cce9b9; }
.usjrn-forecast-calendar__legend .is-level-3 { background: #fff0a8; }
.usjrn-forecast-calendar__legend .is-level-4 { background: #ffd09d; }
.usjrn-forecast-calendar__legend .is-level-5 { background: #ffaaa3; }
.usjrn-forecast-calendar__legend .is-level-6 { background: #8b1f24; color: #fff; }

.usjrn-forecast-calendar[data-mode="price"] .usjrn-forecast-calendar__legend--crowd {
	display: none;
}

.usjrn-forecast-calendar .screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.usjrn-forecast-calendar-empty {
	margin: 16px 0;
	padding: 14px 16px;
	border: 1px solid #ead9ca;
	border-radius: 12px;
	background: #fffaf6;
	color: #684934;
}

@media (max-width: 767px) {
	.usjrn-forecast-calendar {
		margin: 18px 0;
		padding: 12px 5px 14px;
		border-radius: 14px;
	}

	.usjrn-forecast-calendar__header {
		grid-template-columns: 1fr;
		gap: 9px;
		padding: 0 5px;
	}

	.usjrn-forecast-calendar__title {
		font-size: 18px !important;
		text-align: center;
	}

	.usjrn-forecast-mode-switch {
		width: 100%;
	}

	.usjrn-forecast-mode-switch button {
		min-height: 38px;
		padding: 6px 8px;
		font-size: 13px;
	}

	.usjrn-forecast-month-nav {
		grid-template-columns: 34px minmax(0, 1fr) 34px;
		gap: 4px;
		margin: 10px 1px 8px;
	}

	.usjrn-forecast-month-nav__arrow {
		width: 34px;
		height: 34px;
		font-size: 24px;
	}

	.usjrn-forecast-month-tabs {
		gap: 5px;
	}

	.usjrn-forecast-month-tabs button {
		min-height: 32px;
		padding: 6px 10px;
		font-size: 12px;
	}

	.usjrn-forecast-panel__title {
		margin-bottom: 7px !important;
		font-size: 16px !important;
	}

	.usjrn-forecast-weekdays span {
		height: 28px;
		font-size: 11px;
	}

	.usjrn-forecast-day {
		height: 79px;
	}

	.usjrn-forecast-calendar__legend {
		gap: 4px;
		padding: 0 4px;
	}

	.usjrn-forecast-calendar__legend span {
		min-height: 23px;
		padding: 3px 7px;
		font-size: 10px;
	}

	.usjrn-forecast-calendar__price-note {
		padding: 0 5px;
	}
}

@media (max-width: 359px) {
	.usjrn-forecast-calendar {
		padding-right: 2px;
		padding-left: 2px;
	}
}
