/* file name : okikae2.css
 最終更新日: 2025-05-11 
 ヘルプテキスト */
.help-text {
    min-height: 4em;
}

/* ローディングアニメーション */
.loading {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1em 2em;
    border-radius: 4px;
    font-size: 1em;
    z-index: 1000;
}

.prompt-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 300px; /* 各ブロックの最小幅 */
    flex: 1; /* 各ブロックが利用可能なスペースを均等に占める */
}

.prompt-block textarea {
    width: 100%; /* 親要素 (prompt-block) の幅いっぱいに広げる */
    box-sizing: border-box; /* パディングとボーダーをwidthに含める */
    max-width: 450px; /* 必要に応じて、textareaが過剰に横長になるのを防ぐ最大幅 */
    /* rows="5"の代わりに高さを固定したい場合は以下を指定 */
    /* height: 100px; */
    /* ユーザーが縦方向にリサイズできるようにする場合は以下を指定 */
    /* resize: vertical; */
}

.copy-btn {
    margin-top: 0.5em;
    padding: 0.3em 1.2em;
    font-size: 1em;
    cursor: pointer;
}
.loading:not(.hidden) {
    display: block;
}
/* fix v1.7.3b: neg common */
.neg-grid{display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:12px !important;}
@media(max-width:767px){.neg-grid{grid-template-columns:1fr !important;}}

/* ============================================================
   ネガティブプロンプト横2列表示（okikae2用）
   ============================================================ */
.neg-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
}
.prompt-box {
    background: #ffffff;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}
.prompt-box textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 100px;
}

/* ============================================================
   コピーボタンのスタイル（共通）
   ============================================================ */
.copy-btn,
.negative-copy-btn {
    display: inline-block;
    background: #4caf50;
    color: #ffffff;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s ease;
    margin-top: 6px;
}
.copy-btn:hover,
.negative-copy-btn:hover {
    background: #388e3c;
}
.copy-btn:active,
.negative-copy-btn:active {
    background: #2e7d32;
}

/* v2.4.0 横2列確実化 */
#negative-prompt-container,.neg-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:16px!important;} @media(max-width:767px){#negative-prompt-container,.neg-grid{grid-template-columns:1fr!important;}}

/* --- 2026-09-10: extracted from inline <style> --- */
body{max-width:900px!important;margin:20px auto!important;padding:0 12px 40px!important;background:#fdfdfd!important;color:#222!important;}.container{max-width:900px;margin:0 auto;}

body {
    max-width: 900px !important;
    margin: 20px auto !important;
    padding: 0 12px 40px !important;
    background-color: #fdfdfd !important;
    color: #222 !important;
}

body {
    max-width: 900px !important;
    margin: 20px auto !important;
    padding: 0 12px 40px !important;
    background-color: #fdfdfd !important;
    color: #222 !important;
}

body{max-width:900px!important;margin:20px auto!important;padding:0 12px 40px!important;background:#fdfdfd!important;color:#222!important;}.container{max-width:900px;margin:0 auto;}