.plan-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}
.plan-cards--mobile {
    gap: 13px;
}

.plan-card {
    --plan-card-color: var(--plan-color);
    position: relative;
    overflow: hidden;
    background: var(--color-surface);
    border-radius: 0;
    border-left: 8px solid var(--plan-card-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}
.plan-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.1);
}

/* ── PC── */
.plan-card--pc .plan-card-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 22px;
}
.plan-card--pc .plan-card-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--plan-card-color);
    letter-spacing: 0.04em;
    line-height: 1;
    white-space: nowrap;
    flex: 0 0 auto;
}
.plan-card--pc .plan-card-caption {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-primary);
    letter-spacing: 0.02em;
    white-space: nowrap;
    flex: 0 0 auto;
}
.plan-card--pc .plan-card-lead {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}
.plan-card--pc .plan-card-pills {
    display: flex;
    gap: 5px;
    flex: 0 0 auto;
}
.plan-card--pc .plan-card-pills span {
    background: var(--plan-card-color);
    color: var(--color-surface);
    border-radius: var(--radius-pill);
    padding: 1px 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.plan-card--pc .plan-card-pills span b {
    font-family: var(--font-family-accent);
    font-weight: 700;
    font-size: 16px;
    margin: 0 2px;
}

/* ── PC: 価格ボックス── */
.plan-card--pc .plan-card-pricebox {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}
.plan-card--pc .plan-card-priceline {
    display: flex;
    align-items: flex-end;
    gap: 18px;
}
.plan-card--pc .plan-card-regular {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 14px;
    color: var(--color-text-subtle);
    line-height: 1.4;
}
.plan-card--pc .plan-card-regular > span {
    font-size: 10px;
}
.plan-card--pc .plan-card-regular s {
    color: var(--color-text-subtle);
    text-decoration: line-through;
    text-decoration-color: rgba(157, 32, 61, 0.55);
}
.plan-card--pc .plan-card-price {
    position: relative;
    font-family: var(--font-family-serif);
    font-weight: 900;
    font-size: 32px;
    line-height: 0.9;
    color: var(--color-brand-emphasis);
    letter-spacing: -0.01em;
    white-space: nowrap;
}
.plan-card--pc .plan-card-price small {
    position: relative;
    display: inline-block;
    font-size: 20px;
}
.plan-card--pc .plan-card-tax {
    position: absolute;
    bottom: 110%;
    left: 2px;
    text-align: left;
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    color: var(--color-brand-emphasis);
    white-space: nowrap;
}

/* ── PC: フロー ── */
.plan-card--pc .plan-card-flow {
    padding: 0 22px 12px;
}

/* ── 共通バッジ ── */
.plan-card-badge {
    background: var(--color-brand-emphasis);
    color: var(--color-surface);
    border-radius: 6px;
    padding: 4px 16px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    letter-spacing: 0.02em;
}
.plan-card-badge b {
    font-family: var(--font-family-accent);
    font-weight: 800;
    font-size: 18px;
    margin: 0 2px;
    vertical-align: -1px;
}

/* ── リボン（PC・SP 共通） ── */
.plan-card-ribbon {
    display: flex;
}
.plan-card-ribbon .seg {
    flex: 1;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-surface);
    white-space: nowrap;
    padding: 0 6px 0 14px;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
    clip-path: polygon(
        0 0,
        calc(100% - 12px) 0,
        100% 50%,
        calc(100% - 12px) 100%,
        0 100%,
        12px 50%
    );
    margin-left: -12px;
}
.plan-card-ribbon .seg:first-child {
    margin-left: 0;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
    border-radius: 7px 0 0 7px;
}
.plan-card-ribbon .seg:last-child {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 12px 50%);
    border-radius: 0 7px 7px 0;
}
.plan-card-ribbon .seg.off {
    background: #d7dad7 !important;
    color: #aeb2ae;
    text-shadow: none;
}
.plan-card-ribbon .seg.s0 {
    background: color-mix(in srgb, var(--plan-card-color) 70%, #ffffff);
}
.plan-card-ribbon .seg.s1 {
    background: color-mix(in srgb, var(--plan-card-color) 86%, #ffffff);
}
.plan-card-ribbon .seg.s2 {
    background: var(--plan-card-color);
}
.plan-card-ribbon .seg.s3 {
    background: color-mix(in srgb, var(--plan-card-color) 84%, #14201b);
}
.plan-card-ribbon .seg.s4 {
    background: color-mix(in srgb, var(--plan-card-color) 66%, #14201b);
}

/* ── SP バリアント ── */
.plan-card--mobile .plan-card-mobile-head {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
    padding: 12px 15px 0;
}
.plan-card--mobile .plan-card-mobile-head .pname {
    font-size: 18px;
    font-weight: 700;
    color: var(--plan-card-color);
    letter-spacing: 0.02em;
    white-space: nowrap;
    flex: 0 0 auto;
}
.plan-card--mobile .plan-card-mobile-head .pchip {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-surface);
    background: var(--plan-card-color);
    border-radius: var(--radius-pill);
    padding: 1px 10px;
    white-space: nowrap;
}
.plan-card--mobile .plan-card-mobile-head .pchip b {
    font-family: var(--font-family-accent);
    font-weight: 700;
    font-size: 13px;
    color: var(--color-surface);
    margin: 0 1px;
}
.plan-card--mobile .plan-card-mobile-head .plan-card-badge {
    margin-left: auto;
    white-space: nowrap;
    flex: 0 0 auto;
    font-size: 11.5px;
    font-weight: 600;
    padding: 2px 11px;
    border-radius: 6px;
}
.plan-card--mobile .plan-card-mobile-head .plan-card-badge b {
    font-size: 14px;
    margin: 0 1px;
}
.plan-card--mobile .plan-card-mobile-body {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 15px 14px;
}
.plan-card--mobile .plan-card-mobile-body .plan-card-caption {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--color-text-primary);
    flex: 1;
    min-width: 0;
}
.plan-card--mobile .plan-card-priceline {
    display: flex;
    align-items: flex-end;
    gap: 9px;
    flex: 0 0 auto;
}
.plan-card--mobile .plan-card-regular {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 11px;
    color: var(--color-text-subtle);
    line-height: 1.3;
}
.plan-card--mobile .plan-card-regular > span {
    font-size: 8px;
}
.plan-card--mobile .plan-card-regular s {
    text-decoration: line-through;
    text-decoration-color: rgba(157, 32, 61, 0.55);
}
.plan-card--mobile .plan-card-mobile-body .plan-card-price {
    position: relative;
    font-family: var(--font-family-serif);
    font-weight: 900;
    font-size: 24px;
    line-height: 1;
    color: var(--color-brand-emphasis);
    white-space: nowrap;
}
.plan-card--mobile .plan-card-mobile-body .plan-card-price small {
    position: relative;
    display: inline-block;
    font-size: 16px;
}
.plan-card--mobile .plan-card-tax {
    position: absolute;
    bottom: 100%;
    left: 0;
    font-size: 8px;
    font-weight: 500;
    line-height: 1;
    color: var(--color-brand-emphasis);
    white-space: nowrap;
}
.plan-card--mobile .plan-card-flow {
    padding: 0 15px 12px;
}
.plan-card--mobile .plan-card-ribbon .seg {
    font-size: 11px;
    height: 34px;
    padding: 0 4px 0 9px;
}
