/* ゲームセレクター スタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    padding: 1rem;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    text-align: center;
    padding: 1rem;
    max-width: 1200px;
    width: 100%;
}

.title-image {
    margin: 0 auto;
    padding: 0;
    display: block;
    margin-bottom: 2rem;
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .title-image {
        margin: 0 auto 1rem auto;
        max-width: 280px;
    }
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    justify-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.game-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    width: 100%;
    max-width: 320px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.game-icon {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 1rem;
}

.color-icon {
    text-shadow: 0 0 20px rgba(255, 20, 147, 0.7);
}

.delivery-icon {
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
}

.cardchain-icon {
    text-shadow: 0 0 20px rgba(0, 191, 255, 0.7);
}

.tetris-icon {
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.7);
}

.kanji-icon {
    text-shadow: 0 0 20px rgba(255, 165, 0, 0.7);
    font-family: 'Klee One', serif;
    font-weight: 600;
}

.device-support {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    display: flex;
    gap: 0.3rem;
}

.device-icon {
    font-size: 1rem;
    padding: 0.2rem 0.3rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.5);
    color: #4CAF50;
}

.device-icon:hover {
    transform: scale(1.1);
    background: rgba(76, 175, 80, 0.3);
}

h2 {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1.5rem;
    opacity: 0.8;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    line-height: 1.4;
}

.game-button {
    display: inline-block;
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    min-width: 120px;
}

.game-button:hover {
    transform: scale(1.05);
    box-shadow: 0 7px 20px rgba(255, 107, 107, 0.6);
}

/* タブレット向けレスポンシブデザイン */
@media (max-width: 1024px) {
    .container {
        padding: 1rem;
    }
    
    .game-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.2rem;
    }
    
    .game-card {
        padding: 1.2rem;
    }
}

/* スマートフォン向けレスポンシブデザイン */
@media (max-width: 768px) {
    body {
        padding: 0.5rem;
    }
    
    .container {
        padding: 0.5rem;
    }
    
    h1 {
        margin-bottom: 1.5rem;
    }
    
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        max-width: 500px;
    }
    
    .game-card {
        padding: 0.8rem;
        max-width: 100%;
    }
    
    .game-card:hover {
        transform: translateY(-3px);
    }
    
    .device-support {
        top: 0.5rem;
        left: 0.5rem;
        gap: 0.2rem;
    }
    
    .device-icon {
        font-size: 0.8rem;
        padding: 0.1rem 0.2rem;
    }
    
    .game-icon {
        font-size: clamp(2.5rem, 6vw, 3.5rem);
        margin-bottom: 0.8rem;
    }
    
    h2 {
        font-size: clamp(1rem, 3.5vw, 1.4rem);
        margin-bottom: 0.4rem;
    }
    
    p {
        font-size: clamp(0.8rem, 2vw, 0.9rem);
        margin-bottom: 1rem;
    }
    
    .game-button {
        padding: 0.6rem 1rem;
        font-size: clamp(0.8rem, 2vw, 0.9rem);
    }
}

/* 小さなスマートフォン向け */
@media (max-width: 480px) {
    .container {
        padding: 0.25rem;
    }
    
    .game-grid {
        gap: 0.6rem;
        max-width: 400px;
    }
    
    .game-card {
        padding: 0.6rem;
        border-radius: 12px;
    }
    
    .device-support {
        top: 0.4rem;
        left: 0.4rem;
    }
    
    .device-icon {
        font-size: 0.7rem;
        padding: 0.1rem 0.15rem;
    }
    
    .game-icon {
        font-size: clamp(2rem, 5vw, 3rem);
        margin-bottom: 0.6rem;
    }
    
    h2 {
        font-size: clamp(0.9rem, 3vw, 1.2rem);
    }
    
    p {
        font-size: clamp(0.7rem, 1.8vw, 0.8rem);
        margin-bottom: 0.8rem;
    }
    
    .game-button {
        padding: 0.5rem 0.8rem;
        font-size: clamp(0.7rem, 1.8vw, 0.8rem);
    }
}

/* 横向きスマートフォン対応 */
@media (max-width: 768px) and (orientation: landscape) {
    body {
        align-items: flex-start;
        padding-top: 1rem;
    }
    
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
        max-width: 600px;
    }
    
    .game-card {
        padding: 0.6rem;
    }
    
    .game-icon {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }
    
    h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    h2 {
        font-size: 1rem;
    }
    
    p {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }
}
/* スイカゲーム用アイコンスタイル */
.suika-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: bounce 2s infinite;
}

/* うさぎと亀ゲーム用アイコンスタイル */
.usagi-icon {
    text-shadow: 0 0 20px rgba(255, 192, 203, 0.7);
}

/* Pastel Blaster用アイコンスタイル */
.blaster-icon {
    text-shadow: 0 0 20px rgba(255, 105, 180, 0.7);
    animation: pulse 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.memory-icon {
    animation: pulse 2s ease-in-out infinite;
}
