@charset "UTF-8";

/* ==============================================
   1. 通常商品リスト・テーブル (JSON版) 用スタイル
   ============================================== */
.ym-list-link { text-decoration: underline; color: #1976d2; font-weight: bold; }
.ym-list-link:hover { text-decoration: none; opacity: 0.8; }

.ym-sync-container .ym-tabs-container { display: flex; width: 100%; margin-bottom: 20px; gap: 5px; }
.ym-sync-container .ym-tab-button { flex: 1; padding: 12px 5px; cursor: pointer; border: 1px solid #ddd; background: #f9f9f9; font-weight: bold; border-radius: 4px; color: #666; }
.ym-sync-container .ym-tab-button.active { background-color: #5473b7 !important; color: #ffffff !important; border-color: #5473b7 !important; }

.ym-sync-container .ym-sortable-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid #ddd; border-radius: 6px; overflow: hidden; }
.ym-sync-container .ym-sortable-table thead th { background-color: #5473b7 !important; color: #ffffff !important; padding: 12px 10px !important; font-size: 0.95em; border: 1px solid #ccc !important; text-align: center !important; cursor: pointer; }
.ym-sync-container .ym-sortable-table thead th:hover { background-color: #5473b7 !important; opacity: 1 !important; }
.ym-sync-container .ym-sortable-table thead th::after { content: '↕'; font-size: 0.8em; margin-left: 5px; color: #aaccff; vertical-align: middle; }

.ym-sync-container .ym-model-row { display: block; font-weight: bold; margin-bottom: 3px; font-size: 1.05em; color: #1976d2; text-decoration: underline; }

/* 発売日表示 (PC用デフォルト) */
.ym-release-date { display: block; font-weight: normal; font-size: 0.85em; color: #666; margin-top: 2px; }

.ym-sync-container .ym-price-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.ym-sync-container .ym-price-teika { text-decoration: line-through; color: #aaa; font-size: 0.8em; }
.ym-sync-container .ym-price-waribiki { background-color: #ffebee; color: #c62828; font-weight: bold; font-size: 0.8em; padding: 2px 8px; border-radius: 12px; display: inline-block; margin-bottom: 2px; }
.ym-sync-container .ym-price-total { font-weight: bold; font-size: 1.1em; color: #111; margin-top: 2px; font-family: sans-serif; }
.ym-sync-container .ym-jisshitsu-box { display: block; background: #fff8f8; border: 1px solid #ffcdd2; padding: 4px 8px; border-radius: 4px; color: #d32f2f; font-size: 0.9em; font-weight: bold; margin-top: 6px; text-align: center; }
.ym-sync-container .ym-jisshitsu-price { font-size: 1.5em; line-height: 1; }

.ym-sync-container .wp-block-table tbody th, .ym-sync-container .wp-block-table tbody td { text-align: left !important; color: inherit; vertical-align: middle; padding: 15px 12px; border-bottom: 1px solid #eee; }
.ym-sync-container .wp-block-table tbody td { text-align: right !important; }
.ym-sync-container .wp-block-table tbody tr:last-child td { border-bottom: none; }
.ym-sync-container .ym-footer-note { font-size: 0.75em; color: #666; margin-top: 10px; line-height: 1.4; text-align: right; }

/* PC用画像 (CLS対策: 高さ固定・object-fit) */
.ym-pc-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background-color: #fff;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
    border-radius: 4px;
    border: 1px solid #eee;
    transition: opacity 0.3s;
}

.ym-sp-img { display: none; }
.ym-th-content { display: flex; align-items: center; }
.ym-link { text-decoration: none; color: inherit; display: block; }
.ym-sp-button { display: block; margin: 10px auto 0; width: fit-content; background: #d32f2f; color: #fff !important; text-decoration: none !important; padding: 8px 16px; border-radius: 6px; font-weight: bold; font-size: 0.9em; text-align: center; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.ym-sp-button:hover { opacity: 0.8; }

/* スマホ表示 (600px以下) */
@media screen and (max-width: 600px) {
    .ym-sync-container .ym-sortable-table, .ym-sync-container .ym-sortable-table tbody, .ym-sync-container .ym-sortable-table tr, .ym-sync-container .ym-sortable-table td, .ym-sync-container .ym-sortable-table th { display: block; width: 100%; }
    .ym-sync-container .ym-sortable-table thead { position: absolute; visibility: hidden; height: 0; overflow: hidden; clip: rect(0,0,0,0); }
    .ym-sync-container .ym-sortable-table tr { margin-bottom: 24px; border: none; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.08); background: #fff; overflow: hidden; }
    .ym-sync-container .ym-sortable-table tbody th { background-color: #5473b7 !important; color: #fff !important; text-align: center !important; padding: 12px !important; }

    /* 発売日を白文字にする */
    .ym-release-date { color: #ffffff !important; opacity: 0.9; }

    .ym-pc-img { display: none; }
    .ym-th-content { display: block; text-align: center; width: 100%; }
    .ym-model-row { color: #fff !important; font-size: 1.2em; }
    .ym-link .ym-model-row { color: #fff !important; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.7); }

    .ym-sync-container .ym-sortable-table tbody td:nth-of-type(1) { background-color: #fff; padding: 20px 15px !important; display: flex; flex-direction: column; align-items: center; }
    .ym-sync-container .ym-sortable-table tbody td:nth-of-type(2) { background-color: #f8f9fa; border-top: 1px dashed #e0e0e0; padding: 15px !important; }

    /* スマホ用画像 (CLS対策: 高さ固定・object-fit) */
    .ym-sp-img {
        display: block;
        width: 120px;
        height: 120px;
        object-fit: contain;
        margin-bottom: 15px;
        order: 1;
    }

    .ym-sync-container .ym-sortable-table tbody td:nth-of-type(1)::before { content: "端末価格"; display: block; font-size: 0.8em; color: #999; font-weight: bold; margin-bottom: 5px; order: 2; width: 100%; text-align: center; }
    .ym-sync-container .ym-price-cell { order: 3; align-items: center !important; gap: 4px; }

    .ym-sync-container .ym-sortable-table tbody td:nth-of-type(2)::before { content: "実質負担 (48回払い)"; display: block; font-size: 0.8em; color: #999; font-weight: bold; margin-bottom: 8px; }
    .ym-sync-container .ym-jisshitsu-box { display: inline-block; width: auto; padding: 4px 12px; font-size: 1.1em; background: transparent; border: none; color: #d32f2f; margin-top: 2px; }

    .ym-sync-container .ym-footer-note { text-align: left; }
    .ym-sp-button { margin: 15px auto 5px; padding: 12px 20px; font-size: 0.95em; width: 80%; }
}

/* ==============================================
   2. 認定中古品 (SBC) テーブル用スタイル
   ============================================== */
.ym-sbc-container { margin: 2em 0; line-height: 1.5; }

.ym-sbc-tabs {
    display: flex;
    width: 100%;
    border-bottom: 2px solid #4f7aca;
    padding: 0 !important;
    margin: 0 0 15px 0 !important;
    list-style: none !important;
    background: none !important;
    box-sizing: border-box;
}

.ym-sbc-tabs::before,
.ym-sbc-tabs::after {
    content: none !important;
}

.ym-sbc-tabs li {
    flex: 1;
    text-align: center;
    padding: 10px 5px !important;
    cursor: pointer;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-bottom: none;
    margin: 0 5px 0 0 !important;
    font-weight: bold;
    border-radius: 5px 5px 0 0;
    box-sizing: border-box;
    list-style: none !important;
}

.ym-sbc-tabs li:last-child {
    margin-right: 0 !important;
}

.ym-sbc-tabs li.is-active { background: #4f7aca; color: #fff; border-color: #4f7aca; }

.ym-sbc-content { max-height: 0; overflow: hidden; visibility: hidden; }
.ym-sbc-content.is-active { max-height: none; overflow: visible; visibility: visible; }

.ym-sbc-table { width: 100%; border-collapse: collapse; border: 1px solid #ddd; table-layout: fixed; }
.ym-sbc-table thead th { background: #4f7aca; color: #fff !important; padding: 12px; border: 1px solid #ddd; text-align: center; }
.ym-sbc-table th, .ym-sbc-table td { border: 1px solid #ddd; vertical-align: middle; padding: 15px; }

.ym-sbc-model-th { background: #f9f9f9; text-align: left; width: 60%; }
.ym-sbc-model-name { color: #333; font-weight: bold; }

.ym-sbc-price-td { text-align: center; width: 40%; }

.ym-sbc-strike { text-decoration: line-through; color: #999; display: block; margin-bottom: 2px; }
.ym-sbc-price-val { color: #FF0033; font-weight: bold; }

.ym-sbc-badge-ikkatsu { background: #eee; padding: 2px 5px; border-radius: 3px; color: #333; margin-right: 4px; vertical-align: middle; }

@media screen and (max-width: 480px) {
    .ym-sbc-tabs li { padding: 10px 2px !important; font-size: 0.9em; }
}

/* ==============================================
   3. 追加キャンペーン (Tsuika) テーブル用スタイル
   ============================================== */
.ym-tsuika-scope table { width: 100%; border-collapse: collapse; border: 1px solid #ddd; margin-bottom: 8px; table-layout: fixed; background: #fff; }
.ym-tsuika-scope th, .ym-tsuika-scope td { border: 1px solid #ddd; vertical-align: middle; padding: 12px 10px; box-sizing: border-box; }
.ym-tsuika-scope thead th { background: #4f7aca; color: #fff; font-weight: bold; text-align: center; font-size: 15px; }

.ym-dev-name { font-weight: bold; color: #333; display: block; line-height: 1.3; }

.ym-price-breakdown { font-size: 16px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed #ccc; }
.ym-price-row { display: flex; justify-content: space-between; margin-bottom: 4px; }
.ym-text-red { color: #d32f2f; font-weight: bold; }

.ym-price-main-display { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 5px; flex-wrap: nowrap; }
.ym-price-huge { font-size: 1.5em; font-weight: bold; color: #d32f2f; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.ym-label-badge { display: inline-block; background: #333; padding: 4px 8px; border-radius: 3px; font-size: 12px; font-weight: bold; color: #fff; white-space: nowrap; line-height: 1.2; }

.ym-sub-note { font-size: 11px; color: #888; line-height: 1.4; text-align: center; margin-top: 8px; }
.ym-support-box { background: #fff9f9; border: 1px solid #ffecec; border-radius: 4px; padding: 10px; margin-top: 8px; }
.ym-support-box .ym-price-row { font-size: 14px; }

@media screen and (max-width: 768px) {
    .ym-tsuika-scope table, .ym-tsuika-scope thead, .ym-tsuika-scope tbody, .ym-tsuika-scope th, .ym-tsuika-scope td, .ym-tsuika-scope tr {
        display: block; width: 100% !important;
    }
    .ym-tsuika-scope thead { position: absolute; visibility: hidden; height: 0; overflow: hidden; clip: rect(0,0,0,0); }
    .ym-tsuika-scope tr { margin-bottom: 25px; border: 2px solid #4f7aca; border-radius: 8px; overflow: hidden; }

    .ym-tsuika-scope th { background: #4f7aca !important; color: #fff !important; text-align: center !important; font-size: 18px !important; padding: 15px 10px !important; border: none; }
    .ym-tsuika-scope th .ym-dev-name { color: #fff !important; }

    .ym-tsuika-scope td { padding: 20px 15px !important; border: none; border-bottom: 1px solid #eee; text-align: center !important; }
    .ym-tsuika-scope td:last-child { border-bottom: none; }

    .ym-tsuika-scope td:nth-of-type(1):before { content: "【 一括払い 】"; display: block; font-weight: bold; color: #4f7aca; margin-bottom: 15px; font-size: 14px; text-align: center; }
    .ym-tsuika-scope td:nth-of-type(2):before { content: "【 48回払い(実質) 】"; display: block; font-weight: bold; color: #d32f2f; margin-bottom: 15px; font-size: 14px; text-align: center; }

    .ym-hide-sp { visibility: hidden !important; height: 0 !important; overflow: hidden !important; padding: 0 !important; border: none !important; font-size: 0 !important; line-height: 0 !important; }
    .ym-no-border-sp { border-bottom: none !important; }

    .ym-price-main-display { justify-content: center; }
    .ym-price-huge { font-size: 1.8em; }
    .ym-price-row { max-width: 280px; margin-left: auto; margin-right: auto; }
}

/* ==============================================
   4. キャンペーン一覧 (CP List) テーブル用スタイル
   ============================================== */
.ym-cp-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.ym-cp-table th,
.ym-cp-table td {
    border: 1px solid #e5e5e5;
    padding: 12px;
    vertical-align: middle;
    text-align: left;
}

.ym-cp-table th {
    background-color: #f9f9f9;
    font-weight: bold;
}

.ym-note {
    font-size: 0.85em;
    color: #666;
    display: block;
    line-height: 1.4;
    margin-top: 4px;
}

@media (max-width: 600px) {
    .ym-cp-table th,
    .ym-cp-table td {
        padding: 8px;
        font-size: 0.9em;
    }
}

/* ==============================================
   5. スクロール1円リスト用スタイル
   ============================================== */
.ym-scroll-1yen-wrapper {
    margin: 20px 0;
    overflow: hidden;
    position: relative;
    width: 100%;
    background: #fff;
    padding: 10px 0;
    min-height: 240px;
    contain: content;
}

.ym-scroll-1yen-track {
    display: flex;
    width: max-content;
    gap: 15px;
    will-change: transform;
    animation: ym-marquee-1yen 40s linear infinite;
}

.ym-scroll-1yen-track:hover {
    animation-play-state: paused;
}

@keyframes ym-marquee-1yen {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ym-scroll-1yen-card {
    flex: 0 0 160px;
    width: 160px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100%;
    text-decoration: none !important;
    color: #333 !important;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    transition: transform 0.2s, border-color 0.2s;
}

.ym-scroll-1yen-card:hover {
    transform: translateY(-3px);
    border-color: #d32f2f;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.ym-scroll-1yen-card-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #d32f2f;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 8px;
    border-bottom-right-radius: 6px;
    z-index: 2;
    line-height: 1;
}

.ym-scroll-1yen-card-thumb {
    height: 130px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    flex-shrink: 0;
}
.ym-scroll-1yen-card-thumb img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s;
}
.ym-scroll-1yen-card:hover .ym-scroll-1yen-card-thumb img {
    transform: scale(1.08);
}

.ym-scroll-1yen-card-body {
    padding: 12px 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ym-scroll-1yen-card-name {
    font-size: 15px;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 10px;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 42px;
    color: #333;
}

.ym-scroll-1yen-card-btn {
    margin-top: auto;
    background: #f5f5f5;
    color: #555;
    font-size: 12px;
    text-align: center;
    padding: 8px 0;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.2s;
}
.ym-scroll-1yen-card:hover .ym-scroll-1yen-card-btn {
    background: #eee;
    color: #333;
}

@media screen and (max-width: 600px) {
    .ym-scroll-1yen-card {
        flex: 0 0 150px;
        width: 150px;
    }
    .ym-scroll-1yen-card-thumb {
        height: 110px;
    }
    .ym-scroll-1yen-card-name {
        font-size: 14px;
    }
}

/* ==============================================
   6. 比較テーブル (Product Table) 用スタイル
   ============================================== */
.ym-container-spec {
    margin: 2em 0;
    color: #333;
    line-height: 1.4;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, sans-serif;
}
.ym-update-info { text-align: right; font-size: 11px; color: #888; margin-bottom: 5px; }

.ym-container-spec ul.ym-tab-menu {
    display: flex !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: transparent !important;
    border: none !important;
}

.ym-container-spec ul.ym-tab-menu li {
    width: 50% !important;
    padding: 12px 0 !important;
    margin: 0 !important;
    cursor: pointer;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-bottom: none;
    font-weight: bold;
    font-size: 14px;
    border-radius: 5px 5px 0 0;
    color: #666;
    text-align: center;
    box-sizing: border-box;
    list-style-type: none !important;
    text-indent: 0 !important;
    margin-right: -1px !important;
    z-index: 1;
}

.ym-container-spec ul.ym-tab-menu li::before,
.ym-container-spec ul.ym-tab-menu li::after {
    content: none !important;
    display: none !important;
}

.ym-container-spec ul.ym-tab-menu li:last-child {
    margin-right: 0 !important;
}

.ym-container-spec ul.ym-tab-menu li.is-active {
    background: #4f7aca;
    color: #fff;
    border-color: #4f7aca;
    z-index: 2;
    position: relative;
}

.ym-content-box { max-height: 0; overflow: hidden; visibility: hidden; border-top: 2px solid #4f7aca; }
.ym-content-box.is-active { max-height: none; overflow: visible; visibility: visible; }

.ym-table-full { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid #eee; table-layout: fixed; background: #fff; }
.ym-table-full thead th {
    background: #4f7aca; color: #fff !important; padding: 15px 10px; font-weight: bold; text-align: center; border-right: 1px solid rgba(255,255,255,0.3); font-size: 14px;
    cursor: pointer; position: relative; user-select: none;
}
.ym-table-full thead th::after { content: ' ▼▲'; font-size: 10px; opacity: 0.7; }
.ym-table-full th, .ym-table-full td { border: 1px solid #eee; vertical-align: middle; padding: 10px 8px; }

.ym-td-model { width: 30%; text-align: left; }

.ym-label-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px;
}

.ym-model-flex {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ym-img-box { width: 75px; flex-shrink: 0; }
.ym-img-box img { width: 100%; height: auto; display: block; aspect-ratio: 75 / 100; object-fit: contain; }

.ym-link-name {
    font-weight: bold;
    font-size: 16px;
    color: inherit;
    line-height: 1.3;
}

.ym-date-text { display: block; font-size: 13px; color: #999; margin-top: 2px; text-align: left; font-weight: bold; }

.ym-icon-label {
    display: inline-block;
    font-size: 10px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    line-height: 1;
    color: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.ym-icon-label.icon-red { background: #ff4757; }
.ym-icon-label.icon-blue { background: #1e90ff; }
.ym-icon-label.icon-orange { background: #ffa502; }
.ym-icon-label.icon-black { background: #555; }

.ym-badge-base {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    color: #fff;
    font-weight: bold;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    text-align: center;
    min-width: 50px;
}
.ym-badge-blue { background: #0076c0; }
.ym-badge-gray { background: #999; }
.ym-badge-red  { background: #d32f2f; }
.ym-badge-dark { background: #555; }

.ym-price-large-sync {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #333;
}
.ym-price-large-sync.is-red { color: #d32f2f; }

.ym-price-baseline-box {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
}
.ym-unit-small { font-size: 12px; font-weight: bold; margin-left: 3px; color: #333; }
.ym-unit-small.is-red { color: #d32f2f; }

.ym-td-price { width: 35%; background: #fafafa; }
.ym-price-inner {
    font-size: 16px;
    color: #444;
    margin-bottom: 6px;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 6px;
}
.ym-p-row { display: flex; justify-content: space-between; margin-bottom: 4px; }
.ym-split-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    width: 100%;
}
.ym-split-row:last-child { margin-bottom: 0; }

.ym-td-toku { width: 35%; padding: 10px 8px !important; }
.ym-box-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 8px;
    border-radius: 6px;
    margin-bottom: 6px;
}
.ym-box-layout:last-child { margin-bottom: 0; }
.ym-red-box-full { background: #fff9f9; border: 1px solid #ffecec; }
.ym-gray-box-full { background: #f4f4f4; border: 1px solid #eee; }
/* 新トクするサポート(A)のサブ情報（赤ボックスの外に配置・装飾なし） */
.ym-toku-subinfo { margin-top: 8px; text-align: center; font-size: 0.8em; color: #666; line-height: 1.5; }
.ym-box-right-content {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.ym-sub-info { font-size: 10px; font-weight: bold; margin-top: 4px; line-height: 1.3; }
.ym-sub-info.is-red { color: #d32f2f; }
.ym-sub-info.is-gray { color: #888; }

/* 列強調（target属性に連動）— border-separate方式 */
.ym-col-highlight {
    border-left: 2px solid #d32f2f !important;
    border-right: 2px solid #d32f2f !important;
}
.ym-table-full thead .ym-col-highlight {
    border-top: 2px solid #d32f2f !important;
}
.ym-table-full tbody tr:last-child .ym-col-highlight {
    border-bottom: 2px solid #d32f2f !important;
}

@media screen and (max-width: 900px) {
    .ym-table-full thead { position: absolute; visibility: hidden; height: 0; overflow: hidden; clip: rect(0,0,0,0); }
    .ym-table-full tr { display: block; margin-bottom: 30px; border: 2px solid #eee; border-radius: 10px; overflow: hidden; }
    .ym-table-full th, .ym-table-full td { display: block; width: 100% !important; border: none; border-bottom: 1px solid #eee; }
    .ym-model-flex { flex-direction: column; align-items: center; text-align: center; }
    .ym-label-container { justify-content: center; }
    .ym-link-name { font-size: 19px; }
    .ym-date-text { text-align: center; }
    .ym-split-row, .ym-box-layout { padding: 10px 5px; }
    .ym-col-highlight { border-left: none !important; border-right: none !important; border-top: none !important; border-bottom: none !important; }
    .ym-toku-highlight-wrap,
    .ym-price-highlight-wrap { border: 2px solid #d32f2f; border-radius: 8px; padding: 5px; }
}

/* 訴求テキスト */

/* 免責表示（共通） */
.ym-disclaimer { font-size: 0.75em; color: #666; margin-top: 8px; line-height: 1.6; background: #fafafa; border: 1px solid #eeeeee; border-radius: 4px; padding: 8px 12px; text-align: right; }
/* 注釈直前のテーブルは下余白を8pxに詰める */
.ym-container-spec table,
.ym-kihen-scope table,
.ym-tsuika-scope table,
.ym-sbc-container table { margin-bottom: 8px; }

/* 自動コメント（吹き出し） */
.ym-auto-comment { display: flex; align-items: flex-start; gap: 12px; margin-top: 15px; }
.ym-auto-comment-icon { flex-shrink: 0; border-radius: 50%; }
.ym-auto-comment-text { position: relative; display: inline-block; padding: 10px 15px; background: #e8f4f8; border-radius: 10px; font-size: 0.9em; color: #333; font-weight: 500; line-height: 1.4; }
.ym-auto-comment-text::before { content: ''; position: absolute; left: -8px; top: 12px; border-width: 6px 8px 6px 0; border-style: solid; border-color: transparent #e8f4f8 transparent transparent; }

/* ==============================================
   機種横断比較表
   ============================================== */
.ym-comparison-wrap { margin: 20px 0; }
.ym-comparison-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ym-comparison-table { border-collapse: separate; border-spacing: 0; white-space: nowrap; width: 100%; font-size: 12px; }
.ym-comparison-table th,
.ym-comparison-table td { padding: 8px 12px; vertical-align: middle; text-align: center; }
/* 機種名列を固定（横スクロール時・sticky要素は自身に背景色が必要） */
.ym-comparison-table th.ym-comp-sticky,
.ym-comparison-table td.ym-comp-sticky { position: sticky; left: 0; z-index: 2; min-width: 140px; text-align: left; }
.ym-comparison-table thead th.ym-comp-sticky { z-index: 3; background-color: var(--color_main, #5473b7); }
.ym-comparison-table tbody th.ym-comp-sticky { background-color: var(--table_bg, #fff); }
/* 端末名+画像レイアウト */
.ym-comp-device { display: flex; align-items: center; gap: 8px; }
.ym-comp-device img { width: 50px; height: auto; flex-shrink: 0; }
.ym-comp-name { font-weight: bold; white-space: normal; }
a.ym-comp-name { color: #2980b9; text-decoration: underline; }
a.ym-comp-name:hover { text-decoration: none; }
/* ◎○△評価 */
.ym-comp-rating-good { color: #e53935; font-weight: bold; }
.ym-comp-rating-ok { color: #1976d2; }
.ym-comp-rating-poor { color: #757575; }
/* 注記 */
.ym-comparison-note { font-size: 0.75em; color: #666; margin-top: 8px; line-height: 1.6; }
/* ポイント列 */
.ym-comp-comment { white-space: normal; text-align: left; min-width: 180px; max-width: 250px; line-height: 1.5; }

@media screen and (max-width: 900px) {
    .ym-comparison-table { font-size: 13px; }
    .ym-comp-sticky { min-width: 120px; }
    .ym-comp-device img { width: 40px; }
}

/* 比較表の並び替えボタン */
.ym-comp-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.ym-comp-sort-label { font-size: 13px; font-weight: bold; color: #555; }
.ym-comp-sort-btn {
    font-size: 12px; padding: 6px 12px; border: 1px solid var(--color_main, #5473b7);
    background: #fff; color: var(--color_main, #5473b7); border-radius: 4px;
    cursor: pointer; line-height: 1.4; -webkit-appearance: none; appearance: none;
}
.ym-comp-sort-btn:hover { background: rgba(84,115,183,0.08); }
.ym-comp-sort-btn.is-active { background: var(--color_main, #5473b7); color: #fff; font-weight: bold; }
.ym-comp-sort-btn:focus-visible { outline: 2px solid var(--color_main, #5473b7); outline-offset: 2px; }
@media screen and (max-width: 768px) {
    .ym-comp-sort-btn { font-size: 11px; padding: 5px 9px; }
}

/* ==============================================
   7. Spec Renderer (個別価格表) 用スタイル
   ============================================== */
/* タブ切替UI（価格テーブル内） */
.ymsr-rich-price-box { margin-bottom: 0; }
.ymsr-rich-price-box ul.ym-tab-menu {
    display: flex;
    padding: 0;
    margin-bottom: 5px;
    list-style: none;
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    border: none;
}
.ymsr-rich-price-box ul.ym-tab-menu li {
    flex: 1;
    padding: 10px 6px;
    margin: 0 3px;
    cursor: pointer;
    background: #f0f0f0;
    border: 1px solid #ccc;
    font-weight: bold;
    font-size: 14px;
    border-radius: 5px;
    color: #666;
    text-align: center;
    box-sizing: border-box;
    list-style-type: none;
    text-indent: 0;
}
.ymsr-rich-price-box ul.ym-tab-menu li:first-child { margin-left: 0; }
.ymsr-rich-price-box ul.ym-tab-menu li::before,
.ymsr-rich-price-box ul.ym-tab-menu li::after {
    content: none;
    display: none;
}
.ymsr-rich-price-box ul.ym-tab-menu li:last-child { margin-right: 0; }
.ymsr-rich-price-box ul.ym-tab-menu li { touch-action: manipulation; }
.ymsr-rich-price-box ul.ym-tab-menu li.is-disabled {
    background: #f5f5f5;
    color: #bbb;
    border-color: #e0e0e0;
    opacity: 0.7;
    cursor: not-allowed; /* 範囲外の選択肢は押せない(script.js) */
}
.ymsr-rich-price-box ul.ym-tab-menu li.is-disabled.is-active {
    background: #e0e0e0;
    color: #888;
    border-color: #ccc;
}
.ymsr-rich-price-box ul.ym-tab-menu li.is-active {
    background: #4f7aca;
    color: #fff;
    border-color: #4f7aca;
    z-index: 2;
    position: relative;
}
.ymsr-tab-label { font-size: 13px; color: #666; margin-bottom: 5px; font-weight: bold; }
.ymsr-rich-price-box .ymsr-plan-tabs { margin-bottom: 20px; margin-top: 10px; }
.ymsr-rich-price-box .ymsr-mode-tabs { margin-top: 0; margin-bottom: 15px; }
.ymsr-rich-price-box .ymsr-mode-tabs li { font-size: 12px; padding: 8px 6px; }
.ymsr-rich-price-box .ymsr-pay-tabs { margin-top: 0; margin-bottom: 15px; }
.ymsr-rich-price-box .ymsr-pay-tabs li { font-size: 12px; padding: 8px 6px; }
.ymsr-price-content { display: none; padding-top: 15px; }
.ymsr-price-content.is-active { display: block; }
.ymsr-price-detail { padding: 16px; border: 1px solid #e5e7eb; border-radius: 6px; background: #fff; margin-top: 8px; }
.ymsr-section-divider {
    --ymsr-divider-color: #e5e7eb;
    --ymsr-divider-width: 1px;
    --ymsr-divider-style: solid;
    --ymsr-divider-margin-top: 0;
    --ymsr-divider-margin-bottom: 20px;
    border: 0;
    border-top: var(--ymsr-divider-width) var(--ymsr-divider-style) var(--ymsr-divider-color);
    margin-top: var(--ymsr-divider-margin-top);
    margin-bottom: var(--ymsr-divider-margin-bottom);
    height: 0;
    background: none;
}
@media screen and (max-width: 600px) {
    .ymsr-rich-price-box ul.ymsr-mode-tabs { flex-direction: column; }
    .ymsr-rich-price-box ul.ymsr-mode-tabs li { border-radius: 5px; border-bottom: 1px solid #ccc; margin: 0 0 5px 0; }
    .ymsr-rich-price-box ul.ymsr-pay-tabs { flex-direction: column; }
    .ymsr-rich-price-box ul.ymsr-pay-tabs li { border-radius: 5px; border-bottom: 1px solid #ccc; margin: 0 0 5px 0; }
}

.ymsr-auto-desc { margin: 12px 0; line-height: 1.8; }
.ymsr-auto-desc strong { background: linear-gradient(transparent 60%, #fff59d 60%); padding: 0 2px; font-weight: 700; }
.ymsr-tokusapo-note { font-size: 11px; color: #888; margin-top: 20px; padding: 10px; background: #f9f9f9; border-radius: 5px; }
.ymsr-tokusapo-note p { margin: 0 0 5px; }
.ymsr-tokusapo-note ul { margin: 0 0 0 15px; padding: 0; }
.ymsr-tokusapo-note li { margin-bottom: 3px; }

.ymsr-mode-section { margin-bottom: 25px; }
.ymsr-mode-title { font-size: 16px; font-weight: bold; padding: 8px 12px; margin-bottom: 15px; background: #f4f5f7; color: #333; border-left: 4px solid #4f7aca; }
.ymsr-p-row { display: flex; justify-content: space-between; margin-bottom: 5px; color: #444; }
.ymsr-split-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ymsr-badge { padding: 4px 10px; border-radius: 4px; color: #fff; font-weight: bold; font-size: 14px; line-height: 1.3; text-align: center; }
.ymsr-badge-blue { background: #0076c0; }
.ymsr-badge-gray { background: #999; }
.ymsr-badge-red { background: #d32f2f; }
.ymsr-badge-dark { background: #555; }
.ymsr-price-sync { font-size: 20px; font-weight: bold; color: #333; line-height: 1; }
.ymsr-price-sync.is-red { color: #d32f2f; font-size: 24px; }
.ymsr-p-row-discount span:last-child { font-size: 24px; }
.ymsr-unit { font-size: 12px; font-weight: bold; margin-left: 2px; }
.ymsr-box-layout { display: flex; justify-content: space-between; align-items: center; padding: 12px; border-radius: 6px; margin-bottom: 10px; }
.ymsr-red-box { background: #fff9f9; border: 1px solid #ffecec; }
.ymsr-gray-box { background: #f4f4f4; border: 1px solid #eee; }
.ymsr-blue-box { background: #f5faff; border: 1px solid #e2ecf7; }
.ymsr-right-content { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.ymsr-sub-info { font-size: 10px; font-weight: bold; display: block; margin-top: 4px; }

/* Spec Renderer 見出し */
.ymsr-title-sub { display: block; font-size: 1.05em; font-weight: 700; color: #333; padding: 8px 12px; margin: 1.5em 0 1.5em; background: linear-gradient(90deg, #f0f4fa, transparent); border-left: 3px solid #4f7aca; border-radius: 0 4px 4px 0; }
.ymsr-pros-cons { margin-bottom: 1.5em; }
.ymsr-pros-list, .ymsr-cons-list { margin: 0.5em 0 0 0; padding: 0; line-height: 1.8; list-style: none; }
.ymsr-pros-list li::before { content: "○ "; color: #2271b1; font-weight: bold; }
.ymsr-cons-list li::before { content: "✕ "; color: #d63638; font-weight: bold; }
.ym-btn-check { display: inline-block; background: linear-gradient(180deg, #ff1a40, #e6002e); color: #fff; text-decoration: none; padding: 12px 32px; border-radius: 6px; font-weight: bold; font-size: 15px; box-shadow: 0 2px 6px rgba(255,0,51,0.3); transition: all 0.2s ease; letter-spacing: 0.5px; }
.ym-btn-check:hover { background: linear-gradient(180deg, #ff3355, #ff0033); box-shadow: 0 4px 12px rgba(255,0,51,0.4); transform: translateY(-1px); }
.ym-btn-check:visited { color: #fff; }
/* インラインstyle置換用クラス */
.ym-spec-wrapper { margin-bottom: 2em; }
.ym-ranking-item { margin-bottom: 3em; }
.ymsr-img-wrap { text-align: center; margin-bottom: 1em; }
/* CLS対策(v21.27.0): 画像読込前から領域を確保する。height:autoのみだと読込前は高さ0で、
   読込完了時にガクッと下方要素が押し下げられ大きなレイアウトシフトになる。
   img属性は200x200(1:1)なのでaspect-ratioで領域を予約し、幅は200px上限で中央寄せ。 */
.ymsr-img-responsive { width: 200px; max-width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; }
.ymsr-description { margin-bottom: 1.5em; line-height: 1.6; color: #333; }
.ymsr-cta-wrap { text-align: center; margin-top: 20px; }
.ymsr-cta-wrap .ymsr-cta-headline { margin: 0 0 8px; font-weight: bold; font-size: 1.05em; color: #222; }
.ymsr-breakdown { margin-bottom: 15px; border-bottom: 1px dashed #ddd; padding-bottom: 10px; }
.ymsr-p-row-discount { color: #d32f2f; font-weight: bold; }
.ymsr-align-right { text-align: right; }
.ymsr-monthly-note { font-size: 10px; color: #888; margin-top: 2px; }
.ymsr-sub-gray { color: #888; }
.ymsr-return-note { font-size: 9px; color: #999; margin-top: 2px; }
.ymsr-empty-msg { text-align: center; color: #999; font-size: 12px; padding: 20px 0; }

/* ==============================================
   8. 機種変更テーブル (Kihen) 用スタイル
   ============================================== */
.ym-kihen-scope table { width: 100%; border-collapse: collapse; border: 1px solid #ddd; margin-bottom: 8px; table-layout: fixed; background: #fff; }
.ym-kihen-scope th, .ym-kihen-scope td { border: 1px solid #ddd; vertical-align: middle; padding: 12px 10px; box-sizing: border-box; }
.ym-kihen-scope thead th { background: #4f7aca; color: #fff; font-weight: bold; text-align: center; font-size: 15px; }

.ym-kihen-section-title { display: block; font-size: 18px; font-weight: bold; margin: 1.5em 0 0.5em; padding: 8px 12px; background: #f4f5f7; border-left: 4px solid #4f7aca; }

.ym-kihen-thumb { width: 60px; height: 60px; object-fit: contain; display: block; margin: 0 auto 8px; }
.ym-kihen-dev-name { font-weight: bold; color: #333; display: block; line-height: 1.3; text-align: center; }

/* 公式機種変更ページ由来のバッジ(超！感謝祭対象 等) */
.ym-kihen-badges { display: block; text-align: center; margin-top: 5px; line-height: 1.6; }
.ym-kihen-badge { display: inline-block; background: #fff0f0; color: #d32f2f; border: 1px solid #f0b0b0; border-radius: 10px; font-size: 11px; font-weight: bold; padding: 1px 8px; margin: 2px 2px 0; white-space: nowrap; }

.ym-kihen-price-breakdown { font-size: 16px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed #ccc; }
.ym-kihen-price-row { display: flex; justify-content: space-between; margin-bottom: 4px; }
.ym-kihen-text-red { color: #d32f2f; font-weight: bold; }

.ym-kihen-price-main { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 5px; flex-wrap: nowrap; }
.ym-kihen-price-huge { font-size: 1.5em; font-weight: bold; color: #d32f2f; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.ym-kihen-label-badge { display: inline-block; background: #333; padding: 4px 8px; border-radius: 3px; font-size: 12px; font-weight: bold; color: #fff; white-space: nowrap; line-height: 1.2; }

.ym-kihen-sub-note { font-size: 11px; color: #888; line-height: 1.4; text-align: center; margin-top: 8px; }
.ym-kihen-support-box { background: #fff9f9; border: 1px solid #ffecec; border-radius: 4px; padding: 10px; }
.ym-kihen-installment-detail { margin-top: 8px; }
.ym-kihen-installment-detail .ym-kihen-price-row { font-size: 14px; }


@media screen and (max-width: 768px) {
    .ym-kihen-scope table, .ym-kihen-scope thead, .ym-kihen-scope tbody, .ym-kihen-scope th, .ym-kihen-scope td, .ym-kihen-scope tr {
        display: block; width: 100%;
    }
    .ym-kihen-scope thead { position: absolute; visibility: hidden; height: 0; overflow: hidden; clip: rect(0,0,0,0); }
    .ym-kihen-scope tr { margin-bottom: 25px; border: 2px solid #4f7aca; border-radius: 8px; overflow: hidden; }

    .ym-kihen-scope tbody > tr > th { background: #4f7aca; color: #fff; text-align: center; font-size: 18px; padding: 15px 10px; border: none; }
    .ym-kihen-scope tbody > tr > th .ym-kihen-dev-name { color: #fff; }
    .ym-kihen-scope tbody > tr > th .ym-kihen-thumb { border: 2px solid rgba(255,255,255,0.3); border-radius: 8px; background: #fff; padding: 4px; }

    .ym-kihen-scope td { padding: 20px 15px; border: none; border-bottom: 1px solid #eee; text-align: center; }
    .ym-kihen-scope td:last-child { border-bottom: none; }

    .ym-kihen-scope td:nth-of-type(1):before { content: "【 一括払い 】"; display: block; font-weight: bold; color: #4f7aca; margin-bottom: 15px; font-size: 14px; text-align: center; }
    .ym-kihen-scope td:nth-of-type(2):before { content: "【 48回払い(実質) 】"; display: block; font-weight: bold; color: #d32f2f; margin-bottom: 15px; font-size: 14px; text-align: center; }

    .ym-kihen-hide-sp { visibility: hidden; height: 0; overflow: hidden; padding: 0; border: none; font-size: 0; line-height: 0; }
    .ym-kihen-no-border-sp { border-bottom: none; }

    .ym-kihen-price-main { justify-content: center; }
    .ym-kihen-price-huge { font-size: 1.8em; }
    .ym-kihen-price-row { max-width: 280px; margin-left: auto; margin-right: auto; }

    .ym-kihen-kosho-box { max-width: 280px; margin-left: auto; margin-right: auto; }
}

/* 故障安心パックプレミアム加入時の割引ボックス */
.ym-kihen-kosho-box { background: #f1f8f1; border: 1px solid #c8e6c9; border-radius: 4px; padding: 10px; margin-top: 10px; }
.ym-kihen-kosho-head { font-size: 12px; font-weight: bold; color: #2e7d32; line-height: 1.5; margin-bottom: 8px; text-align: center; }

/* ==============================================
   9. 機種一覧テーブル (Device List) 用スタイル
   ============================================== */
.ym-devlist-table { width: 100%; border-collapse: collapse; }
.ym-devlist-table th, .ym-devlist-table td { padding: 10px; vertical-align: middle; text-align: center; }
.ym-devlist-model { text-align: center; }
.ym-devlist-model img { display: block; margin: 0 auto 5px; max-width: 60px; height: auto; }
.ym-devlist-model span { font-weight: bold; }

/* ==============================================
   キャンペーン要約ボックス
   ============================================== */
.ym-campaign-summary { background: #ffffff; border: 1px solid #5473b7; padding: 16px 20px; margin: 20px 0; }
.ym-campaign-summary ul { margin: 0; padding: 0; list-style: none; }
.ym-campaign-summary li { padding: 10px 0; border-bottom: 1px dotted #ccc; line-height: 1.7; }
.ym-campaign-summary li:last-child { border-bottom: none; }
.ym-cs-highlight { color: #d32f2f; }

/* ==============================================
   キャンペーン特典額シミュレーター (シンプル清潔)
   ============================================== */
.ym-campaign-simulator { margin: 20px 0; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.ym-campaign-simulator .ym-cs-freshness { width: 100%; max-width: 700px; margin: 0; padding: 0; font-size: 0.72em; color: #888; text-align: right; line-height: 1.4; }
.ym-campaign-simulator .ym-cs-form { display: flex; flex-direction: column; gap: 22px; background: #fff; border: 1px solid #e5e5e5; border-radius: 10px; padding: 24px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); width: 100%; max-width: 700px; text-align: left; }
.ym-campaign-simulator .ym-cs-result { width: 100%; max-width: 700px; }
.ym-campaign-simulator .ym-cs-field { display: flex; flex-direction: column; gap: 10px; }
/* 必須バッジ付きラベル */
.ym-campaign-simulator .ym-cs-label { display: inline-flex; align-items: center; gap: 8px; font-weight: bold; font-size: 0.95em; color: #222; }
.ym-campaign-simulator .ym-cs-label::before { content: "必須"; background: #e6002f; color: #fff; font-size: 10px; font-weight: bold; padding: 2px 6px; border-radius: 3px; letter-spacing: 0.5px; }
/* ボタン型ラジオ (公式フォーム風の大きめカード・均等分割) */
.ym-campaign-simulator .ym-cs-btn-group { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.ym-campaign-simulator .ym-cs-btn { flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; padding: 14px 12px; border: 1px solid #ccc; border-radius: 6px; background: #fff; color: #222; font-size: 0.92em; cursor: pointer; transition: border-color 0.15s, background 0.15s; -webkit-user-select: none; user-select: none; position: relative; text-align: center; }
.ym-campaign-simulator .ym-cs-btn small { display: block; margin-top: 4px; font-size: 0.78em; opacity: 0.75; font-weight: normal; }
.ym-campaign-simulator .ym-cs-btn:hover { background: #f7f7f7; border-color: #999; }
.ym-campaign-simulator .ym-cs-btn input { position: absolute; opacity: 0; pointer-events: none; }
.ym-campaign-simulator .ym-cs-btn:has(input:checked),
.ym-campaign-simulator .ym-cs-btn.is-active { border: 2px solid #222; padding: 13px 19px; font-weight: bold; background: #fff; }
.ym-campaign-simulator .ym-cs-device-select { padding: 12px 14px; font-size: 0.95em; color: #222; border: 1px solid #ccc; border-radius: 6px; max-width: 100%; background: #fff; cursor: pointer; }

/* 結果カード */
.ym-campaign-simulator .ym-cs-result { margin: 0; background: #fff; border: 1px solid #e5e5e5; border-radius: 10px; padding: 24px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.ym-campaign-simulator .ym-cs-message { width: 100%; max-width: 700px; align-self: stretch; margin: 16px 0; padding: 0; font-size: 1.05em; line-height: 1.6; color: inherit; background: none; border: none; border-radius: 0; text-align: left; }
.ym-campaign-simulator .ym-cs-breakdown { display: flex; flex-direction: column; gap: 10px; }
/* 各キャンペーンカード */
.ym-campaign-simulator .ym-cs-card { background: #fafafa; border: 1px solid #e5e5e5; border-radius: 6px; padding: 14px 18px; }
.ym-campaign-simulator .ym-cs-card-title { font-weight: bold; font-size: 0.95em; color: #222; margin-bottom: 4px; }
.ym-campaign-simulator .ym-cs-card-desc { font-size: 0.85em; color: #666; line-height: 1.6; }
.ym-campaign-simulator .ym-cs-card-amount { margin-top: 6px; font-size: 0.9em; color: #e6002f; font-weight: bold; text-align: right; }
.ym-campaign-simulator .ym-cs-card.ym-cs-card--disabled { background: #f5f5f5; border-color: #e0e0e0; }
.ym-campaign-simulator .ym-cs-card.ym-cs-card--disabled .ym-cs-card-title,
.ym-campaign-simulator .ym-cs-card.ym-cs-card--disabled .ym-cs-card-desc,
.ym-campaign-simulator .ym-cs-card.ym-cs-card--disabled .ym-cs-card-amount { color: #999; font-weight: normal; }
.ym-campaign-simulator .ym-cs-ctas { width: 100%; max-width: 700px; display: flex; flex-direction: column; gap: 24px; margin-top: 20px; }
.ym-campaign-simulator .ym-cs-ctas:empty { display: none; }
.ym-campaign-simulator .ym-cs-cta-block { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.ym-campaign-simulator .ym-cs-cta-headline { margin: 0; text-align: center; font-weight: bold; font-size: 1em; color: #222; }
.ym-campaign-simulator .ym-cs-cta { display: block; padding: 18px 20px; text-align: center; font-weight: bold; font-size: 1.1em; color: #fff !important; text-decoration: none !important; border-radius: 8px; transition: transform 0.1s, box-shadow 0.15s; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.ym-campaign-simulator .ym-cs-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
.ym-campaign-simulator .ym-cs-cta--sim,
.ym-campaign-simulator .ym-cs-cta--device { background: #e6002f; }
.ym-campaign-simulator .ym-cs-cta--sim:hover,
.ym-campaign-simulator .ym-cs-cta--device:hover { background: #c30028; }
.ym-campaign-simulator .ym-cs-cta--dokodemo { background: #2e7cd6; }
.ym-campaign-simulator .ym-cs-cta--dokodemo:hover { background: #1f66b5; }

/* モバイル */
@media screen and (max-width: 600px) {
    .ym-campaign-simulator .ym-cs-form,
    .ym-campaign-simulator .ym-cs-result { padding: 18px; }
    /* 契約方法 (第1フィールド): 縦並び幅100% (選択肢が3つ長文のため) */
    .ym-campaign-simulator .ym-cs-form > .ym-cs-field:nth-child(1) .ym-cs-btn-group { flex-direction: column; }
    .ym-campaign-simulator .ym-cs-form > .ym-cs-field:nth-child(1) .ym-cs-btn { width: 100%; flex: 0 0 auto; }
    /* 他フィールド: 横並び均等分割 (デフォルト挙動のまま) */
    .ym-campaign-simulator .ym-cs-btn-group { gap: 6px; }
    .ym-campaign-simulator .ym-cs-form > .ym-cs-field:not(:first-child) .ym-cs-btn { padding-left: 4px; padding-right: 4px; font-size: 0.85em; }
}

/* 価格推移テーブル */
.ymsr-price-history { margin-top: 20px; }
.ymsr-price-history:empty { display: none; margin: 0; }
.ymsr-history-note { margin-top: 8px; color: #666; }
.ymsr-target-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 16px;
    align-items: center;
    line-height: 1.5;
}
.ymsr-target-label {
    display: inline-block;
    padding: 4px 12px;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    border-radius: 999px;
    font-size: 0.88em;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.ymsr-target-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px 3px 8px;
    border-radius: 999px;
    font-size: 0.82em;
    font-weight: 500;
    letter-spacing: 0.01em;
    white-space: nowrap;
    line-height: 1.5;
    transition: opacity 0.15s ease;
}
.ymsr-target-badge::before {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    line-height: 14px;
    text-align: center;
    flex-shrink: 0;
}
.ymsr-target-badge.ymsr-target-ok {
    background: #ffffff;
    color: #047857;
    border: 1.5px solid #a7f3d0;
    font-weight: bold;
}
.ymsr-target-badge.ymsr-target-ok::before {
    content: "✓";
    background: #10b981;
    color: #fff;
}
.ymsr-target-badge.ymsr-target-ng {
    background: #ffffff;
    color: #9ca3af;
    border: 1px solid #e5e7eb;
    opacity: 0.5;
}
.ymsr-target-badge.ymsr-target-ng::before {
    content: "×";
    background: #e5e7eb;
    color: #9ca3af;
}
.ymsr-price-summary { margin: 10px 0 15px; line-height: 1.6; }
.ymsr-filter-warning { margin: 0 0 15px; padding: 12px 15px; background: #ffebee; border: 2px solid #d32f2f; border-radius: 6px; color: #b71c1c; font-weight: bold; line-height: 1.6; }
.ymsr-filter-warning strong { color: #d32f2f; }
.ymsr-filter-match { margin: 0 0 15px; padding: 12px 15px; background: #e8f5e9; border: 2px solid #2e7d32; border-radius: 6px; color: #1b5e20; font-weight: bold; line-height: 1.6; }
.ymsr-filter-match strong { color: #2e7d32; }
.ymsr-history-table { width: 100%; border-collapse: collapse; font-size: 0.88em; }
.ymsr-history-table thead th { padding: 8px 10px; text-align: center; vertical-align: middle; }
.ymsr-history-table tbody td { padding: 8px 10px; vertical-align: middle; }
.ymsr-history-table tbody td:first-child { text-align: left; }
.ymsr-history-table tbody td:not(:first-child) { text-align: right; }
@media (max-width: 600px) {
    .ymsr-history-table { font-size: 0.8em; }
    .ymsr-history-table thead th, .ymsr-history-table tbody td { padding: 6px 5px; }
}

/* ==============================================
   キャンペーン一覧 [ym_cp_list]
   ============================================== */
.ymcp-wrapper { margin: 20px 0; }

/* タブ(旧) */
.ymcp-tab-menu { display: flex; flex-wrap: wrap; list-style: none; margin: 0 0 12px; padding: 0; gap: 4px; }
.ymcp-tab-menu li { padding: 8px 16px; cursor: pointer; background: #f1f5f9; border-radius: 4px 4px 0 0; -webkit-user-select: none; user-select: none; }
.ymcp-tab-menu li.is-active { background: #5473b7; color: #fff; }
.ymcp-tab-pane { display: none; }
.ymcp-tab-pane.is-active { display: block; }

/* ドロップダウンフィルタ(本家ワイモバイル方式) */
.ymcp-filter { margin: 0 0 12px; padding: 12px; background: #f1f5f9; border-radius: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ymcp-filter-label { font-weight: bold; font-size: 0.9em; color: #333; flex: 0 0 auto; }
.ymcp-filter-select { flex: 1 1 auto; min-width: 200px; max-width: 400px; padding: 8px 12px; background: #fff; border: 1px solid #ccd2db; border-radius: 4px; font-size: 0.95em; color: #333; cursor: pointer; }
.ymcp-filter-select:hover, .ymcp-filter-select:focus { border-color: #5473b7; outline: none; }
@media (max-width: 600px) {
    .ymcp-filter { gap: 6px; }
    .ymcp-filter-select { min-width: 0; max-width: none; width: 100%; font-size: 0.9em; }
}

/* テーブル本体: ルール準拠(border・背景色・font-size・color指定なし) */
.ymcp-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.ymcp-table thead th { padding: 10px; text-align: center; vertical-align: middle; }
.ymcp-table tbody th { padding: 10px; text-align: left; vertical-align: middle; word-break: break-word; }
.ymcp-table tbody td { padding: 10px; text-align: left; vertical-align: middle; word-break: break-word; }
/* PC: キャンペーン名30% / 内容70% */
.ymcp-table thead th:first-child,
.ymcp-table tbody th { width: 30%; }
.ymcp-table thead th:last-child,
.ymcp-table tbody td { width: 70%; }
/* スマホ: カード形式(thead非表示、tr内のth/tdを上下積み)
   詳細度を PC ルール (.ymcp-table tbody th 等) と同等以上に揃えて確実に上書きする */
@media screen and (max-width: 600px) {
    .ymcp-table { display: block; width: 100%; table-layout: auto; }
    .ymcp-table thead { display: block; position: absolute; visibility: hidden; height: 0; overflow: hidden; clip: rect(0,0,0,0); }
    .ymcp-table tbody { display: block; width: 100%; }
    .ymcp-table tbody tr { display: block; width: 100%; margin-bottom: 16px; border: 1px solid #d9dce1; border-radius: 6px; overflow: hidden; }
    .ymcp-table tbody th { display: block; width: 100%; background: #5473b7; color: #fff; padding: 12px; border: none; box-sizing: border-box; }
    .ymcp-table tbody td { display: block; width: 100%; padding: 12px; border: none; box-sizing: border-box; }
    .ymcp-table tbody th .ymcp-title,
    .ymcp-table tbody th .ymcp-period,
    .ymcp-table tbody th .ymcp-catch { color: #fff; }
}

/* 補助: タグ・期間・タイトル */
.ymcp-title { display: block; }
.ymcp-period { display: block; margin-top: 4px; font-size: 12px; }
.ymcp-desc { display: block; }
.ymcp-tags { display: block; margin-top: 8px; }
.ymcp-tag { display: inline-block; padding: 2px 8px; margin: 2px 4px 2px 0; background: #e0e7ff; color: #5473b7; border-radius: 10px; font-size: 12px; }
.ymcp-deadline { display: inline-block; padding: 4px 10px; margin-bottom: 8px; background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%); color: #fff; font-weight: bold; border-radius: 4px; font-size: 13px; box-shadow: 0 2px 4px rgba(255,107,53,0.3); }

/* 独自カスタマイズ要素 */
.ymcp-catch { display: block; margin-top: 4px; font-weight: bold; color: #5473b7; }
.ymcp-editor-comment { display: block; margin-top: 10px; padding: 10px 12px; background: #fff8e5; border-left: 4px solid #f0b849; border-radius: 0 4px 4px 0; }
.ymcp-editor-comment-head { display: block; font-weight: bold; color: #856404; margin-bottom: 4px; font-size: 13px; }
.ymcp-compat-note { display: block; margin: 8px 0 2px; padding: 6px 10px; background: #f3f4f6; border: 1px solid #d9dce1; border-radius: 4px; font-size: 12px; line-height: 1.5; }
.ymcp-compat-note-head { display: inline-block; margin-right: 6px; padding: 1px 8px; background: #6b7280; color: #fff; border-radius: 10px; font-weight: bold; font-size: 11px; line-height: 1.5; white-space: nowrap; }
.ymcp-compat-note-body { color: #444; }
.ymcp-rating-tags { display: block; margin-top: 8px; }
.ymcp-rating-tag { display: inline-block; padding: 2px 8px; margin: 2px 4px 2px 0; background: #fff3cd; color: #856404; border-radius: 10px; font-size: 12px; font-weight: bold; }

.ymcp-empty { padding: 20px; text-align: center; }

@media (max-width: 600px) {
    .ymcp-tab-menu li { padding: 6px 10px; }
}

/* ==============================================
   [ym_one_yen_stats] / [ym_one_yen_history] 一括1円スマホ履歴
   ============================================== */
.ym-oyh-stats { margin: 20px 0; padding: 20px 22px; background: linear-gradient(135deg, #f5f8ff 0%, #fff5ee 100%); border: 1px solid #d6dce8; border-radius: 8px; }
.ym-oyh-stats-title { font-size: 15px; font-weight: bold; color: #5473b7; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid #5473b7; letter-spacing: 0.04em; }
.ym-oyh-stats-list { margin: 0; padding: 0; }
.ym-oyh-stats-list dt { font-size: 12px; font-weight: bold; color: #666; margin: 12px 0 2px; }
.ym-oyh-stats-list dt:first-child { margin-top: 0; }
.ym-oyh-stats-list dd { margin: 0 0 0 0; padding: 0; font-size: 14px; color: #222; line-height: 1.55; }
.ym-oyh-stats-num { font-size: 20px; color: #d32f2f; margin-right: 6px; }
.ym-oyh-stats-names { display: block; margin-top: 4px; font-size: 12px; color: #555; line-height: 1.6; }
.ym-oyh-stats-sub { font-size: 12px; color: #777; margin-left: 4px; }
.ym-oyh-stats-note { margin: 14px 0 0; padding-top: 10px; border-top: 1px dashed #d6dce8; font-size: 11px; color: #888; line-height: 1.6; }

.ym-oyh-history { margin: 20px 0; }

/* timeline モード: テーブル */
.ym-oyh-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.ym-oyh-table thead th { padding: 10px; background: #5473b7; color: #fff; font-size: 13px; text-align: center; }
.ym-oyh-table tbody td { padding: 10px; border-bottom: 1px solid #e5e7eb; font-size: 13px; vertical-align: middle; word-break: break-word; }
.ym-oyh-table tbody tr:nth-child(even) td { background: #fafbfd; }
.ym-oyh-col-range { width: 38%; }
.ym-oyh-col-name { width: 42%; font-weight: bold; }
.ym-oyh-col-channel { width: 20%; text-align: center; color: #5473b7; font-size: 12px; }
.ym-oyh-range { display: block; }
.ym-oyh-days { display: block; font-size: 11px; color: #888; margin-top: 2px; }
@media screen and (max-width: 600px) {
    .ym-oyh-table { display: block; width: 100%; table-layout: auto; }
    .ym-oyh-table thead { display: none; }
    .ym-oyh-table tbody { display: block; width: 100%; }
    .ym-oyh-table tbody tr { display: block; width: 100%; margin-bottom: 12px; border: 1px solid #d9dce1; border-radius: 6px; overflow: hidden; box-sizing: border-box; }
    .ym-oyh-table tbody td { display: block; width: 100%; padding: 8px 12px; border: none; box-sizing: border-box; }
    .ym-oyh-table tbody tr td.ym-oyh-col-name { background: #5473b7; color: #fff; font-size: 14px; }
    .ym-oyh-table tbody tr td.ym-oyh-col-channel { text-align: left; }
    .ym-oyh-table tbody tr:nth-child(even) td { background: inherit; }
    .ym-oyh-table tbody tr:nth-child(even) td.ym-oyh-col-name { background: #5473b7; }
}

/* by_model モード: 機種ごとのカード */
.ym-oyh-history-by-model .ym-oyh-model { margin-bottom: 18px; padding: 12px 16px; background: #fff; border: 1px solid #e0e4eb; border-radius: 6px; }
.ym-oyh-model-name { margin: 0 0 8px; padding: 0; font-size: 15px; color: #222; }
.ym-oyh-model-total { display: inline-block; margin-left: 8px; padding: 2px 8px; background: #5473b7; color: #fff; border-radius: 10px; font-size: 11px; font-weight: normal; vertical-align: middle; }
.ym-oyh-period-list { margin: 0; padding-left: 1.2em; font-size: 13px; line-height: 1.7; }
.ym-oyh-period-range { font-weight: bold; }
.ym-oyh-period-days { color: #888; font-size: 12px; margin: 0 6px; }
.ym-oyh-period-channel { display: inline-block; padding: 1px 8px; background: #eef2ff; color: #5473b7; border-radius: 8px; font-size: 11px; }

/* ==============================================
   [ym_changelog] タイムライン風デザイン
   ============================================== */
.ym-changelog {
    margin: 1.5em 0;
    font-size: 15px;
    line-height: 1.7;
}
.ym-changelog-intro {
    font-size: 14px;
    color: #555;
    margin: 0 0 1em;
    line-height: 1.7;
}
.ym-changelog-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 0 0 18px !important;
    position: relative;
    border-left: 2px solid #e0e0e0;
}
.ym-changelog-item {
    list-style: none !important;
    position: relative;
    padding: 0 0 18px 18px;
    margin: 0 !important;
}
.ym-changelog-item::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 8px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #bbb;
    box-sizing: border-box;
    z-index: 1;
}
.ym-changelog-item:last-child {
    padding-bottom: 4px;
}
.ym-changelog-date {
    font-weight: 700;
    font-size: 14px;
    color: #222;
    margin-bottom: 2px;
    letter-spacing: 0.02em;
}
.ym-changelog-event {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
}
.ym-changelog-note {
    margin-top: 4px;
    font-size: 13px;
    color: #555;
    line-height: 1.65;
}
.ym-changelog-summary {
    font-size: 12px;
    color: #777;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px dashed #ddd;
    text-align: right;
}

/* スマホ向け */
@media (max-width: 600px) {
    .ym-changelog-list { padding-left: 14px !important; }
    .ym-changelog-item { padding-left: 14px; padding-bottom: 14px; }
    .ym-changelog-item::before { left: -21px; width: 10px; height: 10px; }
    .ym-changelog-date { font-size: 13px; }
    .ym-changelog-event { font-size: 13px; }
}
/* ==============================================
   [ym_clearance] クリアランスセール
   ([ymobile_table] のスタイルを継承、追加は契約方法カラムのみ)
   ============================================== */
.ym-clearance-scope .ym-clearance-td-mode { text-align: center; vertical-align: middle; font-size: 0.92em; }
@media (max-width: 600px) {
    .ym-clearance-scope .ym-clearance-td-mode { font-size: 0.85em; }
}
/* ==============================================
   [ymobile_sale_list] 販売中機種の機種名リスト
   (アコーディオンの枠・配色はSWELLテーマに任せ、ここは最小限)
   ============================================== */
/* 更新日: アコーディオンの上に小さく控えめに表示(右寄せ) */
.ym-sale-list__update {
    font-size: 0.78em;
    font-weight: normal;
    color: #666;
    text-align: right;
    margin: 0 0 6px;
}
/* 機種名リスト本体 */
.ym-sale-list__items {
    margin: 0;
    padding-left: 1.4em;
}
.ym-sale-list__items li {
    line-height: 1.9;
}
@media (max-width: 600px) {
    .ym-sale-list__update { font-size: 0.72em; }
}

/* [ym_yahoo_cheaper] 価格比較
   余白(margin/padding)・table の見た目(border/背景/文字サイズ・色)は
   [ymobile_table] と同様に SWELL 側に委ねる。ラッパーや段落に独自の余白を付けない。
   ここでは table の寄せ方向と上下中央のみ指定する。 */
/* [ym_yahoo_cheaper] / [ym_sim_compare] / [ym_device_compare] は同じ寄せルールを共有する */
.ym-yahoo-table,
.ym-simcmp-table,
.ym-devcmp-table { width: 100%; }
/* 項目名(thead)は中央、内容(td)は左寄せ、いずれも上下中央 */
.ym-yahoo-table thead th,
.ym-simcmp-table thead th,
.ym-devcmp-table thead th { text-align: center; vertical-align: middle; }
.ym-yahoo-table tbody th,
.ym-yahoo-table tbody td,
.ym-simcmp-table tbody th,
.ym-simcmp-table tbody td,
.ym-devcmp-table tbody th,
.ym-devcmp-table tbody td { text-align: left; vertical-align: middle; }
/* 同額グループの2列テーブルは 機種50% / 販売価格50% で固定 */
.ym-devcmp-table--half { table-layout: fixed; }
.ym-devcmp-table--half th,
.ym-devcmp-table--half td { width: 50%; }

/* [ym_yahoo_sim_campaign] 見出し下の画像を中央寄せ。
   WebP Express 等が figure を剥がして img 単体になっても効くよう両方に指定。 */
.ym-ysim-figure { text-align: center; margin-left: auto; margin-right: auto; }
.ym-ysim-figure img,
img.ym-ysim-img { display: block; margin-left: auto; margin-right: auto; max-width: 100%; height: auto; }

/* 端末コメント(v21.0.0)。[ym_latest_ranking]/[ym_spec] の価格表の後に地の文章として表示。
   枠・見出し・アクセント色は付けず、本文と同じ見た目(余白だけ整える)。AI臭を避ける。 */
.ym-device-comment {
    margin: 12px 0 16px;
    line-height: 1.9;
}

/* 描画負荷の軽減(v21.48.0)。ブロック内のレイアウト再計算を外に波及させない。
   本番3記事(スマホ/PC)で全要素の位置・サイズ差0.2px未満、目次ジャンプ着地も同一を確認済み。
   - .ym-kihen-scope は除外: テーマ側の表ヘッダーの幅が変わる(412px→379px)ため
   - .ym-clearance-scope は除外: 未検証のため
   - content-visibility は不可: 高さ見積もりのずれで SWELL 目次ジャンプの着地位置が狂う */
.ym-ranking-item,
.ym-container-spec:not(.ym-clearance-scope),
.ym-sbc-container {
    contain: layout style;
}

/* ==========================================================================
   [ymobile_price_table] の3タブ(表示スタイル2用、v21.131.0)。色は #D6335C。
   SWELL の表の CSS より優先させるため .post_content から書く(!important は使わない)
   ========================================================================== */
.ym-ck-tab-wrap {
    margin: 1.5em 0;
}
.post_content .ym-ck-tab-wrap .ym-ck-date {
    text-align: right;
    font-size: 12px;
    color: #6B7280;
    margin: 0 0 6px;
}
/* 3タブ: 白背景+#D6335C の下線(表と8px離す) */
.ym-ck-tabs {
    display: flex;
    gap: 6px;
    border-bottom: 1px solid #F3D1DA;
    margin-bottom: 8px;
}
.post_content .ym-ck-tabs .ym-ck-tab {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    background: #FFFFFF;
    color: #555555;
    border: 1px solid #EAEAEA;
    border-bottom: 3px solid transparent;
    border-radius: 6px 6px 0 0;
    padding: 11px 6px;
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.post_content .ym-ck-tabs .ym-ck-tab:hover {
    color: #D6335C;
    background: #FFF7F9;
}
.post_content .ym-ck-tabs .ym-ck-tab.is-active {
    color: #D6335C;
    background: #FFF3F5;
    border-color: #F3D1DA;
    border-bottom: 3px solid #D6335C;
}
.ym-ck-panel {
    display: none;
}
.ym-ck-panel.is-active {
    display: block;
}
.post_content .ym-ck-tab-wrap .ym-ck-table-fig {
    margin: 0;
}
/* 表: #D6335C の見出し・縦線なし・横線だけ */
.post_content .ym-ck-tab-wrap table.ym-ck-table {
    width: 100%;
    border-collapse: collapse;
    background: #FFFFFF;
    font-size: 14px;
    line-height: 1.5;
    border: none;
}
.post_content .ym-ck-tab-wrap table.ym-ck-table thead th {
    background: #D6335C;
    color: #FFFFFF;
    font-weight: 700;
    padding: 12px 10px;
    border: none;
    text-align: center;
    vertical-align: middle;
}
.post_content .ym-ck-tab-wrap table.ym-ck-table thead th:first-child {
    text-align: left;
    width: 65%;
}
.post_content .ym-ck-tab-wrap table.ym-ck-table tbody th,
.post_content .ym-ck-tab-wrap table.ym-ck-table tbody td {
    padding: 12px 10px;
    border: none;
    border-bottom: 1px solid #EAEAEA;
    vertical-align: middle;
    background: #FFFFFF;
}
.post_content .ym-ck-tab-wrap table.ym-ck-table tbody th {
    text-align: left;
    font-weight: 700;
    color: #222226;
}
.post_content .ym-ck-tab-wrap table.ym-ck-table tbody td {
    text-align: center;
    color: #222226;
}
.ym-ck-tab-wrap .ym-ck-price-em {
    font-size: 16px;
    font-weight: 700;
    color: #D6335C;
}
.ym-ck-tab-wrap .ym-ck-price-normal {
    font-size: 15px;
    font-weight: 700;
    color: #222226;
}
.ym-ck-tab-wrap .ym-sub-price {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: #6B7280;
    margin-top: 2px;
}
.post_content .ym-ck-tab-wrap .ym-table-note {
    color: #6B7280;
    margin-top: 8px;
    line-height: 1.6;
}
@media (max-width: 599px) {
    .post_content .ym-ck-tabs .ym-ck-tab {
        font-size: 12px;
        padding: 10px 4px;
    }
}
/* 表示スタイル2([data-ym-ck])の機種カード: 価格の欄の選んでいるボタンと見出しの線を #D6335C に(表示スタイル1は上の #4f7aca のまま) */
[data-ym-ck] .ymsr-rich-price-box ul.ym-tab-menu li.is-active:not(.is-disabled) { background: #D6335C; border-color: #D6335C; }
[data-ym-ck] .ymsr-title-sub { border-left-color: #D6335C; background: linear-gradient(90deg, #fbeaef, transparent); }
