.calendar-singletab {
	background: #fff;
	font-family: "Noto Sans JP", "Zen Kaku Gothic New", sans-serif;
	margin: 40px auto;
	max-height: calc(100vh - 80px);
	max-width: 800px;
	overflow-y: auto;
	padding: 32px 20px 48px;
	position: relative;
	width: 90%;
}

.calendar-singletab__inner {
	margin-inline: auto;
	max-width: 640px;
	position: relative;
}

.calendar-singletab__heading {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0 0 24px;
	text-align: center;
}

.calendar-singletab__lead {
	color: #c23b2e;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.5;
	margin-bottom: 18px;
	text-align: center;
}

.calendar-singletab__legend {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 18px;
	font-size: 0.8125rem;
	margin-bottom: 6px;
}

.calendar-singletab__legend .cal_ok {
	color: #e85a4f;
}

.calendar-singletab__legend .cal_few {
	color: #e39b2e;
}

.calendar-singletab__legend .cal_ng {
	color: #888;
}

.calendar-singletab__btns {
	display: flex;
	justify-content: space-between;
	margin-bottom: 18px;
}

.calendar-singletab__title {
	font-size: 1.125rem;
	font-weight: 700;
	height: 52px;
	letter-spacing: 0.04em;
	line-height: 2.4;
	margin: 0;
	text-align: center;
}

.calendar-singletab__prev,
.calendar-singletab__next {
	background: transparent;
	border: 1px solid rgb(32, 163, 191);
	border-radius: 4px;
	color: rgb(32, 163, 191);
	cursor: pointer;
	display: grid;
	font-size: 0.75rem;
	padding-top: 6px;
	padding-bottom: 7px;
	place-items: center;
	position: relative;
	width: 86px;
}

.calendar-singletab__prev::before,
.calendar-singletab__next::before {
	background: url(/common/img/application/arrow.svg) no-repeat;
	background-size: contain;
	content: "";
	height: 9px;
	position: absolute;
	top: 8px;
	width: 6px;
}

.calendar-singletab__prev::before {
	left: 10px;
	transform: rotate(180deg);
}

.calendar-singletab__next {
	margin-left: auto;
}

.calendar-singletab__next::before {
	right: 10px;
}

.calendar-singletab__frame {
	border: 1px solid #ccc;
	border-radius: 10px;
	margin-bottom: 24px;
	padding: 10px;
}

.calendar-singletab__body table {
	width: 100%;
}

.calendar-singletab__body th {
	color: #333;
	font-size: 0.875rem;
	font-weight: 500;
	padding: 10px 0 16px;
}

.calendar-singletab__body th.cal_sun {
	color: #c23b2e;
}

.calendar-singletab__body th.cal_sat {
	color: #5b7c8a;
}

.calendar-singletab__body td {
	border-bottom: 1px solid #eee;
	color: #222;
	font-size: 1rem;
	font-weight: 700;
	height: 96px;
	padding: 8px 2px 10px;
	text-align: center;
	vertical-align: top;
}

.calendar-singletab__body tr:last-child td {
	border-bottom: none;
}

.calendar-singletab__body .past {
	color: #c8c8c8;
	font-weight: 500;
	pointer-events: none;
}

.calendar-singletab__body .date {
	font-size: 0.6875rem;
	font-weight: 500;
	line-height: 1.55;
	padding-top: 8px;
}

.calendar-singletab__body .cal_ok {
	color: #e85a4f;
	font-weight: 700;
}

.calendar-singletab__body .cal_few {
	color: #e39b2e;
	cursor: help;
	font-weight: 700;
	position: relative;
}

.calendar-singletab__body .cal_ng {
	color: #999;
	font-weight: 700;
}

.calendar-singletab__body .cal_few::after,
.calendar-singletab__body .cal_few::before {
	opacity: 0;
	pointer-events: none;
	position: absolute;
	transition: opacity 0.15s ease;
	z-index: 2;
}

.calendar-singletab__body .cal_few::after {
	background: #2b3038;
	border-radius: 4px;
	bottom: calc(100% + 8px);
	color: #fff;
	content: attr(data-tip);
	font-size: 0.75rem;
	font-weight: 500;
	left: 50%;
	letter-spacing: 0.02em;
	line-height: 1.4;
	padding: 7px 10px;
	transform: translateX(-50%);
	white-space: nowrap;
}

.calendar-singletab__body .cal_few::before {
	border: 6px solid transparent;
	border-top-color: #2b3038;
	bottom: calc(100% - 4px);
	content: "";
	height: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
}

.calendar-singletab__body .cal_few:hover::after,
.calendar-singletab__body .cal_few:hover::before,
.calendar-singletab__body .cal_few.is-tip-open::after,
.calendar-singletab__body .cal_few.is-tip-open::before {
	opacity: 1;
}

.calendar-singletab__link {
	margin-top: 8px;
	padding: 8px 0 12px;
	text-align: center;
}

.calendar-singletab__link a {
	background-color: #20a3bf;
	border-radius: 8px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
	color: #fff;
	display: grid;
	font-size: 1.125rem;
	font-weight: 700;
	height: 64px;
	margin: 0 auto;
	place-items: center;
	width: 280px;
}

@media screen and (max-width: 767px) {
	.calendar-singletab {
		border-radius: 20px;
		margin: 20px auto;
		max-height: calc(100vh - 40px);
		padding: 19px 0 40px;
		width: 95%;
	}

	.calendar-singletab__inner {
		padding-inline: 20px;
	}

	.calendar-singletab__heading {
		font-size: 1.25rem;
	}

	.calendar-singletab__lead {
		font-size: 0.8125rem;
		text-align: left;
	}

	.calendar-singletab__legend {
		font-size: 0.6875rem;
		gap: 6px 10px;
	}

	.calendar-singletab__title {
		font-size: 0.875rem;
		height: 40px;
	}

	.calendar-singletab__frame {
		padding: 10px 5px;
	}

	.calendar-singletab__body th {
		font-size: 0.6875rem;
		padding-bottom: 8px;
	}

	.calendar-singletab__body td {
		font-size: 0.75rem;
		height: 84px;
		padding-left: 0;
		padding-right: 0;
	}

	.calendar-singletab__body .date {
		font-size: 0.5625rem;
		padding-top: 4px;
	}

	.calendar-singletab__body .cal_few::after {
		font-size: 0.625rem;
		padding: 5px 8px;
	}

	.calendar-singletab__link a {
		font-size: 1rem;
		height: 56px;
		max-width: 280px;
		width: 100%;
	}
}
