/* ======== 基本スタイル ======== */
:root {
    --main-color: #111111; /* メインの黒 */
    --accent-color: #E60012; /* アクセントの赤 */
    --accent-hover: #C5000F; /* アクセントホバー */
    --light-bg: #fafafa; /* 背景の薄いグレー（少し明るく） */
    --white: #ffffff;
    --dark-text: #1a1a1a; /* より濃いテキスト */
    --light-text: #666666; /* より洗練されたグレー */
    --border-color: #e5e5e5; /* より柔らかいボーダー */
    
    /* シャドウシステム */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
    --shadow-colored: 0 4px 15px rgba(230, 0, 18, 0.2);
    
    /* トランジション */
    --transition-fast: 0.15s ease-out;
    --transition-base: 0.3s ease-out;
    --transition-slow: 0.5s ease-out;
    
    /* ボーダー半径 */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ======== テキスト選択時のスタイル ======== */
/* ヘッダー内のテキスト選択 */
.header ::selection {
    background-color: var(--accent-color);
    color: var(--white);
}

.header ::-moz-selection {
    background-color: var(--accent-color);
    color: var(--white);
}

/* チーム情報ページ内のテキスト選択 */
.team-page ::selection,
.team-category ::selection,
.player-card ::selection {
    background-color: var(--accent-color);
    color: var(--white);
}

.team-page ::-moz-selection,
.team-category ::-moz-selection,
.player-card ::-moz-selection {
    background-color: var(--accent-color);
    color: var(--white);
}

/* 選択範囲に下線を追加するためのスタイル */
.selection-underline {
    background-color: var(--accent-color) !important;
    color: var(--white) !important;
    border-bottom: 2px solid var(--white);
    display: inline;
    padding: 0;
    text-decoration: none;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px;
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    color: var(--dark-text);
    margin-bottom: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* セクションの副題スタイルを追加 */
.section-subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--light-text);
    margin-top: 8px;
    margin-bottom: 40px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* ======== ヘッダー ======== */
.header {
    background-color: var(--main-color);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    background-color: rgba(17, 17, 17, 0.98);
}

.header-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all var(--transition-base);
}

.header-top-left {
    display: flex;
    align-items: center;
}

/* ロゴをリンクにするためのスタイルを追加 (エラー修正) */
.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit; /* 親要素の色を継承 */
    min-width: 0; /* flexアイテムが縮小できるように */
}

.logo {
    flex-shrink: 0; /* ロゴコンテナは縮小しない */
    max-width: 200px; /* ロゴの最大幅を制限 */
}

.logo img {
    height: 60px; /* ロゴの高さ調整 */
    width: auto;
    max-width: 100%; /* コンテナからはみ出さないように */
    object-fit: contain; /* アスペクト比を保ちながら収める */
}

.site-branding .site-title {
    font-size: 1.5rem; /* タイトルサイズ */
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.site-branding .site-description {
    font-size: 1.5rem; /* 説明文サイズ */
    margin: 0;
    opacity: 0.8;
}

.header-top-right {
    display: flex;
    align-items: center;
    gap: 15px; /* ソーシャルアイコン間のスペース */
}

.header-top-right .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.header-top-right .social-icon i {
    font-size: 2.8rem;
    color: var(--white);
    transition: all var(--transition-base);
}

.header-top-right .social-icon:hover {
    background-color: rgba(230, 0, 18, 0.1);
    transform: translateY(-2px);
}

.header-top-right .social-icon:hover i {
    color: var(--accent-color);
    transform: scale(1.1);
}

.header-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    text-align: center;
}

.nav-links {
    display: flex;
    justify-content: center; /* 中央寄せ */
    flex-wrap: wrap; /* 狭い画面で折り返す */
    gap: 25px; /* リンク間のスペース */
}

.nav-links li a {
    color: var(--white);
    font-weight: 600;
    white-space: nowrap;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    position: relative;
    display: inline-block;
}

.nav-links li a::before {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 16px;
    right: 16px;
    height: 2px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.nav-links li a:hover {
    color: var(--accent-color);
    background-color: rgba(230, 0, 18, 0.05);
    transform: translateY(-1px);
}

.nav-links li a:hover::before {
    transform: scaleX(1);
}

.hamburger-menu {
    display: none; /* モバイル以外では非表示 */
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 20px; /* ソーシャルアイコンとの間隔 */
    padding: 5px;
    z-index: 101; /* ヘッダーのz-indexより上に */
    position: relative;
    -webkit-tap-highlight-color: transparent; /* モバイルでのタップ時のハイライトを削除 */
}

.hamburger-menu span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--white);
    margin: 6px 0;
    transition: all var(--transition-base);
    border-radius: 2px;
}

.hamburger-menu:hover span {
    background-color: var(--accent-color);
}
/* ======== ヒーローセクション (連動ギャラリー) ======== */
.hero-fixed {
    background-color: var(--main-color); /* 背景色 */
    padding-bottom: 30px; /* 下部サムネイルとの間隔 */
    overflow: hidden; /* 左右の画像がはみ出た場合を考慮 */
}

/* メインの3画像エリア */
.hero-main-area {
    max-width: 2000px; /* 表示エリアの最大幅 */
    margin: 0 auto;
    padding: 20px 0;
    overflow: hidden; /* はみ出た部分を隠す */
}

/* スライダーコンテナ（3画像を横並び） */
.hero-slider-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* 左・中央・右を同じサイズに */
    align-items: center;
    gap: 20px;
    position: relative;
}

/* 中央のメイン画像コンテナ */
.hero-center-image-container {
    position: relative;
    z-index: 10;
}

#mainHeroImage {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    display: block;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

#mainHeroImage:hover {
    box-shadow: var(--shadow-xl);
    transform: scale(1.01);
}

/* 左右の画像 */
.hero-side-image {
    position: relative;
    overflow: hidden;
}

.hero-side-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    display: block;
    opacity: 0.5;
    border-radius: 5px;
}

.hero-side-image.left {
    justify-self: end;
}

.hero-side-image.right {
    justify-self: start;
}


/* サムネイルコンテナ */
.hero-thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px 20px 0;
    max-width: 1000px; /* メイン画像エリアより少し狭く */
    margin: 0 auto;
}

.hero-thumbnails img {
    width: 24%;
    height: 100px;
    object-fit: cover;
    border: 3px solid transparent;
    transition: all var(--transition-base);
    cursor: pointer;
    opacity: 0.6;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.hero-thumbnails img:hover {
    opacity: 1;
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(230, 0, 18, 0.3);
}

.hero-thumbnails img.active-thumb {
    opacity: 1;
    border-color: var(--accent-color);
    box-shadow: var(--shadow-colored);
    transform: translateY(-4px);
}

/* ======== 試合日程 ======== */
.info-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    background-color: var(--white);
    margin-bottom: 30px;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.match-schedule ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.match-schedule li {
    display: grid;
    grid-template-columns: 1fr 3fr 1.5fr;
    align-items: center;
    gap: 15px;
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 18px 24px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.match-schedule li:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: rgba(230, 0, 18, 0.2);
}

/* 日付 */
.match-schedule .schedule-date {
    text-align: center;
    border-right: 1px solid var(--border-color);
    padding-right: 15px;
}

.match-schedule .schedule-date .day {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--main-color);
    display: block;
}

.match-schedule .schedule-date .weekday {
    font-size: 1rem;
    font-weight: 600;
    color: var(--light-text);
}

/* 試合情報 */
.match-schedule .schedule-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.match-schedule .schedule-tournament {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 3px;
}

.match-schedule .schedule-tournament .tournament-link {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s, text-decoration 0.3s;
}

.match-schedule .schedule-tournament .tournament-link:hover {
    color: #c00;
    text-decoration: underline;
}

.match-schedule .schedule-opponent {
    font-size: 1.2rem;
    font-weight: 700;
}

/* 結果 */
.match-schedule .schedule-result {
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.match-schedule .schedule-result .youtube-link {
    color: #FF0000;
    text-decoration: none;
    transition: opacity 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.match-schedule .schedule-result .youtube-link:hover {
    opacity: 0.8;
}

.match-schedule .schedule-result .youtube-icon {
    font-size: 1.8rem;
    vertical-align: middle;
}

.match-schedule .schedule-result .schedule-score {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--main-color);
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.match-schedule .schedule-result .result-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.match-schedule .schedule-result .result-tag.win {
    background: linear-gradient(135deg, var(--accent-color), #C5000F);
}

.match-schedule .schedule-result .result-tag.loss {
    background: linear-gradient(135deg, #777, #555);
}

.match-schedule .schedule-result .result-tag.draw {
    background: linear-gradient(135deg, #aaa, #888);
}

.match-schedule li:hover .result-tag {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* ======== 試合日程 (レスポンシブ) ======== */
@media (max-width: 768px) {
    .match-schedule li {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }

    .match-schedule .schedule-date {
        border-right: none;
        border-bottom: 1px dashed var(--border-color);
        padding-right: 0;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    .match-schedule .schedule-info {
        align-items: center;
    }

    .match-schedule .schedule-result {
        text-align: center;
        justify-content: center;
    }
}

/* ======== スケジュール一覧ボタン (修正：赤色に変更) ======== */
.schedule-link-container {
    text-align: center; /* ボタンを中央揃え */
    margin-top: 20px; /* スケジュールリストとの間隔 */
}

.schedule-link-btn,
.news-link-btn,
.partner-link-btn {
    display: inline-block;
    padding: 14px 42px;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    background-color: transparent;
}

.schedule-link-btn::before,
.news-link-btn::before,
.partner-link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.schedule-link-btn:hover,
.news-link-btn:hover,
.partner-link-btn:hover {
    background-color: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-colored);
}

.schedule-link-btn:hover::before,
.news-link-btn:hover::before,
.partner-link-btn:hover::before {
    left: 100%;
}


/* ======== ニュース (削除) ======== */
/* ======== 動画 (削除) ======== */

/* ======== ニュース ======== */
.news-section {
    background-color: var(--white);
    margin-bottom: 30px;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.news ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    transition: all var(--transition-base);
    background-color: var(--white);
}

.news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.news-item:hover {
    background-color: #fafafa;
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.news-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    width: 100%;
    transition: all var(--transition-base);
}

.news-link:hover {
    opacity: 1;
}

.news-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    background-color: var(--accent-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.news-item:hover .news-image {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.news-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.news-date {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-text);
}

.news-category {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border: 1px solid var(--accent-color);
    background: linear-gradient(135deg, rgba(230, 0, 18, 0.1), rgba(230, 0, 18, 0.05));
    color: var(--accent-color);
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
}

.news-description {
    font-size: 0.95rem;
    color: var(--dark-text);
    line-height: 1.4;
    margin: 0;
}

.news-link-container {
    text-align: center;
    margin-top: 15px;
}


/* ======== Instagram ======== */
.instagram {
    background-color: var(--white);
    margin-bottom: 30px;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.insta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 修正: 4列に変更 */
    gap: 10px;
}

.insta-post {
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-base);
    aspect-ratio: 1;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.insta-post::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(230, 0, 18, 0) 0%, rgba(230, 0, 18, 0.1) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.insta-post:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.insta-post:hover::after {
    opacity: 1;
}

.insta-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* ======== パートナー ======== */
.partner {
    background-color: var(--white);
    margin-bottom: 30px;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.partner-logos a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
}

.partner-logos a:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background-color: #fafafa;
}

.partner-logos img {
    height: 80px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: all var(--transition-base);
}

.partner-link-container {
    text-align: center;
    margin-top: 30px;
}


/* ======== フッター ======== */
.footer {
    background-color: var(--main-color);
    color: var(--white);
    padding-top: 40px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding-bottom: 40px;
    justify-items: center;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 250px;
}

.footer-social-column {
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    max-width: 250px;
}

.footer-column h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--white);
}

.footer-column > ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-column > ul li {
    padding-left: 0;
}

.footer-column > ul li::before {
    content: "- ";
    margin-right: 5px;
}

.footer-column ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: all var(--transition-base);
    font-size: 0.95rem;
    display: inline-block;
    padding: 4px 0;
    position: relative;
}

.footer-column ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: width var(--transition-base);
}

.footer-column ul li a:hover {
    opacity: 1;
    color: var(--accent-color);
    transform: translateX(4px);
}

.footer-column ul li a:hover::before {
    width: 100%;
}


.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3.5rem;
    margin-top: 20px;
}

.footer-social .fa-instagram {
    font-size: 3rem;
}

.footer-social a {
    color: var(--white);
    opacity: 0.8;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
}

.footer-social a:hover {
    opacity: 1;
    color: var(--accent-color);
    background-color: rgba(230, 0, 18, 0.1);
    transform: translateY(-2px) scale(1.1);
}

.footer-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-logo img {
    max-width: 200px;
    height: auto;
}

.footer-brand-text {
    text-align: center;
}

.footer-brand-text h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: var(--white);
    letter-spacing: 2px;
}

.footer-brand-text p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
    color: var(--white);
}

.copyright {
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    opacity: 0.7;
}


/* ======== トップに戻るボタン ======== */
.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all var(--transition-base);
    -webkit-tap-highlight-color: transparent;
}

.scroll-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-to-top-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--accent-hover), var(--accent-color));
}

.scroll-to-top-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.scroll-to-top-btn i {
    transition: transform var(--transition-base);
}

.scroll-to-top-btn:hover i {
    transform: translateY(-2px);
}

/* ======== レスポンシブ対応 (モバイル) ======== */
@media (max-width: 768px) {
    /* ヘッダー改善 */
    .header-top {
        flex-wrap: nowrap; /* 折り返さない */
        justify-content: space-between;
        padding: 12px 15px; /* パディングを減らす */
    }

    .header-top-left {
        flex: 1;
        min-width: 0; /* flexアイテムが縮小できるように */
        display: flex;
        align-items: center;
    }

    .logo img {
        height: 45px; /* ロゴを少し小さく */
    }

    .site-branding {
        margin-left: 10px; /* ロゴとの間隔 */
    }

    .site-branding .site-title {
        font-size: 1rem; /* モバイルではさらに小さく */
        line-height: 1.2;
    }
    .site-branding .site-description {
        font-size: 0.7rem;
        margin-top: 2px;
    }

    .header-top-right {
        order: 0; /* ソーシャルアイコンを右上に保持 */
        width: auto;
        margin-top: 0;
        border-top: none;
        padding-top: 0;
    }

    .header-top-right .social-icon i {
        font-size: 2.5rem; /* アイコンを少し小さく */
    }

    .hamburger-menu {
        display: flex; /* flexboxで中央揃え */
        flex-direction: column; /* 縦並びに */
        position: relative;
        margin: 0 0 0 10px;
        padding: 8px; /* タップ領域を広げる */
        z-index: 101;
        touch-action: manipulation;
        min-width: 44px; /* タッチターゲットサイズを確保 */
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }

    .hamburger-menu span {
        width: 24px; /* 線の幅を少し小さく */
        height: 2.5px; /* 線の太さを少し細く */
        margin: 4px 0;
        display: block; /* 確実にブロック要素として表示 */
    }

    .header-bottom {
        padding: 0;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background-color: var(--main-color);
        width: 100%;
        text-align: center;
        padding: 15px 0;
        gap: 5px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        display: flex;
    }
    
    .nav-links li a {
        padding: 12px 0; /* タップ領域を広げる */
        font-size: 0.95rem;
        min-height: 44px; /* タッチターゲットサイズを確保 */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* セクション全般 */
    .wrapper {
        padding: 25px 15px; /* パディングを減らす */
    }
    
    .section-title {
        font-size: 1.4rem; /* モバイルでのタイトルサイズ */
        margin-bottom: 8px;
    }

    .section-subtitle {
        font-size: 0.85rem;
        margin-top: -12px;
        margin-bottom: 20px;
    }
    
    /* ヒーローセクション改善 */
    .hero-fixed {
        padding-bottom: 10px; /* サムネイルが非表示なのでパディングを減らす */
    }

    .hero-main-area {
        padding: 15px 0 10px 0; /* 上下パディングを減らす */
    }

    .hero-slider-container {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0 10px; /* 左右パディングを追加 */
    }

    .hero-side-image {
        display: none;
    }

    .hero-center-image-container {
        grid-column: 1 / -1;
        width: 100%;
    }

    #mainHeroImage {
        max-height: 250px; /* モバイルでは高さをさらに小さく */
        width: 100%;
        border-radius: 4px;
    }

    /* モバイルではサムネイルを非表示 */
    .hero-thumbnails {
        display: none;
    }

    /* メイン画像をスワイプ可能にする */
    .hero-center-image-container {
        touch-action: pan-y;
        overflow: hidden;
    }

    /* 試合スケジュール */
    .info-section,
    .news-section,
    .instagram,
    .partner {
        padding: 25px 15px;
        border-radius: var(--radius-md);
    }

    .match-schedule li {
        padding: 15px 12px;
        gap: 12px;
    }

    .schedule-link-btn,
    .news-link-btn,
    .partner-link-btn {
        padding: 14px 30px; /* タップ領域を広げる */
        font-size: 0.95rem;
        min-height: 44px; /* タッチターゲットサイズを確保 */
    }

    /* ニュース */
    .news-item {
        padding: 12px 0;
    }

    .news-image {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
    }

    .news-date {
        font-size: 0.9rem;
    }

    .news-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    /* Instagram */
    .insta-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .insta-post {
        aspect-ratio: 1;
    }

    /* パートナー */
    .partner-logos {
        gap: 20px;
        padding: 10px 0;
    }

    .partner-logos img {
        height: 60px;
        max-width: 150px;
    }

    /* フッター */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }

    .footer-column {
        margin-bottom: 20px;
        align-items: center;
    }
    
    .footer-links {
        justify-content: center;
        display: flex;
        gap: 30px;
    }

    .footer-social {
        justify-content: center;
    }

    /* トップに戻るボタン（モバイル） */
    .scroll-to-top-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 1.3rem;
    }
}