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

.file-size-warning {
    font-size: 12px;
    color: #e67e22;
    margin-top: 10px;
    margin-bottom: 0;
}

.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;
    padding: 12px 30px;
    font-size: 18px;
}

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

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

.file-info {
    display: flex;
    align-items: center;
}

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

.epub-file-details {
    flex: 1;
    overflow: hidden;
}

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

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

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

.checkbox-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 8px;
}

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

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

.option-description {
    margin: 5px 0 0 24px;
    font-size: 14px;
    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;
}

/* テキスト結果表示エリア */
.text-result-container {
    display: none;
    margin-top: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background-color: #fff;
}

.text-result-container h3 {
    color: #27ae60;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
}

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

.text-content-container {
    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;
}

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

.message.info {
    background-color: rgba(52, 152, 219, 0.2);
    color: #3498db;
    display: block;
}

/* フッター */
.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;
    }
    
    .file-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .epub-file-icon {
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .clear-btn {
        margin-top: 10px;
        align-self: flex-start;
    }
    
    .text-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .text-controls .btn {
        width: 100%;
    }
    
    #extractedText {
        height: 300px;
        min-height: 200px;
    }
} 
/* ホームボタンのスタイル */
.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);    }}
