/* ==========================================================================
   DIYボックス（タイトル付き枠）の設定
   ========================================================================== */
.my-diy-box {
    position: relative;
    margin: 40px 0;
    padding: 30px 25px 20px;
    border-style: solid;
    box-sizing: border-box;
}

.my-diy-label {
    position: absolute;
    left: 20px;
    padding: 2px 18px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 4px;
    line-height: 1.6;
    white-space: nowrap;
    z-index: 10;
}

.my-diy-content {
    color: inherit;
}

.editor-styles-wrapper .my-diy-box p,
.my-diy-content p {
    margin: 0 !important;
    padding: 0;
    color: inherit;
}

@media screen and (max-width: 767px) {
    .my-diy-box {
        margin: 30px 0 20px;
        padding: 25px 15px 15px;
    }

    .my-diy-label {
        left: 12px;
        font-size: 13px;
        padding: 1px 12px;
    }
}

/* ==========================================================================
   半分マーカー：エディタ・フロント共通スタイル
   ========================================================================== */
.half-marker,
.editor-styles-wrapper .half-marker {
    display: inline !important;
    text-decoration: none !important;
    /* デフォルトのグラデーション（色はJS側から注入される変数 --m-color を優先） */
    background: linear-gradient(transparent 60%, var(--m-color, #f8eaa6) 60%) !important;
}

/* ==========================================================================
   半分マーカー：右サイドバー（Inspector）内調整
   ========================================================================== */
/* サイドバー内の説明テキスト */
.components-panel__body p {
    font-size: 13px;
    color: #1e1e1e;
}

/* カラーパレットの入力欄の見た目を整える */
.components-color-palette__input {
    border: 1px solid #949494 !important;
    border-radius: 2px !important;
    padding: 6px 8px !important;
    font-family: monospace;
}

/* カラーパレット間の余白調整 */
.components-color-palette__item-wrapper {
    margin-right: 12px !important;
    margin-bottom: 12px !important;
}