@charset "UTF-8";

/*=========================================================================================================
MDL
=========================================================================================================*/

/*■■■■■■■■■■■■【 CONTENTS  】■■■■■■■■■■■■*/
.modal {
    display: none; /* 初期状態では非表示 */
    position: fixed; /* 画面に固定 */
    z-index: 9999; /* 他の要素の上に表示 */
    left: 0;
    top: 70px;
    width: 100%;
    height: 100%;
    overflow: auto; /* コンテンツがはみ出た場合にスクロール可能に */
    background-color: rgba(0,0,0,0.2); /* 半透明の黒い背景 */
	backdrop-filter: blur(5px);
	/* ↓↓ 追加/変更 ↓↓ */
    opacity: 0; /* 最初は完全に透明 */
    transition: opacity 0.5s ease-in-out; /* 透明度が0.5秒かけて変化 */
    /* ↑↑ 追加/変更 ↑↑ */
}

/* モーダルコンテンツ */
.MDL_cts {
    background-color: #fefefe;/*
    margin: 15% auto;*/ /* 上下中央寄せ、左右中央寄せ */
	margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* 幅 */
    max-width: 500px; /* 最大幅 */
    border-radius: 8px;
    position: relative; /* 閉じるボタンの位置指定のため */
	transform: translateY(-30px); /* 最初は少し上にずらしておく */
    transition: opacity 2000ms ease-in-out, transform 2000ms ease-in-out; /* 透明度と位置が0.5秒かけて変化 */
}
/* モーダルが表示されるときに適用するクラス */
.modal.show {
    /* ↓↓ 追加 ↓↓ */
    opacity: 1; /* 不透明にする */
    display: block; /* モーダルを表示状態にする */
    /* ↑↑ 追加 ↑↑ */
}

/* モーダルコンテンツが表示されるときに適用するクラス */
.modal.show .MDL_cts {
    /* ↓↓ 追加 ↓↓ */
    transform: translateY(0); /* 通常の位置に戻す */
    /* ↑↑ 追加 ↑↑ */
}
h2{
	width: 90%;
	margin: 0 auto;
	border: solid 1px #BBBBBB;
	text-align: center;
	}
/*
.MDL_cts p,.MDL_cts img{
	margin: 0;
	padding: 0;
	}*/
.MDL_cts > h2 + div{
	padding: 10px;
	line-height: 1;
	box-sizing: border-box;
	}

.MDL_cts img{
	width: 100%;
	height: 100%;
	padding: 0;
	max-width: 424px;
	max-height: 600px;
	line-height: 1em;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	}

	
.MDL_cls{
	width: 200px;
	
	margin: 0 auto;
	padding: 2px;
	font-size: clamp(0.875rem, 0.721rem + 0.77vw, 1.25rem);
	line-height: clamp(0.875rem, 0.721rem + 0.77vw, 1.25rem);
	font-weight: 600;
	color: #FFFFFF;
	text-align: center;
	display: block;
	
	border-radius: 20px;
	background: #BBBBBB;
	
	cursor: pointer;
	
	transition: all 500ms;
	}

.MDL_cls:hover{
	background: #666666;
	transition: all 300ms;
}

/*■■■■■■■■■■【 BACKGROUND /  END 】■■■■■■■■■■*/


/*=========================================================================================================
TITLE END
=========================================================================================================*/