@charset "utf-8";

/* 電話発信前の院名確認モーダル */

.tel-confirm {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.tel-confirm[hidden] {
	display: none;
}

body.tel-confirm-open {
	overflow: hidden;
}

.tel-confirm__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6);
}

.tel-confirm__dialog {
	position: relative;
	width: 100%;
	max-width: 340px;
	background-color: #fff;
	border-radius: 16px;
	padding: 28px 20px 24px;
	box-sizing: border-box;
	text-align: center;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.tel-confirm__dialog:focus {
	outline: none;
}

.tel-confirm__title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: bold;
	line-height: 1.5;
	color: #111;
}

/* 病院名は小さく、院名を最も目立たせるため3行に分けて表示する */
.tel-confirm__name {
	display: block;
	font-size: 0.875rem;
	font-weight: normal;
}

.tel-confirm__suffix {
	display: block;
	font-size: 1rem;
}

.tel-confirm__note {
	margin: 12px 0 0;
	font-size: 0.8125rem;
	line-height: 1.6;
	color: #d0121b;
}

.tel-confirm__actions {
	margin-top: 20px;
}

.tel-confirm__call,
.tel-confirm__cancel {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	border-radius: 26px;
	font-size: 1rem;
	font-weight: bold;
	line-height: 1.3;
	text-decoration: none;
	box-sizing: border-box;
	cursor: pointer;
	font-family: inherit;
}

.tel-confirm__call {
	background-color: #2e9e5b;
	border: none;
	color: #fff;
}

.tel-confirm__call:hover {
	background-color: #268650;
	color: #fff;
}

.tel-confirm__cancel {
	margin-top: 10px;
	background-color: #fff;
	border: 1px solid #ccc;
	color: #555;
}

.tel-confirm__cancel:hover {
	background-color: #f5f5f5;
}

/* モーダルを開いた直後の自動フォーカスでは枠を出さない */
.tel-confirm__call:focus:not(:focus-visible),
.tel-confirm__cancel:focus:not(:focus-visible) {
	outline: none;
}
