body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f0f0f0;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    position: relative;
    margin: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    width: 100%;
}

h1 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 28px;
    font-weight: 600;
}

#video {
    display: none;
}

#canvas {
    border: 2px solid #333;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.status {
    margin-top: 15px;
    padding: 12px 20px;
    background: #fff;
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-size: 14px;
    color: #333;
    text-align: center;
    min-width: 200px;
}

/* 苺アイコン表示エリア */
.strawberry-icons {
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 600px;
}

.strawberry-icons h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.icons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    min-height: 60px;
    align-items: center;
}

.strawberry-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    position: relative;
}

.strawberry-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* アイコンが追加される時のアニメーション */
.strawberry-icon.new-icon {
    animation: popIn 0.5s ease-out;
}

/* アイコンが削除される時のアニメーション */
.strawberry-icon.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

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

@keyframes fadeOut {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.8);
        opacity: 0;
    }
}

/* アイコンが見つからない時のメッセージ */
.no-strawberries {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

/* ヘルプ情報（折りたたみ式） */
.help-info {
    margin-top: 20px;
    width: 100%;
    max-width: 600px;
}

.help-info details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e9ecef;
}

.help-info summary {
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    outline: none;
    font-size: 14px;
}

.help-info summary:hover {
    color: #007bff;
}

.help-content {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.6;
    color: #6c757d;
}

.help-content strong {
    color: #495057;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 0 10px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .strawberry-icons {
        margin-top: 20px;
        padding: 15px;
    }
    
    .strawberry-icon {
        width: 45px;
        height: 45px;
    }
    
    .icons-container {
        gap: 10px;
    }
}