/* 予約のページ(/reserve)だけで読む(2026-11-25)。
   主役＝TimeRexのカレンダー。トップの「ずらし枠」(白地・青緑の2pxの枠・淡い青緑の面を右下へ10px)で囲む。
   TimeRexの中の枠＝PCの端末は最小550px・最大980px／スマホとタブレットの端末は幅100%(embed.jsの原文)。 */
.site-main__inner:has(.ns-reserve) {
	box-sizing: border-box;
	max-width: calc(984px + 10px + 56px);
	padding-inline: 28px;
}
.site-main__inner:has(.ns-reserve) > .entry > .entry-header { margin-bottom: 14px; }
.site-main__inner:has(.ns-reserve) > .entry > .entry-header .entry-title {
	color: var(--ns-ink);
	font-family: var(--ns-font-sans);
	font-size: clamp(28px, 3.2vw, 40px);
	font-weight: 800;
	line-height: 1.35;
}

.ns-reserve { color: var(--ns-ink); font-family: var(--ns-font-sans); }
.ns-reserve * { box-sizing: border-box; min-width: 0; }
.ns-reserve p { margin: 0; }

.ns-reserve__lead { font-size: var(--ns-fs-lead); line-height: 1.8; }

/* 条件の欄(所要時間・面談の方法・日時の変更)。区切りの罫線だけで、印や札は付けない */
.ns-reserve__facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	max-width: 720px;
	margin: 22px 0 36px;
	border-top: 2px solid var(--ns-teal);
	border-bottom: 1px solid #cfe5e0;
}
.ns-reserve__fact { padding: 12px 18px 14px; }
.ns-reserve__fact + .ns-reserve__fact { border-left: 1px solid #cfe5e0; }
.ns-reserve__fact dt { color: var(--ns-teal); font-size: var(--ns-fs-meta); font-weight: 700; line-height: 1.5; }
.ns-reserve__fact dd { margin: 2px 0 0; font-size: 22px; font-weight: 800; line-height: 1.4; }

/* カレンダー(ずらし枠)。条件の欄を置かない時は、説明文のすぐ下に置く */
.ns-reserve__lead + .ns-reserve__calendar { margin-top: 28px; }
.ns-reserve__calendar {
	margin: 0 10px 10px 0;
	border: 2px solid var(--ns-teal);
	background: var(--ns-white);
	box-shadow: 10px 10px 0 #cfe5e0;
	scroll-margin-top: 96px;
}
.ns-reserve #timerex_calendar { min-height: 600px; }

.ns-reserve__after { max-width: 720px; margin-top: 28px; font-size: var(--ns-fs-body); line-height: 1.8; }
.ns-reserve .ns-reserve__fallback { margin-top: 10px; color: var(--ns-sub); font-size: var(--ns-fs-meta); line-height: 1.7; }
.ns-reserve__fallback a { color: var(--ns-blue); text-underline-offset: 4px; }

/* 埋め込みが読めなかった時＝空の枠を出さず、TimeRexの予約ページへのリンクを主役にする */
.ns-reserve__calendar.is-failed { padding: 28px 24px; }
.ns-reserve__calendar.is-failed #timerex_calendar { display: none; }
.ns-reserve__failed { display: none; }
.ns-reserve__calendar.is-failed .ns-reserve__failed { display: block; font-size: var(--ns-fs-lead); font-weight: 700; line-height: 1.7; }
.ns-reserve__failed a { color: var(--ns-blue); text-underline-offset: 4px; }
.ns-reserve:has(.is-failed) .ns-reserve__fallback { display: none; }

@media (max-width: 767px) {
	.site-main__inner:has(.ns-reserve) { padding-inline: var(--ns-sp-gutter); }
	.ns-reserve__lead { font-size: var(--ns-fs-body); }
	.ns-reserve__facts { grid-template-columns: auto auto minmax(0, 1fr); margin: 16px 0 24px; }
	.ns-reserve__fact { padding: 10px 8px 12px; }
	.ns-reserve__fact:first-child { padding-left: 0; }
	.ns-reserve__fact dt { font-size: var(--ns-fs-note); }
	.ns-reserve__fact dd { font-size: 17px; }
	/* スマホは画面の端まで広げ、カレンダーの幅を1pxも削らない(ずらしの面は出さない) */
	.ns-reserve__calendar {
		margin: 0 calc(-1 * var(--ns-sp-gutter));
		border-width: 2px 0;
		box-shadow: none;
		scroll-margin-top: 72px;
	}
	.ns-reserve__calendar.is-failed { padding: 24px var(--ns-sp-gutter); }
	.ns-reserve__lead + .ns-reserve__calendar { margin-top: 20px; }
	.ns-reserve__after { margin-top: 20px; }
}
