/* ============================================
   予約カレンダー フロント
   ============================================ */
.bk-booking {
	--bk-main: #1b2440;
	--bk-btn: #169a88;
	--bk-sel: #0d7c6e;
	max-width: 720px;
	margin: 0 auto;
	font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
	color: #333f4f;
	line-height: 1.7;
}
.bk-booking *,
.bk-booking *::before,
.bk-booking *::after { box-sizing: border-box; }

.bk-title {
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--bk-main);
	margin: 0 0 10px;
}
.bk-desc { margin: 0 0 20px; color: #56616f; }
.bk-desc p { margin: 0 0 .4em; }

.bk-step {
	background: #fff;
	border: 1px solid #e3e8ed;
	border-radius: 8px;
	padding: 20px 22px;
	margin-bottom: 18px;
}
.bk-step-head {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	color: var(--bk-main);
	margin-bottom: 16px;
}
.bk-step-no {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--bk-main);
	color: #fff;
	font-size: 14px;
}

/* ---- カレンダー形式 ---- */
.bk-cal {
	border: 1px solid #e3e8ed;
	border-radius: 6px;
	overflow: hidden;
}
.bk-cal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 12px;
	background: #f6f8f9;
	font-weight: 700;
	color: var(--bk-main);
}
.bk-cal-nav {
	appearance: none;
	border: 1px solid #d3dbe2;
	background: #fff;
	width: 34px;
	height: 34px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 18px;
	color: var(--bk-main);
}
.bk-cal-nav:disabled { opacity: .35; cursor: default; }
.bk-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
}
.bk-cal-grid .bk-dow {
	text-align: center;
	padding: 8px 0;
	font-size: 12px;
	color: #76828f;
	background: #fbfcfd;
}
.bk-cal-cell {
	position: relative;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border-top: 1px solid #eef1f4;
	border-right: 1px solid #eef1f4;
	font-size: 14px;
}
.bk-cal-cell:nth-child(7n) { border-right: none; }
.bk-cal-cell.is-empty { background: #fafbfc; }
.bk-cal-cell.is-disabled { color: #c3ccd5; }
.bk-cal-cell.is-available {
	cursor: pointer;
	color: var(--bk-main);
	font-weight: 600;
}
.bk-cal-cell.is-available::after {
	content: "";
	position: absolute;
	bottom: 6px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--bk-btn);
}
.bk-cal-cell.is-available:hover { background: #eef7f5; }
.bk-cal-cell.is-selected {
	background: var(--bk-sel);
	color: #fff;
}
.bk-cal-cell.is-selected::after { background: #fff; }

/* ---- 日付一覧形式 ---- */
.bk-datelist {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.bk-datelist button {
	appearance: none;
	border: 1px solid #d3dbe2;
	background: #fff;
	border-radius: 6px;
	padding: 10px 14px;
	font-size: 14px;
	cursor: pointer;
	color: var(--bk-main);
	transition: border-color .15s, background .15s;
}
.bk-datelist button:hover { border-color: var(--bk-btn); background: #eef7f5; }
.bk-datelist button.is-selected {
	background: var(--bk-sel);
	border-color: var(--bk-sel);
	color: #fff;
}

.bk-empty { color: #76828f; padding: 12px 0; }

/* ---- 週表示（タイムテーブル） ---- */
.bk-week-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bk-week { min-width: 620px; }
.bk-week-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}
.bk-week-title { font-size: 18px; font-weight: 700; color: var(--bk-main); }
.bk-week-tools { display: flex; align-items: center; gap: 14px; }
.bk-week-nav { display: flex; align-items: center; gap: 6px; }
.bk-week-today {
	appearance: none;
	border: 1px solid #d3dbe2;
	background: #fff;
	border-radius: 6px;
	padding: 7px 14px;
	font-size: 13px;
	cursor: pointer;
	color: var(--bk-main);
}
.bk-week-today:hover { border-color: var(--bk-btn); }
.bk-week-row {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 8px;
}
.bk-week-dow { margin-bottom: 10px; }
.bk-week-daycell {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 4px 0;
}
.bk-week-daynum { font-size: 17px; font-weight: 700; color: var(--bk-main); }
.bk-week-dow-label { font-size: 12px; color: #76828f; }
.bk-week-daycell.is-today .bk-week-daynum {
	background: var(--bk-sel);
	color: #fff;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.bk-week-daycell.is-today .bk-week-dow-label { color: var(--bk-sel); font-weight: 700; }
.bk-week-body { display: grid; gap: 8px; }
.bk-week-slot {
	appearance: none;
	border: 1px solid #d3dbe2;
	background: #fff;
	border-radius: 6px;
	padding: 12px 4px;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	color: var(--bk-main);
	cursor: pointer;
	transition: border-color .15s, background .15s;
}
.bk-week-slot:hover { border-color: var(--bk-btn); background: #eef7f5; }
.bk-week-slot.is-today { border-color: var(--bk-btn); color: var(--bk-btn); }
.bk-week-slot.is-selected {
	background: var(--bk-sel);
	border-color: var(--bk-sel);
	color: #fff;
}
.bk-week-slot.is-disabled {
	background: #f0f2f4;
	border-color: #f0f2f4;
	color: #b7c0ca;
	cursor: default;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 500;
}

/* ---- 満員（月・一覧形式の枠） ---- */
.bk-slot.is-full {
	background: #f0f2f4;
	border-color: #f0f2f4;
	color: #b7c0ca;
	cursor: default;
}
.bk-slot.is-full:hover { background: #f0f2f4; border-color: #f0f2f4; }
.bk-slot-full {
	display: inline-block;
	margin-top: 4px;
	font-size: 11px;
	font-weight: 700;
	color: #8a95a1;
	background: #e2e6ea;
	border-radius: 3px;
	padding: 1px 6px;
}

/* ---- 時間枠 ---- */
.bk-time-area { margin-top: 18px; }
.bk-time-label { font-weight: 600; color: var(--bk-main); margin: 0 0 10px; }
.bk-time-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 10px;
}
.bk-slot {
	appearance: none;
	border: 1px solid #d3dbe2;
	background: #fff;
	border-radius: 6px;
	padding: 12px 8px;
	cursor: pointer;
	text-align: center;
	transition: border-color .15s, background .15s;
}
.bk-slot:hover { border-color: var(--bk-btn); background: #eef7f5; }
.bk-slot.is-selected {
	border-color: var(--bk-sel);
	background: var(--bk-sel);
	color: #fff;
}
.bk-slot-time { font-weight: 700; font-size: 15px; display: block; }
.bk-slot-label {
	display: inline-block;
	margin-top: 4px;
	font-size: 11px;
	font-weight: 600;
	color: var(--bk-btn);
	background: #eef7f5;
	border-radius: 3px;
	padding: 1px 6px;
}
.bk-slot.is-selected .bk-slot-label { color: #fff; background: rgba(255,255,255,.22); }

/* ---- フォーム ---- */
.bk-selected {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	background: #eef7f5;
	border-radius: 6px;
	padding: 12px 16px;
	margin-bottom: 18px;
}
.bk-selected-label { font-size: 13px; color: #56616f; }
.bk-selected-value { color: var(--bk-main); font-size: 16px; }
.bk-change {
	appearance: none;
	border: none;
	background: transparent;
	color: var(--bk-btn);
	text-decoration: underline;
	cursor: pointer;
	font-size: 13px;
	margin-left: auto;
}
.bk-field { margin-bottom: 16px; }
.bk-field label { display: block; font-weight: 600; color: var(--bk-main); margin-bottom: 6px; font-size: 14px; }
.bk-req { color: #d63b3b; font-size: 12px; margin-left: 6px; }
.bk-opt { color: #76828f; font-size: 12px; margin-left: 6px; font-weight: 400; }
.bk-field input[type="text"],
.bk-field input[type="email"],
.bk-field input[type="tel"],
.bk-field textarea {
	width: 100%;
	border: 1px solid #d3dbe2;
	border-radius: 6px;
	padding: 11px 13px;
	font-size: 15px;
	font-family: inherit;
	color: #333f4f;
}
.bk-field input:focus,
.bk-field textarea:focus {
	outline: none;
	border-color: var(--bk-btn);
	box-shadow: 0 0 0 3px rgba(22,154,136,.15);
}
.bk-field textarea { min-height: 96px; resize: vertical; }

.bk-privacy {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 4px 0 20px;
	font-size: 14px;
}
.bk-privacy input { margin-top: 4px; }
.bk-privacy a { color: var(--bk-btn); }

.bk-submit-wrap { text-align: center; }
.bk-submit {
	appearance: none;
	border: none;
	background: var(--bk-btn);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	padding: 14px 40px;
	border-radius: 6px;
	cursor: pointer;
	transition: opacity .15s, transform .05s;
	letter-spacing: .04em;
}
.bk-submit:hover { opacity: .92; }
.bk-submit:active { transform: translateY(1px); }
.bk-submit:disabled { opacity: .55; cursor: default; }

.bk-error {
	color: #d63b3b;
	font-size: 14px;
	margin-top: 14px;
	text-align: center;
}

/* ---- 完了 ---- */
.bk-step-done { text-align: center; }
.bk-done-message {
	font-size: 15px;
	color: #333f4f;
	white-space: pre-wrap;
}
.bk-done-message::before {
	content: "✓";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--bk-btn);
	color: #fff;
	font-size: 26px;
	margin-bottom: 14px;
}

@media (max-width: 600px) {
	.bk-step { padding: 16px; }
	.bk-time-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
}
