/* TinyMCE エディターコンテンツ専用スタイル */
/* Old_Good_Arc ブラック+グリーンテーマ - body_class方式 */

.editor-content {
    font-family: 'Shippori Mincho', serif;
    font-size: 15px;
    line-height: 1.6;
    color: #00ff88;
    background-color: #222;
    padding: 15px;
    margin: 0;
}

/* 段落 */
.editor-content p {
    margin: 0.8em 0;
    color: #00ff88;
}

/* 見出し */
.editor-content h1,
.editor-content h2,
.editor-content h3,
.editor-content h4,
.editor-content h5,
.editor-content h6 {
    color: #00ff88;
    font-family: 'Shippori Mincho', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin-top: 1.2em;
    margin-bottom: 0.6em;
}

.editor-content h1 { font-size: 2.2em; }
.editor-content h2 { font-size: 1.8em; }
.editor-content h3 { font-size: 1.5em; }

/* リスト */
.editor-content ul,
.editor-content ol {
    color: #00ff88;
    margin: 1em 0;
    padding-left: 2em;
}

.editor-content li {
    color: #00ff88;
    margin: 0.3em 0;
}

/* リンク */
.editor-content a {
    color: #4582f5;
    text-decoration: underline;
}

.editor-content a:hover {
    color: #c6eaf0;
}

/* 画像 */
.editor-content img {
    max-width: 100%;  /* スマホではみ出し防止 */
    width: auto;      /* ユーザー設定のwidth属性を尊重 */
    height: auto;
    display: block;
    margin: 1em auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 太字・斜体 */
.editor-content strong,
.editor-content b {
    color: #00ff88;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.editor-content em,
.editor-content i {
    color: #00ff88;
    font-style: italic;
}

/* 引用 */
.editor-content blockquote {
    border-left: 4px solid #00ff88;
    margin: 1em 0;
    padding: 1em 1.5em;
    background-color: rgba(0, 65, 22, 0.6);
    color: #00ff88;
    border-radius: 0 8px 8px 0;
}

/* コード */
.editor-content code {
    background-color: rgba(0, 65, 22, 0.8);
    color: #00ff88;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

/* テーブル */
.editor-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 1em 0;
    background-color: rgba(0, 65, 22, 0.6);
}

.editor-content th,
.editor-content td {
    border: 1px solid #00ff88;
    padding: 8px 12px;
    text-align: left;
    color: #00ff88;
}

.editor-content th {
    background-color: rgba(0, 65, 22, 0.9);
    font-weight: bold;
}

/* 水平線 */
.editor-content hr {
    border: none;
    border-top: 2px solid #00ff88;
    margin: 2em 0;
}

/* テキスト配置クラス（セキュリティ向上のためクラスベース） */
.editor-content .text-left {
    text-align: left;
}

.editor-content .text-center {
    text-align: center;
}

.editor-content .text-right {
    text-align: right;
}

.editor-content .text-justify {
    text-align: justify;
}