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;
}

/* 言語切り替えセレクター */
.language-selector {
    text-align: right;
    margin-bottom: 20px;
    font-size: 14px;
}

.lang-link {
    color: #3498db;
    text-decoration: none;
    padding: 3px 6px;
    border-radius: 3px;
}

.lang-link:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

.lang-link.active {
    font-weight: bold;
    color: #2c3e50;
}

.lang-separator {
    color: #ccc;
    margin: 0 5px;
}

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;
}

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

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

.clear-btn {
    background-color: #e74c3c;
}

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

.copy-btn {
    background-color: #9b59b6;
}

.copy-btn:hover {
    background-color: #8e44ad;
}

.download-btn {
    background-color: #f39c12;
}

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

/* PDF File Container */
.pdf-file-container {
    display: none;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background-color: #fff;
}

.file-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.file-header h3 {
    margin: 0;
    color: #2c3e50;
}

.pdf-file-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.pdf-file-icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e74c3c;
    color: white;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
}

.pdf-file-info {
    flex: 1;
    overflow: hidden;
}

.pdf-file-name {
    font-weight: 600;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pdf-file-size {
    font-size: 12px;
    color: #7f8c8d;
}

/* 抽出オプション */
.extraction-options {
    display: none;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background-color: #fff;
}

.extraction-options h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
}

.method-selector {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.common-options {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-bottom: 15px;
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-option input[type="radio"],
.checkbox-option input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
}

.radio-label,
.checkbox-label {
    font-weight: 500;
}

.ocr-options {
    display: none;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.option-group {
    margin-bottom: 15px;
}

.option-description {
    margin: 5px 0 0 0;
    font-size: 14px;
    color: #7f8c8d;
}

.option-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2c3e50;
}

.option-group select {
    width: 200px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.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;
}

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

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

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

.text-content-container {
    min-height: 300px;
    background-color: #f9f9f9;
    border-radius: 4px;
    overflow: hidden;
}

#extractedText {
    width: 100%;
    height: 400px;
    min-height: 300px;
    border: none;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    background-color: #f9f9f9;
    resize: vertical;
    box-sizing: border-box;
}

#extractedText:focus {
    outline: none;
    background-color: #fff;
}

/* フッター */
.footer {
    margin-top: 40px;
    text-align: center;
    font-size: 12px;
    color: #95a5a6;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    .drop-area {
        padding: 15px;
    }
    
    .text-preview-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .text-preview-controls .btn {
        width: 100%;
    }
    
    .file-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .clear-btn {
        margin-top: 10px;
        width: 100%;
    }
    
    .method-selector {
        flex-direction: column;
        gap: 10px;
    }
    
    .option-group select {
        width: 100%;
    }
} 
/* ホームボタンのスタイル */
.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);    }}
