.subsc-point-page * {
    box-sizing: border-box;
}

.subsc-point-page ol,
.subsc-point-page ul,
.subsc-point-page li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.subsc-point-page a {
    text-decoration: none;
}

.subsc-point-page img {
    vertical-align: top;
}

/* ---------- 全体レイアウト（新規） ---------- */
.subsc-point-page {
    background: #fff;
    color: #111111;
    margin: 48px 0 48px;
    padding: 0;
}

.subsc-point-page__inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 18px 24px 0;
}

.subsc-point-page__header {
    margin-bottom: 28px;
}

.subsc-point-page__title {
    margin: 0;
    padding: 0 0 18px;
    text-align: center;
    border-bottom: 1px solid #111111;
    position: relative;
}

.subsc-point-page__title-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.subsc-point-page__title-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.subsc-point-page__title-divider {
    position: absolute;
    left: 50%;
    bottom: -1px;
    transform: translateX(-50%);
    width: 36px;
    height: 18px;
    background: #fff;
}

.subsc-point-page__title-divider::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 1px;
    height: 18px;
    margin: auto;
    background: #111111;
}

.subsc-point-page__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 18px;
    align-items: start;
}

.subsc-point-page__main {
    min-width: 0;
}

/* 右側の幅微調整（必要時のみ） */
.subsc-point-page__summary {
    width: 100%;
}

/* ---------- 左側ボックス（新規） ---------- */
.subsc-box+.subsc-box {
    margin-top: 26px;
}

.subsc-box__title {
    margin: 0 0 12px;
    padding: 0 0 0 10px;
    border-left: 2px solid #629649;
    color: #111111;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

/* 商品カード */
.subsc-product-card {
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #d5daed;
    background: #fff;
    padding: 14px 16px;
}

.subsc-product-card__thumb {
    flex: 0 0 88px;
    width: 88px;
}

.subsc-product-card__thumb img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.subsc-product-card__body {
    flex: 1;
    min-width: 0;
}

.subsc-product-card__list {
    margin: 0;
}

.subsc-product-card__row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    color: #555555;
    line-height: 1.7;
    font-size: 14px;
}

.subsc-product-card__row dt {
    white-space: nowrap;
    font-weight: 400;
}

.subsc-product-card__row dd {
    margin: 0;
    font-weight: 700;
    color: #555555;
    overflow-wrap: anywhere;
}

/* 注意文 */
.subsc-notes {
    color: #555555;
    font-size: 14px;
    line-height: 1.7;
}

.subsc-notes__lead {
    margin: 0 0 10px;
}

.subsc-notes__list {
    margin: 0;
    padding: 0;
}

.subsc-notes__list li {
    position: relative;
    padding-left: 1em;
}

.subsc-notes__list li::before {
    content: "・";
    position: absolute;
    left: 0;
    top: 0;
}

.subsc-notes__foot {
    margin: 14px 0 0;
}

/* 規格選択が出る商品でもレイアウト崩れを防ぐための隠し枠 */
.subsc-hidden-fields {
    display: none;
}

/* 数量はフォーム送信に必要だが表示しない */
.quantities.hidden {
    display: none !important;
}

/* =========================================================
右サイド（_shopping.css から必要部分を移植・調整）
========================================================= */

/* 右サイド合計欄 */
.ec-orderRole__summary {
    position: sticky;
    top: 120px;
    height: fit-content;
    padding: 12px 14px;
    background-color: #f8f9fc;
}

/* 明細 */
.ec-totalBox__spec,
.ec-totalBox__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ec-totalBox__spec {
    padding: 14px 0;
    border-bottom: 1px solid #d5daed;
    color: #111111;
    font-size: 14px;
}

.ec-totalBox__total {
    padding: 14px 0;
    border-bottom: 1px solid #d5daed;
    justify-content: flex-end;
    gap: 12px;
}

.ec-totalBox__price {
    display: block;
    width: 120px;
    text-align: end;
    color: #111111;
}

.subsc-summary__total {
    margin-top: 2px;
}

.subsc-summary__total .ec-totalBox__price {
    font-size: 18px;
    font-weight: 700;
}

/* ボタンエリア */
.ec-totalBox__btn {
    padding-top: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ec-totalBox__btn button {
    border: none;
    cursor: pointer;
}

/* 赤ボタン（ポイント購入） */
.ec-blockBtn--action {
    width: 100%;
    max-width: 280px;
    padding: 15px 0;
    border-radius: 30px;
    text-align: center;
    color: #ffffff;
    background-color: #e8353e;
    margin-bottom: 12px;
    position: relative;
    display: block;
    font-size: 14px;
    line-height: 1;
}

.ec-blockBtn--action::after {
    content: "→";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 20px;
}

.ec-blockBtn--action:hover {
    background-color: #97272c;
}

/* 緑ボタン（もどる） */
.ec-blockBtn--cancel {
    display: flex;
    width: 100%;
    max-width: 280px;
    padding: 15px 0;
    border-radius: 30px;
    text-align: center;
    color: #ffffff;
    background-color: #629649;
    position: relative;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
}

.ec-blockBtn--cancel::before {
    content: "←";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 20px;
}

.ec-blockBtn--cancel:hover {
    background-color: #3d5d2e;
}

/* disabled表示 */
.ec-blockBtn--action[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.ec-blockBtn--action[disabled]:hover {
    background-color: #e8353e;
}

/* =========================================================
モーダル（_product_detail.css から必要部分を移植）
========================================================= */

.ec-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    height: 100%;
}

.ec-modal.small {
    width: 30%;
}

.ec-modal.full {
    width: 100%;
    height: 100%;
}

.ec-modal .ec-modal-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.3);
    width: 100%;
    height: 100%;
}

.ec-modal .ec-modal-wrap {
    position: relative;
    border-radius: 10px;
    border: 1px solid #333;
    background-color: #fff;
    width: min(560px, calc(100% - 32px));
    margin: 20px;
    padding: 40px 12px 28px;
    color: #555555;
    text-decoration: none;
}

.ec-modal .ec-modal-close {
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 20px;
    height: 30px;
    width: 20px;
}

.ec-modal .ec-modal-close:hover {
    color: #4b5361;
}

.ec-modal .ec-modal-box {
    text-align: center;
    font-weight: 600;
}

.ec-modal .ec-role {
    margin-top: 20px;
}

#ec-modal-header {
    text-align: center;
}

.ec-role {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    flex-wrap: wrap;
}

.ec-inlineBtn--cancel {
    color: #09860d;
    border: solid 1px #09860d;
    border-radius: 50px;
    padding: 10px 14px;
    background: #fff;
    cursor: pointer;
}

.ec-inlineBtn--cancel:hover {
    color: #ffffff;
    background-color: #09860d;
}

.ec-inlineBtn--action {
    color: #e8353e;
    border: solid 1px #e8353e;
    border-radius: 50px;
    padding: 10px 14px;
    background: #fff;
}

.ec-inlineBtn--action:hover {
    color: #ffffff;
    background-color: #e8353e;
}

/* ---------- 汎用ユーティリティ（_shopping.css の必要分） ---------- */
.hidden {
    display: none !important;
}

/* =========================================================
レスポンシブ（今回画面用）
========================================================= */
@media screen and (max-width: 840px) {
    .subsc-point-page__inner {
        padding: 16px 5% 32px;
    }

    .subsc-point-page__title-main {
        font-size: 18px;
    }

    .subsc-point-page__layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ec-orderRole__summary {
        position: static;
        top: auto;
        padding: 14px 12px;
    }

    .ec-blockBtn--action,
    .ec-blockBtn--cancel {
        max-width: 200px;
        font-size: 14px;
    }

    .subsc-product-card {
        gap: 12px;
        padding: 12px;
    }

    .subsc-product-card__thumb {
        flex-basis: 72px;
        width: 72px;
    }

    .subsc-product-card__row {
        font-size: 13px;
        line-height: 1.6;
    }

    .subsc-notes {
        font-size: 13px;
        line-height: 1.65;
    }
}

.subsc-switch-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

/* 緑のカプセルボタン本体 */
.subsc-switch-buttons__item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 280px;
    padding: 15px 0;
    border-radius: 30px;
    background-color: #629649;
    color: #ffffff;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color 0.2s;
}

.subsc-switch-buttons__item::after {
    content: "→";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.subsc-switch-buttons__icon {
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    display: block;
    filter: brightness(0) invert(1);
}

.subsc-switch-buttons__icon1 {
    left: 65px;
}

.subsc-switch-buttons__text {
    line-height: 1;
}

.subsc-switch-buttons__item:hover {
    background-color: #3d5d2e;
}

@media screen and (max-width: 840px) {
    .subsc-switch-buttons__item {
        max-width: 200px;
        padding: 15px 0;
    }

    .subsc-switch-buttons__item::after {
        right: 16px;
    }

    .subsc-switch-buttons__icon {
        left: 30px;
    }
}