
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f0f2f5;
    color: #333;
}

main {
    text-align: center;
    background-color: #fff;
    padding: 2rem 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 600px;
}

h1 {
    color: #1d3557;
}

#drop-zone {
    border: 3px dashed #a8dadc;
    border-radius: 12px;
    padding: 3rem;
    margin-top: 2rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

#drop-zone.dragover {
    background-color: #f1faee;
    border-color: #457b9d;
}

#file-select-button {
    background-color: #457b9d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1rem;
    transition: background-color 0.2s ease;
}

#file-select-button:hover {
    background-color: #1d3557;
}

.hidden {
    display: none;
}

#result-area {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: left;
}

#result-area.safe {
    background-color: #e9f5e9;
    border-left: 5px solid #4CAF50;
}

#result-area.malicious {
    background-color: #fdeeee;
    border-left: 5px solid #e53935;
}

#result-area.unknown {
    background-color: #f4f4f4;
    border-left: 5px solid #757575;
}

#result-area.error {
    background-color: #fff3e0;
    border-left: 5px solid #ffa726;
}

#result-title {
    margin-top: 0;
}

#result-details {
    max-height: 80px;
    overflow-y: auto;
    padding-right: 10px;
}

#result-details ul {
    list-style-type: none;
    padding-left: 0;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.9em;
}

#vtotal-link {
    display: inline-block;
    margin-top: 1rem;
    color: #1d3557;
    text-decoration: none;
    font-weight: bold;
}

/* ============================================= */
/* === フッターのスタイル                        === */
/* ============================================= */
footer {
    width: 90%;
    max-width: 600px;
    margin-top: 0rem;
    padding: 0rem 0;
    text-align: center;
    font-size: .8rem;
    color: #6c757d;
}

footer a {
    color: #1d3557;
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
}

/* ============================================= */
/* === タッチデバイス向けの表示調整                === */
/* ============================================= */
.touch-device .no-touch {
    display: none;
}

/* ============================================= */
/* === スマートフォン向けのレイアウト調整       === */
/* ============================================= */
@media (max-width: 768px) {
    body {
        justify-content: flex-start; /* 上揃えにする */
    }

    main {
        padding: 1.5rem 1rem;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
        box-shadow: none;
    }

    main p {
        /* 修正点: ご指定のフォントサイズに変更 */
        font-size: .7rem;
        line-height: 1.2;
    }

    #result-title {
        font-size: 1.2rem;
        line-height: 1.2;
    }

    h1 {
        font-size: 1.8rem;
    }

    #drop-zone {
        border: none;
        padding: 0;
        margin-top: 1.5rem;
    }

    #result-area {
        margin-top: 1.5rem;
    }

    footer {
        margin-top: 0.5rem;
    }
}