@import url('https://fonts.googleapis.com/css2?family=Anton&family=Noto+Sans+JP:wght@400;700;900&display=swap');

:root {
    --valorant-red: #FA4454;
    --valorant-dark: #101823;
    --valorant-offwhite: #ECE8E1;
    --valorant-grey: #7E7E7E;
    --valorant-border: #2a3a52;
    --valorant-bg-card: #182433;
    --discord-blurple: #5865F2; /* Discordブランドカラーを追加 */
    
    --valorant-red-rgb: 250 68 84;
    --valorant-dark-rgb: 16 24 35;
    --valorant-offwhite-rgb: 236 232 225;
    --valorant-grey-rgb: 126 126 126;
    --valorant-border-rgb: 42 58 82;
    --valorant-bg-card-rgb: 24 36 51;
}

/* --- ▼▼▼ ここから追加 ▼▼▼ --- */
/* Navigation Bar */
.main-nav {
    background-color: rgba(16, 24, 35, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--valorant-border);
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.nav-logo {
    font-family: 'Anton', sans-serif;
    font-size: 1.5em;
    color: var(--valorant-red);
    text-decoration: none;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 10px; /* ボタン間の隙間を少し調整 */
    flex-grow: 1; /* リンクを左に寄せる */
}

.nav-links-desktop {
    display: flex;
    align-items: center; /* ボタンの縦位置を中央に揃える */
    gap: 20px;
    margin-right: auto; /* この行を追加して、後続の要素を右に押し出す */
}

.nav-link {
    color: var(--valorant-offwhite);
    background-color: transparent;
    /* border プロパティを削除 */
    padding: 8px 5px; /* 上下のパディングを維持し、左右を調整 */
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
    position: relative; /* ::after擬似要素の基準点とする */
    transition: color 0.2s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--valorant-red);
    transform: scaleX(0);
    transform-origin: left; /* 左から右に伸びるアニメーション */
    transition: transform 0.3s ease-in-out;
}

.nav-link:hover {
    color: var(--valorant-offwhite); /* ホバー時の色変更は任意 */
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-search {
    position: relative;
    width: 100%;
    max-width: 250px; /* 少し幅を調整 */
}

.nav-search-desktop, .mobile-nav-search {
    position: relative;
    width: 100%;
    max-width: 250px;
}

/* モバイル用の検索窓は最大幅をリセット */
.mobile-nav-search {
    max-width: none;
}

/* --- ▼▼▼ ここから修正 ▼▼▼ --- */
#player-search-input, #mobile-player-search-input, #home-player-search-input {
    width: 100%;
    background-color: var(--valorant-dark);
    border: 1px solid var(--valorant-border);
    color: var(--valorant-offwhite);
    padding: 8px 12px;
    font-family: 'Noto Sans JP', sans-serif;
    box-sizing: border-box;
    transition: all 0.2s;
    padding-left: 35px; /* アイコン用のスペースを確保 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%237E7E7E' class='bi bi-search' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
}

#player-search-input:focus, #mobile-player-search-input:focus, #home-player-search-input:focus {
    outline: none;
    border-color: var(--valorant-red);
}

#search-suggestions, #mobile-search-suggestions, #home-search-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    background-color: var(--valorant-bg-card);
    border: 1px solid var(--valorant-border);
    border-top: none;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1501;
}
/* --- ▲▲▲ ここまで修正 ▲▲▲ --- */

.suggestion-item {
    padding: 10px 12px;
    cursor: pointer;
    color: var(--valorant-offwhite);
    border-bottom: 1px solid var(--valorant-border);
}
.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover, .suggestion-item.active {
    background-color: var(--valorant-red);
}
/* --- ▲▲▲ ここまで追加 ▲▲▲ --- */

/* --- Home Page --- */
.home-main {
    display: flex;
    justify-content: center;
    align-items: center;
    /* --- ▼▼▼ ここから修正 ▼▼▼ --- */
    text-align: center;
    padding: 10vh 20px; /* 上下の余白を画面の高さに応じて調整 */
    box-sizing: border-box;
    /* --- ▲▲▲ ここまで修正 ▲▲▲ --- */
}

.hero-section {
    background-color: rgba(16, 24, 35, 0.85); /* 背景を少し濃くして視認性向上 */
    backdrop-filter: blur(10px);
    padding: 40px;
    border: 1px solid var(--valorant-border);
    max-width: 700px;
    width: 100%;
    box-sizing: border-box;
}

.hero-title {
    font-family: 'Anton', sans-serif;
    font-size: 4.5em;
    color: var(--valorant-red);
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.hero-description {
    font-size: 1.1em;
    color: var(--valorant-offwhite);
    margin: 0 0 30px 0;
    line-height: 1.6;
}

/* --- ▼▼▼ ここから追加 ▼▼▼ --- */
.accordion {
    margin-bottom: 30px;
    border-top: 1px solid var(--valorant-border);
    border-bottom: 1px solid var(--valorant-border);
}

.accordion-header {
    background: none;
    border: none;
    color: var(--valorant-offwhite);
    cursor: pointer;
    padding: 15px 10px;
    width: 100%;
    text-align: left;
    font-size: 1em;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.accordion-header:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.accordion-header::after {
    content: '+';
    font-family: 'Anton', sans-serif;
    font-size: 1.5em;
    color: var(--valorant-red);
    transition: transform 0.3s ease-out;
    font-weight: normal;
}

.accordion-header.active::after {
    content: '−'; /* 全角マイナス */
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: rgba(16, 24, 35, 0.5);
}

.accordion-text {
    padding: 20px;
    margin: 0;
    font-size: 0.95em;
    line-height: 1.7;
    color: var(--valorant-grey);
    text-align: left;
}
/* --- ▲▲▲ ここまで追加 ▲▲▲ --- */

.hero-actions {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.hero-button, .discord-button {
    width: 100%;
    max-width: 320px;
    box-sizing: border-box;
}

.hero-button {
    background-color: var(--valorant-red);
    color: var(--valorant-offwhite);
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.2s, transform 0.2s;
    display: inline-block;
    border: none;
}

.discord-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--discord-blurple);
    color: var(--valorant-offwhite);
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Noto Sans JP', sans-serif;
    transition: background-color 0.2s, transform 0.2s;
    border: none;
}

.discord-button:hover {
    background-color: #4752c4; /* 少し暗い色 */
    transform: translateY(-2px);
}

/* --- ▼▼▼ ここから修正 ▼▼▼ --- */
.discord-button img {
    width: 24px;
    height: 24px;
}
/* --- ▲▲▲ ここまで修正 ▲▲▲ --- */

.nav-button-discord {
    padding: 8px 15px;
    font-size: 0.9em;
}

.nav-button-discord:hover {
    transform: none;
}

.hero-button:hover {
    background-color: #ff5f6d; /* 少し明るい赤 */
    transform: translateY(-2px);
}

.hero-search {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

#home-player-search-input {
    width: 100%;
    background-color: var(--valorant-dark);
    border: 1px solid var(--valorant-border);
    color: var(--valorant-offwhite);
    /* --- ▼▼▼ ここから修正 ▼▼▼ --- */
    padding: 15px 20px 15px 40px; /* 左のパディングをアイコン分だけ増やす */
    /* --- ▲▲▲ ここまで修正 ▲▲▲ --- */
    font-size: 1.1em;
    font-family: 'Noto Sans JP', sans-serif;
    box-sizing: border-box;
    transition: all 0.2s;
}

#home-player-search-input:focus {
    outline: none;
    border-color: var(--valorant-red);
}

#home-search-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    background-color: var(--valorant-bg-card);
    border: 1px solid var(--valorant-border);
    border-top: none;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1501;
    text-align: left;
}
/* --- ▲▲▲ ここまで追加 ▲▲▲ --- */

/* --- ▼▼▼ ここから追加 ▼▼▼ --- */
/* --- Home Page Footer Fix --- */
@media (min-width: 769px) {
    /* --- ▼▼▼ ここから全面的に修正 ▼▼▼ --- */
    /* Flexboxによるフッター固定はトップページでは不要なため削除 */
    body.home-page footer {
        width: 100%;
        max-width: 1000px;
        margin: 0 auto 20px auto; /* 上マージンを0に、下マージンを設定 */
        padding-bottom: 20px;
        border-top: none;
    }
    /* --- ▲▲▲ ここまで全面的に修正 ▲▲▲ --- */
}
/* --- ▲▲▲ ここまで追加 ▲▲▲ --- */

body {
    background-color: var(--valorant-dark);
    color: var(--valorant-offwhite);
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    
    /* --- ▼▼▼ ここから修正 ▼▼▼ --- */
    /* PC用の背景はJSで動的に設定。ここでは基本スタイルのみ定義 */
    background-color: black;
    background-size: cover;
    background-position: center top; /* ポートレート画像のため上部を基準に */
    background-repeat: no-repeat;
    background-attachment: fixed; /* スクロールしても背景が動かないように固定 */
    /* --- ▲▲▲ ここまで修正 ▲▲▲ --- */

    min-width: 320px;
}

body .player-page {
    /* プレイヤーページ専用のスタイル */
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px; /* コンテナのパディングを少し調整 */
}

.title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.player-header .title-container {
    margin-bottom: 15px;
}

header h1, .player-header h1 {
    font-family: 'Anton', sans-serif;
    color: var(--valorant-offwhite);
    font-size: 3.5em;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0 25px;
    margin: 0;
    white-space: nowrap;
}

.title-decoration {
    height: 2px;
    background: var(--valorant-red);
    flex-grow: 1;
    position: relative;
    opacity: 0.7;
}

.title-decoration::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 10px;
    height: 10px;
    background-color: var(--valorant-red);
    transform: translateY(-50%) rotate(45deg);
    box-shadow: 0 0 5px var(--valorant-red);
}

.title-decoration.left::after {
    right: -5px;
}

.title-decoration.right::after {
    left: -5px;
}


/* --- Leaderboard Page --- */
.table-container {
    background-color: rgba(24, 36, 51, 0.8);
    border: 1px solid var(--valorant-border);
    backdrop-filter: blur(5px);
    overflow-x: auto; /* テーブルがはみ出た場合に横スクロールを許可 */
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* テーブル自体の最小幅を設定 */
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--valorant-border);
    white-space: nowrap; /* テーブルのセル内で改行させない */
}

thead {
    
}

th {
    font-family: 'Anton', sans-serif;
    color: var(--valorant-grey);
    font-size: 1.2em;
    letter-spacing: 1px;
    text-transform: uppercase;
}

tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

td.rank-cell {
    font-family: 'Anton', sans-serif;
    font-size: 1.5em;
    color: var(--valorant-red);
    text-align: center;
    width: 10%;
}

td.player-cell a {
    color: var(--valorant-offwhite);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease-in-out;
}

td.player-cell a:hover {
    color: var(--valorant-red);
}

/* --- Player Page --- */
.player-header {
    text-align: center;
    margin-bottom: 40px;
}

/* --- ▼▼▼ ここから追加 ▼▼▼ --- */
.header-sub-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.last-updated {
    font-size: 0.8em;
    color: var(--valorant-grey);
    margin: 0;
}
/* --- ▲▲▲ ここまで追加 ▲▲▲ --- */

.back-link {
    color: var(--valorant-grey);
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    /* --- ▼▼▼ ここから修正 ▼▼▼ --- */
    border: 1px solid var(--valorant-grey);
    padding: 5px 10px;
    transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out; /* border-colorのtransitionを追加 */
    /* --- ▲▲▲ ここまで修正 ▲▲▲ --- */
}

.back-link:hover {
    color: var(--valorant-offwhite);
    border-color: var(--valorant-offwhite);
}

.category-title {
    font-family: 'Anton', sans-serif;
    color: var(--valorant-red);
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--valorant-red);
    padding-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.stat-card {
    background-color: var(--valorant-bg-card);
    border: 1px solid var(--valorant-border);
    padding: 15px;
    text-align: center;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    position: relative; /* 順位表示のために追加 */
    overflow: hidden; /* 順位表示のために追加 */
}

.stat-card .stat-rank {
    position: absolute;
    top: 5px;
    right: 8px;
    font-size: 0.7em;
    font-weight: bold;
    color: var(--valorant-grey);
    background-color: rgba(16, 24, 35, 0.7);
    padding: 2px 5px;
    border-radius: 3px;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(250, 68, 84, 0.3);
}

/* --- ▼▼▼ ここから修正 ▼▼▼ --- */
.stat-card h3 {
    font-family: 'Anton', sans-serif;
    color: var(--valorant-grey);
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1em;
    font-weight: normal;
    text-transform: uppercase;
    min-height: 2.2em; /* 2行分の高さを確保 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card p {
    font-size: 1.8em;
    font-weight: bold;
    margin: 0;
    color: var(--valorant-offwhite);
    line-height: 1.2; /* pタグの行の高さを調整 */
}

.stat-card .subtext {
    font-size: 0.8em;
    color: var(--valorant-grey);
    margin-top: 5px; /* pタグとの間に少しマージンを追加 */
    display: block; /* 中央揃えを確実にするため */
}
/* --- ▲▲▲ ここまで修正 ▲▲▲ --- */

/* --- ▼▼▼ ここから全面的に修正 ▼▼▼ --- */
/* Agent & Recent Matches (side-by-side grid) */
.side-by-side-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    align-items: flex-start;
}

/* Agent Stats List */
.agent-stats-list {
    background-color: var(--valorant-bg-card);
    border: 1px solid var(--valorant-border);
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.agent-stat-item {
    padding: 15px;
    background-color: rgba(16, 24, 35, 0.5);
    border: 1px solid var(--valorant-border);
    border-left: 4px solid var(--valorant-border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.agent-stat-item:hover {
    /* --- ▼▼▼ ここから修正 ▼▼▼ --- */
    transform: translateY(-3px);
    box-shadow: 0 0 10px rgba(250, 68, 84, 0.2);
    /* --- ▲▲▲ ここまで修正 ▲▲▲ --- */
}

.agent-stat-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.agent-stat-icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
}

.agent-stat-info {
    display: flex;
    flex-direction: column;
}

.agent-name {
    font-weight: bold;
}

.agent-games {
    font-size: 0.8em;
    color: var(--valorant-grey);
}

.agent-stat-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 0.9em;
    color: var(--valorant-grey);
}

/* Map Stats */
.map-stats-container {
    /* No specific styles needed here, it's just a grid container */
}

.map-stats-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    background-color: var(--valorant-bg-card);
    border: 1px solid var(--valorant-border);
    padding: 15px;
    /* --- ▼▼▼ ここから削除 ▼▼▼ --- */
    /* transition: height 0.3s ease-in-out; */ /* 高さ調整のアニメーションを削除 */
    /* --- ▲▲▲ ここまで削除 ▲▲▲ --- */
}

.map-stat-item {
    margin-bottom: 0;
    padding: 15px;
    background-color: rgba(16, 24, 35, 0.5);
    border: 1px solid var(--valorant-border);
    border-left: 4px solid var(--valorant-border);
    /* --- ▼▼▼ ここから修正 ▼▼▼ --- */
    transition: transform 0.2s, box-shadow 0.2s;
    /* --- ▲▲▲ ここまで修正 ▲▲▲ --- */
    /* --- ▼▼▼ ここから追加 ▼▼▼ --- */
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* コンテンツを下揃えにする */
    min-height: 100px; /* 背景画像が見えるように最小高さを設定 */
    /* --- ▲▲▲ ここまで追加 ▲▲▲ --- */
}

/* --- ▼▼▼ ここから追加 ▼▼▼ --- */
.map-stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 10px rgba(250, 68, 84, 0.2);
}
/* --- ▲▲▲ ここまで追加 ▲▲▲ --- */

.map-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* --- ▼▼▼ ここから修正 ▼▼▼ --- */
    background: linear-gradient(to top, rgba(16, 24, 35, 0.95) 20%, rgba(16, 24, 35, 0.2) 80%);
    transition: background 0.3s;
    /* --- ▲▲▲ ここまで修正 ▲▲▲ --- */
    z-index: 1;
}


.map-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 5px;
    font-size: 0.9em;
    /* --- ▼▼▼ ここから追加 ▼▼▼ --- */
    position: relative;
    z-index: 2;
    width: 100%;
    /* --- ▲▲▲ ここまで追加 ▲▲▲ --- */
}

.map-name {
    font-weight: bold;
    font-size: 1.1em;
}

.map-win-rate {
    color: var(--valorant-grey);
    font-size: 0.9em;
    margin-top: 8px;
    /* --- ▼▼▼ ここから修正 ▼▼▼ --- */
    position: relative;
    z-index: 2;
    width: 100%;
    /* --- ▲▲▲ ここまで修正 ▲▲▲ --- */
}

/* Recent Matches New Style */
.recent-matches-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recent-match-item {
    /* --- ▼▼▼ ここから全面的に修正 ▼▼▼ --- */
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr; /* 左、中央、右の列の幅比率を定義 */
    align-items: center;
    /* --- ▲▲▲ ここまで全面的に修正 ▲▲▲ --- */
    padding: 15px;
    background-blend-mode: multiply;
    background-color: var(--valorant-border);
    border: 1px solid var(--valorant-border);
    border-left: 4px solid var(--valorant-grey);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.recent-match-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 10px rgba(250, 68, 84, 0.2);
}

.recent-match-item.win { border-left-color: #4CAF50; }
.recent-match-item.loss { border-left-color: var(--valorant-red); }

.match-details-left, .match-details-center, .match-details-right {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--valorant-offwhite);
}

.match-details-left-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2em 1em;
    align-items: center;
}

.match-details-center, .match-details-right {
    flex-direction: column;
    /* --- ▼▼▼ ここから修正 ▼▼▼ --- */
    align-items: center; /* 中央の要素を中央揃えに */
    gap: 5px;
}

.match-details-right {
    align-items: flex-end;
}
/* --- ▲▲▲ ここまで修正 ▲▲▲ --- */

.match-agent-icon {
    width: 45px;
    height: 45px;
}

.match-map {
    font-weight: bold;
    font-size: 1.1em;
}

.match-date {
    font-size: 0.8em;
    color: var(--valorant-grey);
    vertical-align: baseline;
    vertical-align: middle;
}

.result-text {
    font-weight: bold;
    font-size: 1.2em;
}
.recent-match-item.win .result-text { color: #4CAF50; }
.recent-match-item.loss .result-text { color: var(--valorant-red); }

.match-score {
    font-family: 'Anton', sans-serif;
}

.match-kda, .match-acs {
    font-size: 0.9em;
}

/* --- ▲▲▲ ここまで全面的に修正 ▲▲▲ --- */

/* --- ▼▼▼ このセクションは不要になったため削除 ---
/* Agent & Recent Matches */
/* .side-by-side-grid { ... } */
/* .agent-list, .recent-matches { ... } */
/* .agent-item, .match-item { ... } */
/* .agent-info, .match-result, .match-stats { ... } */
/* .match-map-agent, .match-date { ... } */
/* .match-item > * { ... } */
/* .match-map-agent { ... } */
/* .match-result { ... } */
/* .match-stats { ... } */
/* .match-date { ... } */
/* .agent-icon { ... } */
/* .match-agent-icon { ... } */
/* --- ▲▲▲ ここまで削除 ▲▲▲ --- */

.agent-name, .match-map {
    font-weight: bold;
}

.match-result.win { color: #4CAF50; }
.match-result.loss { color: var(--valorant-red); }
.match-result.draw { color: var(--valorant-grey); }

/* --- ▼▼▼ このセクションは .agent-stats-list に統合されたため削除 --- */
/* Agent Stats (New Style) */
/* .agent-stats-list { ... } */
/* .agent-stat-item { ... } */
/* .agent-stat-item:hover { ... } */
/* .agent-stat-header { ... } */
/* .agent-stat-icon { ... } */
/* .agent-stat-info { ... } */
/* .agent-stat-details { ... } */
/* --- ▲▲▲ ここまで削除 ▲▲▲ --- */


/* Map Stats */
/* --- ▼▼▼ このセクションは新しい定義に置き換えられたため削除 --- */
/* .map-stats-container { ... } */
/* .map-stats-list { ... } */
/* @media (max-width: 768px) { ... } */
/* .map-stat-item { ... } */
/* .map-stat-item:hover { ... } */
/* .map-stat-item:last-child { ... } */
/* .map-info { ... } */
/* .map-name { ... } */
/* .map-win-rate { ... } */
/* --- ▲▲▲ ここまで削除 ▲▲▲ --- */

.progress-bar-bg {
    background-color: var(--valorant-border);
    border-radius: 5px;
    height: 10px;
    overflow: hidden;
    position: relative; /* z-indexを有効にするために追加 */
    z-index: 2;       /* オーバーレイより手前に表示 */
}

.progress-bar {
    background-color: #4CAF50;
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s ease-in-out;
}

/* === スマートフォン向けのスタイル調整 === */
@media (max-width: 768px) {
    /* --- ▼▼▼ ここから削除 ▼▼▼ --- */
    /* body {
        /* モバイルではグラデーション背景を適用 */
        /* background-image: radial-gradient(ellipse at top, var(--valorant-border), var(--valorant-dark));
    } */
    /* --- ▲▲▲ ここまで削除 ▲▲▲ --- */

    /* --- ▼▼▼ ここから修正 ▼▼▼ --- */
    .hero-section {
        padding: 30px 20px;
        /* border-left: none; と border-right: none; を削除 */
    }
    .hero-title {
        font-size: 3.2em;
    }
    .hero-description {
        font-size: 1em;
    }
    #home-player-search-input {
        font-size: 1em; /* フォントサイズを少し小さくしてプレースホルダーを見やすくする */
        padding-top: 12px;    /* 上下のパディングを調整して高さを抑える */
        padding-bottom: 12px;
    }
    /* --- ▲▲▲ ここまで修正 ▲▲▲ --- */

    .side-by-side-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    header h1, .player-header h1 {
        font-size: 2.5em;
    }
    .category-title {
        font-size: 1.5em;
    }
    .stat-card p {
        font-size: 1.5em;
    }
}

/* === VALORANT風 日本語フォントクラス === */
.jp-valorant {
    /* Noto Sans JPが適用されるように念のため指定 */
    font-family: 'Noto Sans JP', sans-serif;

    /* 最も太いウェイトを指定 */
    font-weight: 900;

    /* インライン要素にtransformを適用するため */
    display: inline-block; 

    /* 文字間を少し詰める */
    letter-spacing: -0.05em;
}

/* --- Footer --- */
footer {
    max-width: 1000px;
    margin: 60px auto 20px auto;
    padding-top: 20px;
    text-align: center;
    border-top: 1px solid var(--valorant-border);
}

footer .disclaimer {
    font-size: 0.5em; /* さらに小さく */
    color: var(--valorant-grey);
    line-height: 1.6;
    margin: 0 0 15px 0;
    padding: 0 20px;
}

footer .copyright {
    font-size: 0.5em; /* 小さく */
    color: var(--valorant-grey); /* 目立たない色に変更 */
    font-weight: normal; /* 太字を解除 */
    margin: 0;
}

/* --- ▼▼▼ ここからハンバーガーメニュー関連を追加 ▼▼▼ --- */
.hamburger-menu {
    display: none; /* デフォルトでは非表示 */
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2000;
}

.hamburger-menu span {
    width: 2rem;
    height: 0.25rem;
    background: var(--valorant-offwhite);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.mobile-nav-slide-menu {
    display: none;
}

.overlay {
    display: none;
}

/* --- メディアクエリ (レスポンシブ対応) --- */
@media (max-width: 768px) {
    .nav-links-desktop, .nav-search-desktop {
        display: none; /* PC用のリンクと検索窓を非表示に */
    }

    .hamburger-menu {
        display: flex; /* スマホ表示でハンバーガーメニューを表示 */
    }

    .mobile-nav-slide-menu {
        display: flex;
        flex-direction: column;
        gap: 20px;
        background-color: var(--valorant-dark);
        height: 100vh;
        text-align: left;
        padding: 2rem;
        position: fixed;
        top: 0;
        right: 0;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1500;
        width: 70%;
        max-width: 300px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
        box-sizing: border-box; /* paddingを幅に含める */
    }

    .mobile-nav-slide-menu.open {
        transform: translateX(0);
    }
    
    .mobile-nav-search {
        width: 100%;
        position: relative;
    }

    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1400;
    }

    .overlay.open {
        display: block;
    }
}
/* --- ▲▲▲ ここまでハンバーガーメニュー関連を追加 ▲▲▲ --- */