:root {
    --mm-accent-color: #007aff;
    --mm-bg-light: #f9f9f9;
    --mm-amazon: #000000;
    --mm-rakuten: #ba2636;
    --mm-7net: #ff8c00;
    --mm-tower: #ffd700;
    --mm-text-dark: #333;
    --mm-text-muted: #666;
    --mm-border-color: #eee;
}

/* ===========================
   ページ全体レイアウト
=========================== */
.mm-summary-container,
.mm-magazine-container {
    max-width: 800px;
    margin: 0 auto;
}

.mm-pr-notice {
    font-size: 0.75em;
    color: var(--mm-text-muted);
    margin-bottom: 20px;
}

/* ===========================
   絞り込み・検索
=========================== */
.mm-filter-section,
.mm-archive-filters {
    margin-bottom: 25px;
    background: #fdfdfd;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.mm-filter-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.mm-dropdown,
.mm-search-box {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.9em;
}

.mm-search-box {
    flex: 1;
    min-width: 200px;
}

.mm-sort-button {
    padding: 8px 15px;
    border: 2px solid var(--mm-accent-color);
    background: #fff;
    color: var(--mm-accent-color);
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
}

/* ===========================
   日付見出し
=========================== */
.mm-date-header {
    font-size: 0.9em;
    font-weight: bold;
    color: #444;
    padding: 10px 0 3px;
    border-bottom: 1px solid #ccc;
    margin: 20px 0 8px !important;
}

/* ===========================
   データ行（まとめページのリスト項目）
=========================== */
.mm-data-row {
    display: block;
    padding: 8px 5px 4px;
    border-bottom: 1px solid var(--mm-border-color);
    text-decoration: none !important;
    transition: background 0.1s;
}

.mm-row-odd {
    background-color: #ffffff;
}

.mm-row-even {
    background: linear-gradient(to bottom, #f2f6ff 0%, #edf2ff 100%);
}

.mm-data-row:hover {
    background: #eef2ff !important;
}

.mm-archive-row:hover {
    background-color: #f9f9ff;
}

.mm-data-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    /* タイトル/人物とボタンの間隔を詰める */
    padding-bottom: 2px;
}

.mm-data-date-badge {
    display: inline-block;
    font-size: 0.7em;
    font-weight: bold;
    color: #777;
    background: #efefef;
    padding: 1px 6px;
    border-radius: 3px;
    min-width: 48px;
    text-align: center;
    flex-shrink: 0;
}

.mm-data-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.mm-data-title {
    font-weight: bold;
    font-size: 0.95em;
    color: var(--mm-text-dark);
    line-height: 1.25;
}

.mm-data-person {
    font-size: 0.8em;
    color: var(--mm-text-muted);
    font-weight: normal;
    line-height: 1.25;
}

/* ===========================
   購入ボタン（まとめページ／アーカイブ共通）
=========================== */
.mm-shop-links {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    gap: 4px !important;
    /* タイトルとボタンの間隔を詰める */
    margin-top: 2px !important;
    padding-bottom: 2px !important;
    scrollbar-width: thin;
}

.mm-btn {
    display: inline-block !important;
    text-align: center;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: bold !important;
    border-radius: 4px !important;
    border: 1px solid transparent !important;
    transition: all 0.2s !important;
    white-space: nowrap !important;
    background-color: #0073aa !important;
    border-color: #005a87 !important;
    /* PC表示ではコンパクトに */
    padding: 5px 10px !important;
    margin: 2px 4px 2px 0 !important;
    font-size: 12.5px !important;
}

.mm-btn:hover {
    opacity: 0.9 !important;
    transform: translateY(-1px);
}

.mm-shop-links .mm-btn {
    flex-shrink: 0 !important;
    min-width: auto !important;
}

/* ショップごとの色 */
.mm-btn-amazon {
    background-color: var(--mm-amazon) !important;
    border-color: #e68a00 !important;
}

.mm-btn-rakuten,
.mm-btn-楽天ブックス {
    background-color: var(--mm-rakuten) !important;
    border-color: #a00000 !important;
}

.mm-btn-7net,
.mm-btn-セブンネット {
    background-color: var(--mm-7net) !important;
    border-color: #ff8c00 !important;
}

.mm-btn-tower,
.mm-btn-タワーレコード,
.mm-btn-タワレコ {
    background-color: var(--mm-tower) !important;
    border-color: #ffff00 !important;
}

/* ===========================
   モバイル調整
=========================== */
@media screen and (max-width: 600px) {
    .mm-date-header {
        font-size: 0.85em;
        padding: 8px 0 2px;
        margin: 15px 0 5px !important;
    }

    .mm-data-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    /* アーカイブページはバッジと情報を横並びのまま */
    .mm-archive-row .mm-data-content {
        flex-direction: row;
        align-items: flex-start;
        gap: 8px;
    }

    .mm-data-info {
        width: 100%;
        gap: 2px;
        margin-bottom: 1px;
    }

    /* 縦積みレイアウトになった時だけ幅を固定し、画面外へのはみ出しを防ぐ */
    .mm-shop-links {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .mm-archive-row .mm-data-info {
        width: auto;
        flex: 1;
    }

    .mm-data-title {
        display: inline;
        width: auto;
        font-size: 0.9em;
        line-height: 1.3;
        margin-bottom: 1px;
    }

    .mm-data-person {
        font-size: 0.75em;
        margin-top: 0;
        display: inline;
    }
}

@media (max-width: 768px) {
    .mm-shop-links {
        margin-top: 1px !important;
        gap: 5px !important;
        padding: 4px 0 !important;
    }

    .mm-shop-links .mm-btn {
        font-size: 12.2px !important;
        padding: 5px 9px !important;
        margin: 2px 3px 2px 0 !important;
        min-height: auto !important;
        line-height: 1.3 !important;
    }

    .mm-data-info {
        margin-bottom: 1px !important;
    }
}

/* ===========================
   個別記事ページ
=========================== */
.single-magazine .eye-catch {
    display: none !important;
}

.mm-post-layout h3 {
    margin: 0 0 15px;
    padding: 0;
    font-size: 1.1em;
    border-bottom: none;
}

.mm-post-main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.mm-sidebar-title {
    font-size: 1em !important;
    color: #555;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #eee !important;
    margin-bottom: 15px !important;
}

.mm-shop-links-post {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mm-shop-links-post .mm-btn {
    display: block;
    width: 100%;
    padding: 10px;
    font-size: 0.85em;
    text-align: center;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

@media screen and (min-width: 768px) {
    .mm-post-main-content {
        flex-direction: row;
        align-items: stretch;
        gap: 30px;
    }

    .mm-body-visual {
        flex: 1.2;
        display: flex;
        align-items: center;
        background: #000;
        border-radius: 8px;
        overflow: hidden;
    }

    .mm-body-visual img {
        width: 100%;
        height: auto;
        display: block;
    }

    .mm-post-sidebar {
        flex: 0 0 280px;
        display: flex;
        flex-direction: column;
    }

    .mm-shop-links-container {
        height: 100%;
        background: #fff;
        padding: 20px;
        border-radius: 8px;
        border: 1px solid #ddd;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    }
}

.mm-post-details-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.mm-section-title {
    font-size: 1.1em !important;
    font-weight: bold;
    margin-bottom: 15px !important;
}

.mm-post-details {
    background: #fdfdfd;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.mm-post-details p {
    margin: 5px 0 !important;
    font-size: 0.95em;
}

/* ===========================
   ページネーション
=========================== */
.mm-pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 40px;
}