/* =========================================
   POCHI-KUJI RETRO ARCADE 統合CSS
   Version: 1.0.0 - クリーン統合版
   ========================================= */

/* ===== 1. リセット & ベース ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.retro-game-body {
    font-family: 'DotGothic16', 'Noto Sans JP', monospace !important;
    background: #0a0a0a !important;
    color: #0f0 !important;
    overflow-x: hidden;
    cursor: none !important;
}

/* ===== 2. CRTエフェクト（軽量版） ===== */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 10000;
    opacity: 0.5;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        transparent 50%,
        rgba(0, 255, 0, 0.01) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 9999;
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* ===== 3. レトログリッド背景 ===== */
.retro-grid {
    position: fixed;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 0, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 10s linear infinite;
    z-index: -1;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* ===== 4. 星背景 ===== */
.stars {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* ===== 5. カスタムカーソル ===== */
body,
a, button, input, select, textarea {
    cursor: none !important;
}

.custom-cursor {
    position: fixed !important;
    width: 20px;
    height: 20px;
    border: 2px solid #0ff;
    border-radius: 50%;
    pointer-events: none !important;
    z-index: 999999 !important;
    mix-blend-mode: normal !important;
    transition: transform 0.1s;
}

.custom-cursor::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: #ff0;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff0;
}

.cursor-trail {
    position: fixed;
    width: 4px;
    height: 4px;
    background: #00ff00;
    pointer-events: none;
    z-index: 999998 !important;
    border-radius: 50%;
    opacity: 0.6;
}

/* ===== 6. ヘッダー ===== */
.arcade-header {
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0.95) 0%, 
        rgba(26, 0, 51, 0.95) 100%) !important;
    border-bottom: 4px solid #ffff00 !important;
    box-shadow: 
        0 4px 0 #ff00ff,
        0 8px 0 #00ffff,
        0 12px 20px rgba(0, 0, 0, 0.8) !important;
    padding: 0.8rem 1rem !important;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container-retro {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

/* ロゴ with SEO h1 */
.logo-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.seo-title {
    margin: 0;
    padding: 0;
    font-family: 'DotGothic16', 'Noto Sans JP', sans-serif;
    font-size: 0.9rem;
    color: #00ffff;
    text-shadow: 
        1px 1px 0 #000,
        -1px -1px 0 #000,
        2px 2px 4px rgba(0, 255, 255, 0.8);
    letter-spacing: 1px;
    animation: seo-glow 2s ease-in-out infinite;
}

@keyframes seo-glow {
    0%, 100% { 
        text-shadow: 
            1px 1px 0 #000,
            -1px -1px 0 #000,
            2px 2px 4px rgba(0, 255, 255, 0.8);
    }
    50% { 
        text-shadow: 
            1px 1px 0 #000,
            -1px -1px 0 #000,
            2px 2px 8px rgba(0, 255, 255, 1),
            0 0 20px rgba(255, 255, 0, 0.5);
    }
}

.seo-title-en {
    display: block;
    font-size: 0.7rem;
    color: #ffff00;
    margin-bottom: 2px;
    text-transform: uppercase;
    font-family: 'Press Start 2P', cursive;
}

.seo-title-jp {
    display: block;
    font-size: 0.85rem;
    color: #00ff00;
}

.arcade-logo {
    text-decoration: none;
    position: relative;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ffff00 0%, #ff0099 50%, #00ffff 100%) !important;
    border: 4px solid #ffffff !important;
    box-shadow: 
        0 0 30px rgba(255, 255, 0, 0.8),
        0 0 60px rgba(255, 0, 255, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.5),
        4px 4px 0 #000000 !important;
    transition: all 0.3s;
}

.arcade-logo:hover {
    transform: scale(1.05);
}

.logo-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.4rem;
    color: #000000 !important;
    text-shadow: 
        2px 2px 0 #ffffff,
        -2px -2px 0 #ffffff,
        2px -2px 0 #ffffff,
        -2px 2px 0 #ffffff,
        4px 4px 8px rgba(255, 255, 0, 0.6) !important;
}

.logo-subtitle {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.5rem;
    color: #000;
    text-align: center;
    margin-top: 0.5rem;
}

/* ナビゲーション */
.nav-retro {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-button {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(180deg, #0066ff 0%, #003399 100%) !important;
    border: 3px solid #00ffff !important;
    color: #ffffff !important;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 
        0 0 15px rgba(0, 255, 255, 0.4),
        inset 0 -3px 0 rgba(0, 0, 0, 0.3),
        0 3px 0 #00ffff !important;
}

.nav-button:hover {
    background: linear-gradient(180deg, #00ffff 0%, #0099cc 100%) !important;
    border-color: #ffff00 !important;
    color: #000000 !important;
    transform: translateY(-2px) scale(1.05) !important;
}

.nav-button-special {
    background: linear-gradient(180deg, #ff0066 0%, #990033 100%);
    border-color: #ff0;
}

.nav-icon {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.nav-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.5rem;
    text-transform: uppercase;
}

/* モバイルメニュー */
.mobile-menu-btn-retro {
    display: none;
    background: none;
    border: 2px solid #0ff;
    padding: 0.5rem;
    cursor: pointer;
    position: relative;
    width: 40px;
    height: 40px;
}

.mobile-menu-btn-retro span {
    display: block;
    width: 100%;
    height: 2px;
    background: #0ff;
    margin: 4px 0;
    transition: all 0.3s;
}

.mobile-menu-retro {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #2a0055 0%, #1a0033 100%) !important;
    border: 3px solid #fff !important;
    z-index: 999;
}

.mobile-menu-retro.active {
    display: block;
}

.mobile-menu-retro ul {
    list-style: none;
    padding: 1rem;
}

.mobile-menu-retro li {
    margin: 0.5rem 0;
}

.mobile-menu-retro a {
    color: #fff !important;
    text-decoration: none;
    font-size: 1rem;
    display: block;
    padding: 0.5rem;
    transition: all 0.3s;
}

.mobile-menu-retro a:hover {
    background: rgba(255,255,255,0.2) !important;
    border: 2px solid #fff !important;
}

/* ===== 7. マーキー文字 ===== */
.marquee-container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 35px !important;
    background: linear-gradient(90deg, #ff0000, #ffff00, #00ff00, #00ffff, #ff00ff, #ff0000) !important;
    padding: 7px 0 !important;
    overflow: hidden !important;
    z-index: 500 !important;
    border-top: 2px solid #fff !important;
    border-bottom: 2px solid #fff !important;
}

.marquee-text {
    display: inline-block !important;
    padding-left: 100% !important;
    animation: marquee-scroll 25s linear infinite !important;
    font-size: 14px !important;
    font-weight: bold !important;
    color: #000 !important;
    text-shadow: 1px 1px 0 #fff !important;
    white-space: nowrap !important;
    font-family: 'MS Gothic', 'DotGothic16', monospace !important;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ===== 8. ヒーローセクション ===== */
.arcade-hero {
    position: relative !important;
    padding: 4rem 1rem;
    padding-top: 5rem !important;
    background: linear-gradient(180deg, #1a0033 0%, #000 100%);
    overflow: hidden;
    min-height: 600px;
}

.arcade-screen {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
    background: rgba(0, 0, 0, 0.95) !important;
    border: 6px solid !important;
    border-radius: 20px;
    box-shadow: 
        inset 0 0 50px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(0, 0, 0, 0.8) !important;
    position: relative;
    animation: rainbow-border 5s linear infinite !important;
}

@keyframes rainbow-border {
    0% { border-color: #ff0000; }
    20% { border-color: #ffff00; }
    40% { border-color: #00ff00; }
    60% { border-color: #00ffff; }
    80% { border-color: #ff00ff; }
    100% { border-color: #ff0000; }
}

.arcade-screen::before {
    /* PRESS STARTを非表示にする場合はコメントアウト */
    /* display: none !important; */
    
    /* または内容を変更 */
    content: "🎮 READY? 🎮" !important;
    position: absolute;
    top: 10px;
    right: 20px;
    color: #ffff00;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem !important;
    animation: start-flash 0.5s infinite !important;
    text-shadow: 2px 2px 0 #ff0000, 4px 4px 0 #000000;
    background: rgba(0, 0, 0, 0.9);
    padding: 4px 8px;
    border: 2px solid #ffff00;
    z-index: 100;
    opacity: 0.3; /* 控えめに表示 */
}
/* PRESS STARTボタンのスタイル */
.press-start {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    font-family: 'Press Start 2P', cursive !important;
    font-size: 35px !important;
    color: #ffff00 !important;
    text-shadow: 
        3px 3px 0 #ff0000,
        6px 6px 0 #000000,
        0 0 30px rgba(255, 255, 0, 0.8) !important;
    background: rgba(0, 0, 0, 0.9) !important;
    border: 4px solid #ffff00 !important;
    padding: 20px 40px !important;
    z-index: 200000 !important;
    cursor: pointer !important;
    animation: press-start-blink 0.8s infinite !important;
    box-shadow: 
        0 0 50px rgba(255, 255, 0, 0.8),
        inset 0 0 30px rgba(255, 0, 0, 0.3) !important;
    text-transform: uppercase !important;
    letter-spacing: 3px !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    -webkit-tap-highlight-color: transparent; /* タップ時のハイライトを消す */
    touch-action: manipulation; /* タッチ操作を最適化 */
    user-select: none; /* テキスト選択を防ぐ */
}

/* 点滅アニメーション */
@keyframes press-start-blink {
    0%, 100% { 
        opacity: 1;
        border-color: #ffff00;
        color: #ffff00;
    }
    50% { 
        opacity: 0.3;
        border-color: #ff0000;
        color: #ff0000;
    }
}

/* ホバー時のエフェクト */
.press-start:hover {
    animation: press-start-pulse 0.3s infinite !important;
    transform: translate(-50%, -50%) scale(1.1) !important;
}

@keyframes press-start-pulse {
    0%, 100% { 
        box-shadow: 
            0 0 50px rgba(255, 255, 0, 0.8),
            0 0 100px rgba(255, 0, 0, 0.5),
            inset 0 0 30px rgba(255, 0, 0, 0.3) !important;
    }
    50% { 
        box-shadow: 
            0 0 80px rgba(255, 255, 0, 1),
            0 0 150px rgba(255, 0, 0, 0.8),
            inset 0 0 50px rgba(255, 255, 0, 0.5) !important;
    }
}

@keyframes start-flash {
    0%, 100% { color: #ffff00; border-color: #ffff00; }
    50% { color: #ff0000; border-color: #ff0000; }
}
/* レスポンシブ対応（PRESS START用） */
@media (max-width: 768px) {
    .press-start {
        font-size: 25px !important;
        padding: 15px 30px !important;
    }
}

@media (max-width: 400px) {
    .press-start {
        font-size: 18px !important;
        padding: 10px 20px !important;
        width: 90% !important;
        max-width: 300px !important;
    }
}
/* メインタイトル */
/* メインタイトル */
.main-title {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(1.8rem, 4vw, 3rem) !important;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(90deg, 
        #ff0000 0%, #ff7f00 14%, #ffff00 28%, 
        #00ff00 42%, #0000ff 56%, #4b0082 70%, 
        #9400d3 84%, #ff0000 100%) !important;
    background-size: 200% 100%;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: rainbow-slide 3s linear infinite !important;
    filter: drop-shadow(4px 4px 0 #000) drop-shadow(8px 8px 20px rgba(255, 255, 255, 0.8)) !important;
    
    /* 改行防止の追加 */
    white-space: nowrap !important;
    overflow: hidden !important;
}

@keyframes rainbow-slide {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.title-emoji {
    display: inline-block;
    animation: emoji-spin 3s linear infinite;
}

@keyframes emoji-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.subtitle {
    text-align: center;
    color: #00ffff !important;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 
        2px 2px 0 #000,
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        4px 4px 20px rgba(0,255,255,0.8) !important;
    letter-spacing: 2px;
}

/* ===== 9. コイン ===== */
.coin-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.coin {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    border-radius: 50%;
    border: 4px solid #b8860b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    color: #000;
    animation: coin-spin 2s linear infinite;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.8),
        inset 0 0 20px rgba(184, 134, 11, 0.5);
}

@keyframes coin-spin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

/* ===== 10. CTAボタン ===== */
.cta-container {
    text-align: center;
    margin-top: 2rem;
}

.arcade-cta {
    display: inline-block;
    position: relative;
    padding: 1rem 2rem;
    background: linear-gradient(180deg, #ff0066 0%, #990033 100%);
    color: #fff;
    text-decoration: none;
    border: 4px solid #ff0;
    border-radius: 10px;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin: 0.5rem;
    box-shadow: 
        inset 0 -8px 0 rgba(0, 0, 0, 0.3),
        0 8px 0 #990033,
        0 8px 30px rgba(255, 0, 102, 0.5);
    transform: translateY(0);
    transition: all 0.1s;
    overflow: hidden;
    animation: cta-rainbow 3s linear infinite !important;
    /* 改行防止を追加 */
    white-space: nowrap !important;
}

@keyframes cta-rainbow {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(180deg); }
}

.arcade-cta:hover {
    transform: translateY(-4px);
    box-shadow: 
        inset 0 -8px 0 rgba(0, 0, 0, 0.3),
        0 12px 0 #990033,
        0 12px 40px rgba(255, 0, 102, 0.8);
}

.arcade-cta:active {
    transform: translateY(4px);
    box-shadow: 
        inset 0 -4px 0 rgba(0, 0, 0, 0.3),
        0 4px 0 #990033,
        0 4px 20px rgba(255, 0, 102, 0.5);
}

/* ===== 11. その他のUI要素 ===== */

/* スコア表示（マーキー下に配置） */
.score-display {
    position: fixed !important;
    top: 140px !important;
    right: 20px !important;
    background: #000 !important;
    border: 5px solid #ffff00 !important;
    padding: 1rem;
    z-index: 1200;
    font-family: 'Press Start 2P', cursive;
    box-shadow: 
        0 0 40px rgba(255,255,0,1),
        inset 0 0 30px rgba(255,255,0,0.3) !important;
}

.score-label {
    color: #ff0;
    font-size: 0.6rem;
    margin-bottom: 0.5rem;
}

.score-value {
    color: #00ff00 !important;
    font-size: 1.2rem !important;
    text-shadow: 0 0 15px #00ff00 !important;
}

/* トライアルバッジ（スコアの下に配置） */
.trial-badge-retro {
    position: fixed !important;
    right: 20px !important;
    top: 290px !important;
    z-index: 999;
    background: linear-gradient(45deg, 
        #ff0000 0%, #ffff00 25%, #00ff00 50%, 
        #00ffff 75%, #ff00ff 100%) !important;
    border: 6px solid #fff !important;
    padding: 1rem;
    animation: bounce 2s infinite;
    box-shadow: 
        0 0 50px rgba(255,0,255,1),
        10px 10px 0 #000 !important;
    cursor: pointer;
    transition: all 0.3s;
}

.trial-badge-retro:hover {
    transform: scale(1.1);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.trial-text-retro {
    color: #fff;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    text-align: center;
}

.blink {
    animation: blink-text 1s infinite;
}

@keyframes blink-text {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0; }
}

/* Back to Topボタン */
.back-to-top-retro {
    position: fixed !important;
    bottom: 120px !important;
    right: 50px !important;
    width: 100px !important;
    height: 100px !important;
    background: linear-gradient(135deg, #ffff00 0%, #ff0066 50%, #00ffff 100%) !important;
    border: 6px solid #fff !important;
    border-radius: 50% !important;
    z-index: 1000 !important;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.6rem;
    color: #fff;
    cursor: pointer;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    box-shadow: 
        0 0 60px rgba(255,255,0,1),
        0 0 120px rgba(255,0,255,0.8),
        0 10px 40px rgba(0,0,0,0.9) !important;
    animation: super-pulse 1s infinite !important;
}

.back-to-top-retro.show {
    display: flex !important;
}

@keyframes super-pulse {
    0%, 100% { 
        transform: scale(1) translateY(0);
    }
    50% { 
        transform: scale(1.2) translateY(-10px);
    }
}

/* ローディングバー */
.loading-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px !important;
    background: #000 !important;
    border-top: 4px solid #ffff00 !important;
    border-bottom: 4px solid #ffff00 !important;
    z-index: 9997;
    display: flex !important;
    align-items: center;
    padding: 0 5px;
}

.loading-progress {
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        #ff0000 0px, #ff0000 10px,
        #ffff00 10px, #ffff00 20px,
        #00ff00 20px, #00ff00 30px,
        #00ffff 30px, #00ffff 40px,
        #ff00ff 40px, #ff00ff 50px
    ) !important;
    animation: loading-rainbow 3s linear infinite !important;
}

@keyframes loading-rainbow {
    0% { width: 0%; }
    50% { width: 100%; }
    100% { width: 0%; }
}

.loading-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem !important;
    color: #ffff00 !important;
    text-shadow: 2px 2px 0 #000 !important;
}

/* ===== 12. セクションスタイル ===== */
.section-title-retro {
    font-family: 'Press Start 2P', cursive;
    text-align: center;
    color: #00ffff !important;
    font-size: clamp(1.5rem, 3vw, 2.5rem) !important;
    margin: 3rem 0;
    text-shadow: 
        3px 3px 0 #ff00ff,
        6px 6px 0 #ffff00,
        9px 9px 30px rgba(0,255,255,1) !important;
    
    /* 改行防止の追加 */
    white-space: nowrap !important;
    overflow: hidden !important;
}

.title-decoration {
    color: #ff0;
    animation: rotate 2s linear infinite;
    display: inline-block;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== 13. Windows95風ポップアップ ===== */
.win95-popup {
    position: fixed;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 100000 !important;
    min-width: 300px;
    animation: popup-shake 0.5s;
    display: none;
}

.win95-popup.show {
    display: block !important;
}

@keyframes popup-shake {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    25% { transform: translate(-52%, -50%) rotate(-1deg); }
    75% { transform: translate(-48%, -50%) rotate(1deg); }
}

.win95-header {
    background: linear-gradient(90deg, #000080, #1084d0);
    color: white;
    padding: 3px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'MS UI Gothic', sans-serif;
    font-size: 11px;
    font-weight: bold;
}

.win95-close {
    background: #c0c0c0;
    border: 1px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    width: 16px;
    height: 14px;
    font-size: 10px;
    cursor: pointer;
    line-height: 10px;
    padding: 0;
}

.win95-content {
    padding: 15px;
    font-family: 'MS UI Gothic', sans-serif;
    font-size: 12px;
    color: #000;
    background: #c0c0c0;
}

.win95-buttons {
    text-align: right;
    padding: 10px;
    background: #c0c0c0;
    border-top: 1px solid #808080;
}

.win95-btn {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    padding: 5px 15px;
    font-family: 'MS UI Gothic', sans-serif;
    font-size: 11px;
    cursor: pointer;
    margin-left: 5px;
}

.win95-btn:active {
    border-color: #808080 #ffffff #ffffff #808080;
}
/* ウィルス風ポップアップアニメーション */
@keyframes virus-appear {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2) rotate(90deg);
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }
}

.virus-popup {
    transition: none !important;
}

/* より激しい震えエフェクト */
@keyframes virus-shake {
    0%, 100% { transform: translate(-50%, -50%) translateX(0); }
    25% { transform: translate(-50%, -50%) translateX(-5px); }
    75% { transform: translate(-50%, -50%) translateX(5px); }
}


/* ===== 14. カウンター関連 ===== */
.visitor-counter-showa {
    position: fixed;
    bottom: 10px;
    right: 20px;
    background: #000;
    border: 3px solid #0f0;
    padding: 8px;
    font-family: 'Courier New', monospace;
    box-shadow: 
        0 0 20px rgba(0, 255, 0, 0.8),
        inset 0 0 10px rgba(0, 255, 0, 0.3);
    z-index: 10000;
}

.counter-label-showa {
    color: #ffff00;
    font-size: 10px;
    text-align: center;
    text-shadow: 0 0 5px #ffff00;
    margin-bottom: 5px;
}

.counter-numbers {
    display: flex;
    gap: 2px;
    justify-content: center;
}

.counter-digit {
    background: #111;
    border: 1px solid #0f0;
    color: #0f0;
    padding: 2px 4px;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 0 10px #0f0;
}

/* デジタル時計 */
.digital-clock-showa {
    position: fixed;
    bottom: 10px;
    left: 10px;
    background: #000;
    border: 2px solid #0f0;
    padding: 5px 10px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #0f0;
    text-shadow: 0 0 10px #0f0;
    z-index: 1000;
    letter-spacing: 2px;
}

/* ===== 15. アニメーション要素 ===== */
.gif-flame,
.gif-star {
    position: fixed;
    font-size: 30px;
    z-index: 50;
    pointer-events: none;
    opacity: 0.7;
}

.gif-flame {
    animation: flame-float 15s linear infinite;
}

@keyframes flame-float {
    0% { top: 100%; left: 10%; transform: rotate(0deg); }
    25% { top: 75%; left: 80%; transform: rotate(90deg); }
    50% { top: 50%; left: 50%; transform: rotate(180deg); }
    75% { top: 25%; left: 20%; transform: rotate(270deg); }
    100% { top: -10%; left: 90%; transform: rotate(360deg); }
}

.gif-star {
    color: #ffff00;
    animation: star-spin 3s linear infinite;
}

@keyframes star-spin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.5); }
    100% { transform: rotate(360deg) scale(1); }
}

/* パワーアップアイテム */
.powerup {
    position: fixed;
    width: 30px;
    height: 30px;
    pointer-events: none;
    z-index: 50;
    animation: float-around 20s linear infinite;
}

@keyframes float-around {
    0% { transform: translate(0, 100vh) rotate(0deg); }
    100% { transform: translate(100vw, -100vh) rotate(720deg); }
}

.powerup-star {
    color: #ff0;
    font-size: 1.5rem;
    animation: rotate 2s linear infinite;
}

/* ===== 16. デモセクション ===== */
.demo-section {
    background: #16213e;
    padding: 3rem 1rem;
    border-top: 4px solid #ff00ff;
    border-bottom: 4px solid #ff00ff;
}

.demo-container-retro {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.mobile-display-retro {
    display: flex;
    justify-content: center;
}

.mobile-frame {
    position: relative;
    width: 300px;
    height: 600px;
    background: #222;
    border: 8px solid #444;
    border-radius: 30px;
    padding: 20px;
    box-shadow: 
        0 0 50px rgba(0, 255, 255, 0.3),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.mobile-screen {
    width: 100%;
    height: 80%;
    background: #000;
    border: 2px solid #0ff;
    border-radius: 10px;
    overflow: hidden;
}

.mobile-screen video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-buttons {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
}

.demo-btn {
    background: #333;
    border: 2px solid #666;
    color: #0ff;
    padding: 0.5rem;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.demo-btn.active,
.demo-btn:hover {
    background: #0ff;
    color: #000;
    border-color: #0ff;
}

.demo-links-retro {
    color: #0ff;
}

.demo-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ff0;
}

.demo-description {
    margin-bottom: 2rem;
    color: #0f0;
}

.demo-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.demo-card {
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #1a0033 0%, #330066 100%);
    border: 2px solid #0ff;
    padding: 1rem;
    color: #0ff;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.demo-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.demo-card:hover::before {
    left: 100%;
}

.demo-card:hover {
    transform: translateX(10px);
    border-color: #ff0;
    box-shadow: 0 0 20px rgba(255, 255, 0, 0.5);
}

.card-icon {
    font-size: 2rem;
    margin-right: 1rem;
}

.card-title {
    flex: 1;
    font-size: 1rem;
}

.card-arrow {
    font-size: 1.5rem;
    animation: arrow-move 1s infinite;
}

@keyframes arrow-move {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

.line-support {
    text-align: center;
    color: #ff0;
    margin-top: 2rem;
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ===== 17. チケットセクション ===== */
.lottery-types {
    background: #0f0f1e;
    padding: 3rem 1rem;
}

.ticket-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.ticket-card {
    position: relative;
    background: linear-gradient(135deg, #1a0033 0%, #330066 100%);
    border: 3px solid #ff0;
    padding: 1.5rem;
    transform: perspective(600px) rotateX(5deg);
    transition: all 0.3s;
    overflow: hidden;
}

.ticket-card::before {
    content: "★ WINNER ★";
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%) rotate(-5deg);
    background: #f00;
    color: #fff;
    padding: 0.3rem 1rem;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.5rem;
    animation: winner-flash 0.5s infinite;
    opacity: 0;
    transition: all 0.3s;
}

.ticket-card:hover::before {
    top: 10px;
    opacity: 1;
}

@keyframes winner-flash {
    0%, 100% { background: #f00; }
    50% { background: #ff0; color: #000; }
}

.ticket-card:hover {
    transform: perspective(600px) rotateX(0deg) scale(1.05);
    border-color: #0ff;
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.8),
        inset 0 0 30px rgba(255, 255, 0, 0.2);
    z-index: 10;
}

.ticket-card:first-child::after {
    content: "NEW!";
    display: inline-block;
    background: #ff0000;
    color: #ffffff;
    padding: 2px 8px;
    font-weight: bold;
    font-size: 10px;
    animation: badge-blink 0.5s infinite;
    border: 2px solid #ffff00;
    transform: rotate(-10deg);
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 100;
}

@keyframes badge-blink {
    0%, 100% { opacity: 1; background: #ff0000; }
    50% { opacity: 0.3; background: #ffff00; }
}

.ticket-number {
    font-family: 'Press Start 2P', cursive;
    color: #ff0;
    font-size: 0.7rem;
    margin-bottom: 1rem;
    text-align: center;
}

.ticket-icon {
    font-size: 3rem;
    text-align: center;
    margin: 1rem 0;
    animation: icon-bounce 2s ease-in-out infinite;
}

@keyframes icon-bounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-5px) rotate(5deg); }
    75% { transform: translateY(5px) rotate(-5deg); }
}

.ticket-title {
    color: #0ff;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.ticket-desc {
    color: #0f0;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.6;
}

/* ===== 18. フィーチャーボタン ===== */
.features-section {
    background: linear-gradient(180deg, #000 0%, #1a0033 100%);
    padding: 4rem 1rem;
    position: relative;
}

.feature-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.arcade-button {
    position: relative;
    background: radial-gradient(ellipse at center, #ff0066 0%, #660033 100%);
    border: 4px solid #fff;
    border-radius: 50%;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    box-shadow: 
        inset 0 -10px 20px rgba(0, 0, 0, 0.5),
        0 10px 20px rgba(255, 0, 102, 0.5);
}

.arcade-button[data-color="green"] {
    background: radial-gradient(ellipse at center, #00ff66 0%, #006633 100%);
}

.arcade-button[data-color="yellow"] {
    background: radial-gradient(ellipse at center, #ffff00 0%, #666600 100%);
}

.arcade-button[data-color="blue"] {
    background: radial-gradient(ellipse at center, #00ffff 0%, #006666 100%);
}

.arcade-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        inset 0 -10px 30px rgba(255, 255, 255, 0.3),
        0 15px 30px rgba(255, 0, 102, 0.8);
}

.arcade-button:active {
    transform: translateY(2px) scale(0.98);
}

.button-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.button-label {
    font-family: 'Press Start 2P', cursive;
    color: #fff;
    font-size: 0.7rem;
    text-shadow: 2px 2px 0 #000;
}

.button-sublabel {
    display: block;
    font-size: 0.6rem;
    margin-top: 0.5rem;
    color: #ffff00;
}

/* ===== 19. プロセスセクション ===== */
.process-section {
    background: #000;
    padding: 4rem 1rem;
    position: relative;
    border-top: 4px dashed #00ff00;
}

.process-path {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.step-dot {
    position: relative;
    background: #000;
    border: 3px solid #0ff;
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.step-dot::before {
    content: "";
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #ff0;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 0, 0.8);
    animation: dot-pulse 1s infinite;
}

@keyframes dot-pulse {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.3); }
}

.step-number {
    font-family: 'Press Start 2P', cursive;
    font-size: 2rem;
    color: #f0f;
    text-shadow: 2px 2px 0 #000;
    min-width: 60px;
}

.step-content h3 {
    color: #ff0;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-family: 'Press Start 2P', cursive;
}

.step-content p {
    color: #0f0;
    font-size: 1rem;
    line-height: 1.6;
}

/* ===== 20. サポートセクション ===== */
.support-section-retro {
    background: #16213e;
    padding: 3rem 1rem;
    text-align: center;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 2rem auto;
}

.support-item {
    background: linear-gradient(135deg, #1a0033 0%, #330066 100%);
    border: 3px solid #0ff;
    padding: 2rem 1rem;
    transition: all 0.3s;
}

.support-item:hover {
    transform: scale(1.1);
    border-color: #ff0;
    box-shadow: 0 0 20px rgba(255, 255, 0, 0.5);
}

.support-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.support-label {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    color: #0ff;
}

.support-description {
    color: #0f0;
    font-size: 1rem;
    line-height: 1.8;
    margin-top: 2rem;
}

/* ===== 21. CTAセクション ===== */
.cta-section-retro {
    background: linear-gradient(180deg, #1a0033 0%, #000 100%);
    padding: 4rem 1rem;
    text-align: center;
}

.cta-content {
    max-width: 900px;
    margin: 0 auto;
}

.cta-title {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: #ff0;
    margin-bottom: 2rem;
    text-shadow: 
        2px 2px 0 #000,
        4px 4px 0 #f0f;
}

.special-offer {
    background: #000;
    border: 4px solid #ff0;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 
        inset 0 0 30px rgba(255, 255, 0, 0.3),
        0 0 20px rgba(255, 255, 0, 0.5);
}

.offer-title {
    color: #0ff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.offer-price {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.price-highlight {
    color: #0f0;
    animation: blink 1s infinite;
}

.offer-bonus {
    color: #ff0;
    font-size: 1rem;
}

.cta-buttons {
    margin: 2rem 0;
}

.cta-secondary {
    background: linear-gradient(180deg, #00ff66 0%, #009933 100%);
    border-color: #0ff;
}

.cta-download {
    background: linear-gradient(180deg, #ffff00 0%, #999900 100%);
    border-color: #fff;
    color: #000;
}

.cta-contact {
    background: linear-gradient(180deg, #00ffff 0%, #0099cc 100%);
    border-color: #fff;
}

.company-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 600px;
    margin: 2rem auto;
}

.stat {
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid #0ff;
    padding: 1rem;
}

.stat-number {
    display: block;
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
    color: #ff0;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #0f0;
}

/* ===== 22. 価格関連 ===== */
.jackpot-counter {
    background: #000;
    border: 4px solid #ff0;
    padding: 2rem;
    max-width: 600px;
    margin: 3rem auto;
    text-align: center;
    position: relative;
    box-shadow: 
        inset 0 0 50px rgba(255, 255, 0, 0.3),
        0 0 30px rgba(255, 255, 0, 0.5);
}

.jackpot-counter::before,
.jackpot-counter::after {
    content: "💰";
    position: absolute;
    font-size: 2rem;
    animation: money-rain 3s linear infinite;
}

.jackpot-counter::before {
    left: 20px;
    top: -20px;
}

.jackpot-counter::after {
    right: 20px;
    top: -20px;
    animation-delay: 1.5s;
}

@keyframes money-rain {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100px) rotate(360deg); opacity: 0; }
}

.jackpot-label {
    font-family: 'Press Start 2P', cursive;
    color: #ff0;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.jackpot-amount {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.8rem;
    color: #0f0;
    text-shadow: 
        2px 2px 0 #000,
        4px 4px 10px rgba(0, 255, 0, 0.8);
    animation: count-up 0.5s infinite;
    
    /* 改行防止を追加 */
    white-space: nowrap !important;
    display: flex !important;
    align-items: baseline !important;
    justify-content: center !important;
}

@keyframes count-up {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.price-label, .price-unit {
    font-size: 1rem;
    color: #0ff;
}

.price-value {
    font-size: 2rem;
    color: #0f0;
}

.jackpot-subtitle {
    color: #ff0;
    font-size: 0.8rem;
    margin-top: 1rem;
    animation: blink 2s infinite;
}

/* ===== 23. フッター ===== */
.arcade-footer {
    background: linear-gradient(180deg, #1a0033 0%, #0a0a0a 100%) !important;
    border-top: 4px solid #fff !important;
    padding: 3rem 1rem;
    position: relative;
    overflow: hidden;
}

.footer-container-retro {
    max-width: 1200px;
    margin: 0 auto;
}

.game-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.6rem;
    color: #ff0;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    color: #0f0;
}

.footer-logo-retro {
    text-align: center;
    margin: 2rem 0;
}

.ascii-logo {
    font-family: monospace;
    color: #0ff;
    font-size: 0.8rem;
    line-height: 1.2;
    display: inline-block;
}

.footer-links-retro {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin: 2rem 0;
}

.link-column {
    text-align: left;
}

.link-column h4 {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    color: #ff0;
    margin-bottom: 1rem;
}

.link-column a {
    display: block;
    color: #0f0;
    text-decoration: none;
    margin: 0.5rem 0;
    transition: all 0.3s;
}

.link-column a:hover {
    color: #0ff;
    transform: translateX(5px);
}

.social-icons-retro {
    text-align: center;
    margin: 2rem 0;
}

.social-icon {
    display: inline-block;
    font-size: 2rem;
    margin: 0 1rem;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icon:hover {
    transform: scale(1.2) rotate(10deg);
}

.copyright-retro {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px dashed #0ff;
}

.copyright-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.6rem;
    color: #0f0;
    margin-bottom: 0.5rem;
}

.separator {
    color: #ff0;
}

.event-info {
    color: #ff0;
    font-size: 0.8rem;
}

.konami-message {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #000;
    border: 4px solid #ff0;
    padding: 2rem;
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    color: #0f0;
    z-index: 10000;
    box-shadow: 0 0 50px rgba(255, 255, 0, 0.8);
}

.konami-message.show {
    display: block;
    animation: flash 0.5s 5;
}

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ===== 24. レスポンシブ対応 ===== */
@media (max-width: 768px) {
    /* カーソルを無効化 */
    .custom-cursor,
    .cursor-trail {
        display: none !important;
    }
    
    body {
        cursor: auto !important;
    }
    
    /* モバイルメニュー表示 */
    .mobile-menu-btn-retro {
        display: block;
    }
    
    .nav-retro {
        display: none;
    }
    
    /* h1タイトルを小さく */
    .seo-title {
        font-size: 0.7rem !important;
    }
    
    .seo-title-en {
        font-size: 0.5rem !important;
    }
    
    .seo-title-jp {
        font-size: 0.65rem !important;
    }
    
    /* マーキーを小さく */
    .marquee-container {
        height: 28px !important;
        padding: 4px 0 !important;
    }
    
    .marquee-text {
        font-size: 11px !important;
    }
    
    .arcade-hero {
        padding-top: 35px !important;
    }
    
    /* タイトルを小さく */
.main-title {
    font-size: 1.5rem !important;
    /* 改行防止を維持しつつ、画面幅に合わせて縮小 */
    white-space: nowrap !important;
    transform: scale(0.8);
    transform-origin: center;
}
    
    /* スコア表示を小さく */
    .score-display {
        top: 120px !important;
        right: 10px !important;
        transform: scale(0.8);
    }
    
    /* バッジを小さく 
    .trial-badge-retro {
        right: 10px !important;
        top: 200px !important;
        transform: scale(0.8);
    }*/

    .trial-badge-retro {
        right: 5px !important;  /* もっと内側に */
        top: 230px !important;
        transform: scale(0.7);  /* さらに小さく */
        box-shadow: 0 0 20px rgba(255, 0, 255, 0.8), 
                    5px 5px 0 #000 !important; /* シャドウも小さく */
    }


    
    /* TOPボタンを小さく */
    .back-to-top-retro {
        bottom: 80px !important;
        right: 30px !important;
        width: 80px !important;
        height: 80px !important;
    }
    
    /* カウンターを小さく */
    .visitor-counter-showa {
        transform: scale(0.7);
        transform-origin: bottom right;
    }
    
    /* 時計を小さく */
    .digital-clock-showa {
        font-size: 10px !important;
        padding: 3px 6px !important;
    }
    
    /* デモセクション調整 */
    .demo-container-retro {
        grid-template-columns: 1fr;
    }
    
    .mobile-frame {
        transform: scale(0.8);
    }
    
    /* フィーチャーボタン調整 */
.feature-buttons {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        padding: 1rem !important;
        justify-items: center;
    }
    
    .arcade-button {
        width: 120px !important;
        height: 120px !important;
        padding: 0 !important;
        aspect-ratio: 1 / 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    /* フッターリンク調整 */
    .footer-links-retro {
        flex-direction: column;
        gap: 2rem;
    }
    
    .game-stats {
        flex-direction: column;
        gap: 1rem;
    }

    /* セクションタイトルを調整 */
    .section-title-retro {
        font-size: 1.3rem !important;
        white-space: nowrap !important;
        /* transformは使わない */
        padding: 0 5px;
        /* 装飾文字を小さく */
    }
    
    .section-title-retro .title-decoration {
        font-size: 0.9rem !important;
        display: inline-block;
        margin: 0 2px;
    }

    /* 価格表示を調整 */
    .jackpot-amount {
        font-size: 1.3rem !important;
        white-space: nowrap !important;
    }
    
    .jackpot-amount .price-value {
        font-size: 1.5rem !important;
    }
    
    .jackpot-amount .price-label,
    .jackpot-amount .price-unit {
        font-size: 0.8rem !important;
    }

    /* CTAボタンを調整 */
    .cta-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .arcade-cta {
        font-size: 0.7rem !important;
        padding: 0.8rem 1.5rem !important;
        white-space: nowrap !important;
        min-width: 200px;
        text-align: center;
    }

.arcade-button {
        /* 正方形のサイズを固定 */
        width: 120px !important;  /* 固定幅 */
        height: 120px !important; /* 固定高さ（同じ値で正円） */
        padding: 0 !important;    /* paddingを削除 */
        
        /* 中央配置 */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        
        /* 正円を保証 */
        border-radius: 50%;
        aspect-ratio: 1 / 1;  /* 縦横比を1:1に固定 */
    }
    
    /* 中のコンテンツも調整 */
    .arcade-button .button-icon {
        font-size: 1.5rem;
        margin-bottom: 0.3rem;
    }
    
    .arcade-button .button-label {
        font-size: 0.7rem;
        line-height: 1.2;
        text-align: center;
    }



}



/* WordPress管理バー対応 */
.admin-bar .arcade-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .arcade-header {
        top: 46px;
    }
}

@media (max-width: 400px) {
    /* 全体的な制限 */
    html, body {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    /* mobile-display-retro対策 */
    .mobile-display-retro {
        max-width: 100% !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
    
    .mobile-frame {
        width: 90vw !important;  /* 画面幅の90% */
        max-width: 280px !important;  /* 最大280px */
        height: auto !important;
        transform: none !important;  /* scaleを無効化 */
    }
    
    /* スコア表示を更に小さく */
    .score-display {
        right: 5px !important;
        top: 100px !important;
        transform: scale(0.7) !important;
        transform-origin: top right;
        font-size: 0.8rem !important;
    }
    
    /* トライアルバッジを更に調整 */
    .trial-badge-retro {
        position: fixed !important;
        right: 2px !important;
        top: 180px !important;
        transform: scale(0.6) !important;
        transform-origin: top right;
        padding: 0.5rem !important;
        /* box-shadowを小さく */
        box-shadow: 0 0 10px rgba(255, 0, 255, 0.5), 
                    3px 3px 0 #000 !important;
    }
    
    /* ヘッダーロゴを小さく */
    .arcade-logo {
        padding: 0.5rem 1rem !important;
        transform: scale(0.8);
    }
    
    .logo-text {
        font-size: 1rem !important;
    }
    
    /* Back to Topを更に小さく */
    .back-to-top-retro {
        width: 60px !important;
        height: 60px !important;
        right: 10px !important;
        bottom: 85px !important;
        font-size: 0.4rem !important;
    }
    
    /* デモカードなども調整 */
    .demo-card {
        padding: 0.5rem !important;
        font-size: 0.8rem !important;
    }
    
    /* フィーチャーボタンを1列に */
    .feature-buttons {
        grid-template-columns: 1fr !important;
        display: grid !important;
        justify-items: center;
    }
    
    .arcade-button {
        width: 140px !important;
        height: 140px !important;
        padding: 0 !important;
        aspect-ratio: 1 / 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    /* パワーアップアイテムを非表示 */
    .powerup {
        display: none !important;
    }
.section-title-retro {
        font-size: 0.95rem !important;
        white-space: nowrap !important;
        margin: 2rem 0 !important;
        /* 影を小さく */
        text-shadow: 
            2px 2px 0 #ff00ff,
            3px 3px 0 #ffff00,
            5px 5px 15px rgba(0,255,255,0.8) !important;
    }
    
    /* 装飾を非表示にする選択肢も */
    .section-title-retro .title-decoration {
        display: none !important; /* または font-size: 0.7rem !important; */
    }
   /* 価格表示をさらに小さく */
    .jackpot-amount {
        font-size: 1rem !important;
        white-space: nowrap !important;
        gap: 2px; /* 要素間の隙間を狭く */
    }
    
    .jackpot-amount .price-value {
        font-size: 1.2rem !important;
    }
    
    .jackpot-amount .price-label,
    .jackpot-amount .price-unit {
        font-size: 0.6rem !important;
    }
    
    /* jackpot-counter全体も調整 */
    .jackpot-counter {
        padding: 1.5rem 1rem !important;
        margin: 2rem auto !important;
    }

   /* CTAボタンをさらに調整 */
    .arcade-cta {
        font-size: 0.6rem !important;
        padding: 0.7rem 1.2rem !important;
        white-space: nowrap !important;
        min-width: 180px;
    }
    
    .arcade-cta .cta-icon {
        display: inline-block;
        transform: scale(0.8);
    }

}

/* 350px以下はさらに極端に */
@media (max-width: 350px) {
    .trial-badge-retro {
        display: none !important;  /* 完全に非表示 */
    }
    
    .score-display {
        display: none !important;  /* または非表示 */
    }
    
    .mobile-frame {
        width: 95vw !important;
        max-width: none !important;
    }
.main-title {
    font-size: 1rem !important;
    transform: scale(0.5) !important;
    transform-origin: center !important;
    white-space: nowrap !important;
}
    .section-title-retro {
        font-size: 0.85rem !important;
        letter-spacing: -1px; /* 文字間を詰める */
    }

    .jackpot-amount {
        font-size: 0.85rem !important;
    }
    
    .jackpot-amount .price-value {
        font-size: 1rem !important;
        letter-spacing: -1px; /* 文字間を詰める */
    }
    
    .jackpot-amount .price-label,
    .jackpot-amount .price-unit {
        font-size: 0.5rem !important;
    }
    .arcade-cta {
        font-size: 0.5rem !important;
        padding: 0.6rem 1rem !important;
        min-width: 160px;
    }

}


/* スマホでもSVG画像を確実に表示 */
@media (max-width: 768px) {
    .button-icon img.emoji {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 2rem !important;
        height: 2rem !important;
        max-width: none !important;
        margin: 0 auto !important;
    }
    
    /* 親要素のフォントサイズリセット（ネイティブ絵文字を防ぐ） */
    .button-icon {
        font-size: 0 !important;
        line-height: normal !important;
    }
}


/* ===== 25. リンク訪問済み色設定 ===== */

/* 基本的なリンクスタイル */
a {
    color: #00ffff !important; /* 通常のリンク色（シアン） */
    text-decoration: none;
    transition: all 0.3s;
}

/* 訪問済みリンクの色 */
a:visited {
    color: #00ff00 !important; /* 訪問済みは緑色 */
}

/* ホバー時の色 */
a:hover {
    color: #ffff00 !important; /* ホバー時は黄色 */
    text-shadow: 0 0 10px currentColor;
}

/* アクティブ時の色 */
a:active {
    color: #ff00ff !important; /* クリック時は紫色 */
}

/* 特定のボタンリンクは除外 */
.arcade-cta,
.nav-button,
.arcade-button,
.demo-card,
.arcade-logo {
    color: inherit !important;
}

.arcade-cta:visited,
.nav-button:visited,
.arcade-button:visited,
.demo-card:visited,
.arcade-logo:visited {
    color: inherit !important;
}

/* フッターリンクの訪問済み色 */
.footer-links-retro a:visited {
    color: #00ff00 !important; /* 緑色 */
}

/* ソーシャルアイコンの訪問済み色 */
.social-icon:visited {
    color: #00ff00 !important; /* 緑色 */
}


/** {
  outline: 1px solid red !important;
}*/