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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.title-ja {
    color: #2e7d32;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.title-en {
    font-size: 1.5rem;
    color: #558b2f;
    font-weight: 300;
}

.subtitle {
    color: #666;
    font-size: 1.1rem;
}

.garden-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

#garden {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 15px;
}

.rhythm-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 20px;
    height: 20px;
    background: #4caf50;
    border-radius: 50%;
    opacity: 0.3;
    transition: all 0.2s ease;
}

.rhythm-indicator.pulse {
    opacity: 1;
    transform: scale(1.5);
    box-shadow: 0 0 20px #4caf50;
}

.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.tap-button {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tap-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 25px rgba(76, 175, 80, 0.4);
}

.tap-button:active {
    transform: translateY(0);
    box-shadow: 0 3px 15px rgba(76, 175, 80, 0.3);
}

.tap-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.tap-button:active::before {
    width: 200px;
    height: 200px;
}

.tap-icon {
    font-size: 2rem;
}

.stats {
    display: flex;
    gap: 30px;
    background: white;
    padding: 20px 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #4caf50;
}

.instructions {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.instructions h2 {
    color: #2e7d32;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.instructions ol {
    list-style-position: inside;
    line-height: 1.8;
    color: #555;
}

.instructions li {
    margin-bottom: 10px;
    padding-left: 10px;
}

footer {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .title-en {
        font-size: 1.2rem;
    }
    
    .tap-button {
        width: 100px;
        height: 100px;
        font-size: 1rem;
    }
    
    .tap-icon {
        font-size: 1.5rem;
    }
    
    .stats {
        padding: 15px 25px;
        gap: 20px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .instructions {
        padding: 20px;
    }
}

/* アニメーション */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.tap-button {
    animation: float 3s ease-in-out infinite;
}