body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', Meiryo, sans-serif;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.container {
    max-width: 960px;
}

.upload-form {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.result-container {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.ai-very-likely {
    color: #dc3545;
    font-weight: bold;
}

.ai-likely {
    color: #fd7e14;
    font-weight: bold;
}

.indeterminate {
    color: #6c757d;
    font-weight: bold;
}

.photo-likely {
    color: #198754;
    font-weight: bold;
}

.photo-very-likely {
    color: #0d6efd;
    font-weight: bold;
}

.score-gauge {
    width: 100%;
    height: 30px;
    background-color: #e9ecef;
    position: relative;
    border-radius: 15px;
    margin: 1rem 0;
}

.score-value {
    height: 100%;
    border-radius: 15px;
    background: linear-gradient(to right, #0d6efd, #198754, #ffc107, #fd7e14, #dc3545);
}

.score-marker {
    position: absolute;
    top: -20px;
    width: 2px;
    height: 70px;
    background-color: #000;
}

.feature-list {
    margin-top: 1rem;
}

.footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
    color: #6c757d;
}

.feedback-form {
    margin-top: 2rem;
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 10px;
}

.message {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 5px;
}

.error-message {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

.success-message {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.loading-spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 0.25rem solid rgba(0, 0, 0, 0.1);
    border-right-color: #0d6efd;
    border-radius: 50%;
    animation: spinner 1s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* 更新履歴セクション */
.update-history {
    background-color: #d1ecf1;
    border-left: 4px solid #0c5460;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

.update-history h3 {
    margin-top: 0;
    color: #0c5460;
    font-size: 1.2em;
}

.update-history ul {
    margin: 10px 0;
    padding-left: 20px;
    list-style: none;
}

.update-history li {
    margin: 8px 0;
    line-height: 1.6;
    position: relative;
    padding-left: 15px;
}

.update-history li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #0c5460;
    font-weight: bold;
}

.update-history strong {
    color: #0c5460;
}

/* 処理中オーバーレイ */
.processing-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.processing-overlay.active {
    display: flex;
}

.processing-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* 大きめのスピナー */
.processing-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* プログレスバー */
.analysis-progress {
    width: 100%;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
}

.analysis-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0d6efd, #0078ff);
    animation: progress 30s linear;
    border-radius: 10px;
}

@keyframes progress {
    0% { width: 0%; }
    100% { width: 100%; }
}

.processing-note {
    color: #666;
    font-size: 14px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.processing-stages {
    text-align: left;
    margin: 20px 0;
    font-size: 0.9em;
}

.stage {
    padding: 5px 0;
    color: #999;
    transition: color 0.3s;
}

.stage.active {
    color: #0d6efd;
    font-weight: bold;
}

.stage.completed {
    color: #28a745;
}

.stage::before {
    content: "○ ";
}

.stage.active::before {
    content: "● ";
    color: #0d6efd;
}

.stage.completed::before {
    content: "✓ ";
    color: #28a745;
}