/*
    Colorbox Core Style:
    The following CSS is consistent between example themes and should not be altered.
*/
#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden; -webkit-transform: translate3d(0,0,0);}
#cboxWrapper {max-width:none;}
#cboxOverlay{position:fixed; width:100%; height:100%;}
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
#cboxContent{position:relative;}
#cboxLoadedContent{overflow:auto; -webkit-overflow-scrolling: touch;}
#cboxTitle{margin:0;}
#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%; height:100%;}
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
.cboxPhoto{float:left; margin:auto; border:0; display:block; max-width:none; -ms-interpolation-mode:bicubic;}
.cboxIframe{width:100%; height:100%; display:block; border:0; padding:0; margin:0;}
#colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box; -moz-box-sizing:content-box; -webkit-box-sizing:content-box;}

/* 
    User Style:
    Change the following styles to modify the appearance of Colorbox.  They are
    ordered & tabbed in a way that represents the nesting of the generated HTML.
*/
#cboxOverlay{background:#fff; opacity: 0.9; filter: alpha(opacity = 90);}
#colorbox{outline:0;}
    #cboxContent{margin-top:32px; overflow:visible; background:#000;}
        .cboxIframe{background:#fff;}
        #cboxError{padding:50px; border:1px solid #ccc;}
        #cboxLoadedContent{background:#000; padding:1px;}
        #cboxLoadingGraphic{background:url(images/loading.gif) no-repeat center center;}
        #cboxLoadingOverlay{background:#000;}
        #cboxTitle{position:absolute; top:-22px; left:0; color:#000;}
        #cboxCurrent{position:absolute; top:-22px; right:205px; text-indent:-9999px;}

        /* these elements are buttons, and may need to have additional styles reset to avoid unwanted base styles */
        #cboxPrevious, #cboxNext, #cboxSlideshow, #cboxClose {border:0; padding:0; margin:0; overflow:visible; text-indent:-9999px; width:20px; height:20px; position:absolute; top:-20px; background:url(images/controls.png) no-repeat 0 0;}
        
        /* avoid outlines on :active (mouseclick), but preserve outlines on :focus (tabbed navigating) */
        #cboxPrevious:active, #cboxNext:active, #cboxSlideshow:active, #cboxClose:active {outline:0;}

        #cboxPrevious{background-position:0px 0px; right:44px;}
        #cboxPrevious:hover{background-position:0px -25px;}
        #cboxNext{background-position:-25px 0px; right:22px;}
        #cboxNext:hover{background-position:-25px -25px;}
        #cboxClose{background-position:-50px 0px; right:0;}
        #cboxClose:hover{background-position:-50px -25px;}
        .cboxSlideshow_on #cboxPrevious, .cboxSlideshow_off #cboxPrevious{right:66px;}
        .cboxSlideshow_on #cboxSlideshow{background-position:-75px -25px; right:44px;}
        .cboxSlideshow_on #cboxSlideshow:hover{background-position:-100px -25px;}
        .cboxSlideshow_off #cboxSlideshow{background-position:-100px 0px; right:44px;}
        .cboxSlideshow_off #cboxSlideshow:hover{background-position:-75px -25px;}




/* モーダルカスタマイズ */
#cboxOverlay{
    background-color: #00000092;
}
#cboxLoadedContent{background-color: transparent;}
#cboxLoadedContent{
    background-color: #fff;
}


#cboxNext{
    width: 15px;
    height: 15px;
    border-top: solid 2px #fff;
    border-right: solid 2px #fff;
    background: transparent;
    position: absolute;
    top: -27px;
    left: 43px;
    transform: rotate(45deg);
}
#cboxPrevious{
    width: 15px;
    height: 15px;
    border-top: solid 2px #fff;
    border-right: solid 2px #fff;
    transform: rotate(-135deg);
    background: transparent;
    right: auto;
    top: -27px;
    left: 15px;
}

#cboxClose {
    background: transparent;
    display: block;
    /* position: relative; */
    width: 30px;
    height: 30px;
    top: -35px;
}
#cboxClose::before, #cboxClose::after { /* 共通設定 */
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px; /* 棒の幅（太さ） */
    height: 30px; /* 棒の高さ */
    background: #fff;
}

#cboxClose::before {
    transform: translate(-50%,-50%) rotate(45deg);
}

#cboxClose::after {
transform: translate(-50%,-50%) rotate(-45deg);
}

#cboxLoadedContent,
#cboxContent{
    background: transparent;
    background-color: transparent;
}

#ceremony #cboxLoadingOverlay{background: transparent;}
#cboxLoadingOverlay{background: #fff;}
#cboxLoadingGraphic{background: transparent;}
/* モーダル */
#modal{
    display: none;

}

.modal-item{
    padding: 3rem;
    background-color: #fff;
}
.modal-item h3{
    font-size: 2.6rem;
    font-weight: 500;
    line-height: 1.5;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-graycolor);
}
.modal-item .modal-content{
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}
.modal-item .modal-images{
    width: 100%;
    order: 2;
    display: flex;
    gap: 2rem;
}
.modal-item .modal-images figure{
    width: calc((100% - 2rem) / 2);
    display: flex;
    justify-content: center;
    background-color: #f7f7f7;
}
.modal-item .modal-images figure img{
    display: block;
    max-height: 300px;


}
.modal-item .modal-images figure:first-child{
    /* margin-bottom: 1.5rem; */
}
.modal-item .modal-text{
    /* width: 60%;
    padding-right: 2rem;
    order: 1; */
}
.modal-item .modal-text p{
    line-height: 1.5;
    margin-bottom: 1.5rem;
}
.modal-item .modal-text p:last-child{
    margin-bottom: 0;
}
.modal-item .modal-text p span{
    color: var(--main-color);
}
.modal-item sub{
    font-size: 60%;
    vertical-align: middle;
}
/* 詳細情報 */

#article-info{
    padding: 2rem;
    border: 1px dotted var(--border-graycolor);
    width:100%;
    margin-top: 4rem;
}
#article-info h4{
    font-weight: bold;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}
#article-info h4::before{
    content: '●';
    color: var(--main-color);
    font-size: .4em;
    vertical-align: 4px;
    margin-right: 5px;
}
#article-info ul {
    display: flex;
    flex-wrap: wrap;
}
#article-info ul li{
    width: 50%;
    display: flex;
    font-size: 1.5rem;
    padding-bottom: 1rem;
}
#article-info ul li:nth-child(odd){
    padding-right: 1.5rem;
    border-right: 1px dotted var(--border-graycolor);
}
#article-info ul li:nth-child(even){
    padding-left: 1.5rem;
}
#article-info .info-cat{
    display: block;
    width: 12rem;
    position: relative;
    font-size: 1.5rem;
    white-space: nowrap;
    line-height: 1.4;
}
#article-info .info-cat::before{
    content: ':';
    position: absolute;
    right: 0;
    top: -2px;
}
#article-info p{
    display: block;
    padding-left: 1.5rem;
    font-size: 1.6rem;
    width: calc(100% - 12rem);
    line-height: 1.4;
}
#article-info a{
    text-decoration: underline;
    color: var(--main-color);
}

@media (max-width: 1024px){
    #article-info{
        width: fit-content;
    }
    #article-info ul li{
        width: 100%;
    }
    #article-info ul li:nth-child(odd),
    #article-info ul li:nth-child(even){
        border: none;
        padding: 0;
        padding-bottom: 1rem;
    }
    #article-info ul li:last-child{
        padding-bottom: 0;
    }
}
@media (max-width: 768px){
    .modal-item{
        padding: 2rem;
        padding-bottom: 4rem;
    }
    .modal-item h3{
        font-size: 2rem;
    }
    .modal-item .modal-content{
        display: block;
    }
    .modal-item .modal-images{
        width: 100%;
        flex-wrap: wrap;
    }
    .modal-item .modal-images figure{
        width: 100%;
    }
    .modal-item .modal-images figure img{
        max-height: 220px;
    }
    .modal-item .modal-text{
        padding-top: 3rem;
        width: 100%;
        padding-right: 0;
    }

    #article-info{
        margin-top: 3rem;
        width: 100%;
    }
    #article-info .info-cat{
        font-size: 1.4rem;
        width: 11rem;
    }
    #article-info p{
        font-size: 1.4rem;
        width: calc(100% - 11rem);
    }
}