html {
    width: 100%;
}

body {
    width: 100%;
}

.wrapper {
    max-width: 414px;
    margin: 0 auto;
}

/* 共通 */
.container {
    display: grid;
    gap: 12px 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* status */
#first_status_img {
    fill: var(--color-primary);
}
.first_status_txt {
    color: var(--color-on-primary);
}

/* item */
.item_list_wrap {
    max-width: 400px;
    margin: 0 auto;
    padding: 0 7px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#loading-wrapper {
    position: absolute;
    top: 0;
    bottom: 0;
    height: 90%;
    width: 100%;
    max-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    visibility: hidden;
}

.item-wrapper {
    visibility: hidden;
}

.item_wrap {
    height: auto;
    width: 100%;
    background-repeat: no-repeat;
    background-size: cover;
}

.item_info img {
    display: block;
    max-height: 170px;
    max-width: 170px;
    height: auto;
    margin: 0 auto;
}

.item_info {
    border: 1px solid var(--color-border-soft);
    line-height: 1.15;
    padding: 10px 0 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    gap: 5px;
    position: relative;
    border-radius: 3px;
}

.item_wrap--sold-out {
    position: relative;
}

.item_wrap--sold-out .item_info {
    pointer-events: none;
    user-select: none;
}

.sold-out-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    border-radius: 3px;
    pointer-events: none;
    background: var(--color-overlay-gray);
}

.sold-out-overlay-label {
    color: var(--color-bg-card);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.15em;
    padding: 10px 24px;
    border-radius: 6px;
    transform: rotate(-30deg);
}

.item-white-area {
    /* width: 94%; */
    /* padding: 8px 0 20px; */
    margin: 0 auto;
    background-color: var(--color-bg-card);
    position: relative;
    outline: none;
}

/* 購入個数制限バッジ */
.purchase-limit-badge {
    position: absolute;
    top: -5px;
    left: 6px;
    z-index: 1;
    background: var(--color-primary-dark);
    color: var(--color-on-primary);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 3px 7px;
    border-radius: 2px;
    box-shadow: 0 1px 4px var(--shadow-color-base);
    white-space: nowrap;
    pointer-events: none;
    animation: badgeFadeIn 0.4s ease-out;
}

@keyframes badgeFadeIn {
    from {
        opacity: 0;
        transform: translateY(-3px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* バッジがある商品のみ画像上の余白を広げる */
.purchase-limit-badge+.item-white-area {
    padding-top: 6px;
}
.item-white-area {
    height: 190px;
}
@media (min-width: 1024px){
    .item-white-area{
        height: 180px;
    }
}

.item-white-area:focus-visible {
    outline: none;
}

.item_name {
    display: block;
    font-style: normal;
    font-size: 14px;
    text-align: center;
    margin: 0 auto;
    /* white-space: nowrap; */
}


.item_price {
    margin: 0 auto;
    font-size: 18px;
    text-align: center;
    color: var(--color-accent);
}

.tax_excluded {
    font-weight: bold;
}
.tax_included {
    font-size: 10px;
    font-weight: normal;
}

img.sold_out_img {
    width: 150px;
    height: auto;
}

/* notes */
.amazon_notes_wrap {
    text-align: center;
    font-style: normal;
    font-weight: bold;
    font-size: 14px;
    color: var(--color-text-muted);

}

/* FAQ Section */
.faq-section {
    max-width: 400px;
    margin: 30px auto 0;
    padding: 0 7px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-heading {
    font-weight: bold;
    font-size: 18px;
    color: var(--color-text);
    margin: 0;
    padding: 8px 0 8px 12px;
    border-left: 5px solid var(--color-primary);
    background-color: var(--color-bg-muted);
    border-radius: 0 4px 4px 0;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: var(--color-overlay-white-soft);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-overlay-white-base);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px var(--shadow-color-soft);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px var(--shadow-color-base);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    color: var(--color-text);
    text-align: left;
    line-height: 1.5;
}

.faq-q-label {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-bg-card);
    font-size: 12px;
    font-weight: bold;
}

.faq-q-text {
    flex: 1;
}

.faq-toggle-icon {
    flex-shrink: 0;
    font-size: 18px;
    color: var(--color-primary);
    transition: transform 0.3s ease;
    line-height: 1;
}

.faq-question[aria-expanded="true"] .faq-toggle-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 12px 12px;
    padding-left: 44px;
}

.faq-answer p {
    margin: 0;
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.8;
    white-space: pre-line;
    word-break: break-word;
}


/* customer review heading */
.customer_review_heading_wrap {
    margin: 30px auto 0;
    padding: 0;
    max-width: 414px;
    position: relative;
    z-index: 1;
}

.customer_review_heading {
    font-weight: bold;
    font-size: 18px;
    color: var(--color-text);
    margin: 0;
    padding: 8px 0 8px 12px;
    border-left: 5px solid var(--color-primary);
    background-color: var(--color-bg-muted);
    border-radius: 0 4px 4px 0;
}

/* customer review scroll wrap & element (mobile) */
.review-scroll-wrap {
    position: relative;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--color-bg-card);
    box-shadow: 0 2px 8px var(--shadow-color-soft);
    margin-top: 16px;
}

/* 下部フェードでスクロール可能を示唆 */
.review-scroll-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 52px;
    background: linear-gradient(to bottom, transparent, var(--color-overlay-white-strong));
    pointer-events: none;
    z-index: 1;
}

customer-review {
    display: block;
    max-height: 600px;
    overflow-y: auto;
    /* スクロールバーを常時表示してスクロール可能を明示 */
    scrollbar-width: thin;
    scrollbar-color: var(--color-border-strong) transparent;
}

/* review scroll-to-top button */
.review-scroll-top {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--color-primary-dark);
    color: var(--color-on-primary);
    font-size: 26px;
    line-height: 52px;
    text-align: center;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px var(--shadow-color-strong);
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.review-scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
}

/* PC では非表示・制限解除（pc-side-content 側でスクロール制御） */
@media (min-width: 1024px) {
    .review-scroll-top {
        display: none;
    }

    .review-scroll-wrap {
        border: none;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
        margin-top: 0;
    }

    .review-scroll-wrap::after {
        display: none;
    }

    customer-review {
        max-height: none;
        overflow-y: visible;
    }
}

/* other payment */
.other_payment_img {
    text-align: center;
    margin: 0 auto;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* footer */
footer {
    background-color: var(--color-bg-footer);
    height: 50px;
    margin-top: 30px;
    max-width: 414px;
}

.footer-wrap {
    padding-top: 17px;
    width: 340px;
    margin: 0 auto;
}

footer ul {
    text-align: center;
    display: flex;
    padding: 0;
    justify-content: space-between;
}

footer li {
    display: inline;
    color: var(--color-bg-card);
    font-style: normal;
    font-size: 10px;
    overflow: visible;


}

footer a,
footer a:hover {
    color: var(--color-bg-card);
}

/* notice */
img.notice {
    display: block;
    max-width: 376px;
    height: auto;
    margin: -15px auto 5px;
}

div.cart_notice {
    display: block;
    max-width: 380px;
    width: 100%;
    height: auto;
    margin: 0 auto 5px;
    padding: 2px 3px;

    background-color: var(--color-bg-success);
}

.cart_notice :is(p, a) {
    display: block;
    color: var(--color-success-strong);
    font-size: 10px;
    line-height: 1.6;
    letter-spacing: 0.2px;
    font-weight: bold;
}

.cart_notice a:hover {
    text-decoration: underline;
}

.detail-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 90%;
    justify-content: start;
    gap: 5px;
}


.detail-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* 購入セクション区分ラベル */
.purchase-section {
    width: 100%;
    /* padding: 0 8px; */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.section-divider {
    width: 100%;
    padding: 0 8px;
    box-sizing: border-box;
    margin: 10px auto 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: var(--color-text-muted);
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

.purchase-section-label {
    display: block;
    text-align: center;
    font-size: 10px;
    font-weight: bold;
    color: var(--color-text);
    margin-bottom: 3px;
    letter-spacing: 0.5px;
}

/* カートに入れるボタン */
.add-to-cart-wrap {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

.add-to-cart-btn {
    width: 100%;
    padding: 7px 0;
    border: none;
    font-size: 13px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    background-color: var(--color-btn-add-to-cart-bg);
    color: var(--color-text);
    transition: transform 0.3s ease, filter 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.add-to-cart-btn svg {
    vertical-align: middle;
    flex-shrink: 0;
}

.add-to-cart-btn:hover {
    /* transform: translateY(-1px); */
    filter: brightness(1.1);
}

.add-to-cart-btn:active {
    transform: scale(0.95);
}

/* 定期購入ボタン */
.subscribe-wrap {
    width: 100%;
}

.subscribe-btn {
    width: 100%;
    padding: 7px 0;
    border: none;
    border-radius: var(--radius-pill);
    background-color: var(--color-btn-subscribe-bg);
    color: var(--color-text);
    font-size: 13px;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.subscribe-btn:hover {
    /* transform: translateY(-1px); */
    filter: brightness(1.1);
}

.subscribe-btn:active {
    transform: scale(0.95);
}

/* 契約中の商品の定期便ボタン（非活性） */
.subscribe-btn--subscribed,
.subscribe-btn:disabled {
    background-color: #d9d9d9;
    color: #888;
    cursor: not-allowed;
    box-shadow: none;
}

.subscribe-btn--subscribed:hover,
.subscribe-btn:disabled:hover {
    transform: none;
    filter: none;
}

.subscribe-btn--subscribed:active,
.subscribe-btn:disabled:active {
    transform: none;
}

@view-transition {
    navigation: auto;
}

/* アニメーション定義 */
@keyframes gradient-flow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* レイアウト */
.payment-container {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.heavy {
    font-weight: 900;
}


/* ボタン共通スタイル */
.stripe-button-animated-base {
    width: 100%;
    padding: 7px 0;
    border: none;
    color: var(--color-bg-card);
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--radius-pill);
    box-shadow: 1px 1px 4px 1px var(--color-text-muted);
    cursor: pointer;
    background-size: 400% 400%;
    /* アニメーションに必要 */
    transition: transform 0.3s ease, color 0.3s ease;
    animation: gradient-flow 8s ease infinite;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.stripe-button-animated-base:active {
    transform: scale(0.95);
}

/* ベースカラー */
.color-ocean-blue {
    background-image: linear-gradient(-45deg, var(--color-card-pay-grad-from), var(--color-card-pay-grad-to));
    /* background-image: linear-gradient(-45deg, #e49c6b, #e99f00); */
}

.stripe-pay-text {
    display: block;
    font-size: 8.5px;
    font-weight: bold;
    color: var(--color-text);
    text-align: center;
    margin-top: 2px;
    white-space: nowrap;
}

.promotion-banner {
    padding: 8px 6px 12px;
    max-width: 400px;
    border-bottom: 1px solid var(--color-border-soft);
}

/* プロモーション情報 */
.promo-highlights {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
}

.promo-line {
    display: inline;
    font-size: 28px;
    font-weight: 800;
    line-height: 36px;
    color: var(--color-primary);
}

.promo-sub {
    display: flex;
    justify-content: center;
    gap: 0;
}

.promo-sub-item {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    color: var(--color-text);
    white-space: nowrap;
    border-right: 1.5px solid var(--color-border-soft);
}

.promo-sub-item:last-child {
    border-right: none;
}

/* ヘッダーカートアイコン */
.header-cart-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
}

.cart-badge {
    position: absolute;
    top: 0;
    right: -2px;
    background-color: var(--color-accent);
    color: var(--color-bg-card);
    font-size: 10px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.cart-badge[data-count="0"] {
    display: none;
}

.cart-badge-bottom {
    position: absolute;
    top: -6px;
    right: -8px;
    background-color: var(--color-accent);
    color: var(--color-bg-card);
    font-size: 10px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.cart-badge-bottom[data-count="0"] {
    display: none;
}

/* カートモーダル */
.cart-modal {
    background-color: var(--color-bg-card);
    border: none;
    border-radius: var(--radius-lg);
    max-width: 380px;
    width: 90%;
    max-height: 95vh;
    max-height: 95dvh;
    padding: 0;
    box-shadow: 0 4px 24px var(--shadow-color-strong);
}

.cart-modal[open] {
    display: flex;
    flex-direction: column;
}

.cart-modal::backdrop {
    background-color: var(--shadow-color-deep);
}

.cart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--color-border-soft);
}

.cart-modal-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

.cart-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--color-text);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border-radius: 50%;
}

.cart-modal-close:hover {
    background-color: var(--color-bg-subtle);
    color: var(--color-text);
}

.cart-modal-body {
    padding: 14px 18px;
    overflow-y: auto;
    flex: 1;
    min-height: 180px;
}

.cart-empty-msg {
    text-align: center;
    color: var(--color-text);
    padding: 24px 0;
    font-size: 14px;
}

.cart-item-row {
    padding: 10px 0;
    border-bottom: 1px solid var(--color-bg-subtle);
}

.cart-item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.cart-item-name {
    font-size: 12px;
    font-weight: bold;
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.cart-item-remove {
    background: none;
    border: 1px solid var(--color-border-strong);
    border-radius: 6px;
    color: var(--color-text-muted);
    font-size: 12px;
    cursor: pointer;
    padding: 4px 10px;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
}

.cart-item-remove:hover {
    background-color: var(--color-bg-accent-soft);
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.cart-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.cart-item-price {
    font-size: 11px;
    color: var(--color-text);
    white-space: nowrap;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--color-border-strong);
    background-color: var(--color-bg-card);
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    color: var(--color-text);
}

.cart-qty-btn:hover:not(:disabled) {
    background-color: var(--color-bg-subtle);
}

.cart-qty-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.cart-item-qty span {
    font-size: 13px;
    min-width: 16px;
    text-align: center;
}

.cart-item-subtotal {
    font-size: 13px;
    font-weight: bold;
    color: var(--color-accent);
    white-space: nowrap;
}

.cart-modal-footer {
    padding: 14px 18px;
    border-top: 1px solid var(--color-border-soft);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cart-footer-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-total-label {
    font-size: 14px;
    font-weight: bold;
}

.cart-total-price {
    font-size: 16px;
    font-weight: bold;
    color: var(--color-accent);
}

.cart-payment-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 14px;
}

.cart-payment-heading {
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    color: var(--color-text);
    margin: 0;
}

.cart-payment-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    line-height: 1;
    /* box-shadow: 1px 1px 4px 1px var(--color-text-muted); */
    position: relative;
    overflow: hidden;
    /* transition: transform 0.3s ease, color 0.3s ease; */
}

.cart-payment-btn:active {
    transform: scale(0.95);
}

.cart-payment-btn.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* クレジットカード: stripe-button-animated-base と同様 */
.cart-payment-card {
    width: 100%;
    color: var(--color-bg-card);
    background-image: linear-gradient(-45deg, var(--color-card-pay-grad-from), var(--color-card-pay-grad-to));
    background-size: 400% 400%;
    animation: gradient-flow 8s ease infinite;
}

.cart-payment-card:hover {
    color: var(--color-bg-card);
}

/* Amazon Pay: SDK公式ボタン */
.cart-payment-amazon-wrap {
    width: 100%;
    height: 40px;
}

/* 銀行振込: カード・AmazonPayに揃えたボタンデザイン */
.cart-payment-bank {
    color: var(--color-on-primary);
    background-image: linear-gradient(-45deg, var(--color-primary), var(--color-primary-dark));
    background-size: 400% 400%;
    animation: gradient-flow 8s ease infinite;
    text-decoration: none;
}

.cart-payment-bank:hover {
    color: var(--color-on-primary);
}

/* 「お支払いに進む」ボタン */
.cart-proceed-payment {
    width: 100%;
    padding: 12px 0;
    background-color: var(--color-primary-dark);
    border: none;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 700;
    color: var(--color-on-primary);
    cursor: pointer;
    line-height: 1;
    transition: opacity 0.2s ease;
}

.cart-proceed-payment:hover {
    opacity: 0.85;
}

.cart-continue-shopping {
    width: 100%;
    padding: 12px 0;
    background: none;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    cursor: pointer;
    line-height: 1;
}

.cart-continue-shopping:hover {
    background-color: var(--color-bg-subtle);
    color: var(--color-text);
}

.cart-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* カート下部購入ボタン */
.cart-proceed-bottom-wrap {
    max-width: 380px;
    width: 100%;
    margin: 20px auto;
    padding: 0 10px;
}

.cart-proceed-bottom-btn {
    width: 100%;
    padding: 16px 0;
    border: none;
    border-radius: var(--radius-pill);
    color: var(--color-on-primary);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    background-color: var(--color-btn-add-to-cart-bg);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1;
}

.cart-proceed-bottom-btn:hover {
    /* transform: translateY(-1px); */
    /* box-shadow: 0 6px 20px var(--color-primary-alpha-50); */
    filter: brightness(1.1);
}

.cart-proceed-bottom-btn:active {
    transform: scale(0.98);
}

.cart-proceed-bottom-btn svg {
    margin-top: -2px;
}

/* PC screen layout */
.pc-layout-container {
    display: block;
}

/* 左パネル: モバイルでは非表示 */
.pc-left-content {
    display: none;
}

@media (min-width: 1024px) {
    .wrapper {
        zoom: 1.2;
    }

    /* Main container is relative to absolute position the side content */
    .pc-layout-container {
        position: relative;
    }

    .pc-side-content {
        position: absolute;
        top: 0;
        bottom: 0;
        left: calc(100% + 8px);
        /* GAP 詰める */
        width: 380px;
        overflow-y: auto;
        box-sizing: border-box;
        /* Make it visually smaller and less dominant.
           0.78 * 1.2 (wrapper) = 0.93 effective zoom */
        font-size: 0.9rem;
        zoom: 0.78;
        opacity: 0.98;
    }

    /* タイトルをスクロール領域の上部に固定 */
    .customer_review_heading_wrap {
        position: sticky;
        top: 0;
        z-index: 2;
        margin: 0 0 20px;
        max-width: 100%;
        padding: 0;
        background-color: var(--color-bg-card);
    }

    /* Scrollbar styling */
    .pc-side-content::-webkit-scrollbar {
        width: 8px;
    }

    .pc-side-content::-webkit-scrollbar-track {
        background: var(--color-bg-subtle);
        border-radius: 4px;
    }

    .pc-side-content::-webkit-scrollbar-thumb {
        background: var(--color-border-strong);
        border-radius: 4px;
    }

    .pc-side-content::-webkit-scrollbar-thumb:hover {
        background: var(--color-text-muted);
    }

    /* 左パネル: PC のみ表示 */
    .pc-left-content {
        display: block;
        position: absolute;
        top: 0px;
        right: calc(100% + 8px);
        /* GAP 詰める */
        width: 320px;
        max-height: calc(100% + 80px);
        overflow-y: auto;
        box-sizing: border-box;
        padding-left: 8px;
        font-size: 0.9rem;
        zoom: 0.78;
        opacity: 0.98;
    }

    .pc-left-content::-webkit-scrollbar {
        width: 8px;
    }

    .pc-left-content::-webkit-scrollbar-track {
        background: var(--color-bg-subtle);
        border-radius: 4px;
    }

    .pc-left-content::-webkit-scrollbar-thumb {
        background: var(--color-border-strong);
        border-radius: 4px;
    }

    .pc-left-content::-webkit-scrollbar-thumb:hover {
        background: var(--color-text-muted);
    }
}

/* 1280px以上の画面でgapを広げる */
@media (min-width: 1280px) {
    .pc-side-content {
        left: calc(100% + 32px);
    }

    .pc-left-content {
        right: calc(100% + 32px);
    }
}

/* 広い画面では側面パネルの間隔を広げる */
@media (min-width: 1500px) {
    .pc-side-content {
        left: calc(100% + 100px);
    }

    .pc-left-content {
        right: calc(100% + 100px);
    }
}

/* 商品パネル共通 */
.product-panel-heading {
    font-weight: bold;
    font-size: 18px;
    color: var(--color-text);
    margin: 0 0 12px;
    padding: 8px 0 8px 12px;
    border-left: 5px solid var(--color-primary);
    background-color: var(--color-bg-muted);
    border-radius: 0 4px 4px 0;
}

/* 商品カードリスト */
.product-card-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 20px;
    /* バウンスアニメーション時のスクロールバー表示ブレを防止 */
}

.product-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: var(--color-overlay-white-soft);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-overlay-white-base);
    border-radius: var(--radius-lg);
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-color-soft);
    position: relative;
    text-decoration: none;
    color: inherit;
    text-align: left;
}

.product-card:hover {
    box-shadow: 0 10px 25px var(--shadow-color-base);
    transform: translateY(-4px);
    border-color: var(--color-primary-alpha-50);
}

.product-card.is-active {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary-alpha-20);
}

.product-card-img-wrap {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: var(--color-bg-subtle);
    transition: transform 0.5s ease;
}

.product-card:hover .product-card-img {
    transform: scale(1.05);
}

.product-card-label {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-block;
    font-size: 11px;
    font-weight: bold;
    color: var(--color-bg-card);
    padding: 4px 8px;
    border-radius: 4px;
    line-height: 1.4;
    box-shadow: 0 2px 6px var(--shadow-color-base);
    background-color: var(--color-primary);
}

.product-card-tap-hint {
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    display:block;
    text-align: center;
}

.product-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* .product-card-header {
} */

.product-card-name {
    font-weight: 800;
    font-size: 16px;
    color: var(--color-text);
    margin: 0;
    line-height: 1.3;
}

.product-card-tagline {
    font-size: 12px;
    color: var(--color-text);
    font-weight: 600;
    display: block;
}

.product-card-desc {
    font-size: 12px;
    color: var(--color-text);
    line-height: 1.5;
}

.product-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.product-card-feature-item {
    font-size: 10px;
    font-weight: bold;
    color: var(--color-primary-dark);
    background: var(--color-primary-alpha-10);
    padding: 3px 8px;
    border-radius: var(--radius-lg);
}

.product-card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed var(--color-border-soft);
}

.product-card-action-text {
    font-size: 12px;
    font-weight: bold;
    color: var(--color-primary);
}

.product-card-arrow {
    color: var(--color-primary);
    font-size: 18px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.product-card:not(.is-active):hover .product-card-arrow {
    transform: translateX(4px);
}

/* Accordion Expand / Collapse animation */
/* Accordion Expand / Collapse animation */
.product-card-overview-wrapper {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows 0.35s ease;
}

.product-card-overview {
    overflow: hidden;
    transition: opacity 0.3s ease;
    opacity: 1;
}

.product-card-expanded-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}

.product-card-expanded-content {
    overflow: hidden;
    transition: opacity 0.35s ease, margin 0.35s ease;
    opacity: 0;
    margin-top: 0;
}

/* state: active */
.product-card.is-active .product-card-overview-wrapper {
    grid-template-rows: 0fr;
}

.product-card.is-active .product-card-overview {
    opacity: 0;
}

.product-card.is-active .product-card-expanded-wrapper {
    grid-template-rows: 1fr;
}

.product-card.is-active .product-card-expanded-content {
    opacity: 1;
    margin-top: 8px;
    /* Slight spacing when expanded */
    display: flex;
    flex-flow: column;
    gap: 8px;
}

/* Action text toggle using CSS */
.product-card .expanded-text {
    display: none;
}

.product-card.is-active .unexpanded-text {
    display: none;
}

.product-card.is-active .expanded-text {
    display: inline-block;
}

/* Rotate arrow when active */
.product-card.is-active .product-card-arrow {
    transform: rotate(90deg) translateX(2px);
}

/* 商品詳細ビュー */
.product-detail {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.product-detail[hidden] {
    display: none;
}

.product-detail-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.product-detail-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-detail-label {
    display: inline-block;
    font-size: 10px;
    font-weight: bold;
    color: var(--color-bg-card);
    padding: 2px 7px;
    border-radius: 3px;
    line-height: 1.4;
}

.product-detail-name {
    font-weight: bold;
    font-size: 16px;
    color: var(--color-text);
    margin: 0;
}

.product-detail-tagline {
    font-size: 12px;
    color: var(--color-primary);
    font-weight: bold;
}

.product-detail-desc {
    font-size: 12px;
    color: var(--color-text);
    line-height: 1.6;
}

.product-detail-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.product-detail-features li {
    font-size: 11px;
    background-color: var(--color-primary-alpha-08);
    color: var(--color-primary-dark);
    border: 1px solid var(--color-primary-light);
    border-radius: 20px;
    padding: 2px 8px;
    font-weight: bold;
}

.product-detail-nutrition {
    background-color: var(--color-bg-muted);
    border-radius: 6px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-detail-nutrition-title {
    font-size: 11px;
    font-weight: bold;
    color: var(--color-text);
}

.product-detail-nutrition-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3px;
}

.product-detail-nutrition-item {
    font-size: 11px;
    color: var(--color-text);
}

.product-detail-nutrition-item span {
    font-weight: bold;
    color: var(--color-text);
}

.product-detail-link {
    display: block;
    width: 100%;
    padding: 9px 0;
    background-color: var(--color-primary-dark);
    color: var(--color-on-primary);
    text-align: center;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    transition: opacity 0.2s ease;
    box-sizing: border-box;
}

.product-detail-link:hover {
    opacity: 0.85;
    color: var(--color-on-primary);
}

/* =====================
   商品詳細ボトムシート (SP用)
   ===================== */

/* 画像エリアをタップトリガーに */
.product-detail-trigger-btn {
    cursor: pointer;
}

/* PCでは非表示（左パネルが代替） */
@media (min-width: 1024px) {
    .product-detail-trigger-btn {
        cursor: default;
        pointer-events: none;
    }

    .product-card-tap-hint {
        display: none;
    }

    /* .item-white-area {
        padding-bottom: 13px;
    } */
}

/* ボトムシートモーダル本体 */
dialog.product-detail-modal {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0 auto;
    max-width: 414px;
    width: 100%;
    max-height: 85dvh;
    padding: 0;
    border: none;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    box-shadow: 0 -4px 24px var(--shadow-color-strong);
}

dialog.product-detail-modal::backdrop {
    background-color: var(--shadow-color-deep);
}

/* スライドアップアニメーション */
@keyframes product-sheet-in {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes product-sheet-out {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(100%);
    }
}

dialog.product-detail-modal[open] {
    animation: product-sheet-in 0.3s ease-out;
}

dialog.product-detail-modal.is-closing {
    animation: product-sheet-out 0.25s ease-in forwards;
}

/* 内部構造 */
.product-detail-modal-inner {
    display: flex;
    flex-direction: column;
    max-height: 85dvh;
    overflow: hidden;
}

.product-detail-modal-handle-bar {
    display: flex;
    justify-content: center;
    padding: 10px 0 6px;
    flex-shrink: 0;
    background-color: var(--color-bg-card);
    position: relative;
    z-index: 1;
}

.product-detail-modal-handle {
    width: 40px;
    height: 4px;
    background-color: var(--color-border);
    border-radius: 2px;
}

.product-detail-modal-content {
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
    position: relative;
    overscroll-behavior: contain;
}

/* モーダル内の商品画像（PCパネルより大きく） */
dialog.product-detail-modal .product-detail-img {
    height: 200px;
}

/* 閉じるボタン（画像右上に重ねる） */
.product-detail-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background-color: var(--shadow-color-deep);
    color: var(--color-bg-card);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: 0;
}

.product-detail-modal-close:hover {
    background-color: var(--shadow-color-deep);
}