body{
    margin: 0px;
    padding: 0;
    background-color: black;
    color: white;
    font-family: 'Noto Sans JP', sans-serif;
}

/* ヘッダー */
.main_header{
    background-color: black;
    color: #FFFFFF;
    font-weight: bold;
    font-size: 18px;
    text-align: center;
    padding: 20px 70px;
    margin: 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}
.header_logo{
    flex-shrink: 0;
}
.logo_image{
    height: 50px;
    width: auto;
}
.header_nav{
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}
.nav_list{
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}
.nav_link{
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: color 0.3s;
}
.nav_link:hover{
    color: rgb(255,0,0,0.7);
}

/* ファーストビュー */
.firstview{
    width: 100%;
    height: 600px;
    margin-top: 100px;
    padding-bottom: 15px;
    background-image: url(img/top.png);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    background-color: black;
    position: relative;
}

/* タイトル */
.title{
    color: #FFFFFF;
    font-weight: bold;
    font-weight: bold;
    font-size: 24px;
    text-align: center;
    margin: 0px;
    padding-top: 150px;
    padding-bottom: 100px;
    letter-spacing: 2px;
}

/* STORY */
.STORY{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 80px;
}
.story_info{
    color: #FFFFFF;
    line-height: 1.8;
    font-size: 20px;
    text-align: center;
    margin-bottom: 40px;
}

/* index_ムービー */
.MOVIES{
    max-width: 1500px;
    margin: 0 auto;
    position: relative;
    padding: 0 20px;
}
.movies_viewport{
    width: 100%;
    display: flex;
    gap: 70px;
    justify-content: center;
    flex-wrap: wrap;
}
.movies_buttom{
    width: 350px; 
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
    cursor: pointer;
}
.movies_image{
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;

}
.movies_text{
    font-size: 18px;
    font-weight: bold;
    color: #FFFFFF;
    margin-top: 20px;
    text-align: center;
}

    /* ホバー */
.movies_buttom:hover .movies_image{
    transform: scale(1.05); 
}


/* index_キャラクター */
.CHARACTER{
    max-width: 1500px;
    width: 100%;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

.Character_wrapper{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    overflow: hidden;
    padding: 0 10px;
    box-sizing: border-box;
    max-width: 100%;
    position: relative; 
}

.Character_viewport{
    width: 100%;
    flex-flow: row nowrap;
    gap: 30px;
    overflow: hidden;
    max-width: 1200px;
    transition: transform 0.3s ease;
    position: relative;
    margin: 40px 120px;

}

.Character_slider{
    display: flex; 
    gap: 30px; 
    padding: 20px 0; 
    max-width: 100%; 
    box-sizing: border-box; 
    scroll-behavior: smooth; 
    transition: transform 0.3s ease; 
    will-change: transform; 
}

.Character_button{
    background-color: white;
    width: calc((100% - 120px) / 5); 
    max-width: 215px;
    display: block;
    overflow: hidden;
    position: relative;
    flex: 0 0 auto; 
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.Character_button:hover{
    transform: translateY(-5px);
}

.character_index_image{
    width: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 2.5 / 3;
    object-position: top;
}

.character_text{
    padding: 15px;
    margin: 10px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    background-color: white;
}

.SYMBIOTE_viewport{
    max-width: 1200px;
    flex-flow: row nowrap;
    gap: 30px;
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;

}
.SYMBIOTE{
    width: 100%;
    margin: 40px 120px;
    padding: 0 20px;
    position: relative;
    margin-left: auto;
    margin-right: auto;
} 
.SYMBIOTE img{
    width: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 2.3 / 3;
    object-position: top;
} 


/* 矢印ボタンについて */
button{
    all: unset;
    cursor: pointer;
    appearance: none;
}

.arrow-wrap{
    position: absolute;
    top: 70%;                   
    left: 50px;                 
    width: calc(100% - 100px);  
    height: 0; 
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    /* pointer-events: none; */
    z-index: 10; 
} 

/* 矢印ボタン */
.arrow-btn{
    background-color: #fff; 
    border-radius: 50%; 
    width: 48px; 
    height: 48px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    position: relative; 
    cursor: pointer; 
    pointer-events: auto; 
    transition: background-color 0.3s ease, opacity 0.3s ease;
    margin: 0 5px; 
    flex-shrink: 0; 

    z-index: 2;

}
.arrow-btn:hover{
    background-color: #ddd;
    opacity: 0.9;
}

.arrow-btn.disable{
    opacity: 0.3;
    cursor: not-allowed;
}

.arrow-left, .arrow-right {
    pointer-events: auto;

    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

/* 左矢印 */
.arrow-left{
    position: relative;

    left: 10px;
}
.arrow-left .arrow-btn::before{
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-top: 3px solid black;
    border-left: 3px solid black;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%) rotate(-45deg); 
    pointer-events: none;

}

/* 右矢印 */
.arrow-right{
    position: relative;

    right: 40px;
}
.arrow-right .arrow-btn::before{
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-top: 3px solid black;
    border-left: 3px solid black;
    top: 50%;
    left: 45%;
    transform: translate(-50%, -50%) rotate(135deg); 
    pointer-events: none;

}  



/* ムービー紹介 */
.venom_syoukai{
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 140px auto 100px auto;
    align-items: flex-start; 
    flex-wrap: wrap;
}
.venom_image{
    width: 100%;
    max-width: 450px;
    min-width: 300px;
    height: auto; 
    transition: transform 0.3s ease;
}
.venom_info{
    color: #fff;
    flex: 1;
    min-width: 300px;
    padding-bottom: 20px;
}
.movies_title{
    font-size: 32px;
    margin-bottom: 10px;
    margin-top: -5px;
}
.movies_year{
    font-size: 20px;
    margin-bottom: 20px;
    color: #FFFFFF;
}
.movies_story{
    line-height: 1.8;
    color: #FFFFFF;
}


    /* 紹介、動画 */
.video_section{
    max-width: 1500px;
    margin: 60px auto 120px auto;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
.video{
    aspect-ratio: 16 / 9;
    width: 100%;
    max-width: 385px;
}

/* キャラクター_詳細 */
.character_detail{
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 80px auto;
    padding: 100px 100px;
    align-items: flex-start;    
    flex-wrap: wrap;
    flex-direction: row-reverse;
}
.character_imagebox{
    display: block;
    text-decoration: none;
    width: 380px;          
    height: 500px;     
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}
.character_image{
    width: 100%;
    height: 100%;    
    object-fit: cover;
    object-position: center; 
    display: block;
    transition: transform 0.3s ease;
}
.character_info{
    color: #fff;
    flex: 1;
    min-width: 300px;  
    overflow-y: auto;   
    margin-top: -5px;  
}
.character_info h2{
    font-size: 32px;
    margin-bottom: 10px;
    color: #FFFFFF;
}
.character_info h2:first-child{
    margin-top: 0;
}
.character_info p{
    line-height: 1.8;
    color: #FFFFFF;
    margin-bottom: 20px;
}
.character_info strong{
    font-weight: bold;
}
.character_info h3{
    font-size: 24px;
    margin-bottom: 10px;
    margin-top: 20px;
    color: #FFFFFF;
}

/* 戻るボタン、 */
.back_button{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 250px;
    margin:0 auto 60px auto;
    padding: .9em 2em;
    border: none;
    border-radius: 5px;
    background-color: #9e9e9e;
    color: #fff;
    font-weight: 600;
    font-size: 1em;
    text-decoration: none;
}
.back_button::after{
    transform: rotate(45deg);
    width: 5px;
    height: 5px;
    margin-left: 10px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    content: '';
}
.back_button:hover{
    background-color: #515151;
}


/* フッター */
.footer{
    background-color: black;
    padding-top: 100px;
    padding-bottom: 80px;
    position: relative;
}
.footer_content{
    max-width: 1455px;
    position: relative;
    min-height: 100px;
    justify-content: center;
}
.footer_social{
    position: absolute;
    bottom: 0;
    right: 0;
    display: flex;
    gap: 40px;
    padding: 10px;
}
.social_icon{
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* PNGでも白っぽく見せる */
    transition: opacity 0.3s;
}
.social_icon:hover{
    opacity: 0.7;
}
.social_link img{
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: inline-block;
}

img[alt="X"]{
    transform: scale(0.9); 
}
img[alt="YouTube"]{
    transform: scale(1.3); 
}




@media screen and (max-width: 1024px) {
    .Character_button {
      width: calc((100% - 90px) / 4); /* 4枚表示に対応 */
    }
}

@media screen and (max-width: 768px) {
    .Character_button {
      width: calc((100% - 60px) / 3); /* 3枚表示に対応 */
    }
}

@media screen and (max-width: 480px) {
    .Character_button {
      width: calc((100% - 30px) / 2); /* 2枚表示に対応 */
    }
}
