/* 背景色と全体スタイル */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #1e1e1e;
    color: #f2f2f2;
    margin: 0;
    padding: 0;
}

/* ヘッダー */
header {
    background-color: #1e1e1e;
    padding: 30px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 100%;
    /* 横幅を常に100%に */
}

header h1 {
    margin: 0;
    margin-bottom: 30px;
    font-size: 2.5rem;
    color: #ffffff;
    text-align: center;
}

/* ナビゲーション */
nav {
    margin: 0;
    padding: 0;
    background-color: #333333;
    width: 100%;
    /* 横幅を常に100%に */
    box-sizing: border-box;
    /* パディングやマージンを含めた計算を有効に */
}

.main-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: space-evenly;
    /* 均等配置 */
    align-items: center;
    width: 100%;
}

.main-menu>li {
    position: relative;
    flex-grow: 1;
    /* 項目を均等に伸ばす */
    text-align: center;
}

.main-menu a {
    text-decoration: none;
    color: #ffffff;
    padding: 10px 0;
    background-color: #444444;
    display: block;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    width: 100%;
    /* リンクを項目の横幅全体に広げる */
}

.main-menu a:hover {
    background-color: #ff4655;
}

/* ドロップダウンメニュー */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #444444;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    width: max-content;
    /* メニュー幅をコンテンツに合わせる */
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #ff4655;
}

/* ドロップダウンの表示切替 */
.dropdown:hover .dropdown-menu {
    display: block;
}





/* ゲーム情報セクション */
.game-info {
    padding: 20px;
    background-color: #2a2a2a;
    /* ダークグレーの背景 */
    border-radius: 10px;
    margin: 20px 0;

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* メインタイトルのスタイル */
.game-info h2 {
    font-size: 2.5em;
    color: #ff4655;
    /* VALORANTのロゴカラー（赤） */
    text-align: center;
    margin-bottom: 20px;
}

/* セクションタイトル */
.game-info h3,
.game-info h4 {
    font-size: 2em;
    color: #ff4655;
    /* セクションタイトルも赤で強調 */
    margin-top: 40px;
    margin-bottom: 10px;
}

.game-info a {
    color: #f2f2f2;
    text-decoration: none;
}

.game-info a:hover {
    text-decoration: underline;
    color: #ff4655;
}

.highlight-text {
    font-size: 1.2em;
}

a h4 {
    text-decoration: none;
    /* 下線を削除 */
    color: inherit;
    /* 親要素の文字色を継承 */
}


/* リンクから下線を消す */
.link-no-underline {
    text-decoration: none;
    /* 下線を消す */
    color: inherit;
    /* 親の文字色を継承 */
}

/*.link-no-underline:hover {
    color: #ff4655;
    /* ホバー時に赤色に変更 */
/*text-decoration: none;
    /* ホバー時も下線を消す */
/*}*/

/* リンク全体のスタイル */
.link-interactive {
    display: inline-flex;
    /* アイコンとテキストを横並びに */
    align-items: center;
    text-decoration: none;
    /* 下線を消す */
    color: inherit;
    /* 親の文字色を継承 */
    padding: 5px 10px;
    border-radius: 5px;
    /* 丸みを追加 */
    transition: background-color 0.3s ease, transform 0.2s ease;
    /* 背景と拡大のアニメーション */
}

/* ホバー時のスタイル */
/*.link-interactive:hover {
    background-color: #ff4655;
    /* 背景を赤に */
/*color: #ffffff;
    /* テキストを白く */
/*transform: scale(1.05);
    /* 少し拡大 */
/*cursor: pointer;
    /* カーソルをポインターに変更 */
/*}*/

/* アイコンのスタイル */
.link-icon {
    margin-left: 8px;
    /* テキストとの間隔 */
    font-size: 1.2em;
    /* アイコンを少し大きく */
    transition: transform 0.3s ease;
    /* アニメーションを追加 */
}

/* ホバー時にアイコンが動く */
.link-interactive:hover .link-icon {
    transform: translateX(5px);
    /* 矢印が右に移動 */
}

/* 四角い背景付きリンクボックス */
.link-box {
    display: flex;
    /* 中央揃え用 */
    justify-content: center;
    align-items: center;
    text-decoration: none;
    /* 下線を消す */
    background-color: #535353;
    /* 背景色 */
    color: #ffffff;
    /* テキスト色 */
    width: 400px;
    /* ボックスの幅 */
    height: 80px;
    /* ボックスの高さ */
    border-radius: 10px;
    /* 角を丸く */
    margin: 10px auto;
    /* 上下に余白を追加し中央配置 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    /* ボックスに影を追加 */
    transition: background-color 0.3s ease, transform 0.2s ease;
    /* ホバー時のアニメーション */
}

/* ホバー時のスタイル */
.link-box:hover {
    background-color: #ff4655;
    /* 背景を赤に変更 */
    color: #000000;
    /* テキストは白に */
    transform: scale(1.05);
    /* 少し拡大 */
    cursor: pointer;
    /* カーソルをポインターに */
}

/* h4 のスタイル (リンク内のテキスト) */
.link-box h4 {
    font-size: 1.4em;
    /* テキストサイズ */
    margin: 0;
    /* 余白を削除 */
    color: #000000;
    /* テキストは黒に */
}




/* ゲームモードのリスト */
.game-info ul {
    list-style-type: none;
    padding: 0;
}

/* 各ゲームモードのスタイル */
.game-mode {
    background-color: #333;
    /* ダークな背景 */
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* ゲームモードのタイトル */
.game-mode h4 {
    font-size: 2em;
    color: #f2f2f2;
    /* 明るい文字色 */
    margin-top: -10px;
    margin-bottom: 10px;
}

.win-mode li strong {
    font-size: 1.3em;
}

.win-mode li {
    font-size: 1.5em;
}

.money-mode h3 {
    margin-top: 50px;
}

.money-mode li strong {
    font-size: 1.3em;
}

/* 強調したい文字（強調部分） */
.game-info strong {
    color: #ff4655;
    font-size: 0.8em;
    /* 赤色で強調 */
}

/* リストアイテムのデザイン */
.game-info ul li {
    margin-bottom: 10px;
    font-size: 1.3em;
}

/* 重要な情報やセクションを目立たせる */
.game-info p {
    font-size: 1.5em;
    color: #dcdcdc;
    /* 少し明るいグレーで視認性を高める */
}

/* ゲームモードの説明部分に枠線をつけて強調 */
.game-mode p {
    color: #ccc;
    font-size: 1.3em;
    margin: 5px 0;
}

/* 対戦時間や勝利条件のラベル */
.game-mode p strong {
    font-weight: bold;
    font-size: 1em;
}


/* 画像を中央揃えにするコンテナ */
.image-container {
    display: flex;
    /* フレックスボックスを使用 */
    justify-content: center;
    /* 横方向で中央揃え */
    align-items: center;
    /* 縦方向で中央揃え */
    height: 50vh;
    /* ビューポート全体の高さ */
    margin: 0;
    /* 余白をなくす */
    /*background-color: #f9f9f9;*/
    /* 背景色（任意） */
}

.image-container img {
    width: 525px;
    height: auto;
    margin-top: 140px;
    margin-bottom: 80px;
}

/* テーブル全体のスタイル */
table {
    width: 80%;
    /* 表の幅 */
    border-collapse: collapse;
    /* 枠線を一つにまとめる */
    margin: 20px auto;
    /* 表を中央に配置 */
}

/* テーブルヘッダーとデータセルのスタイル */
th,
td {
    border: 1px solid #ccc;
    /* セルの枠線 */
    padding: 10px;
    /* セル内の余白 */
    text-align: center;
    /* 水平方向の中央揃え */
    vertical-align: middle;
    /* 垂直方向の中央揃え */
    font-size: 1.5em;
}

/* テーブルヘッダー部分のスタイル */
th {
    font-weight: bold;
    font-size: 1.5em;
    /* 太字 */
}

.gun-mode strong {
    font-size: 1.2em;
}

.gun-mode li {
    font-size: 1.7em;
}

.gun-mode p {
    margin-top: 60px;
    margin-bottom: 20px;
}

.gun-mode h3 {
    margin-top: 30px;
    margin-bottom: 40px;
}

.gunimage-container {
    margin: 0;
    margin-bottom: 100px;
}

.key tr th {
    color: #ff4655;
}


/* クリック可能な画像 */
.clickable-image {
    width: 300px;
    /* 通常時のサイズ */
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* モーダル（拡大画像の背景） */
.modal {
    display: none;
    /* 初期状態では非表示 */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* モーダルのコンテンツ */
.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    background: white;
    padding: 20px;
    text-align: center;
}

/* モーダル内の画像 */
.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
}

/* 閉じるボタン */
.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    background: black;
    padding: 5px 10px;
    border-radius: 5px;
}
