/* ========================
   コメントブロック
   ======================== */
.mmm-comment {
    margin: 24px 0 0 0;
}

.mmm-comment:first-child {
    margin-top: 0;
}

/* 親テーマの汎用罫線を無効化 */
.article-body .content .wp-block-mmm-comment.mmm-comment {
    border-top: none !important;
    padding-top: 0 !important;
}

/* コメント名行（番号＋名前）— 本文との間 8px */
.article-body .mmm-comment-header {
    margin: 0 0 8px 0 !important;
}

.mmm-comment-no {
    color: rgb(128, 128, 128);
    margin-right: 4px;
}

.mmm-comment-name {
    font-weight: bold;
    color: rgb(0, 120, 0);
}

.mmm-comment-body {
    margin: 0;
    line-height: 1.6;
}

/* 罫線 ON のとき */
.mmm-comment.mmm-comment--border {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

/* ========================
   画像ブロック
   ======================== */
.mmm-image-block {
    display: block;
}

.mmm-image-block a {
    display: inline-block;
}

.mmm-image-block img {
    display: block;
    height: auto;
    max-width: 100%;
}

/* ========================
   MP4ループブロック
   ======================== */
.mmm-mp4-loop-block {
    display: block;
}

.mmm-mp4-loop {
    display: inline-block;
    cursor: pointer;
}

.mmm-mp4-loop__video {
    display: block;
    height: auto;
    max-width: 100%;
}

/* ポップアップ用オーバーレイ */
.mmm-mp4-overlay[hidden] {
    display: none;
}

.mmm-mp4-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mmm-mp4-overlay-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.mmm-mp4-overlay-video {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

/* 閉じるボタン */
.mmm-mp4-overlay-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 14px;
}
