.ab-price-plan-wrap,
.ab-price-plan-wrap * {
    box-sizing: border-box;
}

.ab-price-plan-wrap {
    width: 100%;
    max-width: 1040px;
    margin: 32px auto;
    padding: 26px 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, #f4fbff 0%, #ffffff 100%);
    border: 3px solid #1e88e5;
    box-shadow: 0 12px 28px rgba(30, 136, 229, 0.13);
    font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

.ab-price-plan-title {
    margin: 0 0 10px;
    color: #222;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.55;
    text-align: center;
}

.ab-price-plan-lead {
    max-width: 760px;
    margin: 0 auto 22px;
    color: #444;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.8;
    text-align: center;
}

.ab-price-plan-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.ab-price-plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 20px 16px 18px;
    border: 2px solid #d8e9f8;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.ab-price-plan-card.is-highlight {
    border-color: #1e88e5;
    box-shadow: 0 12px 26px rgba(30, 136, 229, 0.18);
    transform: translateY(-4px);
}

.ab-price-plan-badge {
    display: inline-block;
    align-self: center;
    margin: 0 0 10px;
    padding: 5px 13px;
    border-radius: 999px;
    background: #e3f2fd;
    color: #1565c0;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.4;
}

.ab-price-plan-name {
    margin: 0 0 8px;
    color: #222;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.5;
}

.ab-price-plan-price {
    margin: 0 0 6px;
    color: #1e88e5;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.35;
}

.ab-price-plan-subprice {
    min-height: 38px;
    margin: 0 0 14px;
    color: #666;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
}

.ab-price-plan-features {
    flex: 1;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    text-align: left;
}

.ab-price-plan-features li {
    position: relative;
    margin: 0 0 9px;
    padding-left: 24px;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.65;
}

.ab-price-plan-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #1e88e5;
    font-weight: 900;
}

.ab-price-plan-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 12px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    color: #fff !important;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.45;
    text-align: center;
    text-decoration: none !important;
    box-shadow: 0 6px 0 #0d47a1, 0 12px 20px rgba(30, 136, 229, 0.24);
    overflow: hidden;
}

.ab-price-plan-button:hover {
    opacity: 0.94;
    transform: translateY(2px);
    box-shadow: 0 4px 0 #0d47a1, 0 8px 16px rgba(30, 136, 229, 0.22);
}

.ab-price-plan-note {
    margin-top: 10px;
    color: #666;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
}

/* コンパクト型 */
.ab-price-plan-wrap.is-layout-compact .ab-price-plan-list {
    gap: 12px;
}

.ab-price-plan-wrap.is-layout-compact .ab-price-plan-card {
    padding: 16px 13px;
}

.ab-price-plan-wrap.is-layout-compact .ab-price-plan-price {
    font-size: 21px;
}

/* グリーン */
.ab-price-plan-wrap.is-green {
    background: linear-gradient(180deg, #f1fff6 0%, #ffffff 100%);
    border-color: #2eaf63;
    box-shadow: 0 12px 28px rgba(46, 175, 99, 0.13);
}

.ab-price-plan-wrap.is-green .ab-price-plan-card.is-highlight {
    border-color: #2eaf63;
    box-shadow: 0 12px 26px rgba(46, 175, 99, 0.18);
}

.ab-price-plan-wrap.is-green .ab-price-plan-badge {
    background: #e8f8ee;
    color: #1b7f45;
}

.ab-price-plan-wrap.is-green .ab-price-plan-price,
.ab-price-plan-wrap.is-green .ab-price-plan-features li::before {
    color: #2eaf63;
}

.ab-price-plan-wrap.is-green .ab-price-plan-button {
    background: linear-gradient(135deg, #2eaf63 0%, #168747 100%);
    box-shadow: 0 6px 0 #0f6334, 0 12px 20px rgba(46, 175, 99, 0.24);
}

/* オレンジ */
.ab-price-plan-wrap.is-orange {
    background: linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
    border-color: #ff9800;
    box-shadow: 0 12px 28px rgba(255, 152, 0, 0.13);
}

.ab-price-plan-wrap.is-orange .ab-price-plan-card.is-highlight {
    border-color: #ff9800;
    box-shadow: 0 12px 26px rgba(255, 152, 0, 0.18);
}

.ab-price-plan-wrap.is-orange .ab-price-plan-badge {
    background: #fff3cd;
    color: #b45f00;
}

.ab-price-plan-wrap.is-orange .ab-price-plan-price,
.ab-price-plan-wrap.is-orange .ab-price-plan-features li::before {
    color: #ff9800;
}

.ab-price-plan-wrap.is-orange .ab-price-plan-button {
    background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
    box-shadow: 0 6px 0 #c94712, 0 12px 20px rgba(255, 87, 34, 0.24);
}

/* レッド */
.ab-price-plan-wrap.is-red {
    background: linear-gradient(180deg, #fff5f5 0%, #ffffff 100%);
    border-color: #e53935;
    box-shadow: 0 12px 28px rgba(229, 57, 53, 0.13);
}

.ab-price-plan-wrap.is-red .ab-price-plan-card.is-highlight {
    border-color: #e53935;
    box-shadow: 0 12px 26px rgba(229, 57, 53, 0.18);
}

.ab-price-plan-wrap.is-red .ab-price-plan-badge {
    background: #ffebee;
    color: #c62828;
}

.ab-price-plan-wrap.is-red .ab-price-plan-price,
.ab-price-plan-wrap.is-red .ab-price-plan-features li::before {
    color: #e53935;
}

.ab-price-plan-wrap.is-red .ab-price-plan-button {
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    box-shadow: 0 6px 0 #8e1b1b, 0 12px 20px rgba(229, 57, 53, 0.24);
}

/* グレー */
.ab-price-plan-wrap.is-gray {
    background: linear-gradient(180deg, #f7f8fa 0%, #ffffff 100%);
    border-color: #607d8b;
    box-shadow: 0 12px 28px rgba(96, 125, 139, 0.13);
}

.ab-price-plan-wrap.is-gray .ab-price-plan-card.is-highlight {
    border-color: #607d8b;
    box-shadow: 0 12px 26px rgba(96, 125, 139, 0.18);
}

.ab-price-plan-wrap.is-gray .ab-price-plan-badge {
    background: #eceff1;
    color: #455a64;
}

.ab-price-plan-wrap.is-gray .ab-price-plan-price,
.ab-price-plan-wrap.is-gray .ab-price-plan-features li::before {
    color: #607d8b;
}

.ab-price-plan-wrap.is-gray .ab-price-plan-button {
    background: linear-gradient(135deg, #607d8b 0%, #455a64 100%);
    box-shadow: 0 6px 0 #263238, 0 12px 20px rgba(96, 125, 139, 0.24);
}

/* タブレット */
@media (max-width: 900px) {
    .ab-price-plan-list {
        grid-template-columns: 1fr;
    }

    .ab-price-plan-card.is-highlight {
        transform: none;
    }
}

/* スマホ */
@media (max-width: 600px) {
    .ab-price-plan-wrap {
        margin: 26px auto;
        padding: 20px 14px;
        border-radius: 18px;
    }

    .ab-price-plan-title {
        font-size: 21px;
    }

    .ab-price-plan-lead {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .ab-price-plan-card {
        padding: 18px 14px;
        border-radius: 16px;
    }

    .ab-price-plan-name {
        font-size: 18px;
    }

    .ab-price-plan-price {
        font-size: 22px;
    }

    .ab-price-plan-button {
        min-height: 52px;
        font-size: 15px;
    }
}