body {
    font-family: 'Courier New', Courier, monospace;
    background-color: #f8f8f8;
    color: #333;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: auto;
    background-color: #fff;
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
}

h1, h2 {
    color: #2c3e50;
}

/* ----------- 案内セクション ----------- */
.info-section {
    background-color: #fdf3f3;
    border-left: 6px solid #e74c3c;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 6px;
}

.warning-list {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.warning-list li {
    display: inline-block;
    background-color: #ffe6e6;
    padding: 0.4em 0.6em;
    margin-bottom: 0.3em;
    border-radius: 4px;
}

/* ----------- 機能セクション ----------- */
.functional-section {
    background-color: #f5faff;
    border-left: 6px solid #3498db;
    padding: 20px 25px;
    border-radius: 6px;
    margin-bottom: 40px;
}

.alert {
    background-color: #d1f0d1;
    border-left: 5px solid #27ae60;
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.form-section {
    margin-top: 20px;
    margin-bottom: 30px;
}

input[type="file"],
input[type="number"] {
    margin-right: 10px;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    padding: 8px 15px;
    background-color: #3498db;
    border: none;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #2980b9;
}

.image-list {
    list-style-type: none;
    padding-left: 0;
}

.image-list li {
    margin-bottom: 10px;
}

.image-list a {
    margin-left: 10px;
    color: #27ae60;
    text-decoration: none;
}

.image-list a:hover {
    text-decoration: underline;
}

/* ターミナル風ログ出力 */
.terminal-log {
    background-color: #1e1e1e;
    color: #33ff33;
    padding: 15px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    overflow-x: auto;
    white-space: pre-wrap;
    margin-top: 30px;
    border: 1px solid #333;
}

.file-item {
    margin: 5px 0;
    padding: 6px 10px;
    background-color: #f0f0f0;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-item button {
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
}

.file-item button:hover {
    background-color: #c0392b;
}

/* ===============
   ローディング画面
   =============== */

/* ローディングオーバーレイのスタイル */
#loading-overlay {
    position: fixed; /* 画面全体を覆う */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* bodyの背景色(#f8f8f8)を半透明にして、サイトの雰囲気に合わせる */
    background-color: rgba(248, 248, 248, 0.9);
    display: flex; /* 中央揃えのため */
    justify-content: center;
    align-items: center;
    z-index: 9999; /* 他の要素より手前に表示 */
    flex-direction: column;
    text-align: center;
}

/* スピナー（くるくる回るアニメーション）のスタイル */
#loading-overlay .spinner {
    border: 8px solid #e0e0e0; /* 薄いグレー */
    /* メインカラー(#3498db)をスピナーの色として使用 */
    border-top-color: #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1.5s linear infinite;
    margin-bottom: 20px;
}

/* スピナーの回転アニメーション */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ローディングメッセージのスタイル */
#loading-overlay p {
    /* サイト全体のフォントに合わせる */
    font-family: 'Courier New', Courier, monospace;
    /* 見出しの色(#2c3e50)を使用して視認性を高める */
    color: #2c3e50;
    font-size: 18px; /* 少し大きめの文字で見やすく */
    font-weight: bold;
    line-height: 1.6;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-content {
    background: #fff;
    padding: 30px 40px;
    border-radius: 8px;
    text-align: center;
}
.modal-content h2 {
    margin-top: 0;
}
.modal-buttons button {
    margin: 0 10px;
    padding: 10px 20px;
    cursor: pointer;
}