/* みなネット営業日カレンダー v1.1.0 */

.mnbc-calendar {
	--mnbc-navy: #123d70;
	--mnbc-red: #ef2020;
	--mnbc-blue: #0d4f91;
	--mnbc-night: #f04422;
	--mnbc-night-dark: #dc3819;
	--mnbc-border: #d7dde3;
	--mnbc-normal-bg: #fff3f2;
	--mnbc-closed-bg: #f1f1ef;
	--mnbc-night-bg: #fff3f2;
	width: 100%;
	margin: 0 auto 18px;
	color: #222;
	font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
	box-sizing: border-box;
}

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

.mnbc-month-title {
	margin: 0 0 26px;
	color: var(--mnbc-navy);
	font-family: "Yu Mincho", "Hiragino Mincho ProN", "Times New Roman", serif;
	font-size: clamp(24px, 3vw, 36px);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.08em;
	text-align: center;
}

.mnbc-table-wrap {
	width: 100%;
	overflow: hidden;
}

.mnbc-table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	border-spacing: 0;
	table-layout: fixed;
	background: #fff;
}

.mnbc-table thead th {
	height: 45px;
	padding: 6px 3px;
	background: #fff;
	border: 0;
	color: #111;
	font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
	font-size: clamp(17px, 2vw, 25px);
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
}

.mnbc-table thead th.is-sunday {
	color: var(--mnbc-red);
}

.mnbc-table thead th.is-saturday {
	color: var(--mnbc-blue);
}

.mnbc-table tbody tr {
	height: 82px;
}

.mnbc-table tbody td {
	position: relative;
	height: 82px;
	padding: 10px 10px 7px;
	background: #fff;
	border: 1px solid var(--mnbc-border);
	color: #222;
	text-align: left;
	vertical-align: top;
}

.mnbc-table tbody td.is-empty {
	background: #fffdfa;
}

.mnbc-table tbody td.is-normal {
	background: var(--mnbc-normal-bg);
}

.mnbc-table tbody td.is-closed {
	background: var(--mnbc-closed-bg);
}

.mnbc-table tbody td.is-night {
	background: var(--mnbc-night-bg);
}

.mnbc-table tbody td.is-today {
	box-shadow: inset 0 0 0 3px rgba(37, 93, 143, 0.45);
}

.mnbc-date {
	display: inline-block;
	color: #161616;
	font-family: "Arial Narrow", "Roboto Condensed", "Yu Gothic", sans-serif;
	font-size: clamp(19px, 2vw, 27px);
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.04em;
}

td.is-sunday .mnbc-date {
	color: var(--mnbc-red);
}

td.is-saturday .mnbc-date {
	color: var(--mnbc-blue);
}

td.is-holiday .mnbc-date {
	color: var(--mnbc-red);
}

.mnbc-holiday-name {
	display: inline-block;
	margin: 0 0 0 7px;
	color: var(--mnbc-red);
	font-size: clamp(9px, 0.95vw, 12px);
	font-weight: 700;
	line-height: 1.2;
	vertical-align: top;
	white-space: nowrap;
}

.mnbc-status {
	display: inline-block;
	margin: 1px 0 0 7px;
	font-size: clamp(11px, 1.15vw, 15px);
	font-weight: 700;
	line-height: 1.4;
	vertical-align: top;
	white-space: nowrap;
}

.mnbc-status-normal {
	color: #222;
}

.mnbc-status-closed {
	color: #333;
}

.mnbc-night-wrap {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 3px;
}

.mnbc-status-night-business {
	color: #222;
}

.mnbc-status-night {
	margin: 0;
	padding: 3px 10px;
	background: linear-gradient(#f55a39, var(--mnbc-night));
	border: 1px solid var(--mnbc-night-dark);
	border-radius: 5px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
	color: #fff;
	font-size: clamp(11px, 1.2vw, 15px);
	letter-spacing: 0.06em;
}

.mnbc-navigation {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	margin: 12px 0 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
}

.mnbc-navigation a {
	display: inline-block;
	padding: 5px 20px;
	color: var(--mnbc-navy);
	text-decoration: none;
}

.mnbc-navigation a:hover,
.mnbc-navigation a:focus {
	background: #f1f5f8;
	color: #0c294c;
}

.mnbc-nav-separator {
	width: 1px;
	height: 24px;
	background: #cbd1d7;
}

.mnbc-legend {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: clamp(8px, 2.4vw, 34px);
	width: 100%;
	margin: 18px auto 0;
	padding: 8px 4px;
	overflow-x: auto;
	color: var(--mnbc-navy);
	font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
	font-size: clamp(10px, 1.22vw, 16px);
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1.5;
	white-space: nowrap;
}

.mnbc-legend-item {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	white-space: nowrap;
}

.mnbc-legend-color {
	display: inline-block;
	flex: 0 0 auto;
	width: clamp(16px, 1.8vw, 22px);
	height: clamp(16px, 1.8vw, 22px);
	margin-right: clamp(6px, 0.9vw, 11px);
	border-radius: 3px;
}

.mnbc-legend-normal {
	background: var(--mnbc-normal-bg);
	border: 1px solid #f2d8d8;
}

.mnbc-legend-closed {
	background: #e2e2e2;
	border: 1px solid #d7d7d7;
}

.mnbc-legend-night {
	background: linear-gradient(#f55a39, var(--mnbc-night));
	border: 1px solid var(--mnbc-night-dark);
}

@media screen and (max-width: 767px) {
	.mnbc-month-title {
		margin-bottom: 14px;
		font-size: 23px;
	}

	.mnbc-table thead th {
		height: 34px;
		padding: 4px 1px;
		font-size: 14px;
	}

	.mnbc-table tbody tr,
	.mnbc-table tbody td {
		height: 62px;
	}

	.mnbc-table tbody td {
		padding: 5px 3px 4px;
	}

	.mnbc-date {
		font-size: 16px;
	}

	.mnbc-status {
		display: block;
		margin: 4px 0 0;
		font-size: 9px;
		line-height: 1.2;
	}

	.mnbc-holiday-name {
		display: block;
		margin: 2px 0 0;
		font-size: 7px;
		line-height: 1.1;
	}

	.mnbc-night-wrap {
		gap: 2px;
	}

	.mnbc-status-night {
		display: inline-block;
		margin-top: 0;
		padding: 2px 4px;
		border-radius: 3px;
		color: #fff;
		font-size: 9px;
		letter-spacing: 0;
	}

	.mnbc-navigation {
		margin-top: 8px;
		font-size: 12px;
	}

	.mnbc-navigation a {
		padding: 4px 12px;
	}

	.mnbc-legend {
		display: flex;
		flex-wrap: nowrap;
		justify-content: space-between;
		gap: 8px;
		margin-top: 10px;
		padding: 5px 0;
		font-size: 9px;
		letter-spacing: 0;
		overflow-x: auto;
		white-space: nowrap;
	}

	.mnbc-legend-item {
		display: inline-flex;
		width: auto;
		margin: 0;
	}

	.mnbc-legend-color {
		width: 13px;
		height: 13px;
		margin-right: 5px;
	}
}
