/* OMS スタジオ予約：フロント */
.oms-sb {
	--oms-accent: #2a7ae2;
	--oms-accent-soft: #e8f1fd;
	--oms-border: #e2e5ea;
	--oms-muted: #9aa1ab;
	--oms-text: #222;
	--oms-bg: #fff;
	max-width: 560px;
	margin: 0 auto 2em;
	color: var(--oms-text);
	font-size: 15px;
	line-height: 1.6;
	box-sizing: border-box;
}
.oms-sb *, .oms-sb *::before, .oms-sb *::after { box-sizing: border-box; }
.oms-sb button { font: inherit; }
.oms-sb-event { margin: 0 0 12px; font-size: 20px; font-weight: 700; }

.oms-sb-cal { background: var(--oms-bg); border: 1px solid var(--oms-border); border-radius: 12px; padding: 16px; }
.oms-sb-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.oms-sb-title { font-weight: 700; font-size: 18px; }
.oms-sb-nav { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--oms-border); background: #fff; cursor: pointer; font-size: 20px; line-height: 1; color: var(--oms-text); padding: 0; }
.oms-sb-nav:hover:not(:disabled) { background: var(--oms-accent-soft); }
.oms-sb-nav:disabled { opacity: .3; cursor: default; }

.oms-sb-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.oms-sb-grid.loading { opacity: .4; pointer-events: none; }
.oms-sb-wd { text-align: center; font-size: 12px; color: #666; padding: 4px 0; }
.oms-sb-wd.sun { color: #d63638; }
.oms-sb-wd.sat { color: #2271b1; }

.oms-sb-day { display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 1 / 1; min-height: 44px; border: 1px solid transparent; border-radius: 8px; background: none; padding: 2px; cursor: default; color: var(--oms-text); }
.oms-sb-day.blank { visibility: hidden; }
.oms-sb-day .num { font-size: 15px; font-weight: 600; }
.oms-sb-day .mark { font-size: 11px; line-height: 1; margin-top: 2px; }
.oms-sb-day.sun .num { color: #d63638; }
.oms-sb-day.sat .num { color: #2271b1; }
.oms-sb-day.open { background: var(--oms-accent-soft); cursor: pointer; }
.oms-sb-day.open .mark { color: var(--oms-accent); }
.oms-sb-day.open:hover { border-color: var(--oms-accent); }
.oms-sb-day.full { background: #f6f7f8; }
.oms-sb-day.full .mark { color: #d63638; }
.oms-sb-day.out { color: var(--oms-muted); }
.oms-sb-day.out .num { color: var(--oms-muted); font-weight: 400; }
.oms-sb-day.out .mark { color: #ccc; }
.oms-sb-day.today { box-shadow: inset 0 0 0 2px #f0b849; }
.oms-sb-day.selected { background: var(--oms-accent); border-color: var(--oms-accent); }
.oms-sb-day.selected .num, .oms-sb-day.selected .mark { color: #fff; }

.oms-sb-legend { display: flex; gap: 14px; justify-content: flex-end; font-size: 12px; color: #666; margin-top: 10px; flex-wrap: wrap; }
.oms-sb-legend .lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.oms-sb-legend .lg.open { background: var(--oms-accent-soft); border: 1px solid var(--oms-accent); }
.oms-sb-legend .lg.full { background: #f6f7f8; border: 1px solid #d63638; }
.oms-sb-legend .lg.out { background: #fff; border: 1px solid #ccc; }

.oms-sb-slots { margin-top: 16px; }
.oms-sb-h { font-size: 16px; margin: 0 0 10px; }
.oms-sb-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.oms-sb-time { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; border: 1px solid var(--oms-border); border-radius: 10px; background: #fff; cursor: pointer; text-align: left; color: var(--oms-text); }
.oms-sb-time .t { font-weight: 600; }
.oms-sb-time .s { font-size: 12px; color: var(--oms-accent); white-space: nowrap; }
.oms-sb-time.open:hover { border-color: var(--oms-accent); }
.oms-sb-time.selected { background: var(--oms-accent); border-color: var(--oms-accent); color: #fff; }
.oms-sb-time.selected .s { color: #fff; }
.oms-sb-time.booked, .oms-sb-time.past { background: #f6f7f8; cursor: not-allowed; color: var(--oms-muted); }
.oms-sb-time.booked .s { color: #d63638; font-weight: 700; }
.oms-sb-time.past .s { color: var(--oms-muted); }

.oms-sb-form { margin-top: 16px; padding: 16px; border: 1px solid var(--oms-border); border-radius: 12px; background: #fff; }
.oms-sb-sel { font-weight: 700; margin-bottom: 12px; padding: 10px 12px; background: var(--oms-accent-soft); border-radius: 8px; }
.oms-sb-form label { display: block; margin-bottom: 12px; font-size: 14px; }
.oms-sb-form .req { font-size: 11px; background: #d63638; color: #fff; border-radius: 3px; padding: 1px 5px; margin-left: 4px; vertical-align: 1px; }
.oms-sb-form input[type=text], .oms-sb-form input[type=email] { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid #c9cdd3; border-radius: 8px; font-size: 16px; background: #fff; color: var(--oms-text); }
.oms-sb-form input:focus { outline: 2px solid var(--oms-accent); outline-offset: 0; border-color: var(--oms-accent); }
.oms-sb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.oms-sb-ts { margin: 4px 0 14px; min-height: 0; max-width: 100%; overflow: hidden; }
.oms-sb-ts:empty { display: none; }
.oms-sb-submit { width: 100%; padding: 14px; border: 0; border-radius: 10px; background: var(--oms-accent); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; }
.oms-sb-submit:hover:not(:disabled) { filter: brightness(.92); }
.oms-sb-submit:disabled { opacity: .6; cursor: wait; }

.oms-sb-msg:empty { display: none; }
.oms-sb-msg { margin-top: 14px; padding: 12px 14px; border-radius: 10px; }
.oms-sb-msg.ok { background: #edfaef; border: 1px solid #68de7c; color: #1a5e27; }
.oms-sb-msg.error { background: #fcf0f1; border: 1px solid #f0a5a7; color: #8a1f21; }
.oms-sb-loading { color: #666; }
.oms-sb-closed { padding: 16px; background: #f6f7f8; border-radius: 10px; text-align: center; }

.oms-sb { max-width: 760px; }
.oms-sb-cal { max-width: 560px; margin: 0 auto; }
.oms-sb-notice { margin: 0 0 14px; padding: 12px 14px; background: #fffbea; border: 1px solid #f0d58a; border-radius: 10px; font-size: 14px; }
.oms-sb-notice p { margin: 0 0 .4em; }
.oms-sb-notice p:last-child { margin-bottom: 0; }
.oms-sb-daybox { margin-top: 18px; }
.oms-sb-hint { margin: 0 0 8px; font-size: 13px; color: #555; }

/* 部屋×時間の表 */
.oms-sb-tablewrap { overflow: auto; max-height: 70vh; border: 1px solid var(--oms-border); border-radius: 10px; background: #fff; -webkit-overflow-scrolling: touch; }
.oms-sb-table { table-layout: fixed; min-width: 420px !important; border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; margin: 0; }
.oms-sb-table th, .oms-sb-table td { border: 0; border-bottom: 1px solid #eef0f3; border-right: 1px solid #eef0f3; padding: 0; text-align: center; background: #fff; }
.oms-sb-table thead th { position: sticky; top: 0; z-index: 2; background: #1f4e8c !important; color: #fff !important; font-weight: 700; padding: 6px 4px; vertical-align: middle; border-right-color: rgba(255,255,255,.25); }
.oms-sb-table thead th.rm { min-width: 64px; line-height: 1.25; }
.oms-sb-table thead th .no { display: block; font-size: 15px; color: #fff !important; letter-spacing: .02em; }
.oms-sb-table thead th .lb { display: block; margin-top: 2px; font-size: 10.5px; font-weight: 500; color: #ffe8a3 !important; white-space: normal; word-break: keep-all; overflow-wrap: anywhere; }
.oms-sb-table th.tm { position: sticky; left: 0; z-index: 1; background: #f6f7f9; width: 52px; min-width: 52px; font-weight: 600; color: #555; padding: 0 6px; white-space: nowrap; }
.oms-sb-table thead th.tm { z-index: 3; background: #163b6b !important; color: #fff !important; }
.oms-sb-cell { display: block; width: 100%; min-width: 44px; height: 34px; border: 0; border-radius: 0; margin: 0; padding: 0; background: none; font-size: 14px; line-height: 34px; cursor: default; color: var(--oms-muted); }
.oms-sb-cell.s-o { background: var(--oms-accent-soft); color: var(--oms-accent); font-weight: 700; cursor: pointer; }
.oms-sb-cell.s-o:hover { background: #d3e5fb; }
.oms-sb-cell.s-x { background: #f6f7f8; color: #d63638; }
.oms-sb-cell.s-c, .oms-sb-cell.s-p { background: #fafafa; color: #c3c7cc; }
.oms-sb-cell.s-b { background: repeating-linear-gradient(45deg, #fff4e0, #fff4e0 4px, #fdebc8 4px, #fdebc8 8px); color: #b26a00; font-size: 12px; font-weight: 700; }
.oms-sb-cell.selected { background: var(--oms-accent) !important; color: #fff !important; }

.oms-sb-form select, .oms-sb-form input[type=tel], .oms-sb-form textarea { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid #c9cdd3; border-radius: 8px; font-size: 16px; background: #fff; color: var(--oms-text); font-family: inherit; }
.oms-sb-form .opt { font-size: 11px; background: #8c8f94; color: #fff; border-radius: 3px; padding: 1px 5px; margin-left: 4px; vertical-align: 1px; }
.oms-sb-form { max-width: 560px; margin-left: auto; margin-right: auto; }

@media (max-width: 420px) {
	.oms-sb-cal { padding: 10px; }
	.oms-sb-grid { gap: 2px; }
	.oms-sb-day .num { font-size: 14px; }
	.oms-sb-cell { min-width: 40px; height: 32px; line-height: 32px; }
}

.oms-sb-legend .lg.blk { background: #fdebc8; border: 1px solid #e0a43a; }
.oms-sb-dayblocks { margin: 0 0 8px; padding: 8px 12px; background: #fff4e0; border-left: 4px solid #e0a43a; border-radius: 6px; font-size: 14px; color: #7a4a00; font-weight: 600; }

/* お部屋の案内・曜日ごとの予約不可時間 */
.oms-sb-rooms { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; }
.oms-sb-rooms li { margin: 0; padding: 0; }
.oms-sb-roomno { display: inline-block; min-width: 38px; margin-right: 6px; padding: 1px 6px; background: #1f4e8c; color: #fff !important; border-radius: 4px; font-weight: 700; text-align: center; font-size: 13px; }
.oms-sb-blocks { margin: 0 0 14px; padding: 10px 14px; background: #fff; border: 1px solid #f0d58a; border-radius: 10px; font-size: 14px; }
.oms-sb-blocks-h { margin: 0 0 6px; font-weight: 700; color: #7a4a00; }
.oms-sb-blocks table { border-collapse: collapse; margin: 0; width: auto; border: 0; }
.oms-sb-blocks th, .oms-sb-blocks td { border: 0; padding: 2px 10px 2px 0; text-align: left; vertical-align: top; background: none; color: inherit; }
.oms-sb-blocks th { white-space: nowrap; font-weight: 600; }
@media (max-width: 480px) {
	.oms-sb-table { min-width: 0 !important; font-size: 12px; }
	.oms-sb-table th.tm { width: 44px; min-width: 44px; padding: 0 3px; }
	.oms-sb-table thead th.rm { min-width: 0; padding: 5px 1px; }
	.oms-sb-table thead th .no { font-size: 13px; }
	.oms-sb-table thead th .lb { font-size: 8.5px; letter-spacing: -.03em; }
	.oms-sb-cell { min-width: 0; }
}
.oms-sb-blocks ul { list-style: none; margin: 0; padding: 0; }
.oms-sb-blocks li { margin: 0 0 3px; padding: 0; }
.oms-sb-blocks .oms-sb-roomno { font-size: 12px; }
.oms-sb-roomno.all { background: #b26a00; }
.oms-sb-dayblocks span { display: block; font-weight: 600; }
.oms-sb-dayblocks span:first-child { font-weight: 700; margin-bottom: 2px; }
.oms-sb-dayblocks span + span { font-weight: 500; }

/* 予約フォーム：サイズ・貸出機材・使用用途 */
.oms-sb-fs { margin: 0 0 12px; padding: 0; border: 0; min-width: 0; }
.oms-sb-fs[hidden] { display: none; }
.oms-sb-fs legend { padding: 0; margin: 0 0 6px; font-size: 14px; }
.oms-sb-fs .opts { display: flex; flex-wrap: wrap; gap: 6px; }
.oms-sb-form label.oms-sb-choice { display: inline-flex; align-items: center; gap: 4px; margin: 0; padding: 7px 12px; border: 1px solid #c9cdd3; border-radius: 999px; background: #fff; font-size: 14px; cursor: pointer; line-height: 1.3; }
.oms-sb-form label.oms-sb-choice:has(input:checked) { border-color: var(--oms-accent); background: var(--oms-accent-soft); color: #174ea6; font-weight: 600; }
.oms-sb-choice input { margin: 0; }
/* 応相談 */
.oms-sb-cell.s-q { background: #fff7e6; color: #b26a00; font-size: 11px; font-weight: 700; cursor: help; letter-spacing: -.02em; }
.oms-sb-cell.s-q:hover { background: #ffecc7; }
.oms-sb-legend .lg.q { background: #fff7e6; border: 1px solid #e0a43a; }

/* 申込時の注意文 */
.oms-sb-apply { margin: 0 0 12px; padding: 10px 12px; background: #fff4e0; border: 1px solid #f0c674; border-left: 4px solid #e0a43a; border-radius: 8px; font-size: 13.5px; line-height: 1.6; color: #6b4200; font-weight: 600; white-space: pre-wrap; }
.oms-sb-apply[hidden] { display: none; }
.oms-sb-apply-btn { margin-top: 4px; }

/* 料金（自動計算） */
.oms-sb-sizenote { margin: 8px 0 0; padding: 8px 10px; background: #f3f6fb; border-radius: 6px; font-size: 13px; color: #33415c; }
.oms-sb-sizenote[hidden], .oms-sb-price[hidden] { display: none; }
.oms-sb-price { margin: 4px 0 12px; padding: 12px 14px; border: 2px solid var(--oms-accent); border-radius: 10px; background: #fff; }
.oms-sb-price .h { font-weight: 700; margin-bottom: 6px; color: var(--oms-accent); }
.oms-sb-price .ln, .oms-sb-price .total { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 2px 0; }
.oms-sb-price .amt { white-space: nowrap; font-variant-numeric: tabular-nums; }
.oms-sb-price .total { margin-top: 6px; padding-top: 8px; border-top: 1px dashed #c9cdd3; font-size: 18px; font-weight: 700; }
.oms-sb-price .tbd { font-size: 13px; color: #666; }
