body {
    margin: 0; padding: 0;
    background-color: #f5f5f0;
    color: #2d2d2d;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    position: relative;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
    max-width: 480px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    z-index: 9998;
}

.breadcrumb-container {
    position: relative;
    padding: 85px 20px 20px;
    z-index: 10;
}

.breadcrumbs {
    list-style: none; display: flex; align-items: center;
    padding: 0; margin: 0;
    font-size: 11px; letter-spacing: 0.05em;
    overflow-x: auto; white-space: nowrap;
}

.breadcrumbs li:not(:last-child)::after { content: "/"; margin: 0 8px; color: #ccc; }
.breadcrumbs a { text-decoration: none; color: #2d2d2d; opacity: 0.5; }

main { position: relative; z-index: 1; width: 100%; }
.main-content {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
    position: relative;
}

/* ベース（モバイル） */
.product-hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 0;
}

.product-hero img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-spacer {
    height: calc(92vw + 5px);
    pointer-events: none;
}

/* 「初めてのSM／SFM」ページ専用：参考ファイル（subscription_purchase_kinshoku_course_s.html）と
   同じ、オーバーレイなしの単純な縦積み配置（パンくずの下に画像がそのまま続く） */
.beginner_purchase_basic_a .product-hero,
.beginner_purchase_basic_b .product-hero {
    position: static;
    width: 100%;
    margin-bottom: 25px;
}
.beginner_purchase_basic_a .hero-spacer,
.beginner_purchase_basic_b .hero-spacer {
    display: none;
}

.product-purchase-box {
    position: relative;
    z-index: 2;
}

.product-flex-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 35px !important;
    gap: 0px;
    flex-wrap: nowrap;
    position: relative;
    z-index: 2;
}

.product-info-left-main {
    width: calc(100% - 110px);
    flex: none;
}

.product-info-right { width: 115px; flex-shrink: 0; text-align: right; }
.product-info-right img { width: 115px; height: auto; display: inline-block; }

/* PC専用の2円ロゴ（product-logo-duo）はモバイルでは非表示。モバイルは従来の1枚画像のまま */
.product-logo-duo { display: none; }

.p-title { font-size: 24px; color: #2d2d2d; margin: 0 0 5px; font-weight: 700; line-height: 1.4; }
.beginner_purchase_sanlem_tab .p-title,
.beginner_purchase_sanlem_pow .p-title,
.beginner_purchase_mergen_tab .p-title {
    margin: 10px 0 5px;
}

.p-title-sub {
    font-size: 16px;
    font-weight: 500;
    margin-left: 2px;
}

.product-flex-block {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 45px;
    margin-top: 20px;
    gap: 10px;
    position: relative;
    z-index: 2;
}
/* 「初めてのSM／SFM」ページ専用：参考ファイルと同じく items-grid と price-display を
   横並びではなく縦積み（items-gridが全幅、その下にprice-displayが全幅）に変更 */
.beginner_purchase_basic_a .product-flex-block,
.beginner_purchase_basic_b .product-flex-block {
    flex-direction: column;
    align-items: stretch;
}
.beginner_purchase_sanlem_tab .product-flex-block,
.beginner_purchase_sanlem_pow .product-flex-block,
.beginner_purchase_mergen_tab .product-flex-block {
    margin-top: 5px;
}

.product-info-left { flex: 1; font-size: 11px; color: #666666; line-height: 1.5; text-align: left; }
.product-info-left p { margin: 0; }
.spacer-1em { height: 1em; }

.dot1 { color: #bda16b; font-weight: 900; margin-right: 1px; }
.dot2 { color: #189bbc; font-weight: 900; margin-right: 1px; }

/* 製品ボックス（参考: subscription_purchase_kinshoku_course.html の item-block と同一デザイン） */
.items-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.item-block {
    background: #f9f9f7;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 14px;
}
.item-header {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 30px;
    margin-bottom: 6px;
}
.item-header-left {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}
.item-line {
    width: 4px;
    height: 22px;
    flex-shrink: 0;
}
.item-name {
    font-size: 18px;
    color: #2d2d2d;
    font-weight: 500;
    margin: 0;
    line-height: 1;
}
.item-header .item-price {
    margin: 0;
    flex-shrink: 0;
    font-size: 16px;
    line-height: 1;
}
.item-meta {
    font-size: 13px;
    color: #666666;
    margin: 0 0 0 16px;
    line-height: 1.4;
}
/* .product-info-left p { margin:0; } による margin 打ち消しを回避 */
.product-info-left .item-meta { margin: 0 0 0 16px; }

.price-display {
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    gap: 4px;
    margin: 10px 0 0;
    width: 100%;
    position: relative;
    z-index: 2;
    font-family: 'Inter', sans-serif;
    color: #1a2a40;
}

.price-num { font-size: 30px; font-weight: 800; }
.price-unit-yen { font-size: 18px; font-weight: 700; }
.price-tax-shipping { font-size: 12px; font-weight: 400; color: #2d2d2d; margin-left: 5px; }

/* 送料無料ラベル（参考: subscription_purchase_kinshoku_course.html の total-ship-badge と同一デザイン） */
.total-ship-badge {
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    color: #bda16b;
    background: rgba(189, 161, 107, 0.14);
    padding: 3px 10px;
    margin-left: 5px;
    border-radius: 20px;
}
.shipping-notice-wide {
    display: block;
    text-align: center;
    width: 100%;
    margin: 10px 0 0;
    font-size: 12px;
    color: #666666;
    padding: 0;
    box-sizing: border-box;
    white-space: normal;
}

.cart-button-container {
    margin-top: 25px;
    padding-bottom: 0px;
    position: relative;
    z-index: 1;
}
.cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #1a2a40;
    color: #ffffff;
    text-decoration: none;
    padding: 18px;
    border-radius: 5px;
    font-weight: 500;
    font-size: 18px;
    width: 100%;
    transition: opacity 0.3s;
}
.cart-btn:hover { opacity: 0.9; }
.cart-icon-svg { width: 20px; height: 20px; fill: #ffffff; }

.btn-cart, .btn-subs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px;
    border-radius: 5px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 340px;
    margin: 20px auto;
}

.btn-cart { background-color: #1a2a40; }
.btn-subs { background-color: #bda16b; margin-bottom: 40px; }
.btn-cart svg, .btn-subs svg { width: 20px; height: 20px; fill: currentColor; }

.btn-subs-wrapper {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
}

.delivery-notice {
    text-align: center;
    margin-top: -25px;
    margin-bottom: 40px;
    font-size: 14px;
    color: #666666;
    font-weight: 500;
    letter-spacing: 0.05em;
}
.highlight-date {
    font-weight: 700;
    color: #bda16b;
    font-size: 17px;
    margin-right: 3px;
}

/* 【目次】ページ内リンクナビゲーション */
.page-anchor-nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    background-color: #ffffff;
    margin: 0;
    padding: 28px 20px 28px;
    box-sizing: border-box;
}

.anchor-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    /* Gridレイアウトで要素を均等に配置 */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 1000px;
}

.anchor-list li {
    box-sizing: border-box;
}

/* <a>タグをボタン化してクリック領域を広げる（参考フォルダのタイル型デザインに統一） */
.anchor-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    text-decoration: none;
    color: #1a2a40;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.3;
    padding: 14px 12px;
    background-color: #f9f9f7;
    border: 1px solid #1a2a40;
    border-radius: 10px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    height: 100%;
    box-sizing: border-box;
}

/* 「＞」の矢印装飾 */
.anchor-list a::after {
    content: "＞";
    color: #2d2d2d;
    font-weight: 700;
    font-size: 11px;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

/* タップ時のフィードバック（スマホ） */
.anchor-list a:active {
    background-color: #1a2a40;
    color: #ffffff;
}
.anchor-list a:active::after {
    color: #ffffff;
}

/* ホバー時のアクション（マウス操作時のフィードバック） */
@media (hover: hover) {
    .anchor-list a:hover {
        background-color: #1a2a40;
        color: #ffffff;
        transform: scale(1.04);
    }
    .anchor-list a:hover::after {
        color: #ffffff;
    }
}


.section-full-white {
    width: 100%; background-color: #ffffff;
    padding: 50px 30px 50px; box-sizing: border-box;
    position: relative;
}
.section-full-gray {
    width: 100%; background-color: #e9e9e9;
    padding: 50px 30px 50px; box-sizing: border-box;
}

.description-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a2a40;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    line-height: 1.2;
}

.description-title::before {
    content: "◈";
    margin-right: 8px;
    color: #1a2a40;
    font-size: 1.1em;
}

.sub-description-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a2a40;
    margin: 40px 0 15px;
    display: block;
    padding-left: 10px;
    line-height: 1.2;
}
.title-sanlem { border-left: 4px solid #bda16b; }
.title-mergen { border-left: 4px solid #189bbc; }

.description-text {
    font-size: 15px;
    color: #2d2d2d;
    line-height: 1.8;
    margin: 0;
    text-align: justify;
}

.intake-header {
    display: inline-block;
    border-bottom: 2px solid #bda16b;
    padding-bottom: 1px;
    padding-right: 20px;
    margin-bottom: 15px;
}

.intake-bold { font-weight: 700; font-size: 20px; color: #1a2a40; }
.intake-small { font-weight: 700; font-size: 15px; color: #1a2a40; margin-left: 4px; }
.intake-regular { font-weight: 400; font-size: 15px; color: #1a2a40; margin-left: -5px; }

.intake-text {
    font-size: 15px;
    letter-spacing: 0.05em;
    line-height: 1.8;
}

.info-link-btn {
    display: flex; align-items: center; justify-content: center;
    width: 100%; 
    max-width: 320px;
    margin: 20px auto 0;
    background-color: #ffffff; border: 1px solid #1a2a40;
    color: #1a2a40; text-decoration: none; padding: 15px 20px;
    font-size: 16px; font-weight: 600; box-sizing: border-box; border-radius: 50px;
}

.how-to-step {
    position: relative;
    display: flex; align-items: center; gap: 15px;
    padding-top: 5px;
    margin-bottom: 25px; 
    padding-bottom: 20px;
    border-bottom: 1px dashed #ccc;
}
.how-to-step:last-child { border-bottom: none; margin-bottom: 0; }

.step-badge {
    position: absolute;
    top: -10px; left: -5px;
    background-color: #bda16b;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 6px 1px;
    border-radius: 2px;
    letter-spacing: 0.05em;
    z-index: 2;
}

.how-to-text { font-size: 14px; line-height: 1.6; color: #1a2a40; }

.how-to-img { width: 100px; flex-shrink: 0; position: relative; }
.how-to-img img { width: 100%; height: auto; display: block; }

.video-container {
    width: 100%;
    margin-top: 30px;
    border-radius: 4px;
    overflow: hidden;
    background: #000;
    line-height: 0;
    scroll-margin-top: 100px;
}
.video-container video {
    width: 100%;
    height: auto;
    display: block;
}
.video-link-text {
    color: #1a2a40;
    font-weight: bold;
}

.faq-item { border-bottom: 1px solid #e0e0e0; background-color: transparent; }
.faq-question { display: flex; align-items: center; padding: 15px 0; cursor: pointer; position: relative; }
.faq-icon-q, .faq-icon-a { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; margin-right: 12px; flex-shrink: 0; }
.faq-icon-q { background-color: #bda16b; color: #fff; font-family: 'Inter', sans-serif; }
.faq-q-text { font-family: 'Noto Sans JP', sans-serif; font-size: 16px; font-weight: 600; line-height: 1.4; padding-right: 25px; color: #1a2a40; letter-spacing: 0.02em; }
.faq-question::after { content: "＋"; position: absolute; right: 5px; font-size: 14px; color: #1a2a40; transition: transform 0.3s ease; }
.faq-item.active .faq-question::after { content: "－"; transform: rotate(180deg); }
.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows 0.3s ease-out;
}
.faq-item.active .faq-answer { grid-template-rows: 1fr; padding-bottom: 25px; }
.faq-answer-inner {
    display: flex;
    align-items: flex-start;
    min-height: 0;
    overflow: hidden;
}
.faq-icon-a { border: 1.5px solid #bda16b; background-color: #fff; color: #bda16b; }
.faq-a-text { font-size: 16px; line-height: 1.7; color: #2d2d2d; text-align: justify; }

.spec-table { width: 100%; border-collapse: collapse; border: none; border-top: 1px solid #1a2a40; margin-top: 10px; font-size: 13px; line-height: 1.6; font-family: 'Noto Sans JP', sans-serif; }
.spec-table th { width: 40%; background-color: #f9f9f7; color: #1a2a40; padding: 15px 12px; font-weight: 600; text-align: left; vertical-align: top; border: none; border-bottom: 1px solid #eee; font-size: 12px; letter-spacing: 0.05em; }
.spec-table td { width: 60%; background-color: #ffffff; color: #2d2d2d; padding: 15px 12px; text-align: left; vertical-align: top; border: none; border-bottom: 1px solid #eee; }

.nutrition-grid {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    width: 100%;
}

.nutrition-col {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
}

.nutrition-col:last-child {
    flex: 1;
}

.nutrition-note {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    display: block;
}

.totop-button {
    position: fixed;
    right: 20px; bottom: 20px;
    width: 68px; height: 68px;
    background-color: #bda16b;
    color: #ffffff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; font-size: 14px; font-weight: 700; line-height: 1.2;
    z-index: 9999; opacity: 0; visibility: hidden;
    transition: 0.3s; box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.totop-button.is-show { opacity: 1; visibility: visible; }

.scroll-indicator {
    position: fixed;
    left: 10px;
    bottom: 30px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}
.scroll-text {
    font-size: 9px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #1a2a40;
    writing-mode: vertical-rl;
}
.scroll-line {
    width: 1px;
    height: 40px;
    background-color: rgba(26, 42, 64, 0.2);
    position: relative;
    overflow: hidden;
}
.scroll-line::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a2a40;
    animation: scrollLineAnim 2s cubic-bezier(0.76, 0, 0.3, 1) infinite;
}
@keyframes scrollLineAnim {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    50.1% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

.back-nav-section {
    width: 100%; padding: 40px 20px 50px;
    box-sizing: border-box; text-align: center;
    background: #f5f5f0;
}

.btn-back-lineup {
    display: flex; align-items: center; justify-content: center;
    width: 100%; 
    max-width: 320px; 
    margin: 0 auto;
    background-color: #ffffff; color: #1a2a40;
    border: 1px solid #1a2a40; text-decoration: none;
    font-weight: 600; font-size: 16px; padding: 18px 0;
    border-radius: 30px;
    transition: opacity 0.3s;
}

/* ============================================================
   PC・タブレット レイアウト（768px以上）
   ============================================================ */
@media (min-width: 768px) {

    body { max-width: none; box-shadow: none; margin: 0; }

    main { max-width: 960px; margin: 0 auto; }

    .breadcrumb-container { padding: 90px 35px 20px; }
    .breadcrumbs { font-size: 12px; }
    .product-hero {
        height: 85vw;
        overflow: hidden; /* トリミングに必要 */
    }

    .product-hero img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center bottom; /* 上30〜45%の余白をカット */
    }

    .hero-spacer {
        height: calc(85vw - 70px);
    }

    .product-info-left-main {
        width: unset;
    }

    .product-info-left { font-size: 13px; }
    .item-price .tax-note { font-size: 13px; }

    .product-info-right {
        width: 33%;
    }

    .product-info-right img {
        width: unset;
    }

    .p-title {
        font-size: 32px;
    }

    .p-title-sub {
        font-size: 18px;
    }

    .product-flex-container {
        padding: 0 55px !important;
        justify-content: space-between;
        gap: 25px;
    }

    .product-flex-block { 
        padding: 0 65px; 
        margin-top: -15px;
    }

    .beginner_purchase_sanlem_tab .product-flex-block,
    .beginner_purchase_sanlem_pow .product-flex-block,
    .beginner_purchase_mergen_tab .product-flex-block {
        align-items: center;
        margin-top: 35px;
    }

    .beginner_purchase_sanlem_tab .spacer-1em,
    .beginner_purchase_sanlem_pow .spacer-1em,
    .beginner_purchase_mergen_tab .spacer-1em {
        height: 0px;
    }

    .price-display {
        width: unset;
        margin-top: auto;
    }

    .shipping-notice-wide {
        text-align: right;
        padding: 0 65px;
    }

    .cart-button-container {
        margin-top: 35px;
        padding: 0 55px;
        padding-bottom: 35px;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
        gap: 25px;
    }
    .btn-cart {
        display: flex;
        flex-direction: row;
        max-width: 340px;
        width: 100%;
        height: 60px;
        /* ベースの padding:18px が height に上乗せされて余分に広がるため、上下だけ詰める */
        padding-top: 0;
        padding-bottom: 0;
        margin: 0;
    }
    .btn-subs-wrapper {
        display: flex;
        flex-direction: column;
        max-width: 340px;
        margin: 0;
    }
    .btn-subs {
        flex: none;
        width: 100%;
        height: 60px;
        padding-top: 0;
        padding-bottom: 0;
        margin: 0;
    }
    .delivery-notice {
        margin-top: 5px;
        margin-bottom: 0;
    }

    .section-full-white,
    .section-full-gray {
        /* 背景を画面幅いっぱいに広げつつ、中身は main と同じ960px基準で中央寄せ（参考: regular_purchase_products.css） */
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding-top: 50px;
        padding-bottom: 50px;
        padding-left: max(60px, calc((100vw - 960px) / 2 + 60px));
        padding-right: max(60px, calc((100vw - 960px) / 2 + 60px));
    }

    /* フォントサイズを参考ファイル（regular_purchase_products.css）に統一 */
    .description-title { font-size: 24px; }
    .description-text { font-size: 16px; }
    #sec-description .description-text { text-align: left; }
    #sec-timing .description-text,
    #sec-notes .description-text { text-align: left; }
    .intake-text { font-size: 16px; }
    .spec-table th,
    .spec-table td { font-size: 14px; }
    .spec-table th { width: 20%; }
    .nutrition-note { font-size: 15px; }

    /* 飲み方STEP：PCでは白背景・枠線のカードデザインに（参考: regular_purchase_products.css と同一） */
    .how-to-step {
        background-color: #ffffff;
        border: 1px solid #e5e2da;
        border-radius: 10px;
        padding: 20px 70px;
        gap: 70px;
        margin-bottom: 16px;
        border-bottom: none;
    }
    .how-to-step:last-child {
        border-bottom: none;
        margin-bottom: 16px;
    }
    .how-to-img { width: 150px; height: 150px; }
    .how-to-img img { width: 150px; height: 150px; object-fit: contain; }
    .how-to-text { font-size: 20px; }
    .step-badge { top: 0px; left: -10px; }

    /* description-text：粉末STEP（how-to-step）を持つページの飲み方セクション内は左揃え。
       STEPを持たないページ（初めてのSとMなど）の飲み方や、他セクションは対象外 */
    body:has(.how-to-step) #sec-howtodrink .description-text {
        text-align: left;
    }

    /* 動画リンクテキスト・動画サイズ：info-link-btnとデザイン（形状）を統一。背景色は維持 */
    .video-link-text {
        font-size: 16px;
        text-align: center;
        margin-top: 40px;
        display: flex;
        width: 320px;
        height: 55.8px;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
        padding: 15px 20px;
        font-weight: 600;
        border: 1px solid #1a2a40;
        border-radius: 50px;
        color: #fff;
        background-color: #1a2a40;
    }
    .video-container {
        width: 550px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 40px;
    }

    .page-anchor-nav {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }

    .anchor-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 0;
    }
    .anchor-list a {
        font-size: 15px;
        padding: 16px 10px 16px 18px;
    }
    .anchor-list a::after {
        font-size: 12px;
    }

    .back-nav-section { padding: 40px 40px 50px; }

    .btn-back-lineup {
        font-size: 18px;
        padding: 18px 30px;
    }

    /* 別製品への案内ボタン：参考ファイル（regular_purchase_products.css）と同一デザインに統一 */
    .info-link-btn {
        width: auto;
        display: inline-flex;
        padding: 15px 15px;
        margin-top: 10px !important;
    }
    body:has(.how-to-step) .info-link-btn {
        display: flex;
        width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ============================================================
   「初めてのSM／SFM」ページ専用（768px以上共通）：
   タイトル横の二円ロゴ（product-logo-duo）は、タブレット・PCどちらの
   レイアウトでも共通して使うため、ブレークポイントに依存しない
   ここで定義する。
   ============================================================ */
@media (min-width: 768px) {

    .beginner_purchase_basic_a .product-flex-container,
    .beginner_purchase_basic_b .product-flex-container {
        padding: 0 !important;
        /* ロゴ画像を右端に貼り付けず、タイトルのすぐ右に寄せる */
        justify-content: flex-start;
        gap: 30px;
    }

    .beginner_purchase_basic_a .product-info-right,
    .beginner_purchase_basic_b .product-info-right {
        width: 165px;
        height: 160px;
        position: relative;
    }

    /* 1枚の合成画像ではなく、白枠の円形ロゴ2枚を上下に少し重ねて配置 */
    .beginner_purchase_basic_a .product-logo-combined,
    .beginner_purchase_basic_b .product-logo-combined {
        display: none;
    }
    .beginner_purchase_basic_a .product-logo-duo,
    .beginner_purchase_basic_b .product-logo-duo {
        display: block;
        position: relative;
        width: 100%;
        height: 100%;
    }
    .beginner_purchase_basic_a .product-logo-circle,
    .beginner_purchase_basic_b .product-logo-circle {
        position: absolute;
        width: 92px;
        height: 92px;
        border-radius: 50%;
        object-fit: cover;
        border: 4px solid #ffffff;
        box-shadow: 0 8px 18px rgba(0,0,0,0.18);
        background: #f5f5f0;
    }
    .beginner_purchase_basic_a .logo-primary,
    .beginner_purchase_basic_b .logo-primary {
        top: 0;
        left: 0;
        z-index: 1;
        /* 通常サイズ（92px）の15%増し */
        width: 106px;
        height: 106px;
    }
    .beginner_purchase_basic_a .logo-secondary,
    .beginner_purchase_basic_b .logo-secondary {
        /* bottom/right ではなく top/left 指定にして、上の円との重なりを「少しだけ」に抑える */
        top: 65px;
        left: 70px;
        z-index: 2;
    }

    /* タイトル→商品ボックスの余白を、商品ボックス→合計金額の余白と同じ15pxに統一 */
    .beginner_purchase_basic_a .items-grid,
    .beginner_purchase_basic_b .items-grid {
        margin-top: 15px;
    }
}

/* ============================================================
   「初めてのSM／SFM」ページ専用（PC・1024px以上）：
   カートボタンより上の部分だけを「画像＝左カラム／右カラム（パンくず＋タイトル・価格）」の
   2カラムに変更。カートボタン（cart-button-container）と目次（page-anchor-nav）は
   HTML側で main 直下に移動済みのため、2カラムの下に元通り全幅で配置される
   （cart-button-container 自体のスタイルは他ページと共通の通常768px用CSSにそのまま従う）。
   タブレット（768〜1023.98px）は、参考ファイル（subscription_purchase_kinshoku_course.html）
   と同じ縦積みレイアウトにするため、別のタブレット専用ブロックで対応する。
   他ページ（単品ページ等）は従来のオーバーレイ配置のまま。
   ============================================================ */
@media (min-width: 1080px) {

    .beginner_purchase_basic_a main,
    .beginner_purchase_basic_b main {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas:
            "breadcrumb breadcrumb"
            "hero content"
            "cart cart"
            "anchor anchor";
        column-gap: 40px;
        align-items: start;
    }

    /* 製品説明以降の各セクションなど、grid-area未指定の main 直下要素は
       すべて2カラムぶん（全幅）を使う＝従来通りの1カラム表示に戻す */
    .beginner_purchase_basic_a main > *,
    .beginner_purchase_basic_b main > * {
        grid-column: 1 / -1;
    }

    /* パンくずは元の位置（画像の上部・全幅）に戻す */
    .beginner_purchase_basic_a .breadcrumb-container,
    .beginner_purchase_basic_b .breadcrumb-container {
        grid-area: breadcrumb;
    }

    /* ヒーロー画像：絶対配置のオーバーレイをやめ、左カラムに静的配置 */
    .beginner_purchase_basic_a .product-hero,
    .beginner_purchase_basic_b .product-hero {
        grid-area: hero;
        position: static;
        width: 100%;
        height: auto;
        overflow: visible;
    }
    .beginner_purchase_basic_a .product-hero img,
    .beginner_purchase_basic_b .product-hero img {
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
    }

    /* 右カラム：商品タイトル・価格（section をそのまま1つのグリッドアイテムに）。
       ブロック内部の配置バランスは変えず、ブロック全体を左の画像の高さの中央に揃える */
    .beginner_purchase_basic_a section[data-header-theme],
    .beginner_purchase_basic_b section[data-header-theme] {
        grid-area: content;
        align-self: center;
    }

    /* カートボタンは main 直下に移動済み。2カラムの下に全幅で配置（スタイルは通常のPC用スタイルのまま） */
    .beginner_purchase_basic_a .cart-button-container,
    .beginner_purchase_basic_b .cart-button-container {
        grid-area: cart;
    }

    /* 目次（page-anchor-nav）は main 直下に移動済み。カートボタンのさらに下に全幅で配置 */
    .beginner_purchase_basic_a .page-anchor-nav,
    .beginner_purchase_basic_b .page-anchor-nav {
        grid-area: anchor;
    }

    /* オーバーレイ用スペーサーは不要になるため非表示 */
    .beginner_purchase_basic_a .hero-spacer,
    .beginner_purchase_basic_b .hero-spacer {
        display: none;
    }

    .beginner_purchase_basic_a .product-flex-container,
    .beginner_purchase_basic_b .product-flex-container {
        /* 高さを固定し、ロゴ円のサイズを変えても product-flex-block 以降の位置が動かないようにする */
        height: 160px;
    }

    .beginner_purchase_basic_a .product-flex-block,
    .beginner_purchase_basic_b .product-flex-block {
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        /* ロゴ円の分だけ高さが確保されタイトル下に空白ができるため、
           製品ボックスの幅をロゴの下（右側165px+gap30px）に回り込まないよう狭め、
           その分だけ上（タイトルのすぐ下）に詰める */
        max-width: calc(100% - 195px);
        /* タイトル→ボックスの間隔と、ボックス→合計の間隔をほぼ同じ幅に揃える */
        margin-top: -49px;
        gap: 15px;
        width: 100%;
    }

    /* 製品ボックスも合わせてゆとりを持たせる */
    .beginner_purchase_basic_a .items-grid,
    .beginner_purchase_basic_b .items-grid {
        gap: 6px;
    }
    .beginner_purchase_basic_a .item-block,
    .beginner_purchase_basic_b .item-block {
        padding: 8px 12px;
    }
    .beginner_purchase_basic_a .item-header,
    .beginner_purchase_basic_b .item-header {
        margin-bottom: 4px;
    }
    .beginner_purchase_basic_a .item-line,
    .beginner_purchase_basic_b .item-line {
        height: 20px;
    }
    .beginner_purchase_basic_a .item-meta,
    .beginner_purchase_basic_b .item-meta {
        line-height: 1.3;
    }
    .beginner_purchase_basic_a .item-name,
    .beginner_purchase_basic_b .item-name {
        font-size: 16px;
    }

    .beginner_purchase_basic_a .price-display,
    .beginner_purchase_basic_b .price-display {
        justify-content: flex-start;
        margin: 15px 0 0;
    }

    .beginner_purchase_basic_a .shipping-notice-wide,
    .beginner_purchase_basic_b .shipping-notice-wide {
        text-align: left;
        padding: 0;
    }
}

/* ============================================================
   PC ワイドレイアウト（1024px以上）
   ============================================================ */
@media (min-width: 1080px) {

    main { max-width: 1060px; }

    .product-hero {
        width: min(100vw, 1060px);
        height: auto;
        aspect-ratio: 16 / 12;
        margin-inline: auto;
        overflow: hidden;
    }

    .product-hero img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: bottom; /* 余白が大きいため中央基準 */
    }

    .hero-spacer {
        /* aspect-ratio: 16/9 の高さ＋余白調整 */
        height: calc(min(100vw, 1060px) * 12 / 16 - 70px);
    }
    .breadcrumb-container { padding: 90px 50px 20px; }

    .product-flex-container { padding: 0 75px !important; }

    .product-flex-block { padding: 0 85px; }

    .cart-button-container {
        padding: 0 75px;
        padding-bottom: 30px;
        margin-top: 25px;
    }

    .section-full-white,
    .section-full-gray {
        /* main の基準幅が1060pxに変わるのに合わせて中央寄せの基準も更新 */
        padding-left: max(100px, calc((100vw - 1060px) / 2 + 100px));
        padding-right: max(100px, calc((100vw - 1060px) / 2 + 100px));
    }

    .spec-table th,
    .spec-table td { font-size: 16px; }

    .product-purchase-box {
        display: flex;
        flex-direction: column;
        max-width: 850px;
        margin: 0 auto 30px;
    }

    .product-info-left {
        font-size: 16px;
    }

    .price-tax-shipping {
        font-size: 14px;
    }

    .price-num {
        font-size: 32px;
    }

    .page-anchor-nav {
        padding: 40px;
    }
    .anchor-list {
        grid-template-columns: repeat(4, 1fr);
    }
    .anchor-list a {
        padding: 18px 16px;
        font-size: 14.5px;
    }
    .anchor-list a::after {
        font-size: 13px;
    }

    .back-nav-section { padding: 40px 60px 50px; }
}

/* ============================================================
   タブレット専用（768px〜1023.98px）
   参考: regular_purchase_products.css
   ============================================================ */
@media (min-width: 768px) and (max-width: 1079.98px) {

    /* 飲み方STEP（初めてのSFとMなど）：右パディングのみ40pxに変更 */
    .how-to-step {
        padding-right: 40px;
    }

    /* 定期便の最短お届け日：1行のまま、ボタン幅からはみ出さないよう機種幅に応じて縮小 */
    .delivery-notice {
        white-space: nowrap;
        font-size: clamp(10px, 1.6vw, 14px);
    }
    .highlight-date {
        font-size: clamp(11px, 1.8vw, 16px);
    }

    /* 購入ボタンのセクション以降、左右のパディングを80pxに統一 */
    .cart-button-container {
        padding-left: 80px;
        padding-right: 80px;
    }
    .page-anchor-nav {
        padding-left: 80px;
        padding-right: 80px;
    }
    .anchor-list {
        padding-left: 0;
        padding-right: 0;
    }
    .section-full-white,
    .section-full-gray {
        padding-left: 80px;
        padding-right: 80px;
    }
    .back-nav-section {
        padding-left: 80px;
        padding-right: 80px;
    }

    /* ============================================================
       「初めてのSM／SFM」ページ専用：目次より上を、参考ファイル
       （subscription_purchase_kinshoku_course.html）と同じ、
       画像が上・情報がその下に並ぶ縦積みレイアウトに変更。
       （1024px以上は従来通りの2カラムレイアウトのまま）
       ============================================================ */

    /* ヒーロー画像：オーバーレイをやめ、参考同様の単純な縦積み＋上下の軽いトリミング */
    .beginner_purchase_basic_a .product-hero,
    .beginner_purchase_basic_b .product-hero {
        position: static;
        height: auto;
        overflow: hidden;
        padding-left: 80px;
        padding-right: 80px;
        margin-bottom: 25px;
        box-sizing: border-box;
    }
    .beginner_purchase_basic_a .product-hero img,
    .beginner_purchase_basic_b .product-hero img {
        width: 100%;
        height: auto;
        object-fit: unset;
        object-position: unset;
        margin-top: -20px;
        margin-bottom: -20px;
        display: block;
    }
    .beginner_purchase_basic_a .hero-spacer,
    .beginner_purchase_basic_b .hero-spacer {
        display: none;
    }

    /* ロゴバッジ（product-info-right）：タイトル横ではなく、ヒーロー画像の右下角に
       重ねて配置する。product-flex-container（position:relativeが既に設定済み）を
       基準にした絶対配置に切り替え、負のマージンでの引き上げをやめる。
       topの基準は「product-flex-containerの直前にあるヒーローとの間隔（margin-bottom:25px）」
       で、ヒーロー自体の高さには依存しないため、画像の縦横比が変わっても計算が崩れない。
       -65px = 25px（ヒーローとの間隔）+ 40px（画像に重ねたい量）。
       重なり具合を調整したい場合はこの40px分（＝合計の数値）だけを変更する。 */
    .beginner_purchase_basic_a .product-info-right,
    .beginner_purchase_basic_b .product-info-right {
        position: absolute;
        top: -85px;
        right: 0;
        z-index: 3;
    }

    /* 購入ボックス全体に、参考ファイルと同じ左右80pxパディングを一括で適用 */
    .beginner_purchase_basic_a .product-purchase-box,
    .beginner_purchase_basic_b .product-purchase-box {
        padding-left: 80px;
        padding-right: 80px;
        box-sizing: border-box;
    }
    .beginner_purchase_basic_a .product-flex-block,
    .beginner_purchase_basic_b .product-flex-block {
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        margin-top: 20px;
        width: 100%;
    }

    /* タイトル：改行せず横並び1行表示に */
    .beginner_purchase_basic_a .p-title br,
    .beginner_purchase_basic_b .p-title br {
        display: none;
    }

    /* product-flex-block が column 方向の flex のため、align-items:flex-start により
       子要素が横幅いっぱいに広がらない。items-grid（2列グリッド）を正しい幅にするため
       product-info-left 自体に幅100%を明示する */
    .beginner_purchase_basic_a .product-info-left,
    .beginner_purchase_basic_b .product-info-left {
        width: 100%;
    }

    /* 商品ボックス：参考ファイルと同じ2列グリッドに */
    .beginner_purchase_basic_a .items-grid,
    .beginner_purchase_basic_b .items-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px 20px;
    }
    .beginner_purchase_basic_a .item-block,
    .beginner_purchase_basic_b .item-block {
        padding: 14px 10px;
    }

    /* 合計金額：参考ファイル同様、中央揃えをやめ左揃えに */
    .beginner_purchase_basic_a .price-display,
    .beginner_purchase_basic_b .price-display {
        justify-content: flex-start;
        margin: 10px 0 0;
        width: auto;
    }
}
