@charset "utf-8";
/* CSS Document */

/* 共通のスタイル */
html, body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #162f8e;
    align-items: center;
    text-align: center;
}

/* ヘッダーのスタイル */
#video-s header {
    width: 100%;
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: black;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

#video-s .logo {
    max-width: 40px;
    height: 40px;
    margin-right: 8px;
}

#video-s h1 {
    color: #fff;
    font-size: 1.2em;
    margin-left: 6px;
}

/* メインコンテンツのスタイル */
#video-s .main-content {
    width: 70%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 40px auto 10px;
    padding-top: 120px;
    margin: 0 auto; /* 中央に配置 */
}

/* 動画再生用の画像のスタイル */
#video-s .video-thumbnail {
    margin: 6px;
    cursor: pointer;
    width: 100%;
    max-width: 100%;
    border: #fff solid 1px;
    z-index: 2;
    height: auto;
    display: block;
}

/* 動画再生用の画像とボタンのスタイル */
#video-s .video-thumbnail-container {
    position: relative;
    margin: 6px;
    cursor: pointer;
    flex: 0 0 calc(50% - 12px);
}

#video-s .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
}

/* 戻るボタンのスタイル */
#video-s .back {
    width: 180px;
    display: block; /* モバイルではブロック要素として表示 */
    margin-right: 15%;
    margin-left: auto;
    text-align: right;
    font-weight: bold;
    font-size: 0.88em;
    color: #AEBAC0;
    font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, "sans-serif";
    justify-content: center;
}

#video-s .pageback {
    text-decoration: none;
    color: #C7C6C6;
    margin-top: 10px;
}

#video-s .backbutton {
    width: 11px;
    padding-bottom: 0;
}

/* フッターのスタイル */
#video-s footer {
    background-color: black;
    color: white;
    text-align: center;
    width: 100%;
    margin: 0;
    padding: 10px 0;
    font-size: 0.8em;
    bottom: 0;
    line-height: 0.9em;
    font-family: "Yu Gothic UI Semibold", "HGP創英角ｺﾞｼｯｸUB", "Gill Sans Ultra Bold";
    position: fixed;
    left: 0;
    right: 0;
    z-index: 1;
}

#video-s footer p {
    padding-top: 1px;
}

/* 固定された動画プレーヤーのスタイル */
#video-s .fixed-video {
    display: none;
    max-width: 100%;
    max-height: 100%;
    border: 1px solid #fff;
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 9999;
}

/* モーダルのスタイル */
#video-s .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* モーダル内の動画スタイル */
#video-s .modal-video {
    max-width: 90%;
    max-height: 90%;
}

/* 閉じるボタンのスタイル */
#video-s .close-button {
    position: absolute;
    bottom: 28%; /* 下からの距離を調整 */
    left: 50%; /* 左右中央に配置 */
    transform: translateX(-50%); /* 左右中央に配置 */
    font-size: 16px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
}

/* スマートフォン向けのスタイル */
@media screen and (max-width: 479px) {
    #video-s header h1 {
        width: 300px;
        white-space: normal;
        text-align: center;
        margin: 10px;
    }

    #video-s .header-text-break {
        display: block;
    }

    #video-s .main-content {
        width: 100%;
        min-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    #video-s .video-thumbnail {
        margin-right: auto;
        margin-left: auto;
    }

    #video-s .back {
        display: block;
        margin: auto 4px 20px auto;
    }

    #video-s .close-button {
        bottom: 34%;
    }
}
