/* Quillエディター用スタイル */
#quill-editor {
    background:#222;
    border: 1px solid #333;
    border-radius: 4px;
    font-family: inherit;
}

/* Quillのツールバースタイル調整（Windowsクラシック風） */
.ql-toolbar {
    background: linear-gradient(to right, #1034a6 0%, #4682b4 50%, #87ceeb 100%);
    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    border-right: 2px solid #404040;
    border-bottom: 2px solid #404040;
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #404040;
    border-radius: 0;
}

/* ツールバーのボタンとピッカー（Windowsクラシック風） */
.ql-toolbar .ql-picker-label,
.ql-toolbar button {
    color: #ffffff;
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
    border: 1px solid #808080;
    border-top-color: #ffffff;
    border-left-color: #ffffff;
    margin: 1px;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}

/* ホバー時（押し込まれた感じ） */
.ql-toolbar .ql-picker-label:hover,
.ql-toolbar button:hover {
    background: linear-gradient(135deg, #e0e0e0, #c0c0c0);
    border-top-color: #808080;
    border-left-color: #808080;
    border-right-color: #ffffff;
    border-bottom-color: #ffffff;
}

/* アクティブ時（押し込まれた状態） */
.ql-toolbar .ql-active {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
    border-top-color: #808080;
    border-left-color: #808080;
    border-right-color: #ffffff;
    border-bottom-color: #ffffff;
    color: #000000;
}

/* ドロップダウン（レトロ風） */
.ql-toolbar .ql-picker-options {
    background: linear-gradient(135deg, #f0f0f0, #d0d0d0);
    border: 2px solid #808080;
    border-top-color: #ffffff;
    border-left-color: #ffffff;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.ql-toolbar .ql-picker-item:hover {
    background: linear-gradient(135deg, #e0e0e0, #c0c0c0);
    color: #000000;
}


/* Quillのエディター部分 */
.ql-container {
    border-left: 1px solid #333;
    border-right: 1px solid #333;
    border-bottom: 1px solid #333;
    border-top: none;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    font-family: inherit;
}

/* エディター内のフォント調整 */
.ql-editor {
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    padding: 12px;
    color: rgb(0, 255, 136);
    min-height: 300px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Quillエディター内のヘッダー・装飾スタイル */
.ql-editor h1 {
    font-size: 2em;
    font-weight: bold;
    color: #00ff88;
    margin: 1em 0 0.5em 0;
}

.ql-editor h2 {
    font-size: 1.5em;
    font-weight: bold;
    color: #00ff88;
    margin: 1em 0 0.5em 0;
}

.ql-editor h3 {
    font-size: 1.3em;
    font-weight: bold;
    color: #00ff88;
    margin: 1em 0 0.5em 0;
}

.ql-editor p {
    color: #00ff88;
    margin: 0.5em 0;
    line-height: 1.6;
    font-size: 1.1em;
}

.ql-editor strong {
    font-weight: bold;
    color: #00ff88;
}

.ql-editor em {
    font-style: italic;
    color: #00ff88;
}

.ql-editor ul {
    list-style: disc;
    margin-left: 1.5em;
    color: #00ff88;
}

.ql-editor ol {
    list-style: decimal;
    margin-left: 1.5em;
    color: #00ff88;
}

/* プレースホルダー調整 */
.ql-editor.ql-blank::before {
    color: rgb(0, 255, 136, 0.6);
    font-style: normal;
}

/* 画像サイズ制限（エディター内・表示時共通） */
.ql-editor img {
    max-width: 100%; /* エディタ幅は超えない */
    width: auto;     /* オリジナルサイズを保持 */
    height: auto;
    display: block;
    margin: 10px 0;
}

/* 記事詳細表示時の画像サイズ制限 */
.article-detail-content img {
    max-width: 100%;
    width: auto;     /* オリジナルサイズを保持 */
    height: auto;
    display: block;
    margin: 10px 0;
}

/* 記事詳細・削除確認ページのQuillコンテンツ表示用スタイル */
.article-detail-content.ql-editor,
.delete-article-content.ql-editor {
    /* 既存のサイトスタイルを維持 */
    font-size: inherit;
    font-family: inherit;
    padding: 20px;
    background: rgba(0, 65, 22, 0.8);
    color: #00ff88;
    border: none;
    min-height: auto;
    white-space: normal;
}

/* Quillヘッダースタイルをコンテンツ表示用に調整 */
.article-detail-content.ql-editor h1,
.delete-article-content.ql-editor h1 {
    font-size: 2em;
    font-weight: bold;
    margin: 1em 0 0.5em 0;
    color: #00ff88;
}

.article-detail-content.ql-editor h2,
.delete-article-content.ql-editor h2 {
    font-size: 1.5em;
    font-weight: bold;
    margin: 1em 0 0.5em 0;
    color: #00ff88;
}

.article-detail-content.ql-editor h3,
.delete-article-content.ql-editor h3 {
    font-size: 1.3em;
    font-weight: bold;
    margin: 1em 0 0.5em 0;
    color: #00ff88;
}

.article-detail-content.ql-editor strong,
.delete-article-content.ql-editor strong {
    font-weight: bold;
    color: #00ff88;
}

.article-detail-content.ql-editor em,
.delete-article-content.ql-editor em {
    font-style: italic;
    color: #00ff88;
}

.article-detail-content.ql-editor ul,
.delete-article-content.ql-editor ul {
    list-style: disc;
    margin-left: 1.5em;
    color: #00ff88;
}

.article-detail-content.ql-editor ol,
.delete-article-content.ql-editor ol {
    list-style: decimal;
    margin-left: 1.5em;
    color: #00ff88;
}

