body {
    background: linear-gradient(30deg, rgb(0 0 0) 1%, rgb(15 60 58) 100%);
}

body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    max-width: 600px;
    margin: 0px auto 0;
    padding: 15px;
    color: #333;
    min-height: 100dvh;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1.7;
}

.content {
    color: #fff;
}

h1 a span {
    font-size: 26px;
    text-transform: capitalize;
    display: block;
    font-weight: bold;
    color: #2db2b1;
    margin-bottom: 5px;
}

h1 {
    text-align: center;
    font-size: 14px;
    color: #eee;
    font-weight: 100;
}

h1 a {
    text-decoration: none;
    color: #fff;
}

.container {
    background: #00000030;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 20px 30px -20px rgb(255 255 255 / 26%);
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #fff;
}

/* チェックボックスまわり */
.checkbox-group label {
    display: inline-block;
    margin-right: 15px;
    font-weight: normal;
    cursor: pointer;
    user-select: none;
}

/* リサイズオプション */
.resize-options {
    display: none;
    margin-bottom: 40px;
    padding: 15px;
    background: #2a2a2a;
    border-radius: 5px;
}

.resize-options.active {
    display: block;
}

.resize-radios label {
    font-weight: normal;
    margin-right: 10px;
    display: inline-block;
    margin-bottom: 5px;
}

input[type="number"] {
    padding: 8px;
    width: 100px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* 送信ボタン */
button {
    width: 100%;
    padding: 12px;
    background-color: #2cb1b1;
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;

    font-weight: bold;
    border: 1px solid;
}

button:hover {
    filter: brightness(.7);
}

/* ドラッグ＆ドロップエリア */
.drop-zone {
    width: 100%;
    height: 150px;
    border: 2px dashed #000000;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    cursor: pointer;
    background-color: #ececec;
    transition: opacity 0.2s;
    position: relative;
    box-shadow: 0 0 0px 5px #fff;
    opacity: .8;
}

.drop-zone:hover,
.drop-zone.dragover {
    opacity: 1;
}

.drop-zone p {
    margin: 0;
    color: #555;
    font-size: 14px;
    pointer-events: none;
}

.drop-zone p strong {
    color: #000000;
    font-size: 16px;
}

.drop-zone input[type="file"] {
    display: none;
}

/* 選択されたファイルリスト */
#fileList {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
    max-height: 100px;
    overflow-y: auto;
}

#fileList div {
    padding: 2px 0;
    border-bottom: 1px solid #eee;
}

/* --- モーダル（ローディング）のスタイル --- */
.modal-overlay {
    display: none;
    /* 初期状態は非表示 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* 半透明の黒背景 */
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
    /* 背景を少しぼかす */
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 90%;
}

/* くるくる回るスピナー */
.spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #007BFF;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.modal-text {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
}

.modal-subtext {
    font-size: 14px;
    color: #666;
}

.modal-close-hint {
    font-size: 12px;
    color: #999;
    margin-top: 20px;
    cursor: pointer;
    text-decoration: underline;
}

.link {
    margin-top: 100px;
    display: flex;
    justify-content: center;
}

.link a {
    font-size: 14px;
    color: #fff;
    text-decoration: none;
}

.link a:hover {
    opacity: 0.3;
}