@charset "utf-8";
/*======================



popup.css
20230131_USポップアップ追加



======================*/
/*モーダル本体の指定 + モーダル外側の背景の指定*/
#auto-popup .modal-container{
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	text-align: center;
	background: rgba(0,0,0,60%);
	padding: 5vh 4%;
	overflow: auto;
	opacity: 0;
	visibility: hidden;
	transition: .3s;
    box-sizing: border-box;
    z-index: 9999999999;
}
/*モーダル本体の擬似要素の指定*/
#auto-popup .modal-container:before{
	content: "";
	display: inline-block;
	vertical-align: middle;
	height: 100%;
}
/*モーダル本体に「active」クラス付与した時のスタイル*/
#auto-popup .modal-container.active{
	opacity: 1;
	visibility: visible;
}
/*モーダル枠の指定*/
#auto-popup .modal-body{
	position: relative;
	display: inline-block;
	vertical-align: middle;
	max-width: 1200px;
}
/*モーダルを閉じるボタンの指定*/
#auto-popup .modal-close{
	position: absolute;
	display: flex;
    align-items: center;
    justify-content: center;
	top: -36px;
	right: 0;
	width: 34px;
	height: 34px;
	font-size: 40px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
}
/*モーダル内のコンテンツの指定*/
#auto-popup .modal-content img {
    max-width: 100%;
    max-height: 90vh;
}
#auto-popup .modal-content a {
    -webkit-transition: .4s cubic-bezier(.19,1,.22,1);
    -moz-transition: .4s cubic-bezier(.19,1,.22,1);
    -ms-transition: .4s cubic-bezier(.19,1,.22,1);
    -o-transition: .4s cubic-bezier(.19,1,.22,1);
    transition: .4s cubic-bezier(.19,1,.22,1);
}
#auto-popup .modal-content a:hover {
    opacity: .8;
}

@media screen and (max-width: 768px) {
    #auto-popup .modal-body{
        width: 98%;
    }
    #auto-popup .modal-content img {
        width: 100%;
        max-width: none;
        max-height: none;
    }
}