/*
 * 予約システム用CSS
 * 京料理 藤や オンライン予約ページ
 */

/* 予約セクション全体 */
.reserve-section {
	width: 95%;
	max-width: 900px;
	margin: 0 auto;
	padding: 20px 0;
}

.reserve-title {
	font-size: 28px;
	line-height: 34px;
	padding: 20px 0 28px;
	color: #393939;
	text-align: center;
	font-family: 'Sawarabi Mincho', serif;
}

.reserve-info {
	text-align: center;
	margin-bottom: 30px;
	font-size: 14px;
	color: #666;
}

/* カレンダー */
.calendar-wrapper {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 30px;
}

.calendar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 1px solid #eee;
}

.calendar-header h3 {
	font-size: 20px;
	color: #393939;
	margin: 0;
}

.calendar-nav {
	display: flex;
	gap: 10px;
}

.calendar-nav button {
	background: #AA8A62;
	color: #fff;
	border: none;
	padding: 8px 15px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	transition: background 0.2s;
}

.calendar-nav button:hover {
	background: #8B6D4A;
}

.calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 5px;
}

.calendar-day-header {
	text-align: center;
	font-weight: bold;
	padding: 10px 0;
	color: #666;
	font-size: 14px;
}

.calendar-day-header.sun {
	color: #c00;
}

.calendar-day-header.sat {
	color: #00c;
}

.calendar-day {
	text-align: center;
	padding: 12px 8px;
	border: 1px solid #eee;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s;
	font-size: 14px;
	background: #fff;
}

.calendar-day:hover:not(.disabled):not(.empty) {
	background: #f5f0e8;
	border-color: #AA8A62;
}

.calendar-day.selected {
	background: #AA8A62;
	color: #fff;
	border-color: #AA8A62;
}

.calendar-day.disabled {
	color: #ccc;
	cursor: not-allowed;
	background: #f9f9f9;
}

.calendar-day.empty {
	border: none;
	cursor: default;
	background: transparent;
}

.calendar-day.today {
	border-color: #AA8A62;
	font-weight: bold;
}

/* 満席表示 */
.calendar-day.full {
	background: #f0f0f0;
	color: #999;
	cursor: not-allowed;
}

.calendar-day.full::after {
	content: '満';
	display: block;
	font-size: 10px;
	color: #c00;
}

/* 残りわずか */
.calendar-day.few::after {
	content: '残少';
	display: block;
	font-size: 9px;
	color: #f90;
}

/* 時間選択 */
.time-selection {
	margin-bottom: 30px;
}

.time-selection h4 {
	font-size: 18px;
	margin-bottom: 15px;
	color: #393939;
}

.time-slots {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.time-slot {
	padding: 12px 20px;
	border: 1px solid #ddd;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s;
	font-size: 14px;
	background: #fff;
}

.time-slot:hover:not(.disabled) {
	border-color: #AA8A62;
	background: #f5f0e8;
}

.time-slot.selected {
	background: #AA8A62;
	color: #fff;
	border-color: #AA8A62;
}

.time-slot.disabled {
	color: #ccc;
	cursor: not-allowed;
	background: #f9f9f9;
}

.time-slot.full {
	position: relative;
	color: #999;
	cursor: not-allowed;
}

.time-slot.full::after {
	content: '満席';
	position: absolute;
	top: -8px;
	right: -8px;
	background: #c00;
	color: #fff;
	font-size: 10px;
	padding: 2px 5px;
	border-radius: 3px;
}

/* 人数・座席選択 */
.select-row {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 30px;
}

.select-group {
	flex: 1;
	min-width: 200px;
}

.select-group label {
	display: block;
	font-size: 16px;
	margin-bottom: 8px;
	color: #393939;
}

.select-group select {
	width: 100%;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 16px;
	background: #fff;
	cursor: pointer;
}

.select-group select:focus {
	border-color: #AA8A62;
	outline: none;
}

/* コース選択 */
.course-selection {
	margin-bottom: 30px;
}

.course-selection h4 {
	font-size: 18px;
	margin-bottom: 15px;
	color: #393939;
}

.course-item {
	display: flex;
	align-items: flex-start;
	padding: 15px;
	border: 1px solid #ddd;
	border-radius: 4px;
	margin-bottom: 10px;
	cursor: pointer;
	transition: all 0.2s;
	background: #fff;
}

.course-item:hover {
	border-color: #AA8A62;
	background: #f5f0e8;
}

.course-item.selected {
	border-color: #AA8A62;
	background: #f5f0e8;
}

.course-item input[type="radio"] {
	margin-right: 15px;
	margin-top: 3px;
	width: 18px;
	height: 18px;
}

.course-info {
	flex: 1;
}

.course-name {
	font-size: 16px;
	font-weight: bold;
	margin-bottom: 5px;
	color: #393939;
}

.course-price {
	font-size: 18px;
	color: #AA8A62;
	margin-bottom: 5px;
}

.course-desc {
	font-size: 14px;
	color: #666;
	line-height: 1.6;
}

/* フォームテーブル */
.form-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 30px;
}

.form-table th,
.form-table td {
	padding: 15px;
	border: 1px solid #ddd;
	text-align: left;
}

.form-table th {
	background: #EFEFEF;
	width: 30%;
	font-weight: normal;
}

.form-table td {
	background: #fff;
}

.form-table input[type="text"],
.form-table input[type="email"],
.form-table input[type="tel"],
.form-table textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	box-sizing: border-box;
}

.form-table input:focus,
.form-table textarea:focus {
	border-color: #AA8A62;
	outline: none;
}

.form-table textarea {
	height: 100px;
	resize: vertical;
}

.required-mark {
	display: inline-block;
	background: #c00;
	color: #fff;
	font-size: 12px;
	padding: 2px 6px;
	border-radius: 3px;
	margin-right: 8px;
}

.optional-mark {
	display: inline-block;
	background: #666;
	color: #fff;
	font-size: 12px;
	padding: 2px 6px;
	border-radius: 3px;
	margin-right: 8px;
}

/* 選択内容確認 */
.selection-summary {
	background: #f5f0e8;
	border: 1px solid #AA8A62;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 30px;
}

.selection-summary h4 {
	font-size: 18px;
	margin-bottom: 15px;
	color: #393939;
	border-bottom: 1px solid #AA8A62;
	padding-bottom: 10px;
}

.summary-item {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px dotted #ccc;
}

.summary-item:last-child {
	border-bottom: none;
}

.summary-label {
	color: #666;
}

.summary-value {
	font-weight: bold;
	color: #393939;
}

/* 送信ボタン */
.submit-section {
	text-align: center;
	margin: 40px 0;
}

.submit-btn {
	background: #AA8A62;
	color: #fff;
	border: none;
	padding: 18px 60px;
	font-size: 18px;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s;
}

.submit-btn:hover {
	background: #8B6D4A;
}

.submit-btn:disabled {
	background: #ccc;
	cursor: not-allowed;
}

/* 注意事項 */
.notice-box {
	background: #fff9e6;
	border: 1px solid #f0c36d;
	border-radius: 4px;
	padding: 20px;
	margin-bottom: 30px;
}

.notice-box h4 {
	color: #a07000;
	margin-bottom: 10px;
	font-size: 16px;
}

.notice-box ul {
	margin: 0;
	padding-left: 20px;
	color: #666;
	font-size: 14px;
	line-height: 1.8;
}

/* 確認画面用 */
.confirm-section {
	width: 95%;
	max-width: 700px;
	margin: 0 auto;
	padding: 40px 0;
}

.confirm-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 30px;
}

.confirm-table th,
.confirm-table td {
	padding: 15px;
	border: 1px solid #ddd;
	text-align: left;
}

.confirm-table th {
	background: #f5f0e8;
	width: 35%;
	color: #393939;
}

.confirm-table td {
	background: #fff;
}

.confirm-buttons {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-top: 30px;
}

.back-btn {
	background: #666;
	color: #fff;
	border: none;
	padding: 15px 40px;
	font-size: 16px;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s;
}

.back-btn:hover {
	background: #444;
}

.confirm-btn {
	background: #AA8A62;
	color: #fff;
	border: none;
	padding: 15px 40px;
	font-size: 16px;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s;
}

.confirm-btn:hover {
	background: #8B6D4A;
}

/* 完了画面用 */
.complete-section {
	width: 95%;
	max-width: 600px;
	margin: 0 auto;
	padding: 60px 0;
	text-align: center;
}

.complete-icon {
	font-size: 80px;
	color: #4CAF50;
	margin-bottom: 20px;
}

.complete-title {
	font-size: 24px;
	color: #393939;
	margin-bottom: 20px;
}

.complete-message {
	font-size: 16px;
	color: #666;
	line-height: 1.8;
	margin-bottom: 30px;
}

.reservation-number {
	background: #f5f0e8;
	border: 1px solid #AA8A62;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 30px;
}

.reservation-number span {
	display: block;
	font-size: 14px;
	color: #666;
	margin-bottom: 5px;
}

.reservation-number strong {
	font-size: 28px;
	color: #AA8A62;
}

/* エラー表示 */
.error-message {
	background: #ffe0e0;
	border: 1px solid #c00;
	border-radius: 4px;
	padding: 15px;
	margin-bottom: 20px;
	color: #c00;
}

.error-message ul {
	margin: 0;
	padding-left: 20px;
}

/* レスポンシブ */
@media screen and (max-width: 768px) {
	.reserve-title {
		font-size: 22px;
	}

	.calendar-day {
		padding: 8px 4px;
		font-size: 12px;
	}

	.calendar-nav button {
		padding: 6px 10px;
		font-size: 12px;
	}

	.time-slot {
		padding: 10px 15px;
		font-size: 13px;
	}

	.time-slots {
		gap: 8px;
	}

	.select-row {
		flex-direction: column;
		gap: 15px;
	}

	.select-group {
		min-width: 100%;
	}

	.form-table th,
	.form-table td {
		display: block;
		width: 100%;
	}

	.form-table th {
		border-bottom: none;
	}

	.course-item {
		padding: 12px;
	}

	.course-name {
		font-size: 15px;
	}

	.course-price {
		font-size: 16px;
	}

	.course-desc {
		font-size: 13px;
	}

	.submit-btn {
		width: 100%;
		padding: 15px 20px;
	}

	.confirm-buttons {
		flex-direction: column;
	}

	.back-btn,
	.confirm-btn {
		width: 100%;
	}
}

@media screen and (max-width: 480px) {
	.calendar-day-header {
		font-size: 12px;
		padding: 8px 0;
	}

	.calendar-day {
		padding: 6px 2px;
		font-size: 11px;
	}

	.time-slot {
		padding: 8px 12px;
		font-size: 12px;
	}
}
