@charset "utf-8";
/* CSS Document */
 /* CSS変数定義 - デザインシステム */
        :root {
            /* カラーシステム */
            --color-primary: #e70014;
            --color-secondary: #130303;
            --color-accent: #e70014;
            
            /* 背景色 */
            --bg-light: #f4f4f4;
            --bg-white: #fff;
            --bg-dark: #130303;
            --bg-card-overlay: rgba(26,19,17,0.64);
            --bg-banner: #9e9e9e;
            
            /* テキスト色 */
            --text-primary: #130303;
            --text-secondary: #000;
            --text-light: #fff;
            --text-accent: #e70014;
            
            /* スペーシング */
            --space-xs: 5px;
            --space-sm: 10px;
            --space-md: 15px;
            --space-lg: 30px;
            --space-xl: 70px;
            --section-gap: 100px;
            
            /* その他 */
            --border-radius: 6px;
            --border-radius-button: 20px;
            --container-max-width: 1366px;
            --mobile-max-width: 430px;
        }
        
        /* リセットとベース */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        /* aタグのデフォルトスタイルをリセット */
        a {
            text-decoration: none;
            color: inherit;
        }

@-moz-document url-prefix() {
html {
scrollbar-color: #e70014 #000;
scrollbar-width: auto;
}
}

::-webkit-scrollbar { background-color:#000; width:10px;}
::-webkit-scrollbar-thumb { background-color:#e70014;}


        
        body {
            font-family: "Noto Sans JP", sans-serif;
            background-color: var(--bg-light);
            color: var(--text-primary);
            line-height: 1.6;
            min-height: 100dvh;
        }
body:before { content: ""; display: block; width: 100%; height: 100svh; position: fixed; top:0; left: 0; background-image: url("../img/bg.svg"); background-repeat:no-repeat; background-size: cover; background-position: center; z-index: -1;}
        
        img {
            max-width: 100%;
            height: auto;
            display: block;
        }
        
        /* 画像フェードイン：初めからopacity:0、読み込み完了時にフェードイン */
        img:not([data-no-fade]) {
            opacity: 0;
            transition: opacity 0.4s ease;
        }
        img:not([data-no-fade]).loaded {
            opacity: 1;
        }
        
        /* コンテナとレイアウト */
        .container {
            /*max-width: var(--container-max-width);*/
            width: 100%;
            margin: 0 auto;
            position: relative;
        }
        main { padding-bottom: var(--space-xl);}
        
        /* ヘッダー */
        .header {
            background-color: var(--bg-white);
            position: relative;
            z-index: 100;            
            border-bottom: 1px solid #707070;
            position: sticky; top:0; left: 0; width: 100%;
        }
        
        .header-main {
            height: 70px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }
        
        .logo {
            width: 97.8px;
            height: 40px;
            background-image:url("../img/logo.png");
            background-size: contain;
            background-position: center; background-repeat: no-repeat;
        }
.logo h1 { height: 100%; }
.logo a { display: block; height: 100%; text-indent: -9999px;}
        
        /* 統合ナビゲーション - デスクトップ表示 */
        .header-nav {
            height: 60px;
            background-color: var(--bg-white);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 44px;
        }
        
        .nav-item {
            text-align: center;
            cursor: pointer;
            padding: var(--space-sm) var(--space-lg); position: relative;
        }
.nav-item.selected:before { content: ""; display: block; width: 100%; height: 3px; background-color: #E70014; position: absolute; bottom: -1px; left: 0;}
        
        .nav-title {
            font-size: 16px;
            font-weight: 800;
            color: var(--text-primary);
            margin-bottom: 2px;
        }
        
        .nav-subtitle {
            font-size: 10px;
            color: var(--color-primary);
        }
        
        /* 統合ナビゲーション - モバイル表示 */
        .header-nav.mobile-active {
            display: flex !important;
            position: fixed;
            top: 70px;
            left: 0;
            width: 100%;
            height: 100dvh;
            background-color: var(--bg-white);
            z-index: 150;
            opacity: 1;
            visibility: visible;
            flex-direction: column;
            justify-content: flex-start;
            align-items: flex-start;
            padding-top: 50px;
            gap: 0;
            text-align: left; transform: translateX(0);
        }

        body.menu-open nav.header-nav.mobile-active {
            top: 70px;
        }
        body.menu-open { /*width: 100%; position: fixed;*/}
       
        
        .header-nav.mobile-active .nav-item {
            margin-bottom: 20px;
            text-align: left;
            padding: 0 var(--space-lg);
        }
        
        .header-nav.mobile-active .nav-title {
            font-size: 16px;
            font-weight: 800;
            color: var(--text-primary);
            margin-bottom: var(--space-xs);
        }
        
        .header-nav.mobile-active .nav-subtitle {
            font-size: 10px;
            color: var(--color-primary);
        }
        
        /* モバイルハンバーガーメニュー */
        .mobile-menu {
            display: none;
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 70px;
            height: 70px;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 250;
        }
        
        .hamburger-line {
            width: 28px;
            height: 3px;
            background-color: var(--text-primary);
            margin-bottom: 0px;
            transition: all 0.3s ease; 
            transform-origin: 50% 50%;
        }
        
        .hamburger-line:first-child {
            background-color: var(--color-primary);
            margin-bottom: 8px;
        }
        
        /* ハンバーガーメニューが開いている時のスタイル */
        .mobile-menu.active .hamburger-line:first-child {
            transform: rotate(45deg) translate(0%, 8px);transform-origin: 50% 50%;
        }
        
        .mobile-menu.active .hamburger-line:last-child {
            transform: rotate(-45deg) translate(0%, -8px);transform-origin: 50% 50%;
        }
        

        

        
        /* メインビジュアル */
        .main-visual {
            width: 100%;
            height: auto; line-height: 1;
        }
        .main-visual img { width: 100%; height: auto;}
        
        /* アクセント装飾 */
        .accent-decoration {
            position: relative;
        }

.accent-decoration+.section { position: relative;}
.accent-decoration+.section:before { content: ""; width: 354px;height: 798px; background-image: url("../img/bg2.svg"); background-repeat: no-repeat; background-size: contain; position: absolute; top:0; left: 0; }

.swiper-horizontal>.swiper-pagination-bullets, .swiper-pagination-bullets.swiper-pagination-horizontal, .swiper-pagination-custom, .swiper-pagination-fraction { width: auto;}
        
        .accent-line-red {
            width: 100%;
            height: 10px;
            background-color: var(--color-primary);
        }
        
        .accent-line-black {
            width: 100%;
            height: 5px;
            background-color: var(--text-primary);
        }
        
        /* セクション共通 */
        .section {
            padding: var(--section-gap) 0 0 0;
        }
        
        .section-header {
            text-align: center;
            margin-bottom: var(--space-lg);
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .section-title {
            font-size: 34px;
            font-weight: 800;
            color: var(--text-primary); 
            margin-bottom: var(--space-sm);
        }

.section-header .section-title {
    color: #000; /*background: #000;*/padding: 0 1em; border-radius: 2px; margin-bottom: 0;
}
        
        .section-subtitle {
            font-size: 10px;
            color: var(--color-primary);
        }
        
        /* クイックメニューセクション */
        .quick-menu-grid {
            display: grid;
            grid-template-columns: repeat(4, 220px);
            gap: 20px;
            justify-content: center;
            padding: 0 var(--space-lg);
        }
        
        .menu-card {
            width: 220px;
            /*height: 125px;*/aspect-ratio: 60 / 27;
            border-radius: 0;
            overflow: hidden;
            position: relative;
            cursor: pointer;
        }
        .menu-card.disabled { pointer-events: none;
            cursor: default; /*background-color: #C3C3C3;*/ display: flex;
            justify-content: center;align-items: center; background-image: url("../img/add.png"); background-repeat: no-repeat; background-size: contain;
        }
        /*.menu-card.disabled:before { content:"?"; color: #FFF; font-size: 3em;}  */


        
        .menu-card-bg {
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center; overflow: hidden;
        }
.menu-card-bg img { width: 100%; height: 100%; object-fit: contain; object-position: center top;}
        
        .menu-card-bg.game-mode {
            /*background-image: url('https://via.placeholder.com/300x125/333/fff?text=Game+Mode');*/
        }
        
        .menu-card-bg.vehicles {
            /*background-image: url('https://via.placeholder.com/300x125/444/fff?text=Vehicles');*/
        }
        
        .menu-card-bg.course {
            /*background-image: url('https://via.placeholder.com/300x125/555/fff?text=Course');*/
        }
        
        .menu-card-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 30px;
            /*background-color: var(--bg-card-overlay);*/
            display: flex;
            align-items: center;
            justify-content: center; z-index: 1;
        }

.menu-card-overlay:before {
    content: "";
    display: block;
    background-color: #E70014;
    height: 100%;
    position: absolute;
    top: 0;
    left: .3em;
    width: calc(100% - .6em);
    transform: skewX(-20deg);
    border-top-left-radius: .2em;
    border-bottom-right-radius: .2em; z-index: -1;
}
        
        .menu-card-text {
            color: var(--text-light);
            font-size: 14px;
            font-weight: 400; font-style: italic;
                
        }
        
        /* バナーエリア（カルーセル） */
        .banner-section {
    background-color: var(--bg-light);
    padding: var(--space-xl) 0 var(--space-xl) 0;
    position: relative;
    overflow: hidden;
    margin-top: var(--space-xl);
}
        
        /* Swiper.js カルーセル */
        .banner-swiper {
            width: 100%;
            padding: 0 var(--space-lg);
            margin: 0 auto; box-sizing: border-box;
        }
        
        .banner-swiper .swiper-wrapper {
            align-items: center;
        }
        
        .banner-swiper .swiper-slide {
            width: 545px; /* スライドの固定幅 */
            flex-shrink: 0;
            opacity: 0.65;
            transform: scale(0.8);
            transition: opacity 0.35s ease, transform 0.35s ease;
        }
        
        /* アクティブスライドは不透明・等倍表示 */
        .banner-swiper .swiper-slide-active {
            opacity: 1;
            transform: scale(1);
        }
        
        .banner-item {
            width: 100%;
            /*height: 200px;*/
            background-color: var(--bg-banner);
            /*border-radius: var(--border-radius);*/
            display: block;
            overflow: hidden;
            aspect-ratio: 16 / 9;
        }
.banner-item img { width: 100%; height: 100%; object-fit: cover;}

        /* バナー画像下のテキスト */
        .banner-item-caption {
            margin: .5em 0 0;
            font-size: 0.85rem;
            color: var(--text-primary);
            text-align: center;
            line-height: 1.4;
        }
        
        /* Swiper.js ナビゲーションボタン */
        .banner-button-next,
        .banner-button-prev {
            color: var(--text-primary);
            /*background-color: rgba(255, 255, 255, 0.8);*/
            width: 40px;
            height: 40px;
            border-radius: 50%;
            transition: all 0.3s ease;
            position: relative;
            top: auto;
            transform: none;
            z-index: 1;
        }
        
        .banner-button-next:hover,
        .banner-button-prev:hover {
            background-color: rgba(255, 255, 255, 1);
            transform: scale(1.1);
        }
        
        .banner-button-next::after,
        .banner-button-prev::after {
            font-size: 24px;
            font-weight: bold;
        }
        
        /* Swiper.js ページネーション */
        .banner-pagination {
            position: relative;
            margin-top: var(--space-lg);
            display: flex;
            justify-content: center;
            align-items: center;
            gap: var(--space-lg);
        }
        
        .banner-pagination-inner {
            position: relative;
            z-index: 2;
        }
        
        .banner-pagination .swiper-pagination-bullet {
            width: 8px;
            height: 8px;
            background-color: #e4e4e4;
            opacity: 1;
            transition: all 0.3s ease;
            position: relative;
            z-index: 2;
        }
        
        .banner-pagination .swiper-pagination-bullet-active {
            background-color: var(--text-primary);
            transform: scale(1.2);
        }
        
        /* Swiper.jsのデフォルトスタイルを上書き */
        .banner-swiper .swiper-button-next,
        .banner-swiper .swiper-button-prev {
            /*position: relative !important;
            top: auto !important;
            left: auto !important;
            right: auto !important;
            transform: none !important;*/
            margin: 0 !important;
        }
        /* 矢印を常に有効表示（ラップで先頭⇔末尾に移動するため disabled にしない） */
        .banner-swiper .swiper-button-prev.swiper-button-disabled,
        .banner-swiper .swiper-button-next.swiper-button-disabled {
            opacity: 1;
            cursor: pointer;
            pointer-events: auto;
        }
.swiper-horizontal>.swiper-pagination-bullets, .swiper-pagination-bullets.swiper-pagination-horizontal, .swiper-pagination-custom, .swiper-pagination-fraction {bottom: auto;}

.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet, .swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet { margin: 0 10px;}
        
        /* ニュースセクション */
        .news-list {
            max-width: 800px;
            margin: 0 auto;
            padding: 0 var(--space-lg);
        }
        
        .news-item {
            background-color: var(--bg-white);
            border-radius: var(--border-radius);
            margin-bottom: var(--space-md);
            padding: var(--space-lg); padding-left: 0;
            position: relative;
            display: flex;
            align-items: center;
            gap: calc(var(--space-lg) / 2);
        }
        
        .news-meta {
            display: flex;
            flex-direction: column;
            gap: var(--space-xs);
            margin-right: var(--space-lg);
        }
        
        .news-category {
            width: 28px;
            height: 4px;
            background-color: var(--color-primary);
        }
        
        .news-subcategory {
            width: 14px;
            height: 4px;
            background-color: var(--text-primary);
        }
        
        .news-content {
            flex: 1;
        }
        
        .news-date {
            color: var(--color-primary);
            font-size: 16px;
            margin-bottom: var(--space-xs); position: relative; font-weight: normal;
        }
.news-date .cat { display: inline-block; font-size: .6em; padding: .15em 1em; box-sizing: border-box; color: #E70014; border: 1px solid #E70014; box-sizing: border-box; border-radius: .3em; margin-left: 1em; vertical-align: middle; }
.news-date .cat.info { background:rgba(241,134,48,1.00); color: #FFF; border:none; }
.news-date .cat.event { background:rgba(51,148,0,1.00); color: #FFF; border:none; }
.news-date .cat.campaign { background:rgba(155,3,179,1.00); color: #FFF; border:none; }

.news-date .new { display: inline-block; font-size: .8em; padding: 0 .5em; box-sizing: border-box; color: #fff; color: #E70014;  box-sizing: border-box; border-radius: .3em; margin-left: 1em; vertical-align: middle;  }
.news-date .new:before { content: "NEW";}

        
        .news-title {
            font-size: 16px;
            color: var(--text-primary);
            font-weight: 400;
        }
        
        .news-arrow {
            width: 20px;
            height: 20px;
            color: var(--color-primary);
            font-size: 16px;
            display: flex;
            align-items: center;
            justify-content: center; text-indent: -9999px; background-image: url("../img/arrow.svg"); background-position: center; background-repeat: no-repeat;
        }
        
        /* CTA ボタン */
        .btn { text-align: center;}
        .cta-button {
            /*background-color: var(--color-primary);*/
            background-color: #000;
            color: var(--text-light);
            border: none;
            border-radius: var(--border-radius-button);
            padding: 0 32px;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            display: inline-block;
            margin: var(--space-lg) auto;
            text-decoration: none;
            text-align: center; height: 40px; line-height: 40px;
        }
        
        .cta-button:hover {
            opacity: 0.9;
        }
        
        /* フッター */
        .footer {
            position: relative;
        }
        
        .footer-white {
            background-color: var(--bg-white);
            padding: var(--space-lg) 0;
            text-align: center;
        }
        
        .footer-social {
            display: flex;
            justify-content: center;
            gap: var(--space-lg);
        }
        
        .social-icon {
            width: 24px;
            height: 24px;
            background-size:contain; background-position: center; background-repeat: no-repeat;
        }
        .social-icon.x-logo { background-image: url("../img/x-logo.png");}
        .social-icon.youtube { background-image:url("../img/youtube.png");}
        .social-icon.tiktok { background-image:url("../img/tiktok.png");}
        
        .footer-main {
            background-color: var(--bg-dark);
            padding: 0 0 0 0;
            position: relative;
        }
        
        .footer-decoration {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
        }
        
        .footer-content {
            text-align: center;
            color: var(--text-light);
            padding: 40px var(--space-lg);
        }
        
        .footer-copyright {
            font-size: 10px;
            line-height: 1.5;
        }

.sp { display: none;}
.section-header img { width: 50px;}
        
        /* レスポンシブ対応 */
        @media (max-width: 768px) {
            :root {
                --container-max-width: var(--mobile-max-width);
                --section-gap: 60px;
            }
            
            .sp { display: block;}
            .pc { display: none;}

            body { font-size: 90%;}
            
            /* ヘッダー */
            .header { border: none; z-index: 151;}
            body.menu-open header.header {
                position: fixed;
            }
            .header-nav {
                /*display: none;*/ opacity: 0; height: 0; transform: translateX(100%); overflow: hidden; transition: opacity .4s ease 0s;
            }
            
            .mobile-menu {
                display: flex;
            }
            
            .logo {
                width: 122px;
                height: 40px;
            }
            
            /* メインビジュアル */
            .main-visual {
            }
            
            .section { padding: 40px 0 0 0;}
            
            /* セクションタイトル */
            .section-title {
                font-size: 26px;
            }
            .section-header { margin-bottom: 20px;}
            .section-header img { aspect-ratio: 74 / 42;
    width: 30px;}
            
            /* クイックメニュー - 2x2グリッド */
            .quick-menu-grid {
                grid-template-columns: repeat(2, calc( 50% - 7.5px ));
                gap: 15px;
                padding: 0 var(--space-md);
            }
            
            .menu-card {
                width: 100%;
                /*height: 80px;*/
            }
            
            .menu-card-overlay {
                height: 26px;
            }
            
            .banner-section { padding: 30px 0 30px 0;
                background-color: var(--bg-light);
            margin-top: 30px;}
            
            /* バナーエリア - モバイル調整 */
            .banner-swiper {
                padding: 0 var(--space-md);
            }
            
            .banner-swiper .swiper-slide {
                width: 300px; /* モバイル用の固定幅 */
            }
            
            .banner-item {
                /*height: 110px;*/
            }
            
            .banner-button-next,
            .banner-button-prev {
                width: 32px;
                height: 32px;
            }
            
            .banner-button-prev {
                left: var(--space-md);
            }
            
            .banner-button-next {
                right: var(--space-md);
            }
            
            .banner-button-next::after,
            .banner-button-prev::after {
                font-size: 14px;
            }
            
            /* ニュースリスト */
            .news-list {
                max-width: 800px;
                padding: 0 var(--space-md);
            }
            
            .news-item {
                padding: var(--space-md) var(--space-md) var(--space-md) 0;
                gap: calc(var(--space-lg) / 2);
            }
            .nav-item { display: block;
            width: 100%;
        box-sizing: border-box;}
            .nav-item.selected:before { display: none; }
            .nav-item.selected { background-color: #E70014; }
            .header-nav.mobile-active .nav-item.selected .nav-title { color: #FFF;}
            .header-nav.mobile-active .nav-item.selected .nav-subtitle { color: #FFF;}
            
            .header-nav.mobile-active .nav-item {
    margin-bottom: 20px;
    padding: 10px var(--space-lg);
}
            
            .news-meta {
                gap: var(--space-xs);
                margin-right: 0;
            }
            
            .news-title {
                font-size: 15px;
                line-height: 1.3;
                display: -webkit-box;
                -webkit-box-orient: vertical;
                overflow: hidden;
            }
            
            .news-arrow {
            }
            .cta-button { margin: 40px 0;}
           
            
            /* フッター */
            .footer-content {
                padding: var(--space-lg) var(--space-md);
            }
            
            .footer-copyright {
                font-size: 10px;
                line-height: 1.4;
            }
            
            .footer-white {
                padding: var(--space-lg) 0;
            }
            
            .accent-decoration+.section:before { width: 122px; height: 275px;}
        }

#pageTop { 
    width:50px; 
    height:50px; 
    background: none; 
    border: none; 
    background-color: #000; 
    position: fixed; 
    bottom: 0; 
    right: 0; 
    cursor: pointer; 
    z-index: 99; 
    background-image: url("../img/arrow2.svg"); 
    background-position: center; 
    background-repeat: no-repeat; 
    text-indent: -9999px; border-top-left-radius: 0em;
    
    /* デフォルトで非表示 */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    
    /* アニメーション設定 */
    transition: all 0.3s ease;
}

/* 表示状態のスタイル */
#pageTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ホバー効果 */
#pageTop:hover {
    background-color: #333;
    transform: translateY(-2px);
}

#update { 
    width: 100%; 
    height: 50px; 
    background-color: #E70014; 
    color: #FFF; 
    text-align: center; 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    z-index: 99; 
    line-height: 50px; 
    font-size: 22px; 
    font-weight: 700;
    
    /* デフォルトで非表示 */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    
    /* アニメーション設定 */
    transition: all 0.3s ease;
}

/* 表示状態のスタイル */
#update.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
/* #Top #update { height: 80px; line-height: 80px;} */
#common_page_footer { margin-bottom: 50px;}
/* #Top #common_page_footer { margin-bottom: 80px;} */
