/* ホームページ専用スタイル */
.header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeIn 0.8s ease-out;
}

.title {
    font-size: 3rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.logo {
    font-size: 3.5rem;
    animation: bounce 2s ease-in-out infinite;
}

.subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}

/* 写真アップロードセクション */
.photo-upload-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.photo-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, #FFB6C1, #FF69B4);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.default-avatar {
    font-size: 2.5rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.photo-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.photo-upload-btn {
    background: linear-gradient(45deg, #FF69B4, #FF1493);
    color: white;
    padding: 12px 20px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    text-align: center;
    min-width: 200px;
}

.photo-upload-btn:hover {
    background: linear-gradient(45deg, #FF1493, #DC143C);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.6);
}

.reset-btn {
    background: linear-gradient(45deg, #32CD32, #228B22);
    color: white;
    padding: 8px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(50, 205, 50, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    min-width: 120px;
}

.reset-btn:hover {
    background: linear-gradient(45deg, #228B22, #006400);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(50, 205, 50, 0.6);
}

#globalPhotoInput {
    display: none;
}

/* アニメーション */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
}

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

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    flex: 1;
}

.game-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.game-card:hover::before {
    left: 100%;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #FF69B4;
}

.game-card:active {
    transform: translateY(-5px) scale(1.01);
}

.game-logo {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
    animation: pulse 3s ease-in-out infinite;
}

.game-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.game-description {
    color: #666;
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.5;
}

.play-button {
    background: linear-gradient(45deg, #FF69B4, #FF1493);
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
    display: inline-block;
}

.game-card:hover .play-button {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
}

.play-button.disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    box-shadow: none;
}

.play-button.disabled:hover {
    transform: none;
    box-shadow: none;
}

.coming-soon {
    opacity: 0.7;
    cursor: not-allowed;
}

.coming-soon:hover {
    transform: none;
    border-color: transparent;
}

.coming-soon .game-logo {
    animation: none;
}

.footer {
    text-align: center;
    padding: 20px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: auto;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .logo {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .photo-upload-section {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }
    
    .photo-preview {
        width: 60px;
        height: 60px;
    }
    
    .default-avatar {
        font-size: 2rem;
    }
    
    .photo-upload-btn {
        padding: 10px 16px;
        font-size: 14px;
        min-width: 180px;
    }
    
    .reset-btn {
        padding: 6px 12px;
        font-size: 12px;
        min-width: 100px;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .game-card {
        padding: 25px;
    }
    
    .game-logo {
        font-size: 3.5rem;
        margin-bottom: 15px;
    }
    
    .game-title {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .game-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .play-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }
    
    .logo {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .photo-upload-section {
        padding: 12px;
        gap: 12px;
    }
    
    .photo-preview {
        width: 50px;
        height: 50px;
    }
    
    .default-avatar {
        font-size: 1.5rem;
    }
    
    .photo-upload-btn {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 160px;
    }
    
    .reset-btn {
        padding: 5px 10px;
        font-size: 11px;
        min-width: 80px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .game-card {
        padding: 20px;
    }
    
    .game-logo {
        font-size: 3rem;
        margin-bottom: 12px;
    }
    
    .game-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .game-description {
        font-size: 0.85rem;
        margin-bottom: 18px;
    }
    
    .play-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* ダークモード対応（将来の拡張用） */
@media (prefers-color-scheme: dark) {
    .game-card {
        background: rgba(30, 30, 30, 0.95);
        color: #fff;
    }
    
    .game-title {
        color: #fff;
    }
    
    .game-description {
        color: #ccc;
    }
}
