@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100;400;700&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans JP', sans-serif;
}
body {
    background-color: #e7e7e7;
}

/*ヘッダー*/
.header {
    width: 100%;
    height: 100vh;
}

/* ナビゲーションの基本スタイル */
nav {
    width: 100%;
    padding: 20px 0;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    background: #333333;
    z-index: 1000;
}

/*ロゴ*/
.logo {
    width: 150px;
    margin: 0 auto;
    cursor: pointer;
    font-size: 2rem;
    font-weight: 450;
    color: white;
    font-family: "Impact", sans-serif;
}

/* メニューアイコンのスタイル */
.menu-icon {
    display: block;
    cursor: pointer;
    position: fixed; /* 固定位置に変更 */
    top: 12px;
    right: 12px;
    z-index: 1001; /* メニューより上に表示 */
}

.menu-icon div {
    width: 35px;
    height: 5px;
    background-color: white;
    margin: 6px 0;
    transition: 0.4s;
}

/* メニューのスタイル */
.menu {
    background: rgba(51, 51, 51, 0.9);
    position: fixed;
    top: 0;
    right: -100%;
    height: 100%;
    width: 100%;
    padding-top: 60px;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.menu.open {
    right: 0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

nav ul li {
    margin: 20px 0;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    display: block;
    padding: 10px 20px;
}


.cover-home {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/*背景画像*/
.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    background-blend-mode: lighten;
    background-position: center;
    background-size: cover;
    transition: opacity 2s ease-in-out; /* フェードイン・フェードアウトを2秒に設定 */
    opacity: 1;
    z-index: -1; /* 背景画像を他のコンテンツの背後に */
}

.background-image.fade {
    opacity: 0; /* フェードアウト状態 */
}

/*ページタイトル*/
.page-title {
    font-size: 6rem;
    font-family: "Impact", sans-serif;
    font-weight: bold;
    color: #333333;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/*フッター*/
.copyright {
    background-color: #333333;
    text-align: center;
    padding: 2rem;
    color: #fff;
    width: 100%;
    bottom: 0;
    margin-top: auto;
    
}


.top {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 0;
    gap: 100px;
}

/*ボックス*/
.box {
    width: 80%;
    max-width: 500px;
    padding: 30px;
    background: #333333;
    color: #fff;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.box.show {
    opacity: 1;
    transform: translateY(0);
}

/*ここからボダン*/
.image-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* 画像ボタンを横並びにする */
}
 
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.button {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.button.show {
    opacity: 1;
    transform: translateY(0);
}
 
.button a img {
    display: block;
    width: 100%;
    height: 268px;
    border: none;
    transition: transform 0.3s ease;
}
 
.button a img:hover {
    transform: scale(1.05);
}
 
.button p {
    margin-top: 10px;
    font-size: 30px;
    color: #333;
    font-family: "Impact", sans-serif;
    text-align: center;
}


html {
    scroll-padding-top: 100px; /* この値は、固定ヘッダーの高さに応じて調整してください */
}

.section {
    margin-top: 100px;  /* セクション全体の上部に余白を追加 */
    margin-bottom: 100px;
    scroll-margin-top: 100px;
}

.section-title {
    text-align: center;
    color: #2c3e50;
    font-size: 2.5em;
    margin-top: 0;  /* 上の余白をリセット */
    margin-bottom: 30px;  /* 下の余白を維持 */
    padding-top: 20px;  /* タイトル自体の上に内部余白を追加 */
}

/*ゲーム紹介ページ*/
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.gallery img.show {
    opacity: 1;
    transform: translateY(0);
}

.description {
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 20px;
    color: #333;
}

/* SNSセクション */
.twitter-embed, .youtube-embed {
    margin-bottom: 50px;
    text-align: center; /* コンテナを中央寄せ */
}

.twitter-embed h3, .youtube-embed h3 {
    color: #3498db;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.twitter-timeline {
    width: 100% !important;
    max-width: 800px !important; /* 最大幅を設定 */
    height: 700px !important;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    margin: 0 auto !important; /* タイムラインを中央寄せ */
}

.twitter-embed.show .twitter-timeline {
    opacity: 1;
    transform: translateY(0);
}

.youtube-videos {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
}

.youtube-videos > * {
	margin: 15px; /* 15px のマージンを設定して、上下左右に30pxのギャップを確保 */
}


.youtube-video {
    flex: 1;
    min-width: 400px;
}

.youtube-video iframe {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    /* アニメーションスタイルを削除 */
}

/* アニメーションスタイル */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* 「About ページに戻る」ボタンのスタイル */
.back-to-about {
    text-align: center;
    padding: 40px 0;
}

.back-button,.link-button  {
    display: inline-block;
    padding: 15px 30px;
    background-color: #f78b26;  /* 既存のボタン色に合わせて */
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.back-button:hover,.link-button:hover {
    background-color: #8D7B68;
}

/* 「公式サイトへ行く」ボタンのスタイル */
.go-to-official {
    text-align: center;
    padding: 40px 0;
}

.official-button, .link-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #f78b26;  /* 既存のボタン色に合わせて */
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.official-button:hover, .link-button:hover {
    background-color: #8D7B68;
}


/*メディアクエリ*/
@media screen and (max-width: 1130px) and (min-width: 769px) {
    .image-buttons {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
    }
  
    .button {
      width: 45%; /* 少し余裕を持たせるために45%に設定 */
      max-width: 300px; /* 必要に応じて調整 */
      margin: 10px;
    }
  }


@media (max-width: 992px) {
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .youtube-video {
        min-width: 300px;
    }

}


@media (max-width: 768px) {

    .box {
        width: 90%;
        margin: 20px 0;
    }
    /*ここからボタン*/
    .image-buttons {
        flex-direction: column; /* 縦並びにする */
        align-items: center;
    }
 
    .button {
        width: 90%; /* モバイル版でボタンを大きくする */
    }
 
    .button a img {
        width: 100%; /* 画像の幅を親要素に合わせる */
        height: auto; /* 高さを自動調整 */
    }
 
    .button p{
        font-size: 50px;
    }


    .section-title {
        font-size: 20px;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .twitter-embed,
    .youtube-embed {
        margin-bottom: 20px;
    }

    iframe {
        width: 100%;
        height: auto;
    }
    .official-button,
    .back-button {
        max-width: 100%; /* 追加: 画面幅が狭いときに最大幅を解除 */
        padding: 15px;
    }
    
    .copyright {
        padding: 1.5rem;
        font-size: 14px;
    }
    .twitter-timeline {
        width: 100% !important;
        max-width: 500px !important; /* 最大幅を設定 */
        height: 700px !important;
   
    }
    
  
    .youtube-embed {
        flex-direction: column;
        align-items: center;
    }

    .youtube-embed iframe {
        width: 300px;
        height: 300px;
        max-width: 100%;
        aspect-ratio: 1 / 1; /* 動画を正方形にします */
    }

}

 


@media (max-width: 480px) {


    /*ここからボタン*/
    .button p{
        font-size: 50px;
    }
    .section-title {
        font-size: 18px;
    }

    .gallery img {
        border-radius: 4px;
    }

    .twitter-embed,
    .youtube-embed {
        margin-bottom: 15px;
    }
    .official-button,
    .back-button {
        max-width: 100%; /* 追加: 画面幅が狭いときに最大幅を解除 */
        padding: 10px;
    }
    .copyright {
        padding: 1rem;
        font-size: 12px;
    }

}


/* contact*/
section {
    text-align: center;
}
.container {
    text-align: center;
}
.box {
    max-width: 800px;
    margin: 2% auto;
    background: #333333;
    padding: 3% 5%;
    border-radius: 10px;
}
.form-col {
    margin-bottom: 4%;
}
.form-col label {
    display: block;
    color: #fff;
    font-weight: bold;
    margin-bottom: 5px;
}
.form-col input,
.form-col textarea {
    width: 100%;
    border-radius: 5px;
    border: solid 1px #999999;
}
.form-col input {
    width: 50%;
}
.form-btn {
    text-align: center;
}
button {
    background-color: #f78b26;
    color: #ffffff;
    width: 250px;
    margin: 0 auto;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}
button:hover {
    background-color: #8D7B68;
}

