@charset "utf-8";

#videoModal {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 60rem 0;
    box-sizing: border-box;
}

#videoModal::before,
#videoModal::after {
    content: '';
    display: block;
    flex-basis: 0;
    flex-grow: 1;
    visibility: hidden;
}

#video_inner {
    width: 96%;
    max-width: 1000rem;
    position: relative;
    flex-shrink: 0;
    margin: auto;
}

#closeModal {
    width: 40rem;
    position: absolute;
    right: 20rem;
    top: 20rem;
    transition: 0.4s;
    cursor: pointer;
    z-index: 2100;
}

#closeModal img {
    width: 100%;
    height: auto;
    display: block;
}

#closeModal:hover {
    opacity: 0.6;
}

#videoContainer {
    position: relative;
    width: 100%;
    background: #000;
    aspect-ratio: 16 / 9;
}

#player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10;
    cursor: pointer;
}

#playIcon {
    width: 80rem;
}

#videoControls {
    padding-top: 20rem;
    text-align: center;
}

#videoControls button {
    cursor: pointer;
    width: 130rem;
    height: 40rem;
    background-color: #008799;
    color: #fff;
    font-size: 20rem;
    text-align: center;
    line-height: 40rem;
    border: 0;
    margin: 10rem;
}

label {
    display: inline-block;
    margin: 10rem 0 10rem 20rem;
}

.volume {
    font-size: 20rem;
    color: #fff;
}

.volumeSlider {
    appearance: none;
    width: 200rem;
    height: 10rem;
    border-radius: 9999px;
    background: linear-gradient(90deg, #008799 30%, #dddddd 30%);
    cursor: pointer;
    margin: -10rem 0 0 10rem;
    vertical-align: middle;
}

/* ツマミ設定 */
.volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24rem; height: 24rem;
    border-radius: 50%;
    background: #008799;
}

.volumeSlider::-moz-range-thumb {
    border: none;
    width: 24rem; height: 24rem;
    border-radius: 50%;
    background: #008799;
}


@media screen and (max-width: 768px) {
    #videoModal {
        align-items: flex-start; 
    }
}