#fcs-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.fcs-inner {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
}

/* ヘッダー */
.fcs-header {
    text-align: center;
    margin-bottom: 2rem;
}

#fcs-container h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.fcs-description {
    font-size: 0.9375rem;
    color: #64748b;
    margin: 0;
}

/* ステップ */
.fcs-step {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.fcs-step:hover {
    border-color: #667eea;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.1);
}

.fcs-step-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    color: #1e293b;
    margin-bottom: 1rem;
}

.fcs-step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* テキストエリア（入力欄） */
#fcs-html-input {
    width: 100%;
    min-height: 180px;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.875rem;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    background: #f8fafc;
    resize: vertical;
    box-sizing: border-box;
    transition: all 0.3s ease;
    line-height: 1.5;
    color: #334155;
    margin-bottom: 1rem;
}

#fcs-html-input:focus {
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    outline: none;
}

#fcs-html-input::placeholder {
    color: #94a3b8;
}

/* 抽出ボタン */
#fcs-extract-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

#fcs-extract-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.45);
}

/* ファイル数情報 */
.fcs-files-info {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f1f5f9;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 1rem;
}

.fcs-files-info::before {
    content: "📊";
}

/* タブ */
.fcs-tabs-wrapper {
    overflow-x: auto;
    margin-bottom: 0;
    padding-bottom: 0;
}

.fcs-tabs {
    display: flex;
    gap: 0.375rem;
    border-bottom: 2px solid #e2e8f0;
    min-width: max-content;
    padding-bottom: 0;
}

.fcs-tab {
    padding: 0.625rem 1rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    font-size: 0.8125rem;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
    bottom: -2px;
}

.fcs-tab:hover {
    background: #f0f4ff;
    color: #667eea;
    border-color: #667eea;
}

.fcs-tab.active {
    background: white;
    color: #667eea;
    border-color: #667eea;
    border-bottom: 2px solid white;
    z-index: 1;
}

/* タブコンテンツ */
.fcs-tab-contents {
    border: 2px solid #667eea;
    border-top: none;
    border-radius: 0 0 10px 10px;
    background: white;
    margin-bottom: 1rem;
}

.fcs-tab-content {
    display: none;
    padding: 1rem;
}

.fcs-tab-content.active {
    display: block;
}

.fcs-tab-content label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
}

.fcs-code-input {
    width: 100%;
    min-height: 320px;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.8125rem;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    background: #f8fafc;
    resize: vertical;
    box-sizing: border-box;
    transition: all 0.3s ease;
    line-height: 1.6;
    color: #1e293b;
}

.fcs-code-input:focus {
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    outline: none;
}

.fcs-code-input::placeholder {
    color: #94a3b8;
    font-style: italic;
}

/* ダウンロードボタンエリア */
.fcs-download-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

#fcs-zip-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

#fcs-zip-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

#fcs-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.25);
}

#fcs-reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(100, 116, 139, 0.35);
}

/* ローディング */
#fcs-loading {
    text-align: center;
    padding: 1.25rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    color: #92400e;
    font-weight: 600;
    margin-top: 1rem;
    animation: fcs-pulse 1.5s ease-in-out infinite;
}

#fcs-loading::before {
    content: "⏳ ";
}

@keyframes fcs-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.7; }
}

/* 通知 */
.fcs-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 400px;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease;
}

/* スクロールバー */
.fcs-code-input::-webkit-scrollbar,
#fcs-html-input::-webkit-scrollbar {
    width: 6px;
}

.fcs-code-input::-webkit-scrollbar-track,
#fcs-html-input::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.fcs-code-input::-webkit-scrollbar-thumb,
#fcs-html-input::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* レスポンシブ */
@media (max-width: 768px) {
    #fcs-container {
        margin: 1rem;
        padding: 1.25rem;
    }

    .fcs-inner {
        padding: 1.25rem;
    }

    #fcs-container h3 {
        font-size: 1.375rem;
    }

    .fcs-download-buttons {
        flex-direction: column;
    }

    #fcs-zip-btn,
    #fcs-reset-btn {
        width: 100%;
        justify-content: center;
    }
}
