@charset "UTF-8";


body.ps_pb_fixed { /* iOSは16以降でモーダル表示中に背景より後ろをスクロールさせない */
	overflow: hidden;
    /* padding-right: 17px; */
}

.ps_pb_modal{
    /* 最初に既存のdialog要素のCSSを打ち消し */
    max-width: 100vw;
    max-height: 100vh;
    border: none;

    /* ここからオリジナルのCSSを記入 */
    width: 100vw;
    height: 100vh;
    background-color: transparent;
}

.ps_pb_modal[open]{
    display: flex;
    align-items: center;
    justify-content: center;
}

.ps_pb_modal__bg{
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.2);
}

.ps_pb_modal__content{
    position: relative;
    width: 90%;
    height: 80%;
    max-width: 1000px;
    max-height: 800px;
    padding-top: 30px;
    padding-left: 30px;
    padding-right: 30px;
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.9);
}

.ps_pb_modal__close{
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(40%, -40%);
    width: 50px;
    height: 50px;
    background-color: #000;
    cursor: pointer;
    padding: 0;
    border: none;
    border-radius: 50%;
}

.ps_pb_modal__close__icon{
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 3px;
    border-radius: 999px;
    background-color: #fff;
}

.ps_pb_modal__close__icon.--1{
    transform: translate( -50%, -50% ) rotate(45deg);
}
.ps_pb_modal__close__icon.--2{
    transform: translate( -50%, -50% ) rotate(-45deg);
}

.ps_pb_modal__title{
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    line-height: 1.5;
}

.ps_pb_bnr_list{
    /* 既存スタイルの打消し */
    list-style: none;
    padding: 0;
    margin: 0;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
    max-height: calc( 100% - ( 24px + 1.5rem*1.5 ) );
    overflow-y: auto;
    margin-top: 24px;
    padding-bottom: 30px;
}

@media screen and (max-width: 769px) {
    .ps_pb_bnr_list{
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.ps_pb_bnr{
    position: relative;
    display: flex;
    aspect-ratio: 1/1;
}

.ps_pb_bnr__link{
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    cursor: pointer;
    transition: .2s;
}

.ps_pb_bnr__link:hover{
    backdrop-filter: brightness(1.1);
}

.ps_pb_bnr__img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}