/* 全体のリセットと基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: black;
    line-height: 1.6;
}


/* ヘッダー部分のスタイル */
.header {
    background-color: #2196F3; /* 濃い青 */
    color: white;
    padding: 20px;
    text-align: center;
    border-bottom: 5px solid #1976D2; /* ダークブルー */
}

.header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.2rem;
}

/* ナビゲーションバーのスタイル */
.nav {
    background-color: #1976D2; /* ダークブルー */
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.nav a {
    margin: 0 15px;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav a:hover {
    background-color: #42A5F5; /* 明るい青 */
}
.download-table {
    width: 100%;
    border-collapse: collapse;
}

.download-table th, .download-table td {
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2); /* 必要に応じて調整 */
    text-align: center;
}

.download-table th {
    background-color: rgba(0, 0, 0, 0.6);
}

.download-table td {
    background-color: rgba(0, 0, 0, 0.8);
}


/* テーブルのヘッダーの文字色を変更 */
.download-table th {
    color: white;
    background-color: rgba(0, 0, 0, 0.8); /* 半透明の黒背景 */
    padding: 10px;
}

/* テーブルのデータの文字色を変更 */
.download-table td {
    color: white;
    background-color: rgba(0, 0, 0, 0.7); /* 半透明の黒背景 */
    padding: 10px;
}

/* メインコンテンツ部分のスタイル */
.main-content {
    padding: 20px;
    width: 100%;
}

h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}


/* ダウンロードボタンのスタイル */
.download-btn {
    display: inline-block;
    padding: 0px 16px;
    background-color: #1976D2; /* より明るいブルー */
    color: white;
    text-decoration: none;
    font-weight: bold;
    /* border-radius: 8px; */
    transition: background-color 0.3s ease, transform 0.2s;
    border: none;
    cursor: pointer;
}

.download-btn:hover {
    background-color: #1565C0; /* ホバー時の色 */
    transform: scale(1.05);
}

/* プレビューボタンのスタイル */
.view-btn {
    display: inline-block;
    padding: 0px 16px;
    background-color: #43A047;
    color: white;
    text-decoration: none;
    font-weight: bold;
    /* border-radius: 8px; */
    transition: background-color 0.3s ease, transform 0.2s;
    border: none;
    cursor: pointer;
}

.view-btn:hover {
    background-color: #388E3C; /* ホバー時の色 */
    transform: scale(1.05);
}


.download-btn:hover {
    background-color: #2584d2; /* 明るいブルー */
}

/* フッター部分のスタイル */
.footer {
    background-color: #1976D2; /* ダークブルー */
    color: white;
    text-align: center;
    padding: 15px;
    position: fixed;
    width: 100%;
    bottom: 0;
    font-size: 0.9rem;
}

.footer-logo {
    position: absolute;
    bottom: 30px;
    right: 10px;
    width: 120px;  /* 表示サイズを小さく調整 */
    height: 120px;
    object-fit: contain;  /* アスペクト比を維持 */

    pointer-events: none; /* 右クリック無効 */
    -webkit-user-drag: none; /* ドラッグ無効 (Safari, Chrome) */
    -khtml-user-drag: none;  /* ドラッグ無効 (古いブラウザ) */
    -moz-user-drag: none;    /* ドラッグ無効 (Firefox) */
    -o-user-drag: none;      /* ドラッグ無効 (Opera) */
}
.footer p {
    margin: 0;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
    }

    .nav a {
        margin: 5px 0;
    }

    .header h1 {
        font-size: 2rem;
    }

    .header p {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.8rem;
    }
}
.modal {
    display: none;
    justify-content: center; /* 水平中央揃え */
    align-items: center;     /* 垂直中央揃え */
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* 背景の暗いオーバーレイ */
}

.modal-content {
    position: relative;
    width: 80%; /* 幅を80%に拡大 */
    height: 80%; /* 高さを80%に拡大 */
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}


.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

#error-log {
    color: red;
    margin-top: 10px;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* プライバシーポリシー用スタイル */
.policy-content {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 20px;
    background-color: white;
    border-radius: 5px;
    margin-bottom: 60px; /* フッターの高さより大きめに設定 */
}
.policy-content h2 {
    margin-top: 30px;
    font-size: 1.5em;
}

.policy-content p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.policy-content ul {
    list-style-type: disc;
    margin-left: 40px;
    margin-bottom: 20px;
}


#cookie-consent-banner {
    position: fixed;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    z-index: 9999;
}

#cookie-consent-banner {
    bottom: 60px; /* フッターの高さ分だけ上に配置 */
}

/* フッターのz-indexを調整 */
.footer {
    z-index: 1000; /* クッキー同意バナーより前面に配置 */
}

#cookie-consent-banner p {
    display: inline-block;
    margin: 0;
    padding-right: 10px;
    font-size: 0.9em;
}

#cookie-consent-banner a {
    color: #4CAF50;
    text-decoration: underline;
}

#cookie-consent-banner button {
    padding: 8px 15px;
    background-color: #4CAF50;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 5px;
}

#cookie-consent-banner button:hover {
    background-color: #45a049;
}

html {
    scroll-behavior: smooth;
}




/* オーバーレイの追加 */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* 半透明の黒いオーバーレイ */
    z-index: 0; /* 背景の背面に表示 */
    pointer-events: none; /* クリック操作を無効化 */
}

/* ヘッダー部分の文字色変更 */
.header h1, .header p {
    color: white; /* 白い文字色 */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* 文字にシャドウ効果 */
}

/* メインコンテンツ部分の文字色変更 */
.main-content h2 {
    color: white; /* 白い文字色 */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* 文字にシャドウ効果 */
}


/* ボタンのスタイル調整 */
.download-btn {
    background-color: #2196F3;
    color: white;
}

.download-btn:hover {
    background-color: #1565C0;
}
.category-links {
    text-align: left;
    margin: 20px 0;
}

.category-btn {
    padding: 12px 24px;
    margin: 5px;
    background: linear-gradient(45deg, #6a5acd, #00bfff); /* グラデーションカラー */
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 25px; /* 丸みを帯びた角 */
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* ボックスシャドウ */
    transition: all 0.3s ease; /* スムーズなアニメーション */
}

.category-btn:hover {
    background: linear-gradient(45deg, #00bfff, #6a5acd); /* ホバーカラーの変更 */
    transform: translateY(-5px); /* ボタンの浮き上がり効果 */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); /* ホバー時の影 */
}

.category-btn:active {
    transform: translateY(0); /* クリック時に元の位置に戻る */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* 影も元に戻す */
}


/* 見えないスペースのスタイル */
.invisible-space {
    background-color: transparent !important; /* 背景を透明に */
    color: transparent !important;            /* 文字を透明に */
    border: none !important;                  /* 枠線を非表示 */
}

/* トグルスイッチ全体 */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ラベルのスタイル */
.lang-label {
    font-size: 16px;
    font-weight: bold;
}

/* チェックボックスを非表示にする */
.toggle-checkbox {
    display: none;
}

/* トグルの外観 */
.toggle-label {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    background-color: #4CAF50;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* トグルの丸いスイッチ部分 */
.toggle-label::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

/* チェック時のスタイル */
.toggle-checkbox:checked + .toggle-label {
    background-color: #4CAF50;
}

.toggle-checkbox:checked + .toggle-label::after {
    transform: translateX(30px);
}


/* 既存のCSSはそのまま維持 */

/* --- 追加するCSSコード --- */

/* 画面幅が768px以下の場合のスタイル */
@media screen and (max-width: 768px) {
    /* テーブルヘッダーを非表示にします */
    .download-table thead {
        display: none;
    }

    /* テーブル行をブロック要素として表示 */
    .download-table tr {
        display: block;
        margin-bottom: 15px;
    }

    /* テーブルセルをブロック要素として表示 */
    /* .download-table td {
        display: block;
        width: 100%;
        text-align: left;
        padding: 10px;
        box-sizing: border-box;
    } */

    /* invisible-spaceクラスのセルを非表示にする */
    .invisible-space {
        display: none;
    }
}


/* ラベルを追加する場合（英語版） */
@media screen and (max-width: 768px) {
    .download-table td:nth-child(1):before { content: "Title: "; font-weight: bold; }
    .download-table td:nth-child(2):before { content: "Category: "; font-weight: bold; }
    .download-table td:nth-child(3):before { content: "Description: "; font-weight: bold; }
    .download-table td:nth-child(4):before { content: "Download: "; font-weight: bold; }
    .download-table td:nth-child(5):before { content: "Preview: "; font-weight: bold; }
    /* invisible-space を考慮して、次のセルの番号を調整 */
    .download-table td:nth-child(7):before { content: "Title: "; font-weight: bold; }
    /* 以下同様に */
}


/* --- 追加するモバイル用CSSコード --- */

@media screen and (max-width: 768px) {
    /* ナビゲーションバーを縦並びに変更 */
    .nav {
        flex-direction: column;
    }

    .nav a {
        margin: 5px 0;
    }

    /* ヘッダーのフォントサイズを調整 */
    .header h1 {
        font-size: 2rem;
    }

    .header p {
        font-size: 1rem;
    }

    /* 見出しのフォントサイズを調整 */
    h2 {
        font-size: 1.8rem;
    }

    /* テーブルをモバイルフレンドリーに */
    .download-table thead {
        display: none;
    }

    .download-table tr {
        display: block;
        margin-bottom: 15px;
    }

    .download-table td {
        display: block;
        width: 100%;
        text-align: left;
        padding: 10px;
        box-sizing: border-box;
    }

    /* invisible-spaceクラスのセルを非表示にする */
    .invisible-space {
        display: none;
    }

    /* セル内のボタンの幅を調整 */
    .download-table td .download-btn,
    .download-table td .view-btn {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    /* ラベルを日本語で追加 */
    .download-table td:nth-child(1):before { content: "タイトル："; font-weight: bold; }
    .download-table td:nth-child(2):before { content: "カテゴリー："; font-weight: bold; }
    .download-table td:nth-child(3):before { content: "説明："; font-weight: bold; }
    .download-table td:nth-child(4):before { content: "ダウンロード："; font-weight: bold; }
    .download-table td:nth-child(5):before { content: "プレビュー："; font-weight: bold; }
    /* invisible-space を考慮して、次のセルの番号を調整 */

    /* フッターの位置を調整 */
    .footer {
        position: static;
        margin-top: 20px;
    }

    /* その他の要素のスタイル調整（必要に応じて追加） */
    .category-links {
        text-align: center;
    }

}
/* モバイルデバイスでのスタイル調整 */
@media screen and (max-width: 768px) {
    /* オーバースクロール時の背景色を青に設定 */
    body {
        background-color: #1976D2;
    }
}


.download-table td {
    padding: 2px;
}

.download-table {
    width: 50%;
}

.download-table {
    margin: 0 auto; /* テーブルを中央寄せ */
}

.main-content {
    display: flex;
    justify-content: center; /* 水平方向の中央揃え */
    align-items: center; /* 垂直方向の中央揃え（必要に応じて） */
    flex-direction: column; /* 縦方向に配置 */
}

.download-btn,
.view-btn {
    flex-shrink: 0; /* ボタンの幅が縮まないようにする */
    white-space: nowrap; /* ボタンのテキストを改行させない */
}

/* ヘッダー全体のスタイル */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #2196F3;
    padding: 30px 20px;
    border-bottom: 5px solid #1976D2;
    position: relative; /* 子要素の絶対配置に対応 */
}

/* サイトロゴのスタイル */
.site-logo {
    position: absolute;
    width: 150px; /* ロゴの固定サイズ */
    height: 150px;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

/* 言語切り替えトグルのスタイル */
.lang-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
}

.lang-label {
    font-size: 16px;
    font-weight: bold;
    margin: 0 5px;
}

.toggle-checkbox {
    display: none;
}

.toggle-label {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    background-color: #4CAF50;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.toggle-label::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.toggle-checkbox:checked + .toggle-label {
    background-color: #4CAF50;
}

.toggle-checkbox:checked + .toggle-label::after {
    transform: translateX(30px);
}

/* 検索バー全体のスタイル */
.search-bar {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    background-color: #2196F3; /* ヘッダーと同じ背景色 */
    border-radius: 25px;
    border: 2px solid white; /* 白色のアウトライン */
    padding: 5px;
}

/* 検索アイコンのスタイル */
.search-bar::before {
    content: "\1F50D"; /* 検索アイコン (🔍) */
    font-size: 20px;
    margin-left: 10px;
    color: white; /* アイコンの色を白に */
}

/* 検索入力フィールド */
.search-input {
    flex: 1;
    padding: 10px;
    font-size: 16px;
    border: none;
    outline: none;
    background-color: transparent; /* 背景を透明に */
    color: white; /* テキストの色を白に */
}

/* 検索バーのEnterキーで送信 */
.search-bar form {
    width: 100%;
}

.search-bar form input {
    width: 1000px;
    border: none;
}
/* プレースホルダーの色を白に変更 */
.search-input::placeholder {
    color: rgba(255, 255, 255, 0.8); /* 白色 (半透明) */
}

/* テーブルの下にスペースを追加 */
.main-content {
    padding-bottom: 120px; /* フッターの高さ分の余白を追加 */
}



body {
    background-image: url('../images/background101.webp');
    background-repeat: no-repeat;
    background-size: 100% 100%; /* 横いっぱいに調整 */
    background-color: white; /* 優しい背景色 */
    background-attachment: fixed;
}

  .ad-container, .ad-container2 {
    position: fixed;          /* 底に固定 */
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    padding: 0;
    width: auto;
    background: none;
    box-shadow: none;
}

.ad-container2 {
    display: none; /* デスクトップでは非表示 */
}

  .left-ad-container, .right-ad-container {
    position: absolute;     /* スクロールに追従しない */
    top: 30%;               /* 縦位置の設定 */
    width: 200px;           /* スクエア広告の幅 */
    height: 400px;          /* スクエア広告の高さ */
    z-index: 0;             /* 最前面に表示 */
}
  /* モバイル用のスタイル */
@media (max-width: 768px) {
    .ad-container ,.left-ad-container, .right-ad-container {
      display: none;
    }
  /* モバイル用のスタイル */
  .ad-container2 {
    display: flex; /* モバイルでのみ表示 */
    width: 320px; /* モバイル用の幅 */
    height: 50px; /* モバイル広告の高さ */
}
  }
  .left-ad-container {
    left: 20px;                  /* 左端に配置 */
  }
  
  .right-ad-container {
    right: 20px;                 /* 右端に配置 */
  }
  /* モバイル用のスタイル */
  @media (max-width: 768px) {
   
    body::before {
        content: "";
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        z-index: -1;
        width: 100%;
        height: 100vh;
        background-image: url('../images/background102.webp'); /* モバイル用背景画像 */
        background-repeat: no-repeat;
        background-position: 50% 100%; /* 中央下に配置 */
        background-size: cover; /* 全体にフィット */
    }
 /* サイトロゴの位置を左に寄せる */
 .site-logo {
    position: relative;
    left: -10px; /* 左に余分に移動 */
}

/* トグルスイッチを右上に配置 */
.lang-toggle {
    top: 10px; /* ヘッダー上部に配置 */
    right: 10px; /* 右端に寄せる */
}

/* トグルスイッチのサイズを縮小 */
.toggle-label {
    width: 40px; /* 幅を半分に縮小 */
    height: 20px; /* 高さも半分に */
}

.toggle-label::after {
    width: 16px; /* スイッチ部分も縮小 */
    height: 16px;
    top: 2px; /* 位置を微調整 */
    left: 2px;
}

.toggle-checkbox:checked + .toggle-label::after {
    transform: translateX(20px); /* スイッチの移動距離を調整 */
}

}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}
.header-right-group {
    position: absolute;
    top: 60px; /* ← ここを20px→60pxに変更 */
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}
/* ボタン風のリンク */
.nav-btn {
    top: 60px; /* ← ここを20px→60pxに変更 */
    background-color: white;
    color: #1976D2;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.nav-btn:hover {
    background-color: #e3f2fd;
    transform: translateY(-2px);
}

/* FighterVFX < SwordAnimations の中の「＜」記号の見た目 */
.nav-separator {
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.asset-badge {
    display: inline-block;
    background-color: #FF9800;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
}

.header {
  background-color: #2196F3;
  padding: 30px 20px 10px;
  border-bottom: 5px solid #1976D2;
  position: relative;
}

/* 上段：ロゴ＋検索＋言語トグル */
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* 下段：FighterVFX / SwordAnimations の宣伝 */
.header-asset-links {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  padding-right: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ヘッダー全体 */
.header {
    background-color: #2196F3;
    border-bottom: 5px solid #1976D2;
    padding: 20px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
  }
  
  /* 上段：ロゴ・検索・言語切替を縦積み＆中央寄せ */
  .header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  
  /* アセットリンク群：右寄せ */
  .header-asset-links {
    display: flex;
    justify-content: flex-end;
    padding-right: 20px;
  }
  
  .nav-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  /* 検索バーは中央寄せ */
  .search-bar {
    margin: 0 auto;
    width: 100%;
  }
  
  /* 言語トグル：右上固定 */
  .lang-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
  }
  
  /* サイトロゴ：左上固定 */
  .site-logo {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 120px;
    height: 120px;
  }

  