/* --- [01. 基礎設定] 背景ベージュ(#f5f5f0)と文字色(#2d2d2d)を固定 --- */
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;
}

/* --- [02. 質感ノイズ] 全体に微細な質感を付与 --- */
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;
}

/* --- [03. パンくずリスト] 配置と余白の設定 --- */
.breadcrumb-container {
    position: relative;
    padding: 85px 25px 30px;
    z-index: 10;
}

/* 04. 【ナビゲーション】パンくずリスト本体（横スクロール対応） */
.breadcrumbs {
    list-style: none;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    font-size: 10px;
    letter-spacing: 0.05em;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

/* 05. 【ナビゲーション】パンくずリストの区切り文字「/」の設定 */
.breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin: 0 10px;
    color: #ccc;
}
.breadcrumbs a {
    text-decoration: none;
    color: #2d2d2d;
    opacity: 0.5;
}

/* 7. 【メインエリア】コンテンツ全体の配置設定 */
main { position: relative; z-index: 1; width: 100%; }
.main-content {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

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

/* --- 新規追加セクション --- */
.product-summary-area {
    padding: 10px 35px 50px;
}
.course-label {
    font-size: 10px;
    color: #888888;
    margin: 0 0 2px 0;
    display: block;
    letter-spacing: 0.1em;
    line-height: 1;
}
.course-title {
    font-size: clamp(1rem, 7.5vw - 0.4rem, 1.75rem);
    color: #1a2a40;
    font-weight: 700;
    margin: 0 0 5px 0;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.course-subtitle {
    font-size: 16px;
    color: #666666;
    margin: 0 0 20px 0;
}
.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;
}

/* or付き区切り線のデザイン（点線・短め設定） */
.item-divider-or {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    text-align: center;
    max-width: 280px;
}

/* 左右の線を点線（dotted）に変更 */
.item-divider-or::before,
.item-divider-or::after {
    content: "";
    flex-grow: 1;
    border-top: 2px dotted #bda16b;
    height: 0;
}

/* 中央の "もしくは" 文字の装飾 */
.item-divider-or span {
    padding: 0 12px;
    font-size: 14px;
    color: #bda16b;
    font-weight: 400;
    position: relative;
    top: -1px;
}


.total-price-container {
    margin: 10px 0 0 0px;
    color: #1a2a40;
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.total-label { font-size: 12px; }
.total-amount { font-size: 25px; font-weight: 700; letter-spacing: -0.02em; }
.total-currency { font-size: 18px; }
.total-tax-info { font-size: 12px; }
.total-ship-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #bda16b;
    background: rgba(189, 161, 107, 0.14);
    padding: 3px 10px;
    border-radius: 20px;
}

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

.anchor-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    max-width: none;
    height: auto;
}

.anchor-list li {
    padding-left: 0;
    margin-bottom: 0;
    font-size: 15px;
    box-sizing: border-box;
}

.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;
    color: #1a2a40;
    text-decoration: none;
    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;
}
/* スクロール誘導 */
.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; 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 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; }
}

/* --- セクションタイトル共通 --- */
.sub-description-title {
    display: inline-block;
    font-size: 17px;
    font-weight: 700;
    padding-left: 12px;
    margin: 0 0 15px 0;
    line-height: 1.2;
}
.title-s-g { border-left: 4px solid; border-image: linear-gradient(to bottom, #bda16b 50%, #4d4d4d 50%) 1; }
.title-mergen { border-left: 4px solid #189bbc; }
.title-sanlem { border-left: 4px solid #bda16b; }
.title-gialen { border-left: 4px solid #4d4d4d; }
.title-megapollen { border-left: 4px solid #b46b1f; }

/* --- テキストスタイル --- */
.section-full-white, .section-full-gray { padding: 50px 35px 40px; }
.section-full-gray { background-color: #efefea; }
.description-title { display: block; font-size: 20px; font-weight: 700; color: #1a2a40; margin-bottom: 25px; }
.description-text { font-size: 15px; line-height: 1.6; color: #2d2d2d; text-align: justify; }
.note-text { line-height: 1.3 !important; margin-top: 10px; }

/* --- 摂取量パーツ --- */
.f11 { font-size: 11px; }
.f12 { font-size: 12px; }
.f13 { font-size: 13px; }
.f14 { font-size: 18px; }
.f15 { font-size: 15px; }
.bold-blue { color: #189bbc; font-weight: 700; }
.bold-red { color: #cc3333; font-weight: 700; }

/* --- [修正] 点線（ディバイダー）の上下余白を広げる --- */
.section-divider-dotted {
    margin: 25px 0 !important;
    border-top: 1px dotted #cccccc !important;
    opacity: 0.6;
}
.intake-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-top: 35px;
}
.intake-text-side { flex: 1; }
.intake-img-side {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 5px;
}
.intake-img-side img { width: 100%; height: auto; display: block; }

#sec-howtodrink .drink-item:first-of-type { margin-top: 10px; }

/* 白いカード自体の上下余白と、カード同士の隙間を削る */
.intake-card-block {
    padding: 12px 12px !important;
    margin-bottom: 8px !important;
}
.intake-flex-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.intake-text-left > * {
    margin-bottom: 2px !important;
}

/* 画像枠の設定（右側） */
.intake-image-right {
    width: 100px;
    flex-shrink: 0;
    margin-left: 0px !important;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* 画像自体の設定（枠いっぱいに広げる） */
.intake-image-right img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}
.note-text-outside {
    font-size: 14.5px;
    line-height: 1.6;
    color: #333;
    margin: 15px 12px 30px 12px;
}

/* 指示に基づくフォントサイズ指定 */
.f18 { font-size: 20px; font-weight: bold; }
.f16 {
    line-height: 1.6 !important;
    margin-bottom: 2px !important;
}

/* 摂取量の数字(f18)の高さ調整 */
.intake-text-left .f18 {
    margin-top: 5px;
    display: inline-block;
}
.f12 { font-size: 16px; }

/* 「（錠剤）」などの補足文字を小さく、間隔を詰める */
.f11-gray {
    font-size: 14px !important;
    color: #666666;
    display: block;
    letter-spacing: 0.02em;
    line-height: 1.5;
    margin-top: 20px !important;
    margin-bottom: 0px !important;
}

/* --- FAQ / 蛇腹 共通パーツ --- */
.faq-item, .product-accordion-item {
    border-bottom: 1px solid #e0e0e0;
    background-color: transparent;
}
.faq-question, .accordion-header { 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, .grid-text { font-family: 'Noto Sans JP', sans-serif; font-weight: 600; line-height: 1.4; padding-right: 25px; color: #1a2a40; letter-spacing: 0.02em; }
.faq-q-text { font-size: 16px; }
.grid-text { font-size: 17px; }

.faq-question::after, .accordion-header::after { content: "＋"; position: absolute; right: 5px; font-size: 14px; color: #1a2a40; transition: transform 0.3s ease; }
.faq-item.active .faq-question::after, .product-accordion-item.active .accordion-header::after { content: "－"; transform: rotate(180deg); }

.faq-answer, .accordion-content { max-height: 0; overflow: hidden; padding-bottom: 0; transition: max-height 0.3s ease, padding-bottom 0.3s ease; }
.faq-item.active .faq-answer, .product-accordion-item.active .accordion-content { padding-bottom: 25px; }

.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; display: flex; }


.faq-answer {
    display: flex;
    align-items: flex-start;
    gap: 0px;
}

.faq-icon-a {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.faq-a-text {
    display: inline-block;
    text-align: left;
    margin-bottom: 25px;
}

/* --- 表設定 --- */
.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: 35%; 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: 65%; 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: 11px; color: #666; margin-top: 8px; display: block; }

/* --- 詳しく見るボタン --- */
.btn-detail-popup { color: #1a2a40; font-size: 14px; text-decoration: none; display: inline-block; cursor: pointer; margin-left: 12px; }
.drink-item {
    margin-top: 10px !important;
}
.btn-detail-popup { display: block; margin-top: -5px; margin-bottom: 10px; }

/* --- [ページトップボタン] 共通デザイン --- */
.totop-button {
    position: fixed;
    right: 20px; bottom: 20px;
    width: 54px; height: 54px;
    background-color: #bda16b;
    color: #ffffff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; 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; }

/* 製品情報グリッド（蛇腹用に調整） */
.product-accordion-area { padding: 10px 0; }
.grid-arrow { font-size: 10px; margin-right: 8px; flex-shrink: 0; }
p.description-text.f16 { margin-top: 5px; margin-bottom: 40px; letter-spacing: 0.03em; line-height: 1.7; padding: 0 5px; }

/* --- [限定修正] 注意事項エリア内のタイトル下余白を広げる --- */
#sec-notes .sub-description-title {
    margin-bottom: 25px !important;
    display: block !important;
}

/* 説明文の下（次の商品タイトルとの間）を広げる */
#sec-notes .description-text.f16 {
    margin-bottom: 50px !important;
}

/* --- 文書全体のサイズ --- */
.checkout-sub-text-lg {
    font-size: 15px;
    line-height: 1.7;
    color: #2d2d2d;
    margin: 14px 0;
}

/* --- [組み合わせコース カード v2] SP専用デザイン --- */
.grid-4-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 21px;
    margin-bottom: 0;
}
.course-card-v2 {
    background: #ffffff;
    border: 2px solid #e5e2da;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.course-banner {
    width: 100%;
    aspect-ratio: 20 / 9;
    background: #e9e9e9;
    overflow: hidden;
    box-sizing: border-box;
    padding: 0;
}
.course-banner img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; display: block; }
.course-banner-zoom img { transform: scale(1.1); transform-origin: center bottom; }
.course-banner-zoom-plus img { transform: scale(1.2); transform-origin: center bottom; }
.course-banner-sm img { transform: scale(1.1); transform-origin: center bottom; }
.course-banner-shrink img { transform: scale(0.95); transform-origin: center bottom; }

.course-head-block { padding: 15px 20px 0px; position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 15px; }
.course-head-top { display: block; }
.course-name-v2 { display: block; font-size: 25px; font-weight: 800; font-family: 'Inter'; color: #1a2a40; white-space: nowrap; line-height: 1; }
.course-duration { font-size: 13px; color: #bda16b; font-weight: 700; letter-spacing: 0.02em; margin-top: 0; line-height: 1; }

.course-item-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 10px 14px; }
.course-item-cell { background: #f7f6f2; border-radius: 8px; padding: 8px 9px; }
.course-item-cell .pname { font-size: 14px; font-weight: 700; color: #2d2d2d; display: block; margin-bottom: 3px; }
.course-item-cell .form-row { display: flex; align-items: center; gap: 5px; }
.course-form-badge {
    display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700;
    padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.course-form-badge svg { width: 12px; height: 12px; fill: currentColor; flex: 0 0 auto; }
.course-form-badge.tablet { background: rgba(26,42,64,0.08); color: #1a2a40; }
.course-form-badge.powder { background: rgba(189,161,107,0.14); color: #bda16b; }
.course-item-cell .amt { font-size: 14px; color: #6b6a63; }

.course-bottom { padding: 10px 14px 14px; border-top: 1px solid rgba(26,42,64,0.10); margin-top: 2px; }
.course-price-row { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin-bottom: 8px; }
.course-price-v2 { font-size: 30px; font-weight: 700; font-family: 'Inter'; color: #1a2a40; }
.course-tax-v2 { font-size: 14px; color: #6b6a63; }
.course-ship-badge {
    display: inline-block;
    font-size: 15px;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(189, 161, 107, 0.14);
    color: #bda16b;
    font-weight: 700;
    margin-left: 4px;
}

.course-qty-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    gap: 12px;
    margin-bottom: 12px;
}
.course-qty-row > .course-qty-label { grid-column: 1; justify-self: end; }
.course-qty-row > .course-qty-controls { grid-column: 2; }
.course-qty-label { font-size: 14px; font-weight: 700; color: #6b6a63; }
.course-qty-controls { display: flex; align-items: center; }
.course-qty-btn {
    width: 46px; height: 46px; border: 1px solid rgba(26,42,64,0.10); box-sizing: border-box;
    display: flex; align-items: center; justify-content: center; font-size: 16px; color: #2d2d2d;
    background: #f5f5f0; cursor: pointer; -webkit-appearance: none; appearance: none;
}
.course-qty-btn:first-child { border-radius: 4px 0 0 4px; }
.course-qty-btn:last-child { border-radius: 0 4px 4px 0; }
.course-qty-input {
    width: 46px; height: 46px; border: 1px solid rgba(26,42,64,0.10); border-left: none; border-right: none;
    box-sizing: border-box; text-align: center; font-size: 16px; color: #2d2d2d; background: #ffffff;
    margin: 0; padding: 0; outline: none; -webkit-appearance: none; -moz-appearance: textfield; appearance: none; border-radius: 0;
}
.course-qty-input::-webkit-outer-spin-button,
.course-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.course-form-note {
    margin: 0 0 5px;
    font-size: 12px;
    color: #666666;
    text-align: center;
}

.course-cta-btn {
    background: #bda16b; color: #fff; font-size: 16px; font-weight: 700; border: none;
    border-radius: 18px; width: 100%; height: 56px; margin-bottom: 8px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    white-space: nowrap; cursor: pointer;
}
.course-cta-btn svg { width: 19px; height: 19px; fill: currentColor; }
.course-cta-btn:active { background: #1a2a40; }

.delivery-note {
    margin: 10px 0 0;
    font-size: 13px;
    color: #2d2d2d;
    text-align: center;
}
.delivery-days {
    font-weight: 700;
    color: #bda16b;
    font-size: 17px;
}

/* --- 移動式ページ最下部定期申込ボタン --- */
.btn-floating-order {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 230px;
    height: 54px;
    background-color: #1a2a40;
    border: 1px solid #bda16b;
    color: #eddb8c;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    white-space: nowrap;
    letter-spacing: 0.1em;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

/* スクロール時に表示されるクラス */
.btn-floating-order.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ホバー（指を置いた時）の演出 */
.btn-floating-order:active {
    background-color: #1a2a40;
    transform: scale(0.98);
}

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

/* 【ボタン】製品一覧へ戻るボタンのデザイン（丸形） */
.btn-back-lineup {
    display: flex; align-items: center; justify-content: center;
    width: 100%; max-width: 340px; 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) {

    /* コンテンツ幅を制限して中央揃え */
    .main-content {
        max-width: 1200px;
        margin: 0 auto;
    }

    .course-form-note {
        font-size: 13px;
    }

    .breadcrumb-container {
        max-width: 960px;
        margin: 0 auto;
    }

    .breadcrumbs {
        font-size: 12px;
    }

    /* コースサマリーエリアの余白拡張 */
    .product-hero, 
    .product-summary-area {
        padding-left: max(40px, calc((100% - 900px) / 2));
        padding-right: max(40px, calc((100% - 900px) / 2));
    }

    .product-summary-area {
        padding-bottom: 25px;
    }
    
    .course-subtitle {
        margin-bottom: 20px;
    }

    .items-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px 20px;
    }

    .item-block {
        padding: 14px 16px;
    }

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

    .item-divider-or {
        margin: 15px;
    }

    /* セクション余白拡張 */
    .section-full-white,
    .section-full-gray {
        padding-left: max(40px, calc((100% - 900px) / 2));
        padding-right: max(40px, calc((100% - 900px) / 2));
    }

    .sanlem_or_gialen {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: row;
        align-items: stretch;
    }
    .sanlem_or_gialen .sg-option {
        flex: 1;
        min-width: 0;
    }
    .sanlem_or_gialen .item-divider-or {
        flex-direction: column;
        max-width: none;
        margin: 0 20px;
    }
    .sanlem_or_gialen .item-divider-or::before,
    .sanlem_or_gialen .item-divider-or::after {
        border-top: none;
        border-left: 2px dotted #bda16b;
        width: 0;
        height: auto;
    }
    .sanlem_or_gialen .item-divider-or span {
        padding: 12px 0;
        top: 0;
    }

    .page-anchor-nav {
        padding-left: max(40px, calc((100% - 900px) / 2));
        padding-right: max(40px, calc((100% - 900px) / 2));
    }

    .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;
        font-size: 15px;
    }
    .anchor-list a {
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        padding: 16px 10px 16px 18px;
        font-weight: 700;
        font-size: 15px;
        line-height: 1.3;
        transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    }
    .anchor-list a::after {
        font-size: 12px;
    }
    .anchor-list a:hover {
        background-color: #1a2a40;
        color: #ffffff;
        transform: scale(1.04);
    }
    .anchor-list a:hover::after {
        color: #ffffff;
    }
    /* コース名フォントサイズ拡大 */
    .course-title {
        font-size: 28px;
    }

    .description-title {
        font-size: 24px;
    }

    /* --- [組み合わせコース] タブレット・PC共通：2列2段（下段は左からC・D） --- */
    .grid-4-wrapper:has(.course-card-v2) {
        grid-template-columns: repeat(2, 1fr);
        grid-template-areas:
            "a b"
            "c d";
    }
    .course-card-v2:nth-child(1) { grid-area: a; }
    .course-card-v2:nth-child(2) { grid-area: b; }
    .course-card-v2:nth-child(3) { grid-area: c; }
    .course-card-v2:nth-child(4) { grid-area: d; }

    /* back-nav幅制限解除（section幅に従う） */
    .back-nav-section {
        padding: 50px 0;
    }

    .totop-button {
        right: 20px !important;
        left: auto !important; /* left指定がある場合に備えてリセット */
        width: 81px;
        height: 81px;
        font-size: 16px;
    }

    /* 注文ボタンを To Top ボタンの左側に配置 */
    /* 20px(右余白) + 81px(To Topボタン幅) + 12px(ボタン間の余白) = 113px */
    .btn-floating-order {
        right: 113px !important;
        left: auto !important; /* 現在 left: 75% が指定されているため解除が必要 */
        bottom: 20px !important; /* 高さを揃える */
        width: 340px;
        height: 81px;
        font-size: 22px;
        border-radius: 36px;
        transform: translateY(20px); /* ベースのtranslateX(-50%)を解除し、rightのみで位置決め */
    }
    .btn-floating-order.is-active {
        transform: translateY(0);
    }
}


/* =====================================================
   PC レスポンシブ対応 1024px ブレークポイント
   ===================================================== */
@media (min-width: 1024px) {

    /* コンテンツ幅を制限して中央揃え */
    .main-content {
        display: flex;
        flex-direction: row;
    }

    .breadcrumb-container {
        padding: 85px 15px 40px;
    }

    .product-hero {
        padding: 0 40px;
    }

    /* コースサマリーエリアの余白拡張 */
    .product-summary-area {
        padding: 10px 40px 0px 0px;
        min-width: 0;
    }

    .subscription_purchase_basic_course .product-hero,
    .subscription_purchase_basic_plus_course .product-hero,
    .subscription_purchase_kinshoku_course .product-hero,
    .subscription_purchase_all_round_course .product-hero {
        width: 60%;
        flex: 0 0 60%;
        min-width: 0;
    }

    .course-subtitle {
        margin-bottom: 10px;
        font-size: clamp(13px, 1.4vw, 16px);
        white-space: nowrap;
    }

    .item-header {
        gap: 8px;
    }

    /* --- items-grid内の商品ブロック：狭い2列レイアウトで商品名+価格が
       右にはみ出さないよう、価格を商品名の下に回して縦積みにする --- */
    .items-grid .item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .items-grid .item-header .item-price {
        margin-left: 16px;
    }

    /* --- [BASICコース限定] 上記の縦積み変更を除外し、元の横並びに戻す --- */
    .subscription_purchase_basic_course .items-grid .item-header {
        flex-direction: row;
        align-items: flex-end;
    }
    .subscription_purchase_basic_course .items-grid .item-header .item-price {
        margin-left: 0;
    }

    /* --- [BASICコース限定] サンレム/ガイアレンの選択式ブロックで情報量が多いため、
       product-summary-area がproduct-hero画像の高さに収まるよう余白を詰める --- */
    .subscription_purchase_basic_course .item-block {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .subscription_purchase_basic_course .items-grid .sanlem_or_gialen .item-divider-or {
        margin: 4px auto;
    }
    .subscription_purchase_basic_course .items-grid {
        gap: 8px;
    }
    .subscription_purchase_basic_course .course-subtitle {
        margin-bottom: 14px;
    }
    .subscription_purchase_basic_course .total-price-container {
        margin-top: 14px;
    }

    /* --- [BASICコース] メルゲンブロックの横幅をサンレム/ガイアレンに統一 --- */
    .item-full-1024 {
        grid-column: 1 / -1;
    }
    .item-name {
        white-space: nowrap;
    }

    /* --- [BASICコース] サンレム／ガイアレンをスマホと同じ縦積みに固定 --- */
    /* 768px共通ブロックの横並び指定を、PC(1024px以上)でのみ上書きして解除 */
    .items-grid .sanlem_or_gialen {
        display: block;
    }
    .items-grid .sanlem_or_gialen .sg-option {
        flex: initial;
        min-width: auto;
    }
    .items-grid .sanlem_or_gialen .item-divider-or {
        flex-direction: row;
        max-width: 280px;
        margin: 10px auto;
    }
    .items-grid .sanlem_or_gialen .item-divider-or::before,
    .items-grid .sanlem_or_gialen .item-divider-or::after {
        border-left: none;
        border-top: 2px dotted #bda16b;
        width: auto;
        height: 0;
    }
    .items-grid .sanlem_or_gialen .item-divider-or span {
        padding: 0 12px;
        top: -1px;
    }

    .description-title {
        font-size: 24px;
    }

    .item-divider-or {
        margin: 25px;
    }

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

    /* --- [組み合わせコース] PC：カードをコンパクト化 --- */
    .course-banner {
        aspect-ratio: auto;
        height: 146px;
    }

    .course-name-v2 { font-size: 28px; line-height: 1; margin-left: -5px; }
    .course-duration { font-size: 12px; }

    .course-item-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-flow: row;
    }
    .course-item-cell {
        padding: 7px 6px;
        min-width: 0;
    }
    .course-item-cell .pname {
        font-size: 16px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .course-item-cell .amt { font-size: 11px; }
    .course-form-badge { font-size: 14px; padding: 2px 6px; }
    .course-form-badge svg { width: 11px; height: 11px; }

    .course-bottom {
        text-align: center;
        padding: 20px 14px 15px;
    }
    .course-price-row {
        display: inline-flex;
        vertical-align: middle;
        margin: 0 8px 0 0;
    }
    .course-price-v2 { font-size: 26px; }
    .course-tax-v2 { font-size: 11px; }
    .course-ship-badge { font-size: 12px; padding: 2px 8px; }

    .course-qty-row {
        display: inline-flex;
        align-items: center;
        vertical-align: middle;
        margin: 0;
    }
    .course-qty-label { display: none; }
    .course-qty-btn { width: 32px; height: 32px; font-size: 13px; }
    .course-qty-input { width: 32px; height: 32px; font-size: 14px; text-align: center; }

    .course-form-note { margin: 10px 0 0; }
    .course-cta-btn {
        height: 52px;
        width: 75%;
        margin: 0 auto 6px;
    }
    .course-bottom .delivery-note { margin: 0; }

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

}

/* =====================================================
   タブレット専用レイアウト（768px〜1023.98px）
   ===================================================== */
@media (min-width: 768px) and (max-width: 1023.98px) {
    /* --- [組み合わせコース] タブレット微調整 --- */
    .course-item-cell .pname {
        font-size: 16px;
    }
    .course-form-badge {
        font-size: 15.5px;
    }
    .course-form-badge svg {
        width: 14px;
        height: 14px;
    }

    /* --- タブレット：左右80pxパディング追加（組み合わせコースのカードセクションは除外） --- */
    .product-hero,
    .product-summary-area,
    .section-full-white:not(:has(.grid-4-wrapper)),
    .section-full-gray:not(:has(.grid-4-wrapper)) {
        padding-left: 80px;
        padding-right: 80px;
    }

    /* --- タブレット：お申し込みセクション内タイトル・注意文の余白調整 --- */
    #sec-checkout-final .description-title,
    .checkout-sub-text-lg {
        margin: 0px 80px 25px;
    }

    /* --- タブレット：商品ブロックの左右パディングを詰める --- */
    .item-block {
        padding: 14px 10px;
    }

    /* --- タブレット：サンレム/ガイアレン区切り線の余白調整 --- */
    .sanlem_or_gialen .item-divider-or {
        margin: 0 5px;
    }

    /* --- タブレット：「もしくは」の文字サイズ・太さ調整 --- */
    .item-divider-or span {
        font-size: 12px;
        font-weight: 700;
    }

    /* --- タブレット：メイン画像の上下を20pxずつ非表示（トリミング） --- */
    .product-hero {
        overflow: hidden;
    }
    .product-hero img {
        margin-top: -20px;
        margin-bottom: -20px;
    }
}
