body {
    font-family: sans-serif;
    margin: 20px;
    font-size: 14px;
    /* Overall site font size */
}

.container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    /* 本文とタブの間のスペースを追加 */
}

.editor-container {
    flex: 1;
    min-width: 0;
    /* Prevent content from expanding the container beyond its flex share */
}

textarea {
    width: 100%;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* ボタンとヘッダーの垂直方向の位置を揃える */
    margin-bottom: 5px;
    /* ヘッダーとテキストエリアの間に少しスペースを追加 */
}

.editor-header button {
    margin-right: 10px;
    /* Add space to the right of the button */
}

/* CodeMirrorの行の高さを調整 */
.CodeMirror {
    line-height: 1.3;
    font-family: 'PlemolJP', sans-serif;
    font-size: 13px;
    /* Slightly smaller font for editor */
}

/* .CodeMirror pre {
    line-height: 1.5; 
    /* Adjust this value to increase or decrease line spacing */
/* } */

/* Tab Layout Styles */
#right-pane {
    display: flex;
    flex-direction: column;
    /* Stack tab navigation and content vertically */
}

.tab-nav {
    display: flex;
    border-bottom: 1px solid #ccc;
}

.tab-button {
    padding: 8px 12px;
    /* Slightly smaller padding */
    cursor: pointer;
    border: 1px solid transparent;
    /* Cleaner look */
    border-bottom: none;
    /* Remove bottom border for non-active */
    background-color: #f0f0f0;
    /* Light background for tabs */
    margin-right: 4px;
    border-radius: 4px 4px 0 0;
    /* Rounded top corners */
    font-size: 13px;
    /* Match editor font size */
}

.tab-button:hover {
    background-color: #e0e0e0;
}

.tab-button.active {
    background-color: #fff;
    /* Active tab blends with content area */
    border-color: #ccc;
    border-bottom-color: transparent;
    /* Make it look connected to content */
    font-weight: bold;
    position: relative;
    top: 1px;
    /* Align with content area border */
}

.tab-content-area {
    flex-grow: 1;
    /* Allow content area to fill available vertical space */
    padding: 10px;
    border: 1px solid #ccc;
    border-top: none;
    /* Remove top border as active tab handles it */
    background-color: #fff;
    /* White background for content */
}

.tab-content {
    display: none;
    /* Hide all tab content by default */
}

.tab-content.active {
    display: block;
    /* Show only the active tab content */
}