/*
	追加で設定するスタイルはこちらのファイルに記載してください
*/

/* 
	バリデーションエラー
*/
.validationError {
	color: red;
	margin: 10px 0 0 0;
}

.required {
	border: 1px solid red;
	border-radius: 2px;
}

/* 
	ローディングアニメーション 
*/
@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

.loading {
	width: 24px;
	height: 24px;
	margin: auto;
	border-radius: 50%;
	border: 0.25rem solid rgba(255, 255, 255, 0.2);
	border-top-color: rgb(255, 255, 255);
	animation: spin 1s infinite linear;
}

/* 
	モーダル
*/
.modal-entry {
	max-width: 600px;
	width: 70%;
	height: fit-content;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #F7F7F7;
	border-radius: 10px;
	padding: 16px 16px 30px 16px;
	display: none;
}

.border-success {
	border: 3px solid #7CC940;
}

.border-fail {
	border: 3px solid #EC4646;
}

.flag-icon {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100px;
	font-size: 50px;
}

.main-modal-message {
	width: fit-content;
	margin: 0 auto 30px auto;
	padding-bottom: 5px;
	border-bottom: 2px solid black;
	font-size: 24px;
}

.sub-modal-message {
	text-align: center;
	font-size: 18px;
}

.close-button {
	display: block;
	width: 150px;
	background-color: #258FF1;
	color: white;
	border: none;
	text-align: center;
	letter-spacing: 0.1em;
	padding: 10px 20px;
	border-radius: 5px;
	margin: 40px auto 0 auto;
}

.close-button:hover {
	opacity: .8;
}

@media screen and (max-width: 768px) {
	.flag-icon {
		height: 64px;
		font-size: 32px;
	}

	.main-modal-message {
		font-size: 20px;
	}

	.sub-modal-message {
		font-size: 14px;
	}
}

.modal-close__wrap {
	position: absolute;
	right: 40px;
	top: 20px;
}

.modal-close {
	background: transparent;
	border-color: transparent;
	padding: 0;
	margin: 0;
	cursor: pointer;
	width: 28px;
	display: block;
	height: 28px;
}

.modal-close span {
	position: relative;
	width: 100%;
	height: 1px;
	background: black;
	display: block;
}

.modal-close span:nth-child(1) {
	transform: rotate(45deg);
}

.modal-close span:nth-child(2) {
	transform: rotate(-45deg);
}

.overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	background: #F7F7F7;
	opacity: .6;
	display: none;
	/** 追記 **/
	z-index: 0;
	top: 0;
	left: 0;
	right: 0;
}

.overlay.open {
	display: block;
	z-index: 99999;
}

.modal-entry.open {
	display: block;
	z-index: 99999;
}