@charset "utf-8";

/* =================================
   ■ reservation（来場予約フォーム）
   contact.css の section#contactArea 内スタイルに追加する形で読み込む
================================== */

/* ご予約の種類タブ
-------------------------------------------------- */
section#contactArea .typeTabs{
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

section#contactArea .typeTab{
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 22px;
	border: 1px solid #cccccc;
	border-radius: 999px;
	background: #fff;
	font-size: 14px;
	font-family: "游ゴシック", "Yu Gothic", YuGothic, sans-serif;
	font-weight: bold;
	cursor: pointer;
	transition: background .15s, border-color .15s, color .15s;
}

section#contactArea .typeTab input[type="radio"]{
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
}

section#contactArea .typeTab .radioUI{
	display: inline-block;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid #cccccc;
	background: #fff;
	position: relative;
	transition: border-color .15s;
}

section#contactArea .typeTab .radioUI::after{
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #A38D75;
	transform: translate(-50%, -50%) scale(0);
	transition: transform .15s;
}

section#contactArea .typeTab.isActive{
	background: #A38D75;
	border-color: #A38D75;
	color: #fff;
}

section#contactArea .typeTab.isActive .radioUI{
	border-color: #fff;
	background: #fff;
}

section#contactArea .typeTab.isActive .radioUI::after{
	background: #A38D75;
	transform: translate(-50%, -50%) scale(1);
}

section#contactArea .typeTab input[type="radio"]:focus-visible ~ .radioUI{
	outline: 2px solid #A38D75;
	outline-offset: 2px;
}

/* 日付・時間の選択行
-------------------------------------------------- */
section#contactArea .dateField{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

section#contactArea .dateField input.dateInput{
	width: auto;
	min-width: 220px;
	background: #fff;
	cursor: pointer;
}

section#contactArea .dateField select{
	width: auto;
}

section#contactArea .timeLabel{
	font-size: 87%;
	color: #555555;
}

section#contactArea p.fieldNote{
	margin-top: 8px;
	font-size: 12px;
	font-family: "游ゴシック", "Yu Gothic", YuGothic, sans-serif;
	color: #888888;
}

section#contactArea p.fieldNote.annot{
	color: #b8622e;
	font-weight: bold;
}

section#contactArea td .annot{
	color: #b8622e;
}

/* ボタン
-------------------------------------------------- */
section#contactArea .btn{
	display: inline-block;
	appearance: none;
	border: none;
	cursor: pointer;
	font-family: inherit;
	font-size: 95%;
	font-weight: bold;
	padding: 15px 46px;
	border-radius: 3px;
	text-decoration: none;
}

section#contactArea .btnPrimary{
	position: relative;
	background: #BE988D;
	color: #fff;
	font-size: 17px;
	padding-right: 58px;
}

section#contactArea .btnPrimary::after{
	content: "";
	position: absolute;
	right: 26px;
	top: 50%;
	width: 8px;
	height: 8px;
	border-top: 2px solid #fff;
	border-right: 2px solid #fff;
	transform: translateY(-50%) rotate(45deg);
}

section#contactArea .btnPrimary:hover{
	background: #a97f73;
}

section#contactArea .btnGhost{
	background: #fff;
	color: #333333;
	border: 1px solid #cccccc;
}

section#contactArea .btnGhost:hover{
	border-color: #999999;
}

/* カレンダーポップアップ
-------------------------------------------------- */
.reservationCalendar{
	display: none;
	position: absolute;
	z-index: 50;
	width: 268px;
	background: #fff;
	border: 1px solid #cccccc;
	border-radius: 4px;
	box-shadow: 0 8px 24px rgba(0,0,0,.15);
	padding: 14px;
	font-size: 13px;
}

.reservationCalendar.isOpen{
	display: block;
}

.reservationCalendar .calHead{
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
	font-weight: bold;
}

.reservationCalendar .calNav{
	appearance: none;
	border: 1px solid #cccccc;
	background: #fff;
	width: 26px;
	height: 26px;
	border-radius: 3px;
	cursor: pointer;
}

.reservationCalendar .calNav:disabled{
	opacity: .3;
	cursor: default;
}

.reservationCalendar .calGrid{
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
	text-align: center;
}

.reservationCalendar .calGrid .calDow{
	color: #999999;
	font-size: 11px;
	padding-bottom: 4px;
}

.reservationCalendar .calGrid button{
	appearance: none;
	border: none;
	background: transparent;
	padding: 7px 0;
	border-radius: 3px;
	cursor: pointer;
}

.reservationCalendar .calGrid button:hover:not(:disabled){
	background: #faf1df;
}

.reservationCalendar .calGrid button:disabled{
	color: #cccccc;
	cursor: default;
}

.reservationCalendar .calGrid button.isToday{
	box-shadow: inset 0 0 0 1px #d0a54c;
}

.reservationCalendar .calGrid button.isBlank{
	visibility: hidden;
}


@media only screen and (max-width : 767px) {

	section#contactArea .typeTabs{
		gap: 8px;
	}

	section#contactArea .typeTab{
		padding: 12px 16px;
		font-size: 13px;
	}

	section#contactArea .dateField{
		flex-direction: column;
		align-items: flex-start;
	}

	section#contactArea .dateField input.dateInput,
	section#contactArea .dateField select{
		width: 100%!important;
	}

	/* select/inputがコンテナ幅を超えて画面外にはみ出さないように */
	section#contactArea form select,
	section#contactArea form input,
	section#contactArea form textarea{
		max-width: 100%;
		box-sizing: border-box;
	}

	section#contactArea #eventSelect{
		width: 100%;
	}

	section#contactArea .btn{
		width: 100%;
		text-align: center;
		box-sizing: border-box;
	}

	/* 確認画面：予約するボタンを上、修正するボタンを下に並べる */
	section#contactArea ul.submitArea{
		display: flex;
		flex-direction: column-reverse;
		gap: 16px;
	}

	section#contactArea ul.submitArea li{
		display: block;
	}

	.reservationCalendar{
		width: 100%;
		max-width: 300px;
	}
}
