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

.tks-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;
}

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

.tks-modal__box {
	position: relative;
	width: 100%;
	max-width: 460px;
	padding: 34px 28px 26px;
	background: #fff;
	border-top: 5px solid #009ec0;
	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;
}

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

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

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

.tks-modal__cta {
	display: block;
	padding: 13px 20px;
	background: #ff901e;
	color: #fff;
	border-radius: 25px;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
}

.tks-modal__cta:hover,
.tks-modal__cta:focus-visible {
	background: #f07f0a;
	color: #fff;
}

.tks-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;
}

.tks-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;
}

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

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

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

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

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