@charset "UTF-8";
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
img{
    vertical-align: bottom;
}
/* header */
header{
    position: relative;
    height: 100vh;
}
.heroArea{
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    z-index: -100;
}
header video{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    min-height: 100%;
    min-width: 100%;
    height: 56.25vw;
    width: 177.77778vh;
    z-index: -100;
}
h1{
    font-size: 7vw;
    font-weight: 900;
    color: rgba(255,255,255,0.9);
    text-shadow:0 0 15px rgba(0,0,0,0.5) ;
    line-height: 1;
    white-space: nowrap;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50% ) rotate(-10deg) scale(0.9);
    width: 95vw;
    text-align: center;
    z-index: 10;

}

/* main */
main{
    background-color: #5e151fb1;
}
h2{
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    padding: 40px 20px;
    color: #fff;
}
.container-flex{
    width: 960px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    padding-bottom: 60px;
}
@media(max-width:550px){
    .container-flex{
    width: 100%;
    flex-wrap: wrap;
    padding: 0 20px 60px;
}
}

.item-flex{
    width: 460px;
    }
 .item-flex:nth-child(3){
    order: 4;
 }   
.item-flex img{
    width: 100%;
}
.item-flex p{
    text-align: justify;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.2;
    color: #fff;
}
/* h3{
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
} */

/* animation */
.dansers{ 
    position: absolute;
    bottom: 60px; 
    left: 0; /* ← これが重要！ */
    width: 320px; 
    z-index: 1; 
    animation: danseanime 6s ease-in-out infinite alternate;
}

@keyframes danseanime {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }

    25% {
        transform: translateX(0) translateY(-20px) rotate(-10deg);
    }

    50% {
        transform: translateX(0) translateY(20px) rotate(10deg);
    }

    75% {
        transform: translateX(0) translateY(-20px) rotate(-10deg);
    }

    100% {
        transform: translateX(calc(100vw - 320px)) translateY(0) rotate(0deg);
    }
}
.container-youtube{
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.container-youtube iframe{
    width: 100%;
    height: 315px;
}


/* footer */
footer{
    background-color: rgba(143, 147, 17, 0.455);
    color: #666;
    text-align: center;
    padding: 20px;
}

@media (width <=500){
h1{
    font-size: 8vw;
    left: 0;
    width: 100%;
    font-weight: 900;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 0 10px #fff;
    line-height: 0.8;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-8deg) scale(0.85);
    width: 100vw;

}
.container-youtube{
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    padding: 0 20px 60px;
}
.item-flex{
    width: 100%;
}    
}