/* 1. 【基礎設定】 */
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;
}

/* 2. 【背景装飾】 */
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;
}

/* 3. 【ナビゲーション】パンくずリスト */
.breadcrumb-container {
    position: relative;
    padding: 85px 20px 30px;
    z-index: 10;
}

/* 4. 【ナビゲーション】パンくずリスト本体 */
.breadcrumbs {
    list-style: none; display: flex; padding: 0; margin: 0;
    font-size: 10px; letter-spacing: 0.05em;
    overflow-x: auto; white-space: nowrap;
}

/* 5. 【ナビゲーション】区切り文字 */
.breadcrumbs li:not(:last-child)::after { content: "/"; margin: 0 8px; color: #ccc; }
.breadcrumbs a { text-decoration: none; color: #2d2d2d; opacity: 0.5; }

/* 6. 【メインエリア】 */
main { position: relative; z-index: 1; width: 100%; }
.main-content {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

/* 7. 【製品画像】トップのメインビジュアル */
.product-hero { margin-bottom: 32.5px; }
.product-hero img { width: 100%; height: auto; display: block; }

/* 8. 【製品詳細】タイトルと右ロゴを横並びにするコンテナ */
.product-flex-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 30px;
    gap: 0;
    flex-wrap: nowrap;
}

/* 9. 【製品詳細】左側のテキスト情報エリア */
.product-info-left {
    flex: 1;
    min-width: 0;
}

/* 10. 【テキスト】商品名、価格、補足文 */
.p-title { font-size: 24px; color: #2d2d2d; margin: 0 0 5px; font-weight: 700; line-height: 1.4; }
.p-sub { font-size: 10px; color: #888888; margin: 0 0 0px; }
.p-capacity { font-size: 15px; color: #666666; margin: 0 0 0px; }
.p-price-box {
    margin: 0 0 20px 30px;
    color: #2d2d2d;
}
.p-price { font-size: 24px; font-weight: 900; }
.p-tax { font-size: 11px; }

/* 10-2. 商品名の補足サイズ */
.p-title-sub {
    font-size: 16px;
    font-weight: 500;
    margin-left: -5px;
}

/* 11. 【数量選択】外枠 */
.qty-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #2d2d2d;
    white-space: nowrap;
    margin-left: 30px;
    margin-bottom: 30px;
}

/* 12. 【数量選択】ボタンと入力欄 */
.qty-controls { display: flex; align-items: center; }
/* Chrome, Safari, Edge, Opera */
input#product-qty::-webkit-outer-spin-button,
input#product-qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input#product-qty {
  -moz-appearance: textfield;
}

.qty-btn, .qty-input {
    width: 40px;
    height: 40px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 14px;
    color: #2d2d2d;
    margin: 0;
    padding: 0;
}
.qty-input {
    text-align: center;
    border-left: none;
    border-right: none;
    outline: none;
    background: #fff;
    -webkit-appearance: none;
    border-radius: 0;
}
.qty-btn {
    cursor: pointer;
    background: #f8f8f8;
    user-select: none;
    -webkit-appearance: none;
    appearance: none;
}
.qty-btn:first-child { border-radius: 4px 0 0 4px; }
.qty-btn:last-child { border-radius: 0 4px 4px 0; }

/* 13. 【テキスト】配送情報補足 */
.shipping {
    font-size: 12px;
    color: #bda16b;
    font-weight: 700;
    margin-left: -10px;
    vertical-align: middle;
}

/* 13-2. 送料無料の注釈 */
.shipping-notice-wide {
    display: block;
    font-size: 11px;
    color: #666666;
    margin: 10px 0 20px 30px;
    padding: 0;
    box-sizing: border-box;
    white-space: nowrap;
}

/* 14. 【製品詳細】右側の小さなロゴ画像 */
.product-info-right { width: 115px; flex-shrink: 0; text-align: right; }
.product-info-right img { width: 115px; height: auto; display: block; }

/* 15. 【ボタン】カートに入れるボタンのコンテナ */
.btn-cart-container { width: 100%; text-align: center; padding: 0 30px; box-sizing: border-box; }

/* 16. 【カートボタン】 */
.btn-cart {
    display: flex; align-items: center; justify-content: center;
    gap: 12px;
    width: calc(100% - 60px); max-width: 340px;
    margin: 30px auto 40px;
    background-color: #1a2a40; color: #ffffff;
    text-decoration: none; font-weight: 600; font-size: 15px;
    letter-spacing: 0.15em; padding: 18px 0;
    border-radius: 2px; border: none; cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.btn-cart svg { width: 20px; height: 20px; fill: currentColor; }
#cart-anchor:focus { outline: none; }

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

/* 18. 【目次】2列の段組み */
.anchor-list {
    list-style: none;
    padding: 0 20px 5px 30px;
    margin: 0 !important;
    column-count: 2;
    column-gap: 15px;
    column-fill: auto;
    max-width: fit-content;
    height: 120px;
    display: block;
}

/* 19. 【目次】各項目 */
.anchor-list li {
    position: relative;
    padding-left: 18px;
    margin-top: 0 !important;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.4;
    box-sizing: border-box;
    break-inside: avoid;
    text-align: left;
}

/* 20. 【目次】「→」装飾 */
.anchor-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #bda16b;
    font-weight: bold;
}
.anchor-list a {
    text-decoration: none;
    color: #1a2a40;
    font-weight: 500;
}

/* 21. 【背景】セクション背景色 */
.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;
}

/* 22. 【見出し】縦ライン装飾 */
.description-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a2a40;
    margin-bottom: 25px;
    display: block;
    padding-left: 12px;
    border-left: 4px solid #bda16b;
    line-height: 1.2;
}

/* 23. 【テキスト】文章の可読性 */
.description-text {
    font-size: 15px;
    color: #2d2d2d;
    line-height: 1.8;
    margin: 0;
    text-align: justify;
}

/* 24. 【摂取量】説明テキスト */
.intake-text {
    font-size: 15px;
    color: #2d2d2d;
    line-height: 1.8;
    text-align: justify;
    width: 100%;
    max-width: none;
    margin: 0 0 30px;
}
#sec-intake { padding-bottom: 95px !important; }
.intake-image { width: 100%; max-width: 320px; display: block; margin: 0 auto 25px; }

/* 25. 【演出：きんちゃん】出現位置 */
.kinchan-hyoko-wrapper {
    position: absolute;
    bottom: 0;
    right: 15px;
    width: 420px;
    height: 260px;
    overflow: hidden;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
}

/* 26. 【演出：きんちゃん】アニメーション */
.kinchan-hosoku-container {
    display: flex;
    align-items: flex-end;
    animation: hyoko-action 7s ease-in-out infinite;
    transform: translateY(100%);
}

/* 27. 【アニメーション定義】 */
@keyframes hyoko-action {
    0%, 10% { transform: translateY(100%); opacity: 0; }
    20%, 80% { transform: translateY(10px); opacity: 1; }
    90%, 100% { transform: translateY(100%); opacity: 0; }
}

/* 28. 【演出：きんちゃん】吹き出しデザイン */
.kinchan-balloon {
    position: relative;
    background: #f5f5f0;
    border: 1px solid #1a2a40;
    border-radius: 12px;
    height: auto;
    padding: 10px 20px;
    margin-right: 6px;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
}
.kinchan-balloon-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 15px; font-weight: 700; color: #1a2a40; white-space: normal;
    max-width: 200px;
    text-align: left;
    margin: 0;
    line-height: 1.5;
}

/* 29. 【演出：きんちゃん】画像サイズ */
.kinchan-image { width: 60px; height: auto; }

/* 30. 【見出し】摂取量アンダーライン */
.intake-header {
    display: inline-block;
    border-bottom: 2px solid #bda16b;
    padding-bottom: 1px;
    padding-right: 20px;
    margin-bottom: 15px;
}
.regular_purchase_megapollen .intake-header { padding-right: 0px; }

/* 31. 【テキスト】摂取量フォント */
.intake-bold { font-weight: 700; font-size: 20px; color: #1a2a40; }
.intake-regular { font-weight: 400; font-size: 15px; color: #1a2a40; margin-left: -5px; }
.regular_purchase_megapollen .intake-bold { font-size: 17px; }
.regular_purchase_megapollen .intake-regular { font-size: 13px; }

/* 32. 【ボタン】別製品への案内ボタン */
.info-link-btn {
    display: flex; align-items: center; justify-content: center;
    width: 100%; margin: 20px auto 0;
    background-color: #ffffff; border: 1px solid #1a2a40;
    color: #1a2a40; text-decoration: none; padding: 15px 20px;
    font-size: 14px; font-weight: 600; box-sizing: border-box; border-radius: 50px;
}

/* 33. 【フッターナビ】製品一覧へ戻るエリア */
.back-nav-section {
    width: 100%; padding: 40px 20px 50px;
    box-sizing: border-box; text-align: center;
    background-color: #f5f5f0;
}

/* 34. 【ボタン】製品一覧へ戻るボタン */
.btn-back-lineup {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 18px 40px;
    background-color: #ffffff; color: #1a2a40;
    border: 1px solid #1a2a40; text-decoration: none;
    font-weight: 700; font-size: 16px; letter-spacing: 0.1em;
    border-radius: 50px;
    transition: all 0.3s ease;
}
.btn-back-lineup:hover,
.btn-back-lineup:active {
    background-color: #1a2a40;
    color: #fff;
}

/* 35. 【FAQ】アコーディオン外枠 */
.faq-item { border-bottom: 1px solid #e0e0e0; background-color: transparent; }

/* 36. 【FAQ】質問クリックエリア */
.faq-question { display: flex; align-items: center; padding: 15px 0; cursor: pointer; position: relative; }

/* 37. 【FAQ】QとAのアイコン */
.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;
}

/* 38. 【FAQ】Qアイコン色 */
.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; }

/* 39. 【FAQ】開閉アイコン */
.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); }

/* 40. 【FAQ】回答エリア */
.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;
}

/* 41. 【FAQ】Aアイコン色 */
.faq-icon-a { border: 1.5px solid #bda16b; background-color: #fff; color: #bda16b; min-height: 0; }
.faq-a-text { font-size: 16px; line-height: 1.7; color: #2d2d2d; text-align: justify; text-justify: inter-ideograph; min-height: 0; overflow: hidden; }
.faq-a-link { color: #1a2a40; text-decoration: underline; font-weight: 600; }

/* 太字強調 */
.strong-text { font-weight: 900; color: #121212; }

/* 錠剤の注意書き */
.note-text {
    display: block;
    font-size: 13px;
    color: #666666;
    margin-top: 8px;
    line-height: 1.4;
}

/* 42. 【表】製品情報テーブル */
.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;
}

/* 43. 【表】項目（左側） */
.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;
}

/* 44. 【表】内容（右側） */
.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;
}

/* 45. 【表】栄養成分グリッド */
.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: 11px; color: #666; margin-top: 8px; display: block; }

/* 45-2. 【表】栄養成分 ラベル・値のペア2列表示（PL_パソコン） */
.nutrition-pairs {
    column-count: 2;
    column-gap: 40px;
    width: 100%;
}
.nutrition-row {
    display: flex;
    justify-content: flex-start;
    gap: 80px;
    padding: 3px 0 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid #eee;
    break-inside: avoid;
    white-space: nowrap;
}
.nutrition-row span:first-child {
    width: 130px;
    flex-shrink: 0;
}

/* 46. 【TOPへ戻る】ボタン */
.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; text-align: center; font-size: 11.5px; 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; }

/* 47. 【飲み方】ステップ形式 */
.how-to-step {
    position: relative;
    display: flex; align-items: center; gap: 15px;
    margin-bottom: 25px; padding-bottom: 20px;
    border-bottom: 1px dashed #ccc;
}
.how-to-step:last-child { border-bottom: none; margin-bottom: 0; }

/* 48. 【STEPラベル】 */
.step-badge {
    position: absolute;
    top: -5px; left: -5px;
    background-color: #bda16b;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 2px;
    letter-spacing: 0.05em;
    z-index: 2;
}

/* 49. 【テキスト】飲み方の説明文 */
.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; }

/* 50. 【動画埋め込み】 */
.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;
}

/* 51. 動画リンクテキスト */
.video-link-text {
    color: #1a2a40;
    font-weight: bold;
}

/* 52. 【画像】お召し上がり方 */
.drink-image-container {
    margin-top: 25px;
    width: 100%;
    text-align: center;
}
.drink-image {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}

/* ============================================================
   PC・タブレット レイアウト（768px以上）
   左列：製品メイン画像　右列：製品情報＋数量＋カートボタン
   ============================================================ */
@media (min-width: 768px) {

    /* body: SP制限を解除 */
    body {
        max-width: none;
        box-shadow: none;
        margin: 0;
    }

    /* パンくず: 最大幅中央揃え */
    .breadcrumb-container {
        max-width: 960px;
        margin: 0 auto;
        padding: 85px 30px 20px;
    }
    .breadcrumbs { font-size: 12px; }

    /* 目次: スマホ版に倣ったボタン型タイル（タブレットは3列3段） */
    .anchor-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        width: 100%;
        max-width: none;
        height: auto;
        padding: 0;
    }
    .anchor-list li {
        padding-left: 0;
        margin-bottom: 0 !important;
        font-size: 15px;
    }
    .anchor-list li::before {
        content: none;
    }
    .anchor-list a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        height: 100%;
        box-sizing: border-box;
        background-color: #f9f9f7;
        border: 1px solid #1a2a40;
        border-radius: 10px;
        padding: 16px 10px 16px 18px;
        font-weight: 700;
        font-size: 15px;
        line-height: 1.3;
        color: #1a2a40;
        transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    }
    .anchor-list a::after {
        content: "＞";
        color: #2d2d2d;
        font-weight: 700;
        font-size: 12px;
        flex-shrink: 0;
        transition: color 0.2s ease;
    }
    .anchor-list a:hover {
        background-color: #1a2a40;
        color: #ffffff;
        transform: scale(1.04);
    }
    .anchor-list a:hover::after {
        color: #ffffff;
    }


    /* 購入エリア: 2カラムFlexレイアウト */
    .product-purchase-area {
        display: flex;
        align-items: center;
        max-width: 960px;
        margin: 0 auto;
        padding: 0 30px 30px;
        box-sizing: border-box;
    }

    /* 左列: 製品画像 */
    .product-hero {
        flex: 0 0 48%;
        margin-bottom: 0;
        padding-right: 20px;
        box-sizing: border-box;
    }

    /* 右列: 製品情報・数量・カートボタン */
    .product-purchase-info {
        flex: 0 0 52%;
        padding-left: 10px;
        padding-top: 15px;
        box-sizing: border-box;
        min-width: 0;
    }

    /* 商品名エリア: SP側のpadding 0 30pxをリセット */
    .product-flex-container {
        padding: 0;
        align-items: center;
    }

    .p-title { font-size: 32px; }
    .p-title-sub { font-size: 18px; }
    .p-sub { font-size: 16px; }
    .p-capacity { font-size: 20px; }

    /* 製品ロゴ画像: 少し大きく・丸型に（参考_通常商品一覧に倣う） */
    .product-info-right { width: 150px; }
    .product-info-right img {
        width: 150px;
        height: 150px;
        border-radius: 50%;
        object-fit: cover;
        border: 4px solid #ffffff;
        box-shadow: 0 8px 18px rgba(0,0,0,0.18);
        background: #f5f5f0;
    }

    /* 価格ボックス: 左マージンをリセット */
    .p-price-box {
        margin: 10px 0 5px 0;
    }
    .p-price { font-size: 28px; }
    .p-tax { font-size: 12px; }
    .shipping {
        display: inline-block;
        margin-left: 8px;
        font-size: 15px;
        padding: 3px 10px;
        border-radius: 20px;
        background-color: rgba(189, 161, 107, 0.14);
        text-align: center;
    }

    /* 送料注釈: 左マージンをリセット・価格との間に点線区切り */
    .shipping-notice-wide {
        margin: 5px 0 15px 0;
        padding-top: 5px;
        border-top: 1px dashed #ccc;
        font-size: 14px;
        color: #1a2a40;
    }

    /* 数量ボタン: 左マージンをリセット・数量ボタンの底辺に下揃え */
    .qty-wrapper {
        margin-left: 0;
        margin-bottom: 20px;
        align-items: flex-end;
    }

    /* カートボタン: 右列内で幅いっぱい */
    .btn-cart {
        width: 100%;
        max-width: none;
        margin: 10px 0 20px;
        font-size: 20px;
        border-radius: 8px;
    }

    /* 目次: 最大幅中央揃え */
    .page-anchor-nav {
        padding-left: max(40px, calc((100% - 900px) / 2));
        padding-right: max(40px, calc((100% - 900px) / 2));
    }

    /* コンテンツセクション: 背景フル幅・内容を中央に */
    .section-full-white,
    .section-full-gray {
        padding-left: max(40px, calc((100% - 900px) / 2));
        padding-right: max(40px, calc((100% - 900px) / 2));
    }

    .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; }
    .faq-q-text { font-size: 16px; }
    .faq-a-text { font-size: 16px; }
    .how-to-text { font-size: 15px; }

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

    /* お召し上がり方（PL）: 画像をタイトル行〜本文行の2行分にまたがせて右列に配置（右側の空白を解消） */
    #sec-howtodrink:has(.drink-image-container) {
        display: grid;
        grid-template-columns: 1fr 340px;
        grid-template-areas:
            "title image"
            "text  image";
        align-items: start;
        column-gap: 40px;
    }
    #sec-howtodrink:has(.drink-image-container) .description-title { grid-area: title; }
    #sec-howtodrink:has(.drink-image-container) .description-text { grid-area: text; }
    .drink-image-container {
        grid-area: image;
        width: 100%;
        margin-top: 0;
    }
    .drink-image {
        width: 100%;
        height: auto;
        max-width: none;
        border-radius: 0;
        margin: 0;
    }

    /* お召し上がり方（PL）: 毎日の基本量の画像とサイズ・左揃えを一致させる */
    .drink-image[src*="megapollen"] {
        width: 85%;
        margin-left: auto;
    }

    /* 飲み方STEP（GF/SF）: 点線区切りをやめて白いBOXに */
    .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・info-link-btn: GF/SFページ（how-to-stepを持つページ）のみ中央揃え */
    body:has(.how-to-step) .description-text {
        text-align: center;
    }
    body:has(.how-to-step) .info-link-btn {
        display: flex;
        width: 360px;
        margin-left: auto;
        margin-right: auto;
    }

    /* 動画リンクテキスト・動画サイズ: info-link-btnとデザイン（形状）を統一。背景色は維持 */
    .video-link-text {
        font-size: 14px;
        text-align: center;
        margin-top: 40px;
        display: flex;
        width: 360px;
        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;
    }

    /* 毎日の基本量: 左にテキスト・右に画像の横並びレイアウト */
    #sec-intake {
        display: grid;
        grid-template-columns: 1fr 340px;
        grid-template-areas:
            "title title"
            "text  image";
        align-items: center;
        column-gap: 40px;
        padding-bottom: 110px !important;
    }
    #sec-intake .description-title { grid-area: title; }
    #sec-intake .intake-text { grid-area: text; margin: 0; }
    #sec-intake .intake-image {
        grid-area: image;
        width: 100%;
        max-width: none;
        margin: 0;
        border-radius: 0;
    }

    /* 毎日の基本量（PL）: サイズを15%縮小・右はしは固定 */
    #sec-intake .intake-image[src*="megapollen"] {
        width: 85%;
        margin-left: auto;
    }

    /* きんちゃん演出: 少し大きく・左側に配置（吹き出しはきんちゃんの右側） */
    .kinchan-hyoko-wrapper {
        width: 460px;
        height: 280px;
        left: 15px;
        right: auto;
        align-items: flex-start;
    }
    .kinchan-hosoku-container {
        flex-direction: row-reverse;
    }
    .kinchan-image { width: 75px; }
    .kinchan-balloon {
        height: auto;
        min-height: 64px;
        padding: 12px 24px;
        margin-right: 0;
        margin-left: 6px;
    }
    .kinchan-balloon-text {
        font-size: 15px;
        max-width: 360px;
    }

    /* 別製品への案内ボタン: 短く・パディング調整 */
    .info-link-btn {
        width: auto;
        display: inline-flex;
        padding: 15px 15px;
        margin-top: 10px !important;
    }

    .spec-table th,
    .spec-table td {
        font-size: 14px;
    }
    .spec-table th {
        width: 20%;
    }

    .nutrition-grid { gap: 80px; }
    .nutrition-col {
        column-count: 2;
        column-gap: 30px;
    }
    .nutrition-note { font-size: 15px; }
}

/* ============================================================
   タブレット専用（768px〜1023.98px）: 左右パディング80px
   ============================================================ */
@media (min-width: 768px) and (max-width: 1023.98px) {

    .breadcrumb-container {
        padding-left: 80px;
        padding-right: 80px;
    }

    .product-purchase-area {
        padding-left: 80px;
        padding-right: 80px;
        position: relative;
        align-items: flex-start;
    }

    .product-purchase-info {
        padding-top: 0;
    }

    .page-anchor-nav,
    .section-full-white,
    .section-full-gray {
        padding-left: 80px;
        padding-right: 80px;
    }

    /* 円形ロゴ画像: メイン画像の左下角に重ねて配置（p-titleの上揃えに合わせて上方向へ調整） */
    .product-info-right {
        position: absolute;
        left: 50px;
        bottom: 45px;
        z-index: 5;
    }
    .product-info-right img {
        width: 125px;
        height: 125px;
        position: relative;
        top: 20px;
        left: -15px;
    }

    /* 円形ロゴ画像（M）: 対象外のため元の位置に戻す */
    .product-info-right img[src*="x_r_m_tsubu"] {
        top: 0;
        left: 0;
    }

    /* 毎日の基本量: 右側の画像を少し小さく */
    #sec-intake {
        grid-template-columns: 1fr 260px;
    }

    /* お召し上がり方（PL）: 毎日の基本量と同じ列幅に */
    #sec-howtodrink:has(.drink-image-container) {
        grid-template-columns: 1fr 260px;
    }

    /* 栄養成分表示: thが圧迫されて細くなるのを防ぐため、ラベル・値間の余白を縮める */
    .nutrition-row {
        gap: 30px;
    }
    .nutrition-row span:first-child {
        width: 90px;
    }

    /* 目次ボタン: 内部テキストの改行を無効化 */
    .anchor-list a br {
        display: none;
    }

    /* 飲み方STEP（GF/SF）: 右パディングのみ40pxに変更 */
    .how-to-step {
        padding-right: 40px;
    }

    /* きんちゃん演出: 右に80px移動・吹き出しの長さを1.2倍に */
    .kinchan-hyoko-wrapper {
        left: 95px;
    }
    .kinchan-balloon-text {
        max-width: 432px;
    }

    /* 毎日の基本量: 画像の下に30pxの余白を追加 */
    #sec-intake .intake-image {
        margin-bottom: 30px;
    }
}

/* ============================================================
   1024px以上: 目次を横並びに
   ============================================================ */
@media (min-width: 1024px) {

    /* 目次: PCは4列×2段（「＞」の折り返し崩れ対策） */
    .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;
    }
    .anchor-list a br {
        display: none;
    }

    /* 右列: 製品情報・数量・カートボタン */
    .product-purchase-info {
       padding-left: 25px;
    }

    #sec-intake { padding-bottom: 130px !important; }

    .kinchan-hyoko-wrapper {
        width: 100%;
        padding-left: max(40px, calc((100% - 900px) / 2));
        padding-right: max(40px, calc((100% - 900px) / 2));
    }

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

/* ============================================================
   SP専用: 価格・数量・カートをカード化
   （参考: 参考_通常商品一覧/regular_purchase_list.css のSPレイアウト）
   ============================================================ */
@media (max-width: 767.98px) {

    .p-title { font-size: clamp(1.5rem, 10.7vw - 0.9rem, 1.7rem); }
    .p-sub { font-size: 11px; }
    .p-capacity { font-size: 14px; }
    .intake-regular { font-size: 13px; }
    .faq-q-text { font-size: 16px; }
    .faq-a-text { font-size: 16px; }

    .p-price-box {
        margin: 15px 20px 0;
        padding: 14px 24px 0;
        text-align: center;
        background-color: #fff;
        border: 1px solid #e5e2da;
        border-bottom: none;
        border-radius: 12px 12px 0 0;
        box-sizing: border-box;
    }
    .p-price { font-size: 30px; }
    .p-tax { font-size: 14px; }
    .shipping {
        display: inline-block;
        margin-left: 8px;
        font-size: 15px;
        padding: 3px 10px;
        border-radius: 20px;
        background-color: rgba(189, 161, 107, 0.14);
        text-align: center;
    }

    .shipping-notice-wide {
        margin: 0 20px;
        padding: 8px 10px;
        text-align: center;
        background-color: #fff;
        border-left: 1px solid #e5e2da;
        border-right: 1px solid #e5e2da;
        box-sizing: border-box;
        font-size: 12px;
        white-space: nowrap;
    }

    .cart-btn-wrapper {
        margin: 0 20px 30px;
        padding: 4px 24px 20px;
        box-sizing: border-box;
        background-color: #fff;
        border: 1px solid #e5e2da;
        border-top: none;
        border-radius: 0 0 12px 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .qty-wrapper {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: end;
        gap: 12px;
        width: 100%;
        padding: 0;
        margin-top: 6px;
        margin-bottom: 14px;
    }
    .qty-wrapper > span { grid-column: 1; justify-self: end; }
    .qty-wrapper > .qty-controls { grid-column: 2; }

    .qty-btn, .qty-input { width: 46px; height: 46px; font-size: 16px; }

    .btn-cart {
        width: 100%;
        max-width: none;
        margin: 0;
        border-radius: 5px;
        height: 64px;
        font-size: 17px;
    }

    /* 目次: アイコンなし＋「＞」付きタイル型 */
    .page-anchor-nav {
        padding: 24px 20px 28px;
    }
    .anchor-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        width: 100%;
        max-width: none;
        height: auto;
        padding: 0;
    }
    .anchor-list li {
        padding-left: 0;
        margin-bottom: 0 !important;
        font-size: 15px;
    }
    .anchor-list li::before {
        content: none;
    }
    .anchor-list a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        height: 100%;
        box-sizing: border-box;
        background-color: #f9f9f7;
        border: 1px solid #1a2a40;
        border-radius: 10px;
        padding: 14px 12px;
        font-weight: 700;
        font-size: 16px;
        line-height: 1.3;
        transition: background-color 0.15s ease, color 0.15s ease;
    }
    .anchor-list a::after {
        content: "＞";
        color: #2d2d2d;
        font-weight: 700;
        font-size: 11px;
        flex-shrink: 0;
        transition: color 0.15s ease;
    }
    .anchor-list a:active {
        background-color: #1a2a40;
        color: #ffffff;
    }
    .anchor-list a:active::after {
        color: #ffffff;
    }
    .anchor-list a .toc-sub {
        font-size: 13px;
        font-weight: 500;
    }
}

/* ============================================================
   iPhone SEより大きいスマホ（376px〜767.98px）: 製品情報表
   ============================================================ */
@media (min-width: 376px) and (max-width: 767.98px) {

    .spec-table th {
        font-size: 14px;
        width: 30%;
    }
    .spec-table td {
        font-size: 14px;
        padding: 15px 0px 15px 12px;
    }
    .spec-table tr:last-child th {
        font-size: 12px;
    }
}