@import url(http://fonts.googleapis.com/earlyaccess/notosansjp.css);

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: rgb(0, 0, 0);
    color: white;
    margin: 0;
    padding: 0;
    height: auto;
    overflow-x: hidden;
    position: relative;
    padding-top: 80px; 
}

/* Hero Section */
#hero {
    width: 100%;
    height: calc(100vh - 80px); 
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 0;
    margin-bottom: 80px; 
}

#hero #bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.content {
    color: white;
    text-align: center;
    z-index: 1;
    padding-top: 20vh;
}

/* Catchcopy - サイトタイトルを左下に配置 */
.catchcopy-text {
    font-size: 5vw; 
    color: white;
    opacity: 0;
    transform: translateY(20px);
    animation: catchcopyshow 2s forwards;
    position: absolute;
    bottom: 20px; 
    left: 20px;   
}

@keyframes catchcopyshow {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.innyou1 {
    color: white;
    font-size: 20px;
    position: absolute;
    bottom: 5px;
    right: 5px;
    z-index: 5;
}

/* Menu */
section#menu-ver {
    background: linear-gradient(to right, rgb(36, 30, 30), rgba(0, 0, 0, 0.5));
    padding: 6px 16px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
}

section#menu-ver a {
    display: inline-flex;
    align-items: center;
    font-size: 30px;
    color: white;
    text-decoration: none;
    padding: 0px 20px;
    margin-right: 12px;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

section#menu-ver a:hover {
    background-color: rgba(192, 184, 184, 0.5);
    cursor: pointer;
}



/* MC Section */
section#MC {
    color: white;
    font-size: 30px;
    text-align: center;
    margin-bottom: 80px; 
    margin-top: 150px;
}

.MC-title {
    font-weight: bold;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(-20px);
    animation: move-down 2s forwards;
}

.MC-title.show {
    opacity: 1;
    transform: translateY(0);
}

.MC-text {
    font-size: 25px;
    opacity: 0;
    transform: translateY(-20px);
    animation: move-down 2s forwards;
}

.MC-text.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes move-down {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 🌟 Image Sections (アニメーションありのセクション) - 縦並びのまま */
section#intro,
section#image3,
section#image4 
{
    display: flex;
    justify-content: center;
    align-items: center;
    /* 共通のアニメーション初期設定 */
    opacity: 0; 
    transform: translateY(-20px);
    transition: opacity 1.5s ease, transform 1.5s ease;
    margin-bottom: 80px;
}

section#image4 {
    font-size: 8px;
}

.image3 {
    font-weight: bold;
}

.image4 {
    margin-bottom: 40px;
    font-size: 24px;
}

section#intro.show,
section#image3.show,
section#image4.show {
    opacity: 1;
    transform: translateY(0);
}

/* Intro Section Styling (背景画像切り替えエリア) */
#intro {
    background-color: rgba(0, 0, 0, 0.7); 
    width: 80%; 
    max-width: 1200px; 
    padding: 150px 20px; 
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 30px;
    text-align: center;
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
    border-radius: 10px; 
    position: relative; 
    height: auto;
    margin-top: 300px;
}

/* introセクション内の引用テキストのスタイル */
.intro-innyou {
    font-size: 14px;
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: rgba(255, 255, 255, 0.7);
}


.image3,
.image4,
.image5 {
    font-size: 40px;
    color: white;
    text-align: center;
}

/* -------------------------------------- */
/* 🌟 image5とimage6を横並びにするコンテナ */
/* -------------------------------------- */
.content-row {
    display: flex; /* Flexboxで横並びにする */
    justify-content: center; /* 中央寄せ */
    align-items: center; /* 垂直方向も中央寄せ */
    width: 90%; /* コンテナの最大幅 */
    max-width: 1200px;
    margin: 80px auto; /* 上下にマージン、左右中央寄せ */
    flex-wrap: wrap; /* 画面が狭くなったら折り返す */
    
    /* アニメーション設定を適用したい場合 */
    opacity: 0; 
    transform: translateY(-20px);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.content-row.show {
    opacity: 1;
    transform: translateY(0);
}

/* 🌟 image5 (動画) のスタイル調整 */
section#image5 {
    width: 50%; /* 親コンテナの50%の幅 */
    margin-bottom: 0; /* 縦並び用のマージンを削除 */
    display: flex; /* 内部要素を中央寄せ */
    justify-content: center;
    align-items: center;
}

/* 🌟 image6 (テキスト) のスタイル調整 */
section#image6 {
    width: auto;
    font-size: 24px;
    /* 内部の配置を左寄せから中央寄せに変更 */
    display: flex;
    justify-content: center; 
    align-items: center;
    margin-top: 500px;
    
    /* アニメーションは親要素に移したので、ここには残さない */
    opacity: 1; 
    transform: translateY(0);
    transition: none; 
}



/* 🌟 .image6 ブロック（テキストボックス）の調整 */
.image6 {
    font-size: 30px; 
    text-align: left;
    width: 1000px; 
    max-width: 100%; 
    padding: 20px;
    margin-left: auto; 
    margin-right: auto;
    background-color: rgba(0, 0, 0, 0.7); 
    border-radius: 10px;
}

.image6 h2 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.image6-text {
    font-size: 24px;
    line-height: 1.6;
}
/* -------------------------------------- */

/* Button Styling */
.button019 {
    display: flex;
    justify-content: center;
    margin-bottom: 900px;
}

.button019 a {
    background: #eee;
    border-radius: 3px;
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: auto;
    max-width: 300px;
    width: 90%;
    padding: 10px 25px;
    color: #313131;
    transition: 0.3s ease-in-out;
    font-weight: 500;
    text-decoration: none;
}

.button019 a:after {
    content: "";
    position: absolute;
    top: 50%;
    right: 2rem;
    font-size: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: right 0.3s;
    width: 6px;
    height: 6px;
    border-top: solid 2px currentColor;
    border-right: solid 2px currentColor;
    transform: translateY(-50%) rotate(45deg);
}

.button019 a:hover {
    background: #6bb6ff;
    color: #FFF;
}

.button019 a:hover:after {
    right: 1.4rem;
}

section#mennseki {
    display: flex;
    justify-content: center; 
    align-items: center;
    margin-bottom: 500px;
}

.mennseki-title {
    margin-bottom: 100px;
    margin-top: 100px;
}



/* Responsive Design */
@media (max-width: 768px) {
    
    /* 🌟 修正: 横並びを解除して縦並びに戻す */
    .content-row {
        flex-direction: column; 
        width: 100%; /* フル幅に */
        margin: 60px auto;
    }
    
    section#image5,
    section#image6 {
        width: 100%; /* 幅を100%に戻す */
        margin-bottom: 40px; /* 縦並びのスペースを確保 */
    }

    /* ----------------------------- */
    /* 他のモバイル調整 */
    section#menu-ver a {
        font-size: 20px;
    }
    
    .catchcopy-text {
        font-size: 15vw;
        left: 10px;
    }

    section#intro {
        padding: 100px 10px; 
        width: 90%; 
        margin-left: auto;
        margin-right: auto;
        background-size: cover;
        border-radius: 10px; 
    }
    
    section#intro p {
        font-size: 24px;
    }

    .about {
        flex-direction: column;
        align-items: center;
    }

    .about-history, .bg2-video {
        width: 90%; 
    }
    
    .image6 {
        width: 90%; 
        margin-left: auto;
        margin-right: auto;
        padding: 15px;
        font-size: 20px;
    }
    
    .image6-text {
        font-size: 12px;
    }

    section#intro,
    section#image3,
    section#image4,
    .content-row { /* content-rowもここでマージン調整 */
        margin-bottom: 60px; 
    }

    section#image5 video,
    #image5 {
        width: 90%; 
        max-width: none; 
    }
}

@media (max-width: 480px) {
    .catchcopy-text {
        font-size: 20vw;
        bottom: 10px;
    }
    /* ... 他の480px以下の調整 ... */
}