/* editor.css */

/* エディタ全体を囲むコンテナ */
.editor-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.editor-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    /* 高さを固定 */
}

/* 共通のフォント設定（ズレ防止のため厳密に一致させる） */
.editor-font-base {
    font-family: 'Courier New', monospace !important;
    font-size: 20px !important;
    line-height: 1.5 !important;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    padding: 12px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* ハイライト表示用レイヤー（背面または前面） */
.highlight-layer {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    color: transparent !important;
    pointer-events: none !important;
    overflow: hidden !important;
    font-weight: 400 !important;
}

/* 入力用テキストエリア */
.editor-textarea {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    /* 入力文字色 */
    border: none !important;
    outline: none !important;
    resize: none !important;
    overflow: auto !important;
    font-weight: 400 !important;

}

/* ハイライト用クラス */
.angle-bracket {
    color: #4ec9b0;
    font-weight: bold;
}

.curly-bracket {
    color: #ce9178;
    font-weight: bold;
}