.modal {
    display: block; /* Show it by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: auto;
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
}

.close-btn:hover {
    color: black;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.play-btn {
    background-color: rgb(82, 163, 221);
    color: white;
}

.play-btn:hover {
    background-color: rgb(62, 143, 201);
}

.modal-btn.close-btn {
    background-color: #f0f0f0;
    color: #333;
    position: static;
    float: none;
    font-size: 16px;
}

.modal-btn.close-btn:hover {
    background-color: #e0e0e0;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: #000;
    color: #565656;
    font-family: YakuHanJP, noto-sans-cjk-jp, "Hiragino Kaku Gothic ProN", "游ゴシック", YuGothic, Meiryo, Verdana, sans-serif;
    font-weight: 400;
    font-style: normal;
    -webkit-text-size-adjust: 100%;
    text-align: center;
    position: relative;
    font-size: 1.2vw;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body > #content-container > p,
body > #content-container > iframe,
body > #content-container > a,
body > #content-container > img {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 1.5s ease forwards;
    animation-delay: 1s;
}

iframe {
    margin: 20px auto;
    display: block;
    max-width: 100%;
}

a {
    color: rgba(128, 195, 234, 0.987);
    text-shadow: 2px 2px 4px rgba(15, 63, 220, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #888;
}

.background-audio {
    display: none;
}

img {
    display: block;
    margin: 20px auto;
    max-width: 100%;
    height: auto;
}

body > #content-container {
    width: 70%;
    margin: 70px auto 20px;
    position: relative;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 1.5s ease forwards;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
}

.row1 {
    width: 100%;
    margin-bottom: 20px;
}

.row1 > p {
    text-align: justify;
    text-align-last: center;
    width: 80%;
    margin: 0 auto;
}

.row2 {
    width: 100%;
    margin-bottom: 20px;
}

.row3 {
    display: flex;
    height: 550px;
    justify-content: flex-start;
    margin-bottom: 20px;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 20px;
}

.row3 .video-box {
    width: 40%;
    margin-left: 5%;
}

.row3 .text-box {
    margin-top: 20%;
    width: 40%;
    text-align: justify;
    border-left: 1px solid gray;
    padding-left: 20px;
}

.row3 .text-box p {
    text-align: justify;
    text-align-last: center;
}

.row4 {
    display: flex;
    height: 400px;
    justify-content: flex-start;
    margin-bottom: 20px;
    flex-direction: row-reverse;
    flex-wrap: nowrap;
    margin-right: 6%;
    gap: 20px;
}

.row4 .video-box {
    width: 40%;
    margin-top: 10%;
}

.row4 .text-box{
    width: 40%;
    text-align: justify;
}

.row4 .text-box p {
    text-align: justify;
    text-align-last: center;
    border-right: 1px solid gray;
    padding-right: 20px;
}

.row5 {
    display: flex;
    height: 600px;
    justify-content: flex-start;
    margin-bottom: 20px;
    flex-direction: row;
    gap: 20px;
    flex-wrap: nowrap;
    margin-left: 6%;
}

.row5 .video-box {
    width: 40%;
}

.row5 .text-box {
    width: 40%;
    text-align: justify;
    margin-top: 18%;
}

.row5 .text-box p {
    text-align: justify;
    text-align-last: center;
    border-left: 1px solid gray;
    padding-left: 20px;
}

.row6 {
    display: flex;
    height: 400px;
    justify-content: flex-start;
    margin-bottom: 20px;
    flex-direction: row;
    gap: 5%;
    flex-wrap: nowrap;
    margin-left: 13%;
}

.row6 .text-box {
    width: 50%;
    text-align: justify;
}

.row6 .text-box p {
    text-align: justify;
    text-align-last: center;
    border-right: 1px solid gray;
    padding-right: 20px;
}

.row6 .video-box {
    width: 40%;
    margin-top: 10%;
}

.header {
    background-image: linear-gradient(
        white ,
        rgb(159, 206, 231),
        rgb(61, 198, 236) 50%,
        rgb(8, 136, 221) 100%
    );
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-align: center;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 1.5s ease forwards;
    animation-delay: 0.3s;
    font-family: YakuHanJP, noto-sans-cjk-jp, "Hiragino Kaku Gothic ProN", "游ゴシック", YuGothic, Meiryo, Verdana, sans-serif;
    font-weight: 500;
}

.background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

@keyframes revealContent {
    0% {
        background-color: rgba(0, 0, 0, 0.8);
    }
    100% {
        background-color: rgba(0, 0, 0, 0);
        z-index: -1;
    }
}