.banner {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6); /* 白い半透明のレイヤー */
    opacity: 0;
    transition: opacity 0.3s ease; /* マウスオーバー時にopacityを変更するためのアニメーション */
}

.banner:hover .overlay {
    opacity: 1; /* マウスオーバー時にopacityを変更する */
}

.play-button {
    position: absolute;
    cursor: pointer;
    z-index: 1; /* ボタンをバナー画像よりも上に表示する */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* ボタンをバナーの中央に表示する */
    background: none;
    border: none;
    opacity: 0.6;
    transition: opacity 0.3s ease; /* マウスオーバー時にopacityを変更するためのアニメーション */
}

    .play-button img {
        display: block;
    }

.banner:hover .play-button {
    opacity: 0.85; /* マウスオーバー時にopacityを変更する */
}

/* 以下モーダル表示用 */
#modal {
    display: none; /* モーダルを開いていない場合は非表示 */
    position: fixed;
    z-index: 1100; /* 背面に表示 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.70); /* 背景を黒色にして半透明表示 */
}

#modal-header {
    text-align: right;
    margin-bottom: 5px;
}

#modal-body {
    margin-top: 5px;
    margin-bottom: 5px;
}

#modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background-color: rgba(28, 115, 166,0.9); /* タブの色とモーダルの背景色を合わせる */
}

#modal-close {
    cursor: pointer;
    font-size: 2em;
    color: #fff;
}

    #modal-close:hover {
        opacity: 0.8;
    }
