/* エリアカード管理 - フロント表示CSS（三冠王カード） */

.sankan-section { max-width: 720px; margin: 0 auto 32px; font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif; }

.sankan-heading { text-align: center; margin-bottom: 8px; }
.sankan-heading__sub { display: block; font-size: 20px; font-weight: 800; color: #333; margin: 0; line-height: 1.5; }
.sankan-heading__sub:last-child { border-bottom: 2px dashed #ccc; display: inline-block; padding-bottom: 4px; margin-bottom: 12px; }

/* カードコンテナ */
.sankan-cards { display: flex; gap: 12px; justify-content: center; }

/* カード共通 */
.sankan-card {
    width: 220px;
    max-width: 220px;
    flex: 0 0 220px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 16px;
    transition: box-shadow .2s;
}
.sankan-card[data-href] { cursor: pointer; }
.sankan-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.12); }

/* カード背景色（PC・スマホ共通） */
.sankan-card--trust { background: #e8f4fd; }
.sankan-card--cospa { background: #fff8e1; }
.sankan-card--women { background: #fce4ec; }

/* bodyをcontentsにしてバッジをカード直下に展開（PC） */
.sankan-card__body {
    display: contents;
}

/* バッジ：ブロック幅いっぱい帯（PC） */
.sankan-card__badge {
    order: -1;
    width: 100%;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-align: center;
}

/* バッジ色 */
.sankan-card--trust .sankan-card__badge { background: linear-gradient(135deg, #0611a3, #4e68b5); }
.sankan-card--cospa .sankan-card__badge { background: #f6a800; }
.sankan-card--women .sankan-card__badge { background: #e87ea1; }

/* アイキャッチ画像（PC：高さ固定、見切れ防止） */
.sankan-card__img {
    order: 0;
    width: 100%;
    height: 120px;
    background: #fff;
    padding: 10px 16px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sankan-card__img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.sankan-card__name { order: 1; font-size: 15px; font-weight: 700; color: #333; margin: 14px 12px 4px; line-height: 1.4; }
.sankan-card__price { order: 2; font-size: 13.5px; color: #666; margin: 0 12px 14px; }

/* 詳しく見るCTAテキスト */
.sankan-card__cta {
    order: 3;
    margin-top: auto;
    font-size: 13px;
    font-weight: 700;
    color: #637aaf;
    padding-bottom: 2px;
}

/* ========================================
   スマホ対応
   ======================================== */
@media (max-width: 600px) {
    .sankan-section { margin-bottom: 20px; }
    .sankan-heading__sub { font-size: 17px; }

    .sankan-cards { flex-direction: column; gap: 10px; align-items: stretch; }

    .sankan-card {
        width: 100%;
        max-width: 100%;
        flex: 0 0 auto;
        flex-direction: row;
        padding: 10px;
        align-items: center;
        text-align: left;
        border-radius: 12px;
        box-shadow: none;
        overflow: hidden;
    }

    /* バッジ：店舗名の上のインラインラベル */
    .sankan-card__badge {
        order: 0;
        width: auto;
        min-width: 90px;
        padding: 4px 4px;
        border-radius: 0;
        font-size: 12px;
        line-height: 1.3;
        margin-bottom: 3px;
    }

    /* ロゴ画像：白背景角丸 約40%幅 */
    .sankan-card__img {
        width: 40%;
        min-width: 110px;
        aspect-ratio: 3 / 2;
        padding: 10px 12px;
        display: flex;
        align-items: center;
        background: #fff;
        border-radius: 8px;
        margin-right: 10px;
        flex-shrink: 0;
    }

    .sankan-card__body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 8px 0px;
        flex: 1;
        min-width: 0;
        align-items: flex-start;
    }

    .sankan-card__name {
        margin: 0 0 3px;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.35;
        word-break: break-word;
    }
    .sankan-card__price { margin: 0 0 4px; font-size: 13px; color: #666; }

    .sankan-card__cta {
        font-size: 12px;
        margin-top: 4px;
    }
}

/* ========================================
   比較表
   ======================================== */
.acm-compare-section { max-width: 820px; margin: 0 auto 32px; font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif; }

.acm-compare-heading { text-align: center; margin-bottom: 16px; }
.acm-compare-heading__sub { display: block; font-size: 20px; font-weight: 800; color: #333; margin: 0; line-height: 1.5; }
.acm-compare-heading__sub:last-child { border-bottom: 2px dashed #ccc; display: inline-block; padding-bottom: 4px; margin-bottom: 12px; }

.acm-compare-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.acm-compare-table { width: 100%; min-width: 600px; border-collapse: collapse; background: #fff; border: 1px solid #dcdcde; font-size: 13px; }
.acm-compare-table th,
.acm-compare-table td { padding: 10px 12px; border: 1px solid #e0e0e0; text-align: center; vertical-align: middle; }

.acm-compare-table__label-col { width: 90px; min-width: 90px; }
.acm-compare-table__shop-header { background: #1a1a4e; color: #fff; padding: 12px 8px; }
.acm-compare-table__shop-name { font-size: 13px; font-weight: 700; line-height: 1.4; }
.acm-compare-table__shop-img { max-width: 90%; width: 100px; height: 56px; border-radius: 4px; object-fit: contain; margin-top: 6px; background: #fff; padding: 6px 8px; box-sizing: border-box; }

.acm-compare-table__row-label { background: #f6f7f7; font-weight: 700; text-align: left; white-space: nowrap; font-size: 12px; color: #333; }

.acm-compare-table tbody td { font-size: 12.5px; line-height: 1.6; color: #444; }

.acm-compare-table__cta-row th,
.acm-compare-table__cta-row td { background: #f9f9f9; padding: 12px; border-top: 2px solid #dcdcde; }

.acm-compare-table__btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: #2271b1;
    text-decoration: none;
    transition: opacity .2s;
    margin-bottom: 6px;
}
.acm-compare-table__btn:hover { opacity: .85; color: #fff; }
.acm-compare-table__btn--official { background: #d94040; margin-bottom: 0; }
.acm-compare-table__btn--official:hover { color: #fff; }

@media (max-width: 600px) {
    .acm-compare-heading__sub { font-size: 17px; }
    .acm-compare-table { font-size: 11px; }
    .acm-compare-table th,
    .acm-compare-table td { padding: 6px 8px; }
    .acm-compare-table__label-col { width: 70px; min-width: 70px; }
    .acm-compare-table__shop-name { font-size: 11px; }
    .acm-compare-table__shop-img { width: 60px; height: 34px; padding: 3px 4px; }
    .acm-compare-table__btn { padding: 6px 12px; font-size: 11px; }
}

/* 比較表注釈 */
.acm-compare-note { font-size: 10px; color: #494646; margin-top: 6px; }
