@charset "UTF-8";
/*
modal
------------------------------------------------*/
a.modal_open{
	cursor: pointer;
}
/* 黒い背景（JavaScriptで自動追加されます） */
.modal_bg {
	display: none;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--cmnGr);
	z-index: 999;
	opacity: 0.95;
	/* 不要なスクロール指定を削除 */
	overflow: hidden; 
}
/* モーダル本体（基本非表示＆画面中央に配置） */
.app__modal,
.result__modalBox{
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%); /* これで上下左右中央寄せ */
	border-radius: 8px;
	z-index: 1000; /* 背景（999）より上にする */
}
.app__areaWrapper {
	width: 1000px;
	height: 100vh;
	padding: 150px 0 100px;
	overflow-y: scroll;
}
#app .cts__area {
	display: flex;
	flex-direction: column;
	gap: 102px;
}
/* 閉じるボタン
============================== */
.modal_close {
	position: absolute;
	top: -15px;
	right: -11px;
	width: 65px;
	aspect-ratio: 1/1;
	background-color: var(--cmnOrange);
	border-radius: 50%;
	z-index: 10;
	cursor: pointer;
}
.modal_close::before,
.modal_close::after{
	content: '';
	width: 1px;
	height: 28px;
	background-color: var(--cmnWh);
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) rotate(45deg);
}
.modal_close::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}


@media screen and (max-width: 812px){
	.app__areaWrapper {
		width: calc(100vw - 40px);
		max-width: 500px;
		height: 100vh;
		padding: 70px 0;
		overflow-y: scroll;
	}
	#app .cts__area {
		gap: 70px;
		padding-top: 53px;
		padding-bottom: 0;
	}
	.modal_close{
		top: -73px;
		right: -3px;
		width: 45px;
	}
	.modal_close::before,
	.modal_close::after{
		height: 20px;
	}
}


/*
result_modal
------------------------------------------------*/
.result__modalBox{
	display: none;
	max-width: 820px;
	border-radius: 30px;
	position: fixed;
	z-index: 7777;
	background: var(--cmnWh);
}
.result__modalCts{
	display: flex;
	flex-direction: column;
	align-items: center;
	max-height: 90vh;
	padding: 60px;
	overflow-y: scroll;
}
.result__modalCts .modal_close{
	width: 65px;
	aspect-ratio: 1/1;
}
.result__modalCts .modal_close::before,
.result__modalCts .modal_close::after{
	height: 24px;
}
.result__modalImg {
	width: 700px;
	filter: drop-shadow(0 0 10px rgba(0, 0, 0, .1));
}
.result__modalTit {
	margin: 23px 0 8px;
	font-size: 2.6rem;
	font-weight: var(--bold);
	text-align: center;
	line-height: 1.2;
	color: var(--cmnBl);
}
.result__modalName span {
	font-size: 2rem;
}
.result__modalName {
	font-size: 1.5rem;
	font-weight: var(--bold);
	text-align: center;
	background-color: rgba(255, 255, 255, 0.7);
	border-radius: 10px;
}
.result__modalTxt {
	text-align: justify;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 2px dotted #1f2e5a;
}
@media screen and (max-width:812px){
	.result__modalBox {
		width: calc(100% - 40px);
		max-width: 500px;
	}
	.result__modalCts {
		max-height: 80vh;
		padding: 35px 35px 30px;
		border-radius: 15px;
	}
	.result__modalCts .modal_close {
		width: 45px;
		top: -10px;
		right: -10px;
	}
	.result__modalImg {
		width: 100%;
	}
	.result__modalTit {
		margin: 15px 0 14px;
		font-size: 2.0rem;
	}
	.result__modalName {
		font-size: 1.4rem;
		border-radius: 5px;
		line-height: 100%;
	}
	.result__modalName span {
		font-size: 1.6rem;
	}
	.result__modalTxt {
		font-size: 1.4rem;
		text-align: justify;
		margin-top: 15px;
		padding-top: 15px;
	}
}
/*
app_modal
------------------------------------------------*/
.app_modal {
	display: none;
	width:1000px;
	margin: 60px auto;
	padding: 60px 30px 0;
	position:relative;
}
@media screen and (max-width: 812px){
	.app_modal {
		width:calc(100% - 40px);
		margin: 20px auto;
		padding: 45px 0 0;
	}
}


