/* 現地調査予約 — 案内モーダル
   Complianz の Cookie バナー（z-index 99998 前後）より上に出す。 */

.tsb-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba( 0, 0, 0, 0.55 );
	opacity: 0;
	transition: opacity 0.2s ease;
}

.tsb-modal.is-open {
	opacity: 1;
}

.tsb-modal__box {
	position: relative;
	width: 100%;
	max-width: 460px;
	padding: 34px 28px 26px;
	background: #fff;
	border-top: 5px solid #a12626;
	border-radius: 4px;
	box-shadow: 0 12px 40px rgba( 0, 0, 0, 0.25 );
	color: #1a1a1a; /* テーマの body { color:#FFFFFF } を継承しないよう明示する */
	text-align: center;
	transform: translateY( 12px );
	transition: transform 0.2s ease;
}

.tsb-modal.is-open .tsb-modal__box {
	transform: translateY( 0 );
}

.tsb-modal__title {
	margin: 0 0 14px;
	color: #802726; /* #a12626 は白地でコントラスト不足のため暗い色を使う */
	font-size: 21px;
	font-weight: 700;
	line-height: 1.5;
}

.tsb-modal__body {
	margin: 0 0 22px;
	color: #333;
	font-size: 15px;
	line-height: 1.85;
	text-align: left;
}

/* ★テーマの layout.css に `a, a:link { color: #333 }` がある。
   詳細度が (0,1,1) なので、クラス1つ (0,1,0) では負ける。
   こちらの <a> は :link / :visited まで書いて必ず勝たせる。 */
.tsb-modal__cta,
.tsb-modal__cta:link,
.tsb-modal__cta:visited {
	display: block;
	padding: 13px 20px;
	background: #802726;
	color: #fff;
	border-radius: 25px;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
}

.tsb-modal__cta:hover,
.tsb-modal__cta:focus-visible {
	background: #6b1d1c;
	color: #fff;
}

.tsb-modal__close {
	display: block;
	width: 100%;
	margin-top: 12px;
	padding: 6px;
	background: none;
	border: none;
	color: #4a4a4a;
	font-size: 14px;
	text-decoration: underline;
	cursor: pointer;
}

.tsb-modal__x {
	position: absolute;
	top: 6px;
	right: 10px;
	padding: 4px 8px;
	background: none;
	border: none;
	color: #6b6b6b;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.tsb-modal__x:hover {
	color: #333;
}

@media screen and (max-width: 767px) {
	.tsb-modal__box {
		padding: 30px 20px 22px;
	}

	.tsb-modal__title {
		font-size: 18px;
	}

	.tsb-modal__body {
		font-size: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tsb-modal,
	.tsb-modal__box {
		transition: none;
	}
}
