body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
}

.description {
    text-align: center;
    margin-bottom: 30px;
    color: #7f8c8d;
}

.drop-area {
    border: 2px dashed #3498db;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    background-color: #ecf0f1;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.drop-area.active {
    border-color: #27ae60;
    background-color: rgba(46, 204, 113, 0.1);
}

.drop-area p {
    margin-bottom: 15px;
    color: #7f8c8d;
}

.btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

.btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.select-btn {
    margin-top: 10px;
}

.convert-btn {
    background-color: #27ae60;
    width: 100%;
    padding: 12px;
    font-size: 18px;
    margin-bottom: 15px;
}

.convert-btn:hover {
    background-color: #219653;
}

.clear-btn {
    background-color: #e74c3c;
    margin-top: 10px;
}

.clear-btn:hover {
    background-color: #c0392b;
}

/* Options styles */
.options-container {
    margin-bottom: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 12px;
    border: 1px solid #e9ecef;
}

.option {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.option-checkbox {
    margin-right: 8px;
    cursor: pointer;
}

.option-label {
    font-weight: 500;
    color: #2c3e50;
    cursor: pointer;
}

.option-hint {
    width: 100%;
    margin-top: 5px;
    margin-left: 24px;
    font-size: 0.85em;
    color: #7f8c8d;
}

.image-preview-container {
    display: none;
    margin-bottom: 20px;
}

.image-preview-container h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item .remove-btn {
    position: absolute;
    top: 3px;
    right: 3px;
    background-color: rgba(231, 76, 60, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}

.selected-count {
    margin-bottom: 10px;
    color: #7f8c8d;
}

.progress-container {
    display: none;
    margin-bottom: 15px;
}

.progress-text {
    margin-bottom: 5px;
    color: #7f8c8d;
}

.progress-bar {
    height: 10px;
    background-color: #ecf0f1;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: #3498db;
    width: 0;
    transition: width 0.3s ease;
}

.message {
    text-align: center;
    padding: 10px;
    margin-top: 10px;
    border-radius: 4px;
    display: none;
}

.message.success {
    background-color: rgba(46, 204, 113, 0.2);
    color: #27ae60;
    display: block;
}

.message.error {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    display: block;
}

/* PDFプレビュー関連のスタイル */
.pdf-preview-container {
    display: none;
    margin-top: 30px;
    margin-bottom: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background-color: #fff;
}

.pdf-preview-container h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
    text-align: center;
}

.pdf-preview-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

#pageInfo {
    margin: 0 15px;
    font-size: 14px;
    color: #7f8c8d;
    min-width: 60px;
    text-align: center;
}

.pdf-canvas-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    background-color: #f9f9f9;
    border-radius: 4px;
    overflow: auto;
}

#pdfCanvas {
    max-width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.download-btn {
    background-color: #f39c12;
    margin-left: 20px;
}

.download-btn:hover {
    background-color: #d35400;
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    .drop-area {
        padding: 15px;
    }
    
    .preview-item {
        width: 80px;
        height: 80px;
    }
    
    .pdf-preview-controls {
        flex-wrap: wrap;
    }
    
    .download-btn {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
}

/* Example of i18n placeholder in CSS, though direct replacement is not standard */
/* .title::before {
    content: "日本語タイトルのプレフィックス";
} */ 
/* ホームボタンのスタイル */
.home-header {
    background-color: #4CAF50;
    text-align: center;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1000;
    margin-bottom: 20px;
}

.home-button {
    display: inline-block;
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

/* PC表示時のスタイル */@media (min-width: 768px) {    .home-header {        text-align: right;        padding: 10px 20px;        background-color: transparent;        box-shadow: none;    }        .home-button {        display: inline-block;        background-color: #4CAF50;        border-radius: 5px;        box-shadow: 0 2px 4px rgba(0,0,0,0.2);        margin-right: 10px;    }        .home-button:hover {        background-color: #45a049;        box-shadow: 0 4px 8px rgba(0,0,0,0.3);        transform: translateY(-2px);    }}
