.gasshuku-calendar {
	max-width: 1200px;
	margin: 0 auto;
	color: #333;
	font-size: 16px;
	line-height: 1.6;
}

.gasshuku-calendar__form-wrap {
	display: flex;
	justify-content: center;
}

.gasshuku-calendar__filter {
	width: 100%;
	max-width: 480px;
	margin: 0 auto;
	border: 1px solid #d9d9d9;
	padding: 24px 20px 20px;
	background: #fff;
	box-sizing: border-box;
}

.gasshuku-calendar__filter-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
}

.gasshuku-calendar__filter-table th,
.gasshuku-calendar__filter-table td {
	padding: 10px 4px;
	vertical-align: middle;
	text-align: left;
}

.gasshuku-calendar__filter-table th {
	width: 1%;
	padding-right: 14px;
	font-weight: 700;
	white-space: nowrap;
}

.gasshuku-calendar__filter select {
	width: 100%;
	min-width: 0;
	max-width: 100%;
	padding: 8px 36px 8px 10px;
	font-size: 16px;
	box-sizing: border-box;
	border: 1px solid #ccc;
	border-radius: 4px;
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 12px 8px;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
}

.gasshuku-calendar__filter input[type="number"][name="gasshuku_age"] {
	width: auto;
	min-width: 72px;
	max-width: 100%;
	padding: 8px 10px;
	font-size: 16px;
	box-sizing: border-box;
	border: 1px solid #ccc;
	border-radius: 4px;
	background-color: #fff;
}

.gasshuku-calendar__age-unit {
	margin-left: 6px;
	font-size: 16px;
	white-space: nowrap;
}

.gasshuku-calendar__month-fields {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

.gasshuku-calendar__month-field {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.gasshuku-calendar__month-unit {
	font-size: 16px;
	white-space: nowrap;
}

.gasshuku-calendar__filter select[name="gasshuku_year"],
.gasshuku-calendar__filter select[name="gasshuku_month"] {
	width: auto;
	min-width: 88px;
	max-width: none;
}

.gasshuku-calendar__checkbox {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 16px;
}

.gasshuku-calendar__actions {
	margin-top: 20px;
	text-align: center;
}

.gasshuku-calendar__submit {
	display: inline-block;
	width: 100%;
	max-width: 260px;
	padding: 14px 20px;
	border: 0;
	border-radius: 2px;
	background: #56a7ea;
	color: #fff;
	font-size: 20px;
	font-weight: 700;
	cursor: pointer;
}

.gasshuku-calendar__submit:hover,
.gasshuku-calendar__submit:focus {
	background: #5088b6;
	color: #fff;
}

.gasshuku-calendar__notes {
	max-width: 900px;
	margin: 24px auto 0;
	padding: 0 8px;
	text-align: center;
}

.gasshuku-calendar__note {
	margin: 0 0 12px;
	font-size: 15px;
	color: #666;
}

.gasshuku-calendar__price-notes {
	font-size: 15px;
	color: #555;
	text-align: left;
	width: fit-content;
	margin: 0 auto;
}

.gasshuku-calendar__price-notes p {
	margin: 0 0 10px;
}

.gasshuku-calendar__price-notes ul {
	margin: 0;
	padding-left: 1.4em;
	list-style-type: disc;
}

.gasshuku-calendar__price-notes li {
	margin: 0 0 6px;
}

.gasshuku-calendar__result {
	position: relative;
	margin-top: 28px;
}

.gasshuku-calendar__result.is-loading {
	min-height: 240px;
}

.gasshuku-calendar__loading {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.8);
}

.gasshuku-calendar__loading[hidden] {
	display: none;
}

.gasshuku-calendar__spinner {
	width: 44px;
	height: 44px;
	border: 4px solid #e5e5e5;
	border-top-color: #d62027;
	border-radius: 50%;
	animation: gasshuku-calendar-spin 0.8s linear infinite;
}

@keyframes gasshuku-calendar-spin {
	to {
		transform: rotate(360deg);
	}
}

.gasshuku-calendar__panel.is-loading {
	opacity: 0.55;
	pointer-events: none;
}

.gasshuku-calendar__submit.is-loading,
.gasshuku-calendar__nav-btn.is-loading {
	position: relative;
	color: transparent;
	pointer-events: none;
}

.gasshuku-calendar__submit.is-loading::after,
.gasshuku-calendar__nav-btn.is-loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: gasshuku-calendar-spin 0.8s linear infinite;
}

.gasshuku-calendar__nav-btn.is-loading::after {
	border-color: rgba(0, 0, 0, 0.12);
	border-top-color: #d62027;
}

.gasshuku-calendar__nav {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 16px;
	margin-bottom: 16px;
}

.gasshuku-calendar__nav-btn {
	flex-shrink: 0;
	padding: 10px 16px;
	border: 1px solid #ccc;
	border-radius: 2px;
	background: #fff;
	font-size: 16px;
	cursor: pointer;
}

.gasshuku-calendar__nav-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.gasshuku-calendar__title {
	margin: 0;
	font-size: 32px;
	font-weight: 700;
	text-align: center;
	white-space: nowrap;
}

.gasshuku-calendar__weekdays,
.gasshuku-calendar__days {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
}

.gasshuku-calendar__weekday {
	padding: 12px 4px;
	text-align: center;
	font-size: 16px;
	font-weight: 700;
	color: #333;
	background: #ececec;
	border: 1px solid #d9d9d9;
}

.gasshuku-calendar__weekday.is-sun {
	color: #d62027;
}

.gasshuku-calendar__weekday.is-sat {
	color: #1f6fd2;
}

.gasshuku-calendar__day {
	min-height: 150px;
	padding: 10px;
	border: 1px solid #d9d9d9;
	background: #fff;
}

.gasshuku-calendar__desktop .gasshuku-calendar__weekday {
	padding: 8px 2px;
	font-size: 15px;
}

.gasshuku-calendar__desktop .gasshuku-calendar__day {
	min-height: 118px;
	padding: 6px;
}

.gasshuku-calendar__desktop .gasshuku-calendar__day-head {
	margin-bottom: 4px;
}

.gasshuku-calendar__desktop .gasshuku-calendar__day-number {
	font-size: 16px;
}

.gasshuku-calendar__desktop .gasshuku-calendar__price {
	font-size: 20px;
}

.gasshuku-calendar__desktop .gasshuku-calendar__price-sub {
	margin-top: 2px;
	font-size: 12px;
}

.gasshuku-calendar__desktop .gasshuku-calendar__graduation {
	margin-top: 4px;
	font-size: 18px;
}

.gasshuku-calendar__desktop .gasshuku-calendar__day-action {
	min-height: 34px;
	margin-top: 6px;
}

.gasshuku-calendar__desktop .gasshuku-calendar__reserve {
	padding: 7px 4px;
	font-size: 13px;
}

.gasshuku-calendar__desktop .gasshuku-calendar__unavailable {
	font-size: 34px;
}

.gasshuku-calendar__day.is-outside {
	background: #fafafa;
}

.gasshuku-calendar__day.is-outside .gasshuku-calendar__day-number {
	color: #999;
}

.gasshuku-calendar__day.is-empty {
	background: #fafafa;
}

.gasshuku-calendar__day.is-blank {
	background: #fff;
}

.gasshuku-calendar__day-head {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 6px;
	margin-bottom: 6px;
}

.gasshuku-calendar__desktop .gasshuku-calendar__day-body {
	text-align: center;
}

.gasshuku-calendar__desktop .gasshuku-calendar__price,
.gasshuku-calendar__desktop .gasshuku-calendar__price-sub,
.gasshuku-calendar__desktop .gasshuku-calendar__graduation {
	text-align: center;
}

.gasshuku-calendar__day-number {
	font-size: 18px;
	font-weight: 700;
}

.gasshuku-calendar__price {
	margin: 0;
	color: #d62027;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
}

.gasshuku-calendar__price-sub {
	margin: 4px 0 0;
	color: #666;
	font-size: 14px;
}

.gasshuku-calendar__graduation {
	margin: 8px 0 0;
	font-size: 15px;
}

.gasshuku-calendar__day-action {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin-top: 10px;
}

.gasshuku-calendar__reserve-form {
	width: 100%;
	margin: 0;
}

.gasshuku-calendar__desktop .gasshuku-calendar__reserve-form {
	width: 100%;
}

.gasshuku-calendar__reserve {
	width: 100%;
	padding: 10px 6px;
	border: 0;
	border-radius: 10px;
	background: #d62027;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

.gasshuku-calendar__reserve:hover,
.gasshuku-calendar__reserve:focus {
	background: #b81a20;
	color: #fff;
}

.gasshuku-calendar__unavailable {
	display: block;
	font-size: 44px;
	line-height: 1;
	font-weight: 700;
	color: #111;
}

.gasshuku-calendar__list {
	display: none;
}

.gasshuku-calendar__list-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
	font-size: 15px;
}

.gasshuku-calendar__list-table th,
.gasshuku-calendar__list-table td {
	padding: 12px 6px;
	border: 1px solid #d9d9d9;
	text-align: center;
	vertical-align: middle;
}

.gasshuku-calendar__list-table thead th {
	background: #ececec;
	font-weight: 700;
}

.gasshuku-calendar__list-table tbody tr:nth-child(even) {
	background: #fff9e6;
}

.gasshuku-calendar__list-table tbody tr:nth-child(odd) {
	background: #fff;
}

.gasshuku-calendar__list-table tbody tr.is-row-only {
	background: #fafafa;
}

.gasshuku-calendar__list-table tbody tr.is-row-only.is-sunday {
	background: #fff5f5;
}

.gasshuku-calendar__list-price-main {
	display: block;
	color: #d62027;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

.gasshuku-calendar__list-price-sub {
	display: block;
	margin-top: 4px;
	color: #333;
	font-size: 13px;
	line-height: 1.3;
}

.gasshuku-calendar__list-action .gasshuku-calendar__reserve {
	width: auto;
	min-width: 72px;
	padding: 8px 10px;
	font-size: 13px;
}

.gasshuku-calendar__list-action .gasshuku-calendar__unavailable {
	font-size: 32px;
}

.gasshuku-calendar__list-empty {
	padding: 20px 12px;
	color: #666;
}

@media (max-width: 768px) {
	.gasshuku-calendar {
		font-size: 15px;
	}

	.gasshuku-calendar__desktop {
		display: none;
	}

	.gasshuku-calendar__list {
		display: block;
	}

	.gasshuku-calendar__filter-table th {
		display: block;
		width: auto;
		padding-bottom: 4px;
	}

	.gasshuku-calendar__filter-table td {
		display: block;
		padding-top: 0;
		padding-bottom: 0;
	}

	.gasshuku-calendar__filter select,
	.gasshuku-calendar__filter input[type="number"][name="gasshuku_age"] {
		width: 100%;
		min-width: 0;
		font-size: 16px;
	}

	.gasshuku-calendar__submit {
		width: 100%;
		max-width: none;
		font-size: 18px;
	}

	.gasshuku-calendar__notes {
		text-align: left;
	}

	.gasshuku-calendar__title {
		font-size: 24px;
	}

	.gasshuku-calendar__list-table {
		font-size: 14px;
	}

	.gasshuku-calendar__list-table th,
	.gasshuku-calendar__list-table td {
		padding: 10px 4px;
	}

	.gasshuku-calendar__list-price-main {
		font-size: 16px;
	}

	.gasshuku-calendar__list-price-sub {
		font-size: 12px;
	}
}

@media (min-width: 769px) {
	.gasshuku-calendar__list {
		display: none;
	}
}
