/* 全体のスタイル */
html {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    color: white;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: white;
    overflow-x: hidden;
}

/* 背景画像のスタイル */
.bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -100;
    opacity: 1;
    transition: opacity 1s ease-in-out; /* フェードイン・フェードアウトのトランジション */
}

.bg-image.fade-out {
    opacity: 0;
}

.bg-image.fade-in {
    opacity: 1;
}

.bg-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.8)); /* 左右から中央にかけてのグラデーションマスク */
    z-index: 0;
}

/* コンテンツの表示アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0; /* 初期状態で非表示 */
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
    animation: fadeIn 1s ease-in-out forwards; /* フェードインアニメーションを追加 */
}

/* コンテンツのスタイル */
.content {
    position: relative;
    z-index: 0; /* ヘッダーより低く設定 */
    text-align: center;
    height: 100vh; /* ウィンドウいっぱいに広がる */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px; /* コンテンツが範囲を飛び出さないように */
    box-sizing: border-box;
}

.left-align {
    text-align: left;
}

.right-align {
    text-align: right;
}
/* ナビゲーションバーのスタイル */
.header-box {
    position: fixed;
    top: 5px;
    left: 5px;
    background-color: black;
    color: white;
    padding: 10px;
    border-radius: 5px;
    border: 2px solid white; /* ボーダーを追加 */
    z-index: 20; /* ナビゲーションバーよりも前面に表示 */
    transition: transform 0.1s ease-in-out;
}

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.header-box:hover {
    animation: shake 0.5s;
    animation-iteration-count: infinite;
}

.header-text {
    font-family: "Kaisei Tokumin", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.0em;
    display: flex; /* フレックスボックスを使用 */
    justify-content: center; /* 横方向の中央揃え */
    align-items: center; /* 縦方向の中央揃え */
    text-align: center;
}
@media (max-width: 1000px) {
    .header-text {
        font-size: 0.6em;
    }
}

@media (max-width: 768px) {
    .header-text {
        font-size: 0.6em;
    }
}

.navbar {
    font-family: "Kaisei Tokumin", serif;
    font-weight: 400;
    font-style: normal;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: black; /* 不透明に変更 */
    padding: 10px 0; /* 初期のパディングを大きく */
    text-align: center;
    z-index: 10; /* 他のコンテンツより高く設定 */
    border-bottom: 2px solid white; /* 境目に白い線 */
    transition: top 0.3s ease; /* topプロパティのトランジションを追加 */
}

.navbar .logo {
    position: absolute;
    left: 10px;
    top: 10px;
    font-size: 15px;
    font-weight: bold;
    color: white;
}

/* ナビゲーションバーのリンクのスタイル */
.navbar a {
    color: white;
    padding: 14px 20px;
    text-decoration: none;
    display: inline-block;
    position: relative; /* 円を表示するために必要 */
    transition: background-color 0.3s, box-shadow 0.3s; /* トランジションを追加 */
    font-size: 1.2em; /* 基本フォントサイズ */
}

@media (max-width: 1000px) {
    .navbar a {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .navbar a {
        font-size: 0.8em;
    }
}

.navbar a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.31); /* 半透明な円 */
    border-radius: 50%;
    transition: width 0.3s, height 0.3s, top 0.3s, left 0.3s; /* トランジションを追加 */
    z-index: -1; /* テキストの背後に表示 */
    transform: translate(-50%, -50%);
}

.navbar a:hover::before {
    width: 80%;
    height: 80%;
    top: 50%;
    left: 50%;
}

/* ドロップダウンメニューのスタイル */
.dropdown {
    display: inline-block;
    position: relative;
}

.dropbtn {
    color: white;
    padding: 14px 20px;
    text-decoration: none;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* セクションのスタイル */
.section {
    position: relative;
    z-index: 0; /* ヘッダーより低く設定 */
    padding: 60px 20px;
    text-align: center;
    height: 80vh; /* ウィンドウの80%の縦幅 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-bottom: 2px solid white; /* 境目に白い線 */
    box-sizing: border-box;
}
.section-noborder{
    border-bottom: none;
}
.section-60vh {
    height: 60vh; /* ウィンドウの60%の縦幅 */
}
.section-40vh {
    height: 40vh; /* ウィンドウの60%の縦幅 */
}
.section-title {
    font-size: 2em;
}

@media (max-width: 1000px) {
    .section-title {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.6em;
    }
}
/* フォントサイズの調整 */
.responsive-text {
    font-size: 1.2em;
}

@media (max-width: 1000px) {
    .responsive-text {
        font-size: 1.0em;
    }
}

@media (max-width: 768px) {
    .responsive-text {
        font-size: 0.85em;
    }
}

/* 円形画像のサイズ調整 */
.circle-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
}

@media (max-width: 1000px) {
    .circle-image {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 768px) {
    .circle-image {
        width: 120px;
        height: 120px;
    }
}
/* Googleフォントのインポート */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@700&display=swap');

/* タイトルのスタイル */
.title {
    font-family: "Rubik Vinyl", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 5em;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* 縁どり */
    display: inline-block; /* インラインブロックに変更 */
}

.title-next {
    cursor: pointer; /* カーソルをポインターに変更 */
    transition: color 0.3s ease-in-out; /* トランジションを追加 */
}

.title-next:hover {
    color: yellow; /* ホバー時に色を黄色に変更 */
}

.title-next:active {
    color: red; /* クリック時に色を赤に変更 */
}

.subtitle {
    font-family: "Kaisei Tokumin", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.5em;
    color: white;
    text-shadow: 2px 2px 4px rgb(0, 0, 0); /* 縁どり */
    @media (max-width: 768px) {
        font-size: 1.1em;
    }
    @media (max-width: 480px) {
        font-size: 1.0em;
    }
}
/* マスクのスタイル */
.mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}
.transp-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: -1;
}

.home-mask {
    background-color: rgba(79, 79, 79, 0.323);
}

/* SNSリンクコンテナのスタイル */
.snslink-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    position: absolute;
    bottom: 10px;
}

.twitter-link {
    font-family: "Kaisei Tokumin", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.2em;
    color: rgb(0, 225, 255);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* 縁どり */
    background-color: transparent;
    padding: 10px 20px;
    text-align: center;
    transition: background-color 0.3s, box-shadow 0.3s; /* トランジションを追加 */
    display: flex; /* フレックスボックスを使用 */
    justify-content: center; /* 横方向の中央揃え */
    align-items: center; /* 縦方向の中央揃え */
    position: relative; /* 円を表示するために必要 */
}

.twitter-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgb(74, 74, 74); /* 半透明な円 */
    border-radius: 20%;
    transition: width 0.3s, height 0.3s, top 0.3s, left 0.3s; /* トランジションを追加 */
    z-index: -1; /* テキストの背後に表示 */
    transform: translate(-50%, -50%);
}

.twitter-link:hover::before {
    width: 80%;
    height: 80%;
    top: 50%;
    left: 50%;
}

.qr-code {
    position: relative;
    width: 80px;
    height: auto;
}

/* スライドカードゾーンのスタイル */
#news{
    font-family: 'Noto Sans', sans-serif;
}
.slide-card-zone {
    position: relative;
    z-index: 0; /* ヘッダーより低く設定 */
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.news-card {
    position: absolute;
    width: 300px;
    height: 300px;
    background-color: rgba(0, 0, 0, 1);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.5s, z-index 0.5s;
    border: 2px solid white;
}

.news-card img {
    width: 100%;
    height: auto;
}

.news-text {
    padding: 0px;
}

.news-card:not(.pos1) .mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明なマスク */
    z-index: 1;
}

.pos1 {
    transform: translateX(0);
    z-index: 4;
}

.pos2 {
    transform: translateX(170px) translateY(30px);
    z-index: 3;
}

.pos3 {
    transform: translateX(0) translateY(50px);
    z-index: 2;
}

.pos4 {
    transform: translateX(-170px) translateY(30px);
    z-index: 3;
}

/* スライドボタンコンテナのスタイル */
.slide-btn-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    z-index: 5; /* ニュースセクションのどのコンテンツよりも手前に表示 */
}

.slide-btn {
    background-color: transparent;
    border: none;
    padding: 15px 30px; /* ボタンを少し大きく */
    cursor: pointer;
    margin: 0 10px; /* ボタン間のスペースを追加 */
}

.slide-btn:hover {
    transform: scale(1.05);
}

.left-btn {
    width: 50px;
    height: 50px;
}

.right-btn {
    width: 50px;
    height: 50px;
}
/* プロジェクト・体験会についての章 */
.content-container {
    display: flex;
    align-items: center;
}

/* プロジェクトギャラリーのスタイル */
#project{
    font-family: 'Noto Sans', sans-serif;
}
.project-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-item {
    position: relative;
    margin: 3px 0;
    overflow: hidden; /* コンテナの範囲を超えないようにする */
    text-decoration: none; /* リンクの下線を消す */
}

.project-item img {
    width: auto;
    height: 15vh; /* 縦幅をウィンドウの15%に設定 */
    z-index: 0; /* 画像のz-indexを設定 */
    transition: transform 0.3s ease-in-out; /* 変形のトランジションを追加 */
}

.project-item img:hover {
    transform: scale(1.05); /* 画像をズーム */
}

.project-item .mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明なマスク */
    z-index: 1;
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
}

.project-item:hover .mask {
    opacity: 0; /* ホバー時にマスクを非表示 */
}

.project-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* 縁どり */
    pointer-events: none; /* テキストがクリックを妨げないように */
    z-index: 2; /* テキストのz-indexを画像より高く設定 */
}
/* 開催場所や時間 */
#location{
    font-family: 'Noto Sans', sans-serif;
}
.location-details {
    text-align: left;
    margin: 10px 0;
    font-family: 'Noto Sans', sans-serif;
    font-size: 1em;
    color: white;
}

.map-container {
    margin-top: 20px;
    text-align: center;
}
.responsive-map {
    width: 100%;
    height: 250px;
    border: 0;
}

@media (max-width: 768px) {
    .responsive-map {
        width: 80%;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .responsive-map {
        height: 250px;
    }
}

.location-title {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.location-address {
    font-size: 0.9em;
    margin-bottom: 20px;
}
/* タイムテーブル */
.timetable-list {
    list-style-type: none;
    padding: 0;
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.2em;
    color: white;
    text-align: left;
}

.timetable-list li {
    margin: 10px 0;
}

.timetable-list ul {
    margin-left: 20px;
}
/* お問い合わせ */
#contact{
    font-family: 'Noto Sans', sans-serif;
}
.contact-email {
    color: white; /* 見やすい色に変更 */
    font-weight: bold;
}

.contact-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 20px;
    background-color: #333; /* 暗めの背景色 */
    padding: 20px;
    border-radius: 0px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form label {
    margin: 10px 0 5px;
    font-family: 'Noto Sans', sans-serif;
    color: #ddd; /* 暗めの背景に合う色 */
}

.contact-form input, .contact-form textarea {
    width: 90%;
    padding: 8px; /* 縦幅を少し短く調整 */
    margin-bottom: 10px;
    border: 1px solid #555; /* 暗めのボーダー色 */
    border-radius: 0px;
    background-color: #444; /* 暗めの入力背景色 */
    color: #fff; /* 入力文字色 */
    font-family: 'Noto Sans', sans-serif;
}

.contact-form button {
    padding: 8px 16px; /* 縦幅を少し短く調整 */
    background-color: #688631;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Noto Sans', sans-serif;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #194a62;
}

/* 参加登録フォームのリンクスタイル */
.registration-link {
    font-family: "Kaisei Tokumin", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.2em;
    color: rgb(0, 225, 255);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* 縁どり */
    background-color: transparent;
    padding: 10px 20px;
    text-align: center;
    transition: background-color 0.3s, box-shadow 0.3s; /* トランジションを追加 */
    display: flex; /* フレックスボックスを使用 */
    justify-content: center; /* 横方向の中央揃え */
    align-items: center; /* 縦方向の中央揃え */
    position: relative; /* 円を表示するために必要 */
}

.registration-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgb(74, 74, 74); /* 半透明な円 */
    border-radius: 10%;
    transition: width 0.3s, height 0.3s, top 0.3s, left 0.3s; /* トランジションを追加 */
    z-index: -1; /* テキストの背後に表示 */
    transform: translate(-50%, -50%);
}

.registration-link:hover::before {
    width: 80%;
    height: 80%;
    top: 50%;
    left: 50%;
}

/* 過去の発表会のリンクスタイル */
.past-events-list {
    list-style-type: none;
    padding: 0;
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.2em;
    color: white;
    text-align: left;
}

.past-events-list li {
    margin: 10px 0;
}

.past-events-list a {
    color: #2eb35a;
    text-decoration: none;
    font-size: 1.1em;
}

.past-events-list a:hover {
    text-decoration: underline;
}

/* フッターのスタイル */
.footer {
    background-color: black; /* 不透明な黒色 */
    padding: 20px;
    text-align: center;
    height: 30vh; /* ウィンドウの30%の縦幅 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-top: 2px solid white; /* 境目に白い線 */
    box-sizing: border-box;
}

/* 各プロジェクト */
.games-section {
    padding: 20px;
    border-bottom: none; /* 境目に白い線 */
}

.game {
    margin-bottom: 20px;
}

.game h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.textLeft{
    text-align: left;
}

.game-content {
    display: flex;
    align-items: center;
}

.game p {
    font-size: 1em;
    line-height: 1.5;
    margin-right: 20px;
}

.game img  {
    height: 20vh;
    width: auto;
}
.gameImage-WidthBase {
    width: 20vw;
    height: auto;
}

.concept-image {
    height: 30vh;
    width: auto;
    margin-top: 20px;
}

.video-container {
    margin-top: 20px;
}

.yt-container{
    display: inline-block;
}
.samnail-image{
    display: block;
    height: 30vh;
    width: auto;
}
.overlay-yt-image{
    position: absolute;
    height: 5vh;
    width: auto;
    top: 53%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
}