/* ==============================================================================
 * dep_zyokyo.css - v2.3.0 完全版 (レイアウト最適化・ログ表示対応)
 * ============================================================================== */

/* 1. 基本レイアウト */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding-inline: 16px;
}
body { background-color: #f8fafc; }
.main-content { display: block; margin-top: 16px; }

/* 2. セクション & ステップ構造 */
.section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.step-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #111827;
}
.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    height: 1.75rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: #3b82f6;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: bold;
}

/* 3. 入出力 2列レイアウト (input-output-wrapper) */
.input-output-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}
.input-output-wrapper > .section {
    flex: 1 1 0%;
    min-width: 0;
    margin-bottom: 0;
}
@media (max-width: 768px) {
    .input-output-wrapper { flex-direction: column; }
}

/* 4. ネガティブプロンプト 2列グリッド (neg-grid) */
.neg-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    margin-top: 12px;
}
@media (max-width: 768px) {
    .neg-grid { grid-template-columns: 1fr !important; }
}
#after_general, #after_general_pg {
    width: 100%;
    min-height: 120px;
    box-sizing: border-box;
}

/* 5. ログ表示 (log-list) */
.log-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 8px;
    background: #fafafa;
}
.log-item {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}
.log-item .meta {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    color: #e2e8f0;
}
.log-item .payload {
    margin: 4px 0;
    word-break: break-all;
}

/* 6. ボタンとステータス */
.btn-green { background-color: #22c55e; color: #ffffff; }
.btn-sub { background-color: #f3f4f6; color: #374151; border-color: #d1d5db; }
.status-bar {
    padding: 10px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
}
.status-bar.success {
    background: #d1fae5;
    color: #065f46;
}
/* Step3 は横並びにしない */
#step3-section {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  margin-top: 20px !important;
}