/* ===============================================================================================
+ Colorbox | http://www.jacklmoore.com/colorbox/
----------------------------------------------------------------------------------------------- */
#colorbox,
#cboxOverlay,
#cboxWrapper {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 999999999;
    /* overflow: hidden; */
}

#cboxWrapper {
    max-width: none;
}

#cboxOverlay {
    position: fixed;
    width: 100%;
    height: 100%;
}

#cboxMiddleLeft,
#cboxBottomLeft {
    clear: left;
}

#cboxContent {
    position: relative;
}

#cboxLoadedContent {
    overflow: auto;
    overflow-y: hidden !important;
    -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;
    overflow-y: hidden;
}

#colorbox,
#cboxContent,
#cboxLoadedContent {
    box-sizing: content-box;
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box;
}

#cboxOverlay {
    background-color: rgb(0 0 0 / 0.7);
}

#colorbox {
    outline: 0;
}

#cboxContent {
    margin-top: 20px;
}

.cboxIframe {
    background: #fff;
}

#cboxError {
    padding: 50px;
    border: 1px solid #ccc;
}

/* #cboxTitle{position:absolute; top:-20px; left:0; color:#ccc;} */
#cboxCurrent {
    position: absolute;
    top: -20px;
    right: 27.5px;
    color: #ccc;
    font-size: 1rem;
}
@media screen and (max-width: 767px) {
    #cboxCurrent {
        top: calc(-1.2* var(--base-unit));
        font-size: calc(1rem * var(--base-unit));
        right: calc(1.6 * var(--base-unit));
    }
}
/* #cboxLoadingGraphic {
    background: url(/cmn/img/colorbox_loading.gif) no-repeat center center;
} */

#cboxPrevious,
#cboxNext,
#cboxSlideshow,
#cboxClose {
    border: 0;
    padding: 0;
    margin: 0;
    overflow: visible;
    width: auto;
    background: none;
}

#cboxPrevious:active,
#cboxNext:active,
#cboxSlideshow:active,
#cboxClose:active {
    outline: 0;
}

#cboxSlideshow {
    position: absolute;
    top: -20px;
    right: 90px;
    color: #fff;
}

/* #cboxPrevious {
    position: absolute;
    top: 50%;
    left: 5px;
    margin-top: -32px;
    background: url(/cmn/img/colorbox_controls.png) no-repeat top left;
    width: 28px;
    height: 65px;
    text-indent: -9999px;
} */

#cboxPrevious:hover {
    background-position: bottom left;
}

/* #cboxNext {
    position: absolute;
    top: 50%;
    right: 5px;
    margin-top: -32px;
    background: url(/cmn/img/colorbox_controls.png) no-repeat top right;
    width: 28px;
    height: 65px;
    text-indent: -9999px;
} */

#cboxNext:hover {
    background-position: bottom right;
}

#cboxClose {
    position: absolute;
    bottom: -25px;
    right: 27.5px;
    display: block;
    background: url(https://www.mitsubishicorp.com/jp/assets_r24/images/colorbox/colorbox-icon-close.svg) no-repeat center;
    width: calc(5 * var(--base-unit));
    max-width: 50px;
    aspect-ratio: 1;
    text-indent: -9999px;
}

/* ------------------------------ */

/* 動画（モーダル） */
.p-movie01__modal-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    place-items: center;
}

.p-movie01__modal-grid>* {
    grid-column: 1/1;
    grid-row: 1/1;
}

.p-movie01__modal-grid-video-wrapper {
    width: 100%;
    position: relative;
    z-index: -1;
}

.p-movie01__modal-grid>a {
    width: 100%;
    height: 100%;
}

.p-movie01__modal-link {
    display: grid;
    place-items: center;
}

.p-movie01__modal-link-icon {
    background: transparent;
    position: relative;
}

.p-movie01__modal-link-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    transform: translate(-50%, -50%);
    background: url("https://www.mitsubishicorp.com/assets_r24/images/cmn-mark_play_4.svg") no-repeat center / contain;
}

@media screen and (max-width: 767px) {
    .p-movie01__modal-link-icon::before {
        width: min(50px, calc(50 / 375 * 100vw));
        height: min(50px, calc(50 / 375 * 100vw));
    }
}

  /* 動画（2カラム） */
@media print, screen and (min-width: 768px) {
    .p-movie01.p-movie01--col2 .p-movie01__list {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
}
}

/* モーダル遷移先 */

html:has(body.movie) {
    width:100%;
}
body.movie{
    width:100%;
	background-color:#000;
    overflow-x: hidden;
    overflow-y: hidden;
}
body.movie object{
	position:absolute;
	width:100%;
	height:100%;
}
body.movie img{
	width:100%;
	height:auto;
}
body.movie iframe{
	position:absolute;
	width:100%;
	height:100%;
}

#cboxLoadedContent {
    aspect-ratio: 16 / 9;
}
#cboxLoadedContent > iframe,
#cboxLoadedContent > div > div {
    width: calc(100% - 55px)!important;
    height: calc(100% - 31px)!important;
    margin: 0 auto;
}

.movie-wrapper {
    display: block; 
    position: relative;
    max-width: 100%;
    height: 100vh;
}

#cboxPrevious {
    position: absolute;
    top: 50%;
    left: -30px;
    display: block;
    margin-top: -40px;
    background: url(https://www.mitsubishicorp.com/jp/assets_r24/images/colorbox/colorbox-icon-prev.svg) no-repeat center / cover;
    width: 48px;
    aspect-ratio: 1;
    text-indent: -9999px;
}
#cboxNext {
    position: absolute;
    top: 50%;
    right: -30px;
    margin-top: -40px;
    background: url(https://www.mitsubishicorp.com/jp/assets_r24/images/colorbox/colorbox-icon-next.svg) no-repeat center / cover;
    width: 48px;
    aspect-ratio: 1;
    text-indent: -9999px;
}
@media screen and (max-width: 767px) {
    #cboxLoadedContent > iframe,
    #cboxLoadedContent > div > div {
        width: calc(100% - calc(3.2 * var(--base-unit)))!important;
        height: calc(100% - calc(1.8 * var(--base-unit)))!important;
    }
    #cboxPrevious {
        left: calc(-2 * var(--base-unit));
        margin-top: calc(-2.5 * var(--base-unit));
        width: calc(4 * var(--base-unit));
        max-width: 48px;
    }
    #cboxNext {
        right: calc(-2 * var(--base-unit));
        margin-top: calc(-2.5 * var(--base-unit));
        width: calc(4 * var(--base-unit));
        max-width: 48px;
    }
    #cboxClose {
        right: calc(1.6 * var(--base-unit));
        
    }
}
@media screen and (max-width: 529px) {
    #cboxClose {
        bottom: calc(-4.3 * var(--base-unit));
    }
    
}

.p-modal{
    display: none;
}