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

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 400px;
    margin: 0 auto;
    min-height: 100vh;
    background: white;
    position: relative;
    overflow-x: hidden;
}

.header {
    background: #4267b2;
    color: white;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.header h1 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.score {
    font-size: 16px;
    font-weight: 500;
}

.game-area {
    padding: 15px;
    padding-bottom: 100px;
    min-height: calc(100vh - 100px);
}

.notifications {
    min-height: 350px;
    position: relative;
}

.notification {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: slideIn 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.notification:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.notification.clicked {
    animation: clickPulse 0.3s ease-out;
    background: #ff6b6b;
    color: white;
}

.notification-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.notification-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff9a9e, #fecfef);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 18px;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.notification-text {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
}

.notification-time {
    color: #999;
    font-size: 12px;
    margin-top: 8px;
}

.like-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #e74c3c;
    font-size: 20px;
    animation: heartBeat 2s infinite;
}

.notification-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    padding: 5px;
    border-radius: 50%;
}

.notification-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

.notification-icon:active {
    transform: scale(0.95);
}

.notification-icon .icon {
    font-size: 24px;
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    display: none;
    animation: badgePulse 0.3s ease-out;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.badge:hover {
    transform: scale(1.1);
}

.header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
}

.timer {
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0;
    color: #ffeb3b;
}

.instructions {
    margin-top: 15px;
    color: #666;
}

.instructions p {
    margin: 5px 0;
    font-size: 13px;
    line-height: 1.4;
}

.game-over {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.game-over h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.final-score {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #4267b2;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes clickPulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

@keyframes heartBeat {
    0%, 50%, 100% { transform: scale(1); }
    25%, 75% { transform: scale(1.2); }
}

@keyframes badgePulse {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.game-controls {
    text-align: center;
    margin-top: 20px;
    padding: 20px 0;
}

.start-btn, .restart-btn {
    background: #4267b2;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(66, 103, 178, 0.3);
    margin-bottom: 15px;
}

.start-btn:hover, .restart-btn:hover {
    background: #365ba3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 103, 178, 0.4);
}

/* モバイル対応 */
@media (max-width: 480px) {
    .container {
        max-width: 100%;
    }
    
    .header {
        padding: 12px 15px;
    }
    
    .header h1 {
        font-size: 16px;
    }
    
    .header-info {
        font-size: 13px;
    }
    
    .game-area {
        padding: 12px;
        padding-bottom: 80px;
    }
    
    .notification {
        padding: 10px;
        margin-bottom: 6px;
    }
    
    .notification-title {
        font-size: 13px;
    }
    
    .notification-text {
        font-size: 12px;
    }
    
    .start-btn, .restart-btn {
        padding: 10px 20px;
        font-size: 15px;
    }
    
    .instructions p {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .header {
        padding: 10px 12px;
    }
    
    .header h1 {
        font-size: 15px;
    }
    
    .game-area {
        padding: 10px;
    }
    
    .notification {
        padding: 8px;
    }
    
    .notification-avatar {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}