@charset "UTF-8";

.video-aspect {
    aspect-ratio: 16/9;
}

.video-bg {
    position: relative;
    background: #000;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16/9;
}

.video-bg iframe {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    aspect-ratio: 1;
}

.thumbnail-overlay {
    background-color: black;
    display: none;
}

.login-guide {
    width: 59%;
    height: 62%;
    background: url(../../../images/front/helpful-page/helpful_movie_cover.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 10px;
}

.login-guide-close-btn {
    cursor: pointer;
}

.login-guide-content {
    padding: 3rem;
}

.login-guide-text {
    font-size: 2rem;
    font-weight: bold;
}

.login-guide-btn {
    font-size: 1.05rem;
    font-weight: bold;
}

.helpful-page-thumbnail {
    cursor: pointer;
}

.helpful-page-info-detail {
    width: 80%;
    padding-right: 1rem;
}

.helpful-favorite-btn {
    cursor: pointer;
    width: 100%;
}


.helpful-page-bg {
    background-color: #F5ECE5;
    margin-bottom: -16rem;
    padding: 3rem 1rem 10rem;
}

/* 管理画面からのHTML埋め込み部分 */
.helpful-embed-html-area {
    margin-bottom: 10rem;
}

.reccomend-helpful-movie {
    margin-bottom: 7.25rem;
    padding: 0 1rem;
    text-align: center;
}

.reccomend-helpful-movie-thumbnail {
    cursor: pointer;
}

.helpful-page-detail-btn {
    width: 50%;
}

.about-detail {
    padding: 1.5rem;
}

.about-detail-title {
    font-size: 1.3rem;
    font-weight: bold;
}

.about-detail-btn {
    font-size: 1.5rem;
    padding: 1rem 3.5rem;
    max-width: 450px;
}

@media (max-width: 1024px) {
    .login-guide-content {
        padding: 2rem;
    }

    .login-guide-text {
        font-size: 1.5rem;
    }

    .login-guide-btn {
        font-size: 1.1rem;
    }

    .helpful-page-info-area {
        width: 100%;
        padding: 0 1rem;
    }

    .reccomend-helpful-movie-area {
        padding: 0 1rem;
    }

    .helpful-page-detail-btn {
        width: 100%;
    }
}

@media (max-width: 750px) {
    .login-guide {
        width: 80%;
        height: 75%;
    }

    .login-guide-content {
        padding: 1rem;
    }

    .login-guide-text {
        font-size: 1.25rem;
    }

    .login-guide-btn {
        font-size: 0.9rem;
    }

    .helpful-page-info-detail {
        width: 100%;
        padding-right: 0;
    }

    .helpful-favorite {
        width: 100%;
        text-align: end;
    }

    .helpful-favorite-btn {
        width: auto;
    }
}

@media (max-width: 480px) {
    .login-guide-content {
        padding: 1rem;
    }

    .login-guide-text {
        font-size: 1.15rem;
    }

    .login-guide-btn {
        font-size: 0.8rem;
    }

    .reccomend-helpful-movie-thumbnail {
        margin-bottom: 2rem;
    }

    .about-detail-title {
        font-size: 1.5rem;
        font-weight: bold;
    }

    .about-detail-btn {
        font-size: 1.5rem;
        padding: 1rem 2rem;
        max-width: 450px;
    }
}

/* 画面中央の再生、一時停止ボタン */
.fade-out-leave-active {
    transition: opacity 1.0s ease;
}

.fade-out-leave-to {
    opacity: 0;
}

/* ビデオ制御コントローラー */
.video-controller {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.7));
    padding: 20px 10px 0 10px;
}

/* カスタムスライダー */
.custom-slider {
    --trackHeight: 4px;
    --thumbRadius: 1rem;
}

/* スマホはちょっと大きくしてつまみやすくする */
@media (max-width: 750px) {
    .custom-slider {
        --thumbRadius: 1.5rem;
    }
}

.custom-slider input[type="range"] {
    position: relative;
    appearance: none;
    border-radius: 999px;
    background-color: transparent;
}

/* 進捗バー */
.custom-slider input[type="range"]::before {
    content: "";
    position: absolute;
    width: calc(var(--ProgressPercent, 0%) + 5px); /* 5px 足して進捗バーをつまみの下まで持ってくる */
    height: 100%;
    pointer-events: none;
    border-radius: 999px;
}

/* 背景 Chrome / Safari */
.custom-slider input[type="range"]::-webkit-slider-runnable-track {
    appearance: none;
    height: var(--trackHeight);
    border-radius: 999px;
}

/* 背景 Firefox */
.custom-slider input[type="range"]::-moz-range-track {
    appearance: none;
    height: var(--trackHeight);
    border-radius: 999px;
}

/* つまみ Chorme / Safari */
.custom-slider input[type="range"]::-webkit-slider-thumb {
    position: relative;
    top: 50%;
    transform: translate(0, -50%);
    width: var(--thumbRadius);
    height: var(--thumbRadius);
    border-radius: 999px;
    pointer-events: all;
    appearance: none;
}

/* シークバー */
#seekBar input[type="range"]::before {
    background-color: red;
}

#seekBar input[type="range"]::-webkit-slider-runnable-track {
    background-color: white;
}

#seekBar input[type="range"]::-moz-range-track {
    background-color: white;
}

#seekBar input[type="range"]::-webkit-slider-thumb {
    background-color: red;
}

#seekBar input[type="range"]::-moz-range-thumb {
    background-color: red;
}


/* 音量調整バー */
#volumeBar input[type="range"]::before {
    background: white;
}

#volumeBar input[type="range"]::-webkit-slider-runnable-track {
    background: gray;
}

#volumeBar input[type="range"]::-moz-range-track {
    background: gray;
}

#volumeBar input[type="range"]::-webkit-slider-thumb {
    background: white;
    width: 10px;
    height: 10px;
}

#volumeBar input[type="range"]::-moz-range-thumb {
    background: white;
    width: 10px;
    height: 10px;
}


/* 設定ダイアログ */
.setting-dialog.list-group {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.9);
    overflow-y: auto;
    right: 10px;
    bottom: 50px;
    max-height: calc(100% - 70px);
}

@media (max-width: 750px) {
    .setting-dialog.list-group {
        bottom: 10px;
        max-height: calc(100% - 20px);
    }
}

.setting-dialog.list-group .setting-dialog-inner {
    overflow-y: auto;
}

.setting-dialog.list-group .list-group-item {
    background-color: transparent;
    color: white;
    font-size: 14px;
    padding: 5px 60px 5px 20px;
    border: none;
}

/* アイコンサイズ */
.fa-pause, .fa-play {
    font-size: 16px;
}

.fa-volume-mute,
.fa-volume-up,
.fa-volume-down,
.fa-cog {
    font-size: 18px;
}

@media (max-width: 750px) {
    #seekBar {
        margin-bottom: 5px;
    }

    .fa-pause,
    .fa-play {
        font-size: 20px;
    }

    .fa-volume-mute,
    .fa-volume-up,
    .fa-volume-down,
    .fa-cog {
        font-size: 26px;
    }

    #currentTime,
    #videoDuration {
        font-size: 16px;
        font-weight: 600;
    }
}

/* フルスクリーン対応 */

/* このタグをフルスクリーンにする */
#fullscreenContainer {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
}

html.fullscreen #fullscreenContainer {
    z-index: 999999999;
}

html.fullscreen {
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    height: 100dvh;
    touch-action: none;
}

html.fullscreen body {
    overflow: hidden;
    background-color: black;
    width: 100%;
    height: 100%;
    margin: 0;
}

.fullscreen-background {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 100vh;
    background-color: black;
}

html.fullscreen .fullscreen-background {
    display: block;
    z-index: 999999999;
}

html.fullscreen #fullscreenContainer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    aspect-ratio: unset;
}

html.fullscreen .video-bg {
    width: auto;
}

@media (orientation: landscape) {
    html.fullscreen .video-bg {
        height: 100%;
        aspect-ratio: 16/9;
    }

    html.fullscreen .video-controller {
        padding-bottom: 10px !important;
    }
}

@media (orientation: portrait) {
    html.fullscreen .video-bg {
        width: 100%;
        aspect-ratio: 16/9;
    }

    html.fullscreen .video-controller {
        padding-bottom: 16px !important;
    }
}
