.video-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.video-container video,
.video-container iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.video-container iframe {
    pointer-events: none;
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    /* クリックを下のvideoに透過させる */
    transition: opacity 0.3s;
    z-index: 10;
}

/* PC/スマホでの表示切り替え */
.icon-pc {
    display: block;
    text-align: center;
    padding: 0.3em 1em;
    background-color: #fff;
    border-radius: 99px;
    opacity: 0.6;
    font-weight: bold;
}
.icon-pc::before {
    content: "";
    display: block;
    width: 28px;
    height: 28px;
    background: url(../img/volume-on.svg) no-repeat center;
    background-size: contain;
    margin: 0 auto;
}

.icon-sp {
    display: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 42.45 49.58"><path fill="%23f66463" d="M1.5,42.57V7.01c0-2.03,1.06-3.83,2.83-4.81,1.77-.98,3.86-.93,5.58.15l28.45,17.78c1.62,1.01,2.58,2.76,2.58,4.66s-.97,3.65-2.58,4.66l-28.45,17.78c-1.72,1.08-3.81,1.13-5.58.15-1.77-.98-2.83-2.78-2.83-4.81Z"/><path fill="%23fff" d="M39.45,24.79c0-1.3-.63-2.61-1.88-3.39L9.12,3.61c-2.66-1.67-6.12.25-6.12,3.39v35.57c0,3.14,3.46,5.06,6.12,3.39l28.45-17.78c1.25-.78,1.88-2.09,1.88-3.39M42.45,24.79c0,2.43-1.23,4.65-3.29,5.94l-28.45,17.78c-1.1.69-2.37,1.06-3.65,1.07-1.2,0-2.4-.3-3.46-.88-1.06-.59-1.95-1.44-2.58-2.46-.67-1.09-1.03-2.36-1.03-3.66V7.01c0-1.3.35-2.57,1.03-3.66.63-1.02,1.52-1.88,2.58-2.46C4.67.3,5.86,0,7.06,0c1.28.01,2.54.38,3.65,1.07l28.45,17.78c2.06,1.29,3.29,3.51,3.29,5.94Z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    width: 50px;
    height: 50px;
}

@media (max-width: 1023px) {
    .icon-pc {
        display: none;
    }

    .icon-sp {
        display: block;
    }
}

/* 再生中やミュート解除時は隠すためのクラス */
.video-container.is-active .video-overlay {
    opacity: 0;
}