* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f3f5f7;
    display: flex;
    justify-content: center;
    padding: 40px;
}

.container {
    width: 100%;
    max-width: 700px;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    color: #2c3e50;
}

.subtitle {
    text-align: center;
    color: #777;
    margin: 10px 0 30px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input[type=file] {
    padding: 10px;
    border: 2px dashed #4a90e2;
    border-radius: 8px;
    background: #fafafa;
}

button {
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #4a90e2;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background: #3578c8;
}

hr {
    margin: 30px 0;
}

#fileList {
    list-style: none;
}

#fileList li {
    padding: 12px;
    margin-bottom: 10px;
    background: #f7f7f7;
    border-radius: 8px;
}

#fileList a {
    text-decoration: none;
    color: #2c3e50;
}

#fileList a:hover {
    color: #4a90e2;
}

#dropZone {
    border: 3px dashed #4a90e2;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    background: #eef6ff;
    margin-bottom: 20px;
    transition: 0.2s;
}

#dropZone.dragover {
    background: #d9ecff;
    border-color: #1976d2;
}

#dropZone h2 {
    margin-bottom: 10px;
}

#dropZone p {
    color: #666;
}

/* ===== アップロード結果 ===== */

.hidden {
    display: none;
}

#uploadResult {
    margin-top: 20px;
    padding: 20px;
    background: #eef8ee;
    border: 1px solid #cde7cd;
    border-radius: 10px;
}

#uploadResult h3 {
    margin-bottom: 15px;
    color: #2e7d32;
}

#shareUrl {
    width: 100%;
    padding: 10px;
    font-size: 15px;
    margin-bottom: 10px;
}

/* ===== アップロード進捗 ===== */

#progressContainer {
    margin-top: 20px;
}

#progressBar {
    width: 100%;
    height: 24px;
}

#progressText {
    margin-bottom: 8px;
    font-weight: bold;
}

#progressPercent {
    text-align: right;
    margin-top: 8px;
}

progress {
    appearance: none;
}

progress::-webkit-progress-bar {
    background: #ddd;
    border-radius: 20px;
}

progress::-webkit-progress-value {
    background: #4a90e2;
    border-radius: 20px;
}

label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 15px;
}

select {

    width:100%;

    padding:10px;

    border-radius:8px;

    border:1px solid #ccc;

    margin-bottom:15px;

    font-size:15px;

}

@media (max-width: 768px) {

    body {

        padding: 12px;

    }

    .container {

        width: 100%;
        max-width: 100%;
        padding: 16px;
        border-radius: 12px;

    }

    h1 {

        font-size: 26px;
        text-align: center;

    }

    input,
    select,
    button {

        width: 100%;
        box-sizing: border-box;
        font-size: 16px;
        margin-bottom: 10px;

    }

    #dropZone {

        padding: 30px 10px;
        font-size: 16px;

    }

    #shareUrl {

        width: 100%;

    }

    #copyButton,
    #uploadButton {

        width: 100%;

    }

    #fileList li {

        word-break: break-word;

    }

}
