/* css/style.css */
body {
    font-family: 'Yu Gothic', 'Meiryo', sans-serif;
    margin: 0;
    background: #f8f8f8;
}
header {
    background: #fff;
    border-bottom: 1px solid #ddd;
    padding: 16px 0 8px 0;
    text-align: center;
}
#hand-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 24px 0 16px 0;
}
#main-illust {
    width: 50vw;
    max-width: 340px;
    min-width: 180px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    background: #fff;
}
#upload-area {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 24px;
}
.upload-block {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 18px 22px 14px 22px;
    text-align: center;
    min-width: 180px;
    max-width: 220px;
}
.upload-block label {
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}
.preview-img {
    display: block;
    max-width: 90px;
    max-height: 90px;
    border-radius: 8px;
    border: 1px solid #eee;
    margin: 8px auto 0 auto;
    background: #fafafa;
    object-fit: contain;
}
#diagnose-button {
    font-size: 1.1em;
    padding: 10px 36px;
    border-radius: 8px;
    border: none;
    background: #4caf50;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}
#diagnose-button:disabled {
    background: #aaa;
    cursor: not-allowed;
}
#result-area {
    max-width: 900px;
    margin: 0 auto 32px auto;
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    font-size: 1.13em;
    display: none;
}
.hand-result {
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    padding: 18px 18px 12px 18px;
    min-width: 240px;
    max-width: 320px;
    margin-bottom: 16px;
}
.hand-result h3 {
    margin-top: 0;
    font-size: 1.15em;
    color: #333;
}
.category-heading {
    margin-top: 18px;
    margin-bottom: 8px;
    font-size: 1.08em;
    color: #4caf50;
}
.line-diagnosis {
    margin-bottom: 10px;
}
.line-status.present { color: #388e3c; }
.line-status.absent { color: #d32f2f; }
.line-advice { color: #555; font-size: 0.97em; }
.good-point { color: #388e3c; font-weight: bold; }
.bad-point { color: #d32f2f; font-weight: bold; }
.neutral-point { color: #888; font-weight: bold; }
#loading-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(255,255,255,0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.spinner {
    border: 6px solid #eee;
    border-top: 6px solid #4caf50;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
    margin-bottom: 18px;
}
@keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}
#loading-status {
    font-size: 1.2em;
    color: #333;
}

@media (max-width: 700px) {
    #main-illust {
        width: 90vw;
        max-width: 98vw;
        min-width: 120px;
    }
    #upload-area {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .upload-block {
        min-width: 0;
        max-width: 98vw;
        width: 90vw;
    }
    #result-area {
        padding: 16px 4vw;
        font-size: 1em;
    }
    .hand-result {
        min-width: 0;
        max-width: 98vw;
        width: 90vw;
        padding: 12px 4vw;
    }
}
@media (max-width: 400px) {
    #main-illust {
        min-width: 80px;
    }
    #result-area, .hand-result {
        padding: 8px 2vw;
        font-size: 0.95em;
    }
}

/* フッター */
.site-footer {
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(37, 99, 235, 0.1);
}

.site-footer p {
    color: var(--text-medium);
    font-size: 0.9rem;
    opacity: 0.8;
}