:root {
    --primary-color: #1a237e;
    --secondary-color: #0277bd;
    --background-color: #f0f7fa;
    --text-color: #333;
    --font-family: 'Segoe UI', system-ui, sans-serif;
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #4488AA;
    position: fixed;
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.game-header {
    text-align: center;
    margin-bottom: 2rem;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.game-header h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.game-description {
    margin: 1rem 0 0;
    font-size: 1.2rem;
    opacity: 0.9;
}

.game-wrapper {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.game-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

#game-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

canvas {
    display: block;
    margin: 0 auto;
    height: 100% !important;
    aspect-ratio: 3/4;
    object-fit: contain;
}

.game-footer {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .game-header {
        padding: 1.5rem;
    }

    .game-header h1 {
        font-size: 2rem;
    }

    .game-description {
        font-size: 1.1rem;
    }

    .game-wrapper {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .game-header h1 {
        font-size: 1.8rem;
    }

    .game-description {
        font-size: 1rem;
    }
}
