/**
 * 商品個別ページ - 和モダンデザイン
 * 生成り和紙テクスチャ・明朝体・落ち着いた赤 #8b2e2e
 */

/* 商品ページのみ適用（body.single-product） */
body.single-product .site-main,
body.single-product .woocommerce {
    position: relative;
}

/* サイドバー無し時のみメインを中央寄せ（有り時は通販レイアウトに任せる） */
body.single-product:not(.has-sidebar) .site-main,
body.single-product:not(.has-sidebar) #primary {
    width: 100% !important;
    max-width: 1180px;
    margin-inline: auto;
    float: none !important;
}
body.single-product:not(.has-sidebar) .woocommerce-breadcrumb,
body.single-product:not(.has-sidebar) .woocommerce-notices-wrapper {
    max-width: 1180px;
    margin-inline: auto;
}
/* モバイル既定：サイドメニューは非表示（ベントウ開時のみ後述メディアクエリで表示） */
@media (max-width: 781px) {
    body.single-product .site-inner.has-sidebar .sidebar-wrap,
    body.single-product .sidebar-wrap {
        display: none !important;
    }
}

/* WooCommerce単品の2カラムを安定化 */
body.single-product div.product {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
    gap: 22px 28px;
    align-items: start;
}
/* サイドメニュー有り時は狭いメイン列でも崩れないよう最小幅を緩める */
@media (min-width: 782px) {
    body.single-product.has-sidebar div.product {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 16px 20px;
    }
}
body.single-product div.product .images,
body.single-product div.product .summary {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}
/* レビュータブ・関連レールはギャラリー＋概要の下を全幅で使う */
body.single-product div.product .woocommerce-tabs,
body.single-product div.product .tcf-sp-related-rails {
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
}
body.single-product div.product .summary {
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(250,245,238,0.9));
    border: 1px solid rgba(170, 140, 112, 0.28);
    border-radius: 12px;
    padding: 16px 16px 18px;
    box-shadow: 0 12px 28px rgba(43, 29, 20, 0.08);
}
body.single-product div.product .summary > .price {
    display: none !important;
}
/* 価格下の短い説明は画像下の「ひとこと」と重複するため出さない */
body.single-product .summary .woocommerce-product-details__short-description {
    display: none !important;
}
body.single-product div.product .woocommerce-product-gallery {
    background: rgba(255,255,255,0.72);
    border: 1px solid #e8e0d5;
    border-radius: 12px;
    padding: 12px;
}
body.single-product .related.products {
    max-width: 1180px;
    margin: 1.2rem auto 0;
}

/* 和紙テクスチャ風の背景（生成り） */
body.single-product .site-main::before,
body.single-product .woocommerce::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background-color: #f5f0e8;
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E"),
        linear-gradient(180deg, rgba(245,240,232,0.97) 0%, rgba(250,247,242,0.98) 100%);
    pointer-events: none;
}

body.single-product {
    background: #f5f0e8;
}
html.tcf-no-scroll,
body.tcf-no-scroll {
    overflow: hidden;
}

/* 商品名：明朝体・大きく */
body.single-product .product_title,
body.single-product .woocommerce-product-details__short-description + .product_title,
body.single-product .summary .product_title {
    font-family: var(--tcf-font-serif, 'Noto Serif JP', serif) !important;
    font-size: clamp(1.5rem, 4vw, 2rem) !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em !important;
    color: #2a1610 !important;
    margin-bottom: 0.75em !important;
    line-height: 1.4 !important;
}

/* 価格エリア：余白・落ち着いた赤アクセント #8b2e2e */
body.single-product .summary .price,
body.single-product .woocommerce-Price-amount,
body.single-product .price .amount {
    color: #8b2e2e !important;
    font-weight: 700 !important;
    font-size: 1.35rem !important;
}

body.single-product .summary > .price {
    margin-top: 0.5em;
    margin-bottom: 1.25em;
    padding: 0.75em 0;
    border-top: 1px solid rgba(139, 46, 46, 0.15);
    border-bottom: 1px solid rgba(139, 46, 46, 0.15);
}

/* カートボタン周り：余白・#8b2e2e */
body.single-product .summary .cart {
    margin-top: 1.5em;
    margin-bottom: 1.5em;
    padding-top: 1.25em;
    border-top: 1px solid var(--tcf-border-light, #f0ebe5);
}

body.single-product .single_add_to_cart_button,
body.single-product .summary .button.alt,
body.single-product .summary button[type="submit"] {
    background-color: #8b2e2e !important;
    border-color: #8b2e2e !important;
    color: #fff !important;
    padding: 0.85em 2em !important;
    font-weight: 700 !important;
    border-radius: var(--tcf-radius, 8px) !important;
    transition: background-color 0.2s ease, filter 0.2s ease !important;
}

body.single-product .single_add_to_cart_button:hover,
body.single-product .summary .button.alt:hover {
    background-color: #6e2525 !important;
    border-color: #6e2525 !important;
    filter: brightness(1.05);
}

/* 数量入力・カートブロック */
body.single-product .summary .quantity {
    margin-right: 0.75em;
}

body.single-product .summary .quantity input {
    border-color: rgba(139, 46, 46, 0.25) !important;
    border-radius: 6px !important;
}

/* 受取方法の制限メッセージのみ表示。保存・包装状態は下部の商品状態選択で選ぶため非表示 */
body.single-product .dps-product-restriction-notice {
    margin: 0.75em 0;
    padding: 0.6em 1em;
    background: rgba(255,255,255,0.7);
    border-radius: 6px;
    border: 1px solid var(--tcf-border-light, #f0ebe5);
}
body.single-product .dps-temperature-info {
    display: none !important;
}

/* 商品詳細の受取方法セレクター（店頭/配送・同期用） */
body.single-product .tcf-single-product-delivery-selector {
    margin: 0.5rem 0 0.8rem;
}
body.single-product .tcf-single-product-delivery-selector .dps-content-selector {
    padding: 0;
}
body.single-product .tcf-single-product-delivery-selector .dps-selector-container {
    border: 1px solid rgba(127, 38, 41, 0.22);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(250, 246, 240, 0.95));
    padding: 10px 12px 12px;
}
body.single-product .tcf-single-product-delivery-selector .dps-selector-title {
    margin: 0 0 8px;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: #7f2629;
}
body.single-product .tcf-single-product-delivery-selector .dps-selector-buttons {
    overflow: visible;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
body.single-product .tcf-single-product-delivery-selector .dps-selector-btn {
    position: relative;
    overflow: visible;
    border: 1px solid #d6c8b9;
    border-radius: 999px;
    padding: 9px 10px;
    font-weight: 700;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 246, 240, 0.96));
    color: #2a1610 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}
/* 店頭／配送：単色シルエット（::before）。選択中表示は ::after（DPS のリンク用 ::after バッジとは分離） */
body.single-product .tcf-single-product-delivery-selector .dps-selector-btn.dps-btn-pickup::before,
body.single-product .tcf-single-product-delivery-selector .dps-selector-btn.dps-btn-delivery::before {
    content: '';
    width: 1.2rem;
    height: 1.2rem;
    flex-shrink: 0;
    background-color: #221c19;
    opacity: 0.88;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}
body.single-product .tcf-single-product-delivery-selector .dps-selector-btn.dps-btn-pickup::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M3 21V9.5L12 4l9 5.5V21h-5.5v-6h-5v6H3zm9-11h3v6h-3v-6z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M3 21V9.5L12 4l9 5.5V21h-5.5v-6h-5v6H3zm9-11h3v6h-3v-6z'/%3E%3C/svg%3E");
}
body.single-product .tcf-single-product-delivery-selector .dps-selector-btn.dps-btn-delivery::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M20 8h-3V4H3v13h2.18c.42 1.16 1.53 2 2.82 2s2.4-.84 2.82-2H15.18c.42 1.16 1.53 2 2.82 2s2.4-.84 2.82-2H21v-5l-3-4zM6 18c-.83 0-1.5-.67-1.5-1.5S5.17 15 6 15s1.5.67 1.5 1.5S6.83 18 6 18zm12 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5S18.83 18 18 18zm-6-9h4l2 2.5V11h-6V9z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M20 8h-3V4H3v13h2.18c.42 1.16 1.53 2 2.82 2s2.4-.84 2.82-2H15.18c.42 1.16 1.53 2 2.82 2s2.4-.84 2.82-2H21v-5l-3-4zM6 18c-.83 0-1.5-.67-1.5-1.5S5.17 15 6 15s1.5.67 1.5 1.5S6.83 18 6 18zm12 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5S18.83 18 18 18zm-6-9h4l2 2.5V11h-6V9z'/%3E%3C/svg%3E");
}
body.single-product .tcf-single-product-delivery-selector .dps-selector-btn.active,
body.single-product .tcf-single-product-delivery-selector .dps-selector-btn.dps-active {
    color: #2a1610 !important;
    border-color: #8b2e2e !important;
    background: linear-gradient(180deg, #fff4f1, #f8e6df) !important;
    box-shadow: inset 0 0 0 1px rgba(139, 46, 46, 0.16);
}
/* 角バッジは臙脂＋白文字（インラインの「選択済み」だとコントラストが崩れやすい） */
body.single-product .tcf-single-product-delivery-selector .dps-selector-btn.active:not(.dps-inactive)::after,
body.single-product .tcf-single-product-delivery-selector .dps-selector-btn.dps-active:not(.dps-inactive)::after {
    content: "✓ 選択中" !important;
    display: block !important;
    position: absolute;
    top: -12px;
    right: -4px;
    z-index: 4;
    margin: 0 !important;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    background: #7f2629 !important;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(42, 22, 16, 0.2);
}
body.single-product .tcf-single-product-delivery-selector .dps-selector-btn:hover {
    transform: translateY(-1px);
    border-color: #8b2e2e;
    box-shadow: 0 4px 10px rgba(139, 46, 46, 0.14);
}
body.single-product .tcf-single-product-delivery-selector [data-method].dps-active,
body.single-product .tcf-single-product-delivery-selector [data-dps-method].dps-active {
    outline: none !important;
}
/* ブロックチェックアウト等のリンク型のみ DPS の ::after バッジを抑止（.dps-selector-btn は上で「選択済み」表示） */
body.single-product .tcf-single-product-delivery-selector a[data-method].dps-active::after,
body.single-product .tcf-single-product-delivery-selector a[data-dps-method].dps-active::after {
    display: none !important;
    content: none !important;
}
body.single-product .tcf-single-product-delivery-selector .dps-selector-btn.dps-inactive,
body.single-product .tcf-single-product-delivery-selector .dps-selector-btn.dps-unselected {
    opacity: 1 !important;
    filter: none !important;
    color: #2a1610 !important;
}
/* DPS 標準CSSが [data-method].dps-inactive にも効くため、商品詳細内では確実に無効化 */
body.single-product .tcf-single-product-delivery-selector [data-dps-method].dps-inactive,
body.single-product .tcf-single-product-delivery-selector [data-method].dps-inactive,
body.single-product .tcf-single-product-delivery-selector [data-dps-method].dps-unselected,
body.single-product .tcf-single-product-delivery-selector [data-method].dps-unselected {
    opacity: 1 !important;
    filter: none !important;
    pointer-events: auto !important;
    cursor: pointer;
}

/* 現在の受取方法ラベル（同期用・data-tcf-delivery-label で JS が更新） */
body.single-product .tcf-current-method-label[data-tcf-delivery-label] {
    font-size: 0.9rem;
    color: var(--tcf-text-muted, #5c4a3a);
    margin-bottom: 0.5em;
}

/* ── 美味しい焼き方・調理法（常時表示・コンパクト） ── */
.tcf-cooking-method-wrap {
    margin: 0.65em 0 0.75em;
    border: 1px solid rgba(170, 140, 112, 0.32);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    overflow: hidden;
    box-shadow: none;
}

.tcf-cooking-method-heading {
    margin: 0;
    padding: 0.48em 0.75em;
    font-family: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    color: #5c4a3a;
    background: rgba(250, 246, 240, 0.95);
    border-bottom: 1px solid rgba(170, 140, 112, 0.28);
    line-height: 1.4;
}

.tcf-cooking-method-content {
    max-height: none;
    overflow: visible;
}

.tcf-cooking-method-content-inner {
    padding: 0.7em 0.85em 0.85em;
    font-size: 0.86rem;
    line-height: 1.7;
    color: var(--tcf-text, #2a1610);
    background: #fff;
}

.tcf-cooking-method-content-inner p {
    display: block;
    margin: 0 0 0.45em;
}
.tcf-cooking-method-content-inner p:last-child {
    margin-bottom: 0;
}

/* ── Aパターン: 商品情報ブロック ── */
.tcf-sp-primary-info {
    margin: 0.2rem 0 0.9rem;
    padding: 0.2rem 0.1rem 0.5rem;
    border-bottom: 1px solid rgba(170, 140, 112, 0.26);
}
.tcf-sp-brand-line {
    margin: 0 0 0.1rem;
    color: #4e382b;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.03em;
}
.tcf-sp-name-line {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 0.35rem;
}
.tcf-sp-product-name {
    margin: 0;
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    line-height: 1.15;
    color: #2a1610;
}
.tcf-sp-weight-inline {
    display: inline-block;
    color: #8b2e2e;
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1.2;
}
.tcf-sp-feature-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 0.45rem;
}
.tcf-sp-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(139, 46, 46, 0.22);
    background: rgba(255, 248, 242, 0.88);
    color: #4a3529;
    font-size: 12px;
    font-weight: 700;
}
.tcf-sp-price-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
}
.tcf-sp-price-inner-wrap {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 0.35em;
    min-width: 0;
}
.tcf-sp-price-main {
    color: #8b2e2e;
    font-size: 2.25rem;
    line-height: 1;
    font-weight: 700;
}
/* 未選択／選択後とも同一スタイル（summary 側 .price の 1.35rem を打ち消す） */
body.single-product .tcf-sp-price-line .tcf-sp-price-main,
body.single-product .tcf-sp-price-line .tcf-sp-price-main .price,
body.single-product .tcf-sp-price-line .tcf-sp-price-main .woocommerce-Price-amount,
body.single-product .tcf-sp-price-line .tcf-sp-price-main .amount,
body.single-product .tcf-sp-price-line .tcf-sp-price-main bdi {
    font-size: 2.25rem !important;
    font-weight: 700 !important;
    color: #8b2e2e !important;
    line-height: 1 !important;
    vertical-align: baseline !important;
}
body.single-product .tcf-sp-price-line .tcf-sp-price-main .price {
    display: inline;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
}
.tcf-sp-tax-note {
    font-size: 11px;
    color: #7a5a46;
    font-weight: 600;
    line-height: 1;
}
.tcf-sp-price-sep {
    color: rgba(58, 42, 34, 0.55);
    font-weight: 600;
    font-size: 1.15rem;
    line-height: 1;
}
.tcf-sp-unit-inline {
    font-size: 1rem !important;
    color: #3a2a22 !important;
    font-weight: 600 !important;
    line-height: 1;
}

/* 可変商品：最安～ / 選択時は税込のみ（単価は別要素）。構造は選択前後で共通 */
.tcf-sp-price-variable {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.12em;
    vertical-align: baseline;
}
.tcf-sp-price-variable-inner {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.06em;
}
.tcf-sp-price-variable-inner--multi,
.tcf-sp-price-variable-inner--single {
    align-items: baseline;
}
.tcf-sp-price-amount {
    display: inline-block;
    line-height: 1;
}
.tcf-sp-price-tilde {
    display: inline-block;
    margin: 0 0 0 0.08em;
    padding: 0;
    font-weight: 700;
    color: #8b2e2e !important;
    font-size: 0.9em !important;
    line-height: 1;
    vertical-align: baseline;
}

/* 内容量セレクト：コンパクト（クリアはラベル右横） */
body.single-product table.variations {
    width: 100%;
    margin: 0 0 0.2rem;
    border: none;
}
body.single-product table.variations tr {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 4px;
}
body.single-product table.variations th.label {
    width: 100%;
    text-align: left;
    padding: 0;
    font-size: 12px;
    font-weight: 700;
    color: #5d483d;
    line-height: 1.3;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
}
body.single-product table.variations th.label > label {
    margin: 0;
}
/* 内容量プルダウン内に価格を含めるため、下部の重複価格は非表示 */
body.single-product .woocommerce-variation-price {
    display: none !important;
}
body.single-product .single_variation {
    margin: 0;
    min-height: 0;
    padding: 0;
}
body.single-product .woocommerce-variation-availability {
    margin: 0.15rem 0 0;
    font-size: 12px;
}
body.single-product table.variations td.value {
    width: 100%;
    padding: 0;
    position: relative;
}
body.single-product table.variations select {
    width: 100%;
    max-width: none;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid #d8cdc0;
    border-radius: 8px;
    background: #fff;
    font-size: 16px;
    line-height: 1.35;
    box-sizing: border-box;
}
/* クリア：内容量ラベルの右横 */
body.single-product table.variations th.label .reset_variations,
body.single-product table.variations .reset_variations {
    display: inline-block;
    margin: 0;
    padding: 0;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    color: #8a6a52;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}
body.single-product table.variations th.label .reset_variations:hover,
body.single-product table.variations .reset_variations:hover {
    color: #5d483d;
}
/* td 内に残ったクリアは隠す（JSでラベルへ移動後の保険） */
body.single-product table.variations td.value > .reset_variations {
    display: none;
}
/* 選択中の規格は非表示 */
body.single-product .tcf-sp-variation-note[data-tcf-variation-note] {
    display: none !important;
}
/* 内容量のすぐ下に商品状態が来るよう余白を詰める */
body.single-product form.cart.variations_form {
    margin-top: 0.55em;
    margin-bottom: 0.7em;
    padding-top: 0.55em;
}
body.single-product form.cart .woocommerce-variation-add-to-cart {
    margin-top: 0.15rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
}
body.single-product form.cart .woocommerce-variation-add-to-cart .tcf-sp-qty-price-row,
body.single-product form.cart .woocommerce-variation-add-to-cart .single_add_to_cart_button {
    width: 100%;
    max-width: min(420px, 100%);
}
body.single-product form.cart .tcf-sp-preservation--choice {
    margin: 0.15rem 0 0.2rem;
    width: min(420px, 100%);
}
body.single-product form.cart .tcf-sp-preservation-head {
    margin-bottom: 6px;
}

/* 商品ページ：スクリーンリーダー専用 */
.tcf-sp-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── 購入状態（冷蔵=青系 / 冷凍=水色系の選択カード） ── */
.tcf-sp-preservation {
    margin: 0.6rem 0 0.6rem;
    display: inline-block;
    width: calc(50% - 4px);
    vertical-align: top;
}
.tcf-sp-preservation--choice {
    width: min(420px, 100%);
    display: block;
    border: none;
    padding: 0;
    margin: 0.6rem 0;
    min-width: 0;
}
.tcf-sp-preservation:not(.tcf-sp-preservation--choice) > label {
    display: block;
    font-size: 12px;
    margin-bottom: 6px;
    color: #5d483d;
    min-height: 18px;
    line-height: 18px;
}
.tcf-sp-preservation-legend,
.tcf-sp-preservation--choice legend {
    font-size: 12px;
    margin-bottom: 4px;
    color: #5d483d;
    padding: 0;
}
.tcf-sp-preservation-hint {
    margin: 0 0 10px;
    font-size: 11px;
    line-height: 1.45;
    color: #7a6558;
}
.tcf-sp-preservation-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 14px;
    margin-bottom: 10px;
}
.tcf-sp-preservation-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #3a2a22;
    line-height: 1.35;
}
/* 商品状態の説明：サイズは抑えめ、チルド連想の青系ボタン */
body.single-product .tcf-sp-preservation-help-btn {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #5b93c9;
    background: linear-gradient(180deg, #f3f8fd 0%, #d4e6f7 55%, #c5dcf2 100%);
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.35;
    color: #1a4575 !important;
    text-decoration: none !important;
    cursor: pointer;
    font-weight: 700;
    font-family: inherit;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.75) inset,
        0 1px 3px rgba(30, 74, 122, 0.18);
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
body.single-product .tcf-sp-preservation-help-btn:hover {
    color: #12375f !important;
    background: linear-gradient(180deg, #f7fbff 0%, #c9e0f5 55%, #b7d4ef 100%);
    border-color: #4a84bb;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85) inset,
        0 2px 6px rgba(30, 74, 122, 0.22);
}
body.single-product .tcf-sp-preservation-help-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(30, 74, 122, 0.16);
}
body.single-product .tcf-sp-preservation-help-btn:focus-visible {
    outline: 2px solid rgba(47, 111, 186, 0.45);
    outline-offset: 2px;
}
.tcf-sp-preservation--choice fieldset {
    border: none;
    margin: 0;
    padding: 0;
    min-width: 0;
}
.tcf-sp-preservation-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tcf-sp-preservation-card {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 12px 14px;
    border-radius: 10px;
    border: 2px solid #d8cdc0;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    font-size: 15px;
    font-weight: 600;
    color: #3a2a22;
    line-height: 1.35;
}
.tcf-sp-preservation-card:hover {
    box-shadow: 0 2px 8px rgba(58, 42, 34, 0.08);
}
.tcf-sp-preservation-card.is-disabled {
    opacity: 0.45;
    filter: grayscale(25%);
    cursor: not-allowed;
    box-shadow: none !important;
}
.tcf-sp-preservation-card.is-disabled .tcf-sp-preservation-card-text {
    color: #8f8379;
}
.tcf-sp-preservation-card--ref {
    border-color: rgba(30, 90, 170, 0.45);
    background: linear-gradient(180deg, rgba(232, 242, 255, 0.95) 0%, rgba(248, 251, 255, 0.98) 100%);
}
.tcf-sp-preservation-card--frz {
    border-color: rgba(70, 160, 200, 0.5);
    background: linear-gradient(180deg, rgba(224, 246, 255, 0.95) 0%, rgba(240, 252, 255, 0.98) 100%);
}
.tcf-sp-preservation-card--thaw {
    border-color: rgba(196, 122, 42, 0.5);
    background: linear-gradient(180deg, rgba(255, 244, 228, 0.96) 0%, rgba(255, 250, 242, 0.98) 100%);
}
.tcf-sp-preservation-card[hidden] {
    display: none !important;
}
.tcf-sp-preservation-card--other {
    border-color: rgba(139, 46, 46, 0.2);
    background: rgba(255, 252, 248, 0.95);
}
.tcf-sp-preservation-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}
.tcf-sp-preservation-card:focus-within {
    outline: 2px solid rgba(139, 46, 46, 0.35);
    outline-offset: 2px;
}
.tcf-sp-preservation-card:has(.tcf-sp-preservation-input:checked) {
    border-color: #8b2e2e;
    box-shadow: 0 0 0 1px rgba(139, 46, 46, 0.25);
    font-weight: 700;
}
.tcf-sp-preservation-card--ref:has(.tcf-sp-preservation-input:checked) {
    border-color: #1e5aaa;
    box-shadow: 0 0 0 2px rgba(30, 90, 170, 0.25);
}
.tcf-sp-preservation-card--frz:has(.tcf-sp-preservation-input:checked) {
    border-color: #2a9ec4;
    box-shadow: 0 0 0 2px rgba(42, 158, 196, 0.28);
}
.tcf-sp-preservation-card--thaw:has(.tcf-sp-preservation-input:checked) {
    border-color: #b56a12;
    box-shadow: 0 0 0 2px rgba(181, 106, 18, 0.28);
}
.tcf-sp-preservation-card-text::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
    transform: translateY(-1px);
    border: 2px solid rgba(58, 42, 34, 0.25);
    background: #fff;
}
.tcf-sp-preservation-card--ref .tcf-sp-preservation-card-text::before {
    background: #2a6fc4;
    border-color: rgba(30, 90, 170, 0.5);
}
.tcf-sp-preservation-card--frz .tcf-sp-preservation-card-text::before {
    background: #5ec8e8;
    border-color: rgba(70, 160, 200, 0.55);
}
.tcf-sp-preservation-card--thaw .tcf-sp-preservation-card-text::before {
    background: #e39a3a;
    border-color: rgba(181, 106, 18, 0.55);
}
.tcf-sp-preservation-card--other .tcf-sp-preservation-card-text::before {
    background: #c4b8a8;
    border-color: rgba(90, 72, 61, 0.35);
}
.tcf-sp-preservation-card:has(.tcf-sp-preservation-input:checked) .tcf-sp-preservation-card-text::before {
    box-shadow: inset 0 0 0 2px #fff;
}
.tcf-sp-select {
    width: 100%;
    max-width: none;
    border: 1px solid #d8cdc0;
    border-radius: 8px;
    padding: 10px 12px;
    background: #fff;
}
body.single-product form.cart {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 12px;
    align-items: flex-start; /* 左寄せ */
    justify-content: flex-start;
    width: 100%;
}
/* 数量（左半分）＋ 数量合計価格（右・入力枠と同じ高さで中央揃え） */
body.single-product .tcf-sp-qty-price-row {
    display: flex;
    flex-direction: row;
    align-items: flex-end; /* 「数量」ラベル分ずらした入力枠の下端に価格を合わせる */
    justify-content: flex-start;
    gap: 14px;
    width: 100%;
    max-width: min(420px, 100%);
    order: 2;
    box-sizing: border-box;
}
body.single-product form.cart .tcf-sp-qty-price-row .quantity {
    display: block;
    flex: 0 0 48%;
    width: 48%;
    max-width: 180px;
    margin: 0;
    vertical-align: top;
    order: unset;
}
body.single-product form.cart .quantity::before {
    content: '数量';
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
    color: #5d483d;
    font-weight: 700;
    min-height: 18px;
    line-height: 18px;
}
body.single-product form.cart .quantity .qty {
    width: 100%;
    max-width: none;
    min-height: 42px;
}
body.single-product .tcf-sp-qty-line-total {
    flex: 1 1 auto;
    display: inline-flex;
    flex-direction: row;
    align-items: center; /* 入力枠48pxの垂直中央に税込・金額を揃える */
    justify-content: flex-start;
    gap: 6px;
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    white-space: nowrap;
    font-family: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
}
body.single-product .tcf-sp-qty-line-total[hidden] {
    visibility: hidden;
}
body.single-product .tcf-sp-qty-line-total-tax {
    font-size: 11px;
    font-weight: 600;
    color: #7a5a46;
    font-family: inherit;
    line-height: 1;
    transform: none;
}
body.single-product .tcf-sp-qty-line-total-amount {
    font-size: 1.55rem;
    font-weight: 700;
    color: #8b2e2e;
    line-height: 1;
    letter-spacing: 0.01em;
    font-family: inherit; /* 上部価格の明朝体を引き継がない */
}
.tcf-sp-preservation .tcf-sp-select,
body.single-product form.cart .quantity .qty {
    box-sizing: border-box;
    height: 48px !important;
    min-height: 48px !important;
    line-height: 48px !important;
    font-size: 15px;
    padding: 0 12px !important;
    margin: 0 !important;
}
body.single-product form.cart .tcf-sp-preservation {
    order: 1;
    flex: 0 0 auto;
    width: min(420px, 100%);
    margin: 0;
}
body.single-product form.cart .single_add_to_cart_button {
    width: min(420px, 100%);
    order: 3;
}

/* ── 特商法ボタン/カテゴリ ── */
.tcf-sp-legal-wrap {
    margin-top: 0.8rem;
    padding-top: 0.9rem;
    border-top: 1px dashed #e4d9cc;
}
.tcf-sp-legal-btn {
    background: #fff !important;
    border: 1px solid #8b2e2e !important;
    color: #8b2e2e !important;
    border-radius: 8px !important;
}
.tcf-sp-categories {
    margin-top: 0;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.tcf-sp-cat {
    display: inline-block;
    padding: 4px 9px;
    border: 1px solid #e8e0d5;
    border-radius: 999px;
    background: #fff;
    font-size: 12px;
    color: inherit;
    text-decoration: none;
}
a.tcf-sp-cat:hover {
    border-color: #8b2e2e;
    color: #8b2e2e;
}

/* ── 説明 ── */
.tcf-sp-description {
    margin: 0.55rem 0 0.25rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(170, 140, 112, 0.24);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(247,241,233,0.8));
}

.tcf-sp-quick-note {
    margin: 0.85rem 0 0.35rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(170, 140, 112, 0.24);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(249,244,236,0.82));
}
.tcf-sp-quick-note > h2 {
    margin: 0 0 6px;
    font-size: 14px;
    color: #2f1f17;
}
.tcf-sp-quick-note-body {
    font-size: 0.86rem;
    line-height: 1.7;
    color: #2f211a;
}

/* 単一商品：表示位置切替（PCは画像下、モバイルは注文/カテゴリの後ろ） */
body.single-product .woocommerce-product-gallery .tcf-sp-desktop-note-block,
body.single-product .woocommerce-product-gallery .tcf-sp-desktop-cooking-block,
body.single-product .woocommerce-product-gallery .tcf-sp-desktop-desc-block,
body.single-product .woocommerce-product-gallery .tcf-sp-desktop-taste-map {
    display: block;
    overflow: visible;
}
body.single-product .summary .tcf-sp-mobile-note-block,
body.single-product .summary .tcf-sp-mobile-cooking-block,
body.single-product .summary .tcf-sp-mobile-desc-block,
body.single-product .summary .tcf-sp-mobile-taste-map {
    display: none;
}

/* パンくず（現在地）：TOP | カテゴリ | 商品名 */
.tcf-sp-breadcrumb {
    margin: 0 0 0.75rem;
    font-size: 12px;
    line-height: 1.55;
    color: #6b5348;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.45rem;
}
.tcf-sp-breadcrumb__link {
    color: #7f2629;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.tcf-sp-breadcrumb__link:hover {
    color: #6e2525;
}
.tcf-sp-breadcrumb__sep {
    color: #b0a094;
    user-select: none;
}
.tcf-sp-breadcrumb__text,
.tcf-sp-breadcrumb__current {
    color: #3d2c26;
}
.tcf-sp-breadcrumb__current {
    word-break: break-word;
}
.tcf-sp-description > h2 {
    margin: 0 0 8px;
    font-size: 15px;
    color: #2a1610;
}
.tcf-sp-description-body {
    font-size: 0.88rem;
    line-height: 1.75;
    color: #2f211a;
}

/* ── 特商法モーダル ── */
.tcf-sp-legal-modal[hidden] {
    display: none;
}
.tcf-sp-legal-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
}
.tcf-sp-legal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.44);
}
.tcf-sp-legal-dialog {
    position: relative;
    max-width: 640px;
    margin: 8vh auto 0;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8e0d5;
    padding: 18px 18px 16px;
}
.tcf-sp-legal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.tcf-sp-legal-list {
    margin: 8px 0 0;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 8px 12px;
}
.tcf-sp-legal-list dt {
    font-weight: 700;
    color: #5a4438;
}
.tcf-sp-legal-list dd {
    margin: 0;
}

/* ── 商品状態の説明モーダル（中央オーバーレイ・本文のみスクロール） ── */
.tcf-sp-preservation-modal[hidden] {
    display: none !important;
}
.tcf-sp-preservation-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    box-sizing: border-box;
}
.tcf-sp-preservation-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(42, 22, 16, 0.5);
    touch-action: none;
    cursor: pointer;
}
.tcf-sp-preservation-modal-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    max-height: min(88vh, 680px);
    display: flex;
    flex-direction: column;
    min-height: 0;
    pointer-events: none;
}
.tcf-sp-preservation-modal-dialog {
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    max-height: min(88vh, 680px);
    min-height: 0;
    background: linear-gradient(180deg, #fffefb 0%, #f8f3ea 100%);
    border-radius: 16px;
    border: 1px solid rgba(232, 224, 213, 0.95);
    box-shadow: 0 20px 56px rgba(42, 22, 16, 0.22), 0 0 0 1px rgba(139, 46, 46, 0.06);
    overflow: hidden;
    /* モーダル内のみ読みやすいゴシック（商品ページ全体の明朝とは切り離す） */
    font-family: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
}
.tcf-sp-preservation-modal-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 12px 18px;
    border-bottom: 1px solid rgba(232, 224, 213, 0.9);
    background: rgba(255, 252, 248, 0.98);
}
.tcf-sp-preservation-modal-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #2a1610;
    line-height: 1.35;
    font-family: inherit;
    padding-right: 8px;
}
.tcf-sp-preservation-modal-close {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    margin: -6px -4px -6px 0;
    border: none;
    border-radius: 10px;
    background: rgba(127, 38, 41, 0.08);
    color: #7f2629;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}
.tcf-sp-preservation-modal-close:hover {
    background: rgba(127, 38, 41, 0.16);
    color: #5c1a1d;
}
.tcf-sp-preservation-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 14px 18px 16px;
}
.tcf-sp-preservation-help-section {
    margin: 0 0 16px;
}
.tcf-sp-preservation-help-section:last-of-type {
    margin-bottom: 12px;
}
.tcf-sp-preservation-help-heading {
    margin: 0 0 6px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #5a4438;
}
/* 冷蔵＝青系・冷凍＝水色で見出しを区別 */
.tcf-sp-preservation-help-section--ref .tcf-sp-preservation-help-heading {
    color: #1565c0;
}
.tcf-sp-preservation-help-section--frz .tcf-sp-preservation-help-heading {
    color: #0277bd;
}
.tcf-sp-preservation-help-section--thaw .tcf-sp-preservation-help-heading {
    color: #b56a12;
}
.tcf-sp-preservation-help-section p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.75;
    color: #3a2f28;
    font-family: inherit;
}
.tcf-sp-preservation-help-thaw {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(2, 119, 189, 0.22);
    background: rgba(2, 119, 189, 0.06);
    font-size: 0.88rem;
    line-height: 1.65;
    color: #2a241c;
    font-family: inherit;
}
.tcf-sp-preservation-help-notes {
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px dashed #e4d9cc;
    font-size: 0.86rem;
    line-height: 1.72;
    color: #4a3d34;
    font-family: inherit;
}
.tcf-sp-preservation-help-notes p {
    margin: 0 0 10px;
    font-size: inherit;
}
.tcf-sp-preservation-help-notes p:last-child {
    margin-bottom: 0;
}
.tcf-sp-preservation-modal-footer {
    flex: 0 0 auto;
    padding: 12px 18px 16px;
    border-top: 1px solid rgba(232, 224, 213, 0.85);
    background: rgba(255, 250, 245, 0.97);
}
.tcf-sp-preservation-modal-done {
    width: 100%;
    margin: 0;
    padding: 12px 16px;
    border: 1px solid rgba(127, 38, 41, 0.35);
    border-radius: 12px;
    background: linear-gradient(180deg, #8b2e2e, #722626);
    color: #faf9f7 !important;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    box-shadow: 0 4px 14px rgba(127, 38, 41, 0.25);
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
.tcf-sp-preservation-modal-done:hover {
    filter: brightness(1.05);
    box-shadow: 0 6px 18px rgba(127, 38, 41, 0.3);
}
.tcf-sp-preservation-modal-done:active {
    transform: translateY(1px);
}

/* 商品状態モーダル表示中は背後ページのスクロールを抑止（長文はモーダル内 .tcf-sp-preservation-modal-body でスクロール） */
body.tcf-preservation-modal-open {
    overflow: hidden;
}

/* 関連商品の見出し */
.related.products > h2 {
    font-size: 1.25rem;
    margin-top: 1.4rem;
}
body.single-product .woocommerce > .tcf-sp-description,
body.single-product .woocommerce > .related.products {
    display: block;
    width: 100%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    float: none;
    clear: both;
}
body.single-product .woocommerce-product-gallery .tcf-sp-description {
    margin-top: 0.9rem;
}

@media (max-width: 781px) {
    /* 商品詳細でもベントウメニューを開いたときはサイドメニューを表示 */
    body.single-product.tbt-context-shop.tbt-shop-toc-open .sidebar-wrap {
        display: flex !important;
    }
    /* 横はみ出し：グリッド子の min-width:auto を解消 */
    body.single-product #primary,
    body.single-product .site-main {
        max-width: 100% !important;
    }
    body.single-product .woocommerce {
        max-width: 100%;
        box-sizing: border-box;
    }
    body.single-product .woocommerce-breadcrumb {
        font-size: 0.8rem !important;
        line-height: 1.5 !important;
        margin: 0 0 0.45rem !important;
        padding: 0 2px;
        box-sizing: border-box;
        word-break: break-word;
    }
    body.single-product div.product {
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    body.single-product .woocommerce-product-gallery .tcf-sp-desktop-note-block,
    body.single-product .woocommerce-product-gallery .tcf-sp-desktop-cooking-block,
    body.single-product .woocommerce-product-gallery .tcf-sp-desktop-desc-block,
    body.single-product .woocommerce-product-gallery .tcf-sp-desktop-taste-map {
        display: none;
    }
    body.single-product .summary .tcf-sp-mobile-note-block,
    body.single-product .summary .tcf-sp-mobile-cooking-block,
    body.single-product .summary .tcf-sp-mobile-desc-block,
    body.single-product .summary .tcf-sp-mobile-taste-map {
        display: block;
    }
    body.single-product div.product .summary,
    body.single-product div.product .woocommerce-product-gallery {
        min-width: 0;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        padding: 12px 14px;
        border-radius: 12px;
        border: 1px solid rgba(170, 140, 112, 0.22);
        background: #fff;
        box-shadow: 0 2px 14px rgba(43, 29, 20, 0.06);
        overflow: hidden;
    }
    body.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper,
    body.single-product div.product .woocommerce-product-gallery .flex-viewport {
        max-width: 100% !important;
        box-sizing: border-box;
    }
    body.single-product div.product .woocommerce-product-gallery__image,
    body.single-product div.product .woocommerce-product-gallery__image img {
        max-width: 100% !important;
        height: auto !important;
    }
    body.single-product .product_title,
    body.single-product .summary .product_title {
        font-size: clamp(1.14rem, 4.6vw, 1.4rem) !important;
        margin-bottom: 0.5em !important;
        letter-spacing: 0.035em !important;
        line-height: 1.35 !important;
    }
    body.single-product .summary .cart {
        margin-top: 1em !important;
        margin-bottom: 1em !important;
        padding-top: 0.85em !important;
    }
    body.single-product .single_add_to_cart_button,
    body.single-product .summary .button.alt,
    body.single-product .summary button[type="submit"] {
        padding: 0.72em 1.15em !important;
        font-size: 0.92rem !important;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    body.single-product form.cart {
        gap: 10px;
        max-width: 100%;
    }
    body.single-product form.cart .quantity::before {
        font-size: 12px;
        margin-bottom: 5px;
        min-height: 17px;
        line-height: 17px;
    }
    body.single-product .tcf-sp-preservation .tcf-sp-select,
    body.single-product form.cart .quantity .qty {
        height: 44px !important;
        min-height: 44px !important;
        line-height: 44px !important;
        font-size: 16px !important;
        padding: 0 11px !important;
        max-width: 100%;
        box-sizing: border-box;
    }
    body.single-product .tcf-current-method-label[data-tcf-delivery-label] {
        font-size: 0.82rem;
        margin-bottom: 0.4em;
    }
    body.single-product .tcf-single-product-delivery-selector {
        margin: 0.4rem 0 0.55rem;
        max-width: 100%;
    }
    body.single-product .tcf-single-product-delivery-selector .dps-selector-container {
        padding: 10px 12px 11px;
        border-radius: 11px;
        background: #faf8f4;
        border: 1px solid rgba(127, 38, 41, 0.18);
        box-sizing: border-box;
    }
    body.single-product .tcf-single-product-delivery-selector .dps-selector-title {
        margin: 0 0 8px;
        font-size: 12px;
    }
    body.single-product .tcf-single-product-delivery-selector .dps-selector-btn {
        padding: 8px 10px;
        font-size: 0.82rem;
    }
    body.single-product .tcf-single-product-delivery-selector .dps-selector-buttons {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .tcf-sp-primary-info {
        margin: 0.1rem 0 0.6rem;
        padding: 0.1rem 0 0.45rem;
        max-width: 100%;
    }
    .tcf-sp-brand-line {
        font-size: 16px;
    }
    .tcf-sp-product-name {
        font-size: clamp(1.24rem, 4.9vw, 1.56rem);
        line-height: 1.24;
    }
    .tcf-sp-name-line {
        flex-wrap: wrap;
        gap: 6px;
        margin: 0 0 0.35rem;
    }
    .tcf-sp-weight-inline {
        font-size: 0.9rem;
    }
    .tcf-sp-price-main {
        font-size: 1.56rem;
    }
    .tcf-sp-tax-note,
    .tcf-sp-unit-inline {
        font-size: 0.84rem;
    }
    .tcf-sp-chip {
        padding: 4px 10px;
        font-size: 12px;
        white-space: nowrap;
    }
    .tcf-sp-price-line {
        flex-wrap: nowrap;
        gap: 6px 8px;
    }
    .tcf-sp-price-inner-wrap {
        flex-wrap: nowrap;
        white-space: nowrap;
    }
    body.single-product table.variations {
        margin: 0 0 0.55rem;
        max-width: 100%;
    }
    body.single-product table.variations th.label {
        font-size: 12px;
    }
    body.single-product table.variations select {
        min-height: 44px;
        padding: 9px 11px;
        font-size: 16px;
        border-radius: 8px;
        max-width: 100%;
        box-sizing: border-box;
    }
    .tcf-sp-preservation {
        margin: 0.45rem 0 0.5rem;
        max-width: 100%;
    }
    .tcf-sp-preservation-head {
        margin-bottom: 8px;
        gap: 6px 10px;
    }
    .tcf-sp-preservation-title {
        font-size: 14px;
    }
    .tcf-sp-preservation-hint {
        margin: 0 0 8px;
        font-size: 11px;
    }
    .tcf-sp-preservation-cards {
        gap: 8px;
    }
    .tcf-sp-preservation-card {
        padding: 11px 12px;
        font-size: 14px;
        border-radius: 9px;
        border-width: 1px;
    }
    .tcf-cooking-method-wrap {
        margin: 0.55rem 0 0.65rem;
        border-radius: 8px;
        border-color: rgba(170, 140, 112, 0.3);
        background: rgba(255, 255, 255, 0.9);
        max-width: 100%;
    }
    .tcf-cooking-method-heading {
        padding: 0.42em 0.7em;
        font-size: 0.78rem;
    }
    .tcf-cooking-method-content-inner {
        padding: 0.6em 0.75em 0.75em;
        font-size: 0.82rem;
        line-height: 1.65;
    }
    body.single-product .tcf-sp-qty-line-total-amount {
        font-size: 1.35rem;
    }
    body.single-product .tcf-sp-qty-price-row {
        max-width: 100%;
        gap: 12px;
    }
    body.single-product form.cart .tcf-sp-qty-price-row .quantity {
        max-width: 46%;
    }
    body.single-product form.cart.variations_form {
        margin-top: 0.45em;
        margin-bottom: 0.55em;
        padding-top: 0.45em;
    }
    body.single-product form.cart .woocommerce-variation-add-to-cart {
        gap: 7px;
        margin-top: 0.1rem;
    }
    .tcf-sp-description {
        margin: 0.5rem 0 0.2rem;
        padding: 0.75rem 0.85rem;
        border-radius: 10px;
        border-color: rgba(170, 140, 112, 0.22);
        background: #fffbf7;
        max-width: 100%;
        box-sizing: border-box;
    }
    .tcf-sp-description > h2 {
        margin: 0 0 6px;
        font-size: 13px;
    }
    .tcf-sp-description-body {
        font-size: 0.8rem;
        line-height: 1.62;
    }
    .tcf-sp-quick-note {
        margin: 0.65rem 0 0.3rem;
        padding: 0.65rem 0.75rem;
        border-radius: 10px;
        max-width: 100%;
        box-sizing: border-box;
    }
    .tcf-sp-quick-note > h2 {
        font-size: 13px;
        margin: 0 0 5px;
    }
    .tcf-sp-quick-note-body {
        font-size: 0.78rem;
        line-height: 1.58;
    }
    .tcf-sp-legal-wrap {
        margin-top: 0.55rem;
        padding-top: 0.6rem;
    }
    .tcf-sp-legal-btn {
        font-size: 0.82rem !important;
        padding: 0.5em 0.85em !important;
    }
    .tcf-sp-categories {
        gap: 5px;
        margin-bottom: 7px;
    }
    .tcf-sp-cat {
        font-size: 11px;
        padding: 4px 8px;
    }
    body.single-product .woocommerce div.product .woocommerce-tabs {
        margin-top: 0.85rem;
        max-width: 100%;
        min-width: 0;
    }
    body.single-product .woocommerce div.product .woocommerce-tabs ul.tabs {
        margin: 0 0 10px !important;
        padding: 4px !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 0 !important;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        list-style: none !important;
        border-radius: 11px;
        background: rgba(90, 72, 58, 0.06);
        border: 1px solid rgba(170, 140, 112, 0.22);
    }
    body.single-product .woocommerce div.product .woocommerce-tabs ul.tabs::before,
    body.single-product .woocommerce div.product .woocommerce-tabs ul.tabs::after {
        display: none !important;
        content: none !important;
    }
    body.single-product .woocommerce div.product .woocommerce-tabs ul.tabs li {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }
    body.single-product .woocommerce div.product .woocommerce-tabs ul.tabs li a {
        display: block !important;
        padding: 9px 6px !important;
        font-size: 0.78rem !important;
        line-height: 1.25 !important;
        border-radius: 8px !important;
        border: none !important;
        background: transparent !important;
        text-align: center !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    body.single-product .woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
        background: #fff !important;
        box-shadow: 0 1px 5px rgba(43, 29, 20, 0.08) !important;
        color: #7f2629 !important;
        font-weight: 700 !important;
    }
    body.single-product .woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel,
    body.single-product .woocommerce div.product .woocommerce-tabs .panel {
        padding: 12px 12px !important;
        font-size: 0.84rem !important;
        line-height: 1.65 !important;
        border-radius: 10px;
        border: 1px solid rgba(170, 140, 112, 0.18);
        background: #fff;
        max-width: 100%;
        box-sizing: border-box;
    }
    body.single-product .woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel h2,
    body.single-product .woocommerce div.product .woocommerce-tabs .panel h2 {
        font-size: 0.98rem !important;
        margin: 0 0 0.5em !important;
    }
    body.single-product .woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel table.shop_attributes th,
    body.single-product .woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel table.shop_attributes td {
        font-size: 0.78rem !important;
        padding: 0.4em 0.5em !important;
    }
    .related.products > h2 {
        font-size: 1.05rem;
        margin-top: 1rem;
    }
    .tcf-sp-preservation,
    body.single-product form.cart .tcf-sp-qty-price-row {
        width: 100%;
        flex-basis: 100%;
        max-width: 100%;
        margin-left: 0;
    }
    body.single-product form.cart .tcf-sp-qty-price-row .quantity {
        flex: 0 0 calc(50% - 6px);
        width: calc(50% - 6px);
        max-width: calc(50% - 6px);
        flex-basis: calc(50% - 6px);
    }
    .tcf-sp-legal-dialog {
        margin: 4vh 12px 0;
        max-width: none;
    }
    .tcf-sp-legal-list {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .tcf-sp-preservation-modal-shell {
        max-width: none;
        max-height: min(92vh, 720px);
    }
    .tcf-sp-preservation-modal-dialog {
        max-height: min(92vh, 720px);
    }
    .tcf-sp-sticky-cart {
        display: flex !important;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 80;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.96);
        border-top: 1px solid rgba(170, 140, 112, 0.35);
        box-shadow: 0 -8px 24px rgba(43, 29, 20, 0.12);
    }
    .tcf-sp-sticky-cart[hidden] {
        display: none !important;
    }
    body.single-product.tcf-has-sticky-cart {
        padding-bottom: 88px;
    }
    .tcf-sp-sticky-cart-info {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
        font-size: 12px;
        line-height: 1.35;
        color: #2a1610;
    }
    .tcf-sp-sticky-cart-price {
        font-weight: 800;
        color: #8b2e2e;
        font-size: 15px;
    }
    .tcf-sp-sticky-cart-btn {
        flex: 0 0 auto;
        background: #8b2e2e;
        color: #fff;
        border: 0;
        border-radius: 8px;
        padding: 10px 14px;
        font-weight: 800;
        font-size: 13px;
    }
}

.tcf-sp-delivery-estimate {
    margin: 0.65rem 0 0.2rem;
    padding: 10px 12px;
    border: 1px solid rgba(170, 140, 112, 0.28);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    font-size: 0.84rem;
    line-height: 1.55;
    color: #3a2a22;
}
.tcf-sp-delivery-estimate-title {
    margin: 0 0 4px;
    font-weight: 800;
}
.tcf-sp-delivery-estimate p {
    margin: 0;
}
.tcf-sp-preservation-lead {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.55;
    color: #6a5e54;
}
.tcf-sp-variation-note,
.tcf-sp-stock-note,
.tcf-sp-variation-hint {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.5;
}
.tcf-sp-variation-note {
    font-weight: 700;
    color: #2a1610;
}
.tcf-sp-stock-note {
    color: #8b2e2e;
}
.tcf-sp-variation-hint {
    color: #6a5e54;
}
/* 関連商品：Amazon風の横スクロールレール（商品情報の下・全幅） */
.tcf-sp-related-rails {
    margin: 1.35rem 0 0.4rem;
    padding: 0;
    clear: both;
    max-width: none;
}
body.single-product .tcf-sp-related-rail.related.products {
    max-width: none;
    margin: 0;
}
.tcf-sp-related-rail {
    margin: 0;
    padding: 0.95rem 0 0.2rem;
    border-top: 1px solid rgba(170, 140, 112, 0.28);
    background: transparent;
}
.tcf-sp-related-rail + .tcf-sp-related-rail {
    margin-top: 0.15rem;
}
.tcf-sp-related-rail > h2 {
    font-family: var(--tcf-font-serif, 'Noto Serif JP', serif);
    font-size: 1.08rem;
    font-weight: 700;
    color: #2a1610;
    letter-spacing: 0.04em;
    margin: 0 0 0.7rem;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.single-product .tcf-sp-related-rail ul.products {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 2px 2px 12px;
    margin: 0 !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    scrollbar-width: thin;
}
body.single-product .tcf-sp-related-rail ul.products li.product {
    flex: 0 0 176px !important;
    width: 176px !important;
    min-width: 176px !important;
    max-width: 176px !important;
    margin: 0 !important;
    float: none !important;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid rgba(170, 140, 112, 0.28);
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(43, 29, 20, 0.06);
    box-sizing: border-box;
}
body.single-product .tcf-sp-related-rail ul.products li.product img.attachment-woocommerce_thumbnail,
body.single-product .tcf-sp-related-rail ul.products li.product img.wp-post-image {
    width: 100%;
    aspect-ratio: 1;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}
body.single-product .tcf-sp-related-rail ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.82rem !important;
    line-height: 1.35 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
    margin: 0.35rem 0 0.15rem !important;
}
body.single-product .tcf-sp-related-rail ul.products li.product .price {
    font-size: 0.86rem !important;
    line-height: 1.25 !important;
}
body.single-product .tcf-sp-related-rail ul.products li.product .tcf-loop-weight-inline {
    margin-left: 6px !important;
    font-size: 0.76rem !important;
    line-height: 1.2 !important;
    white-space: nowrap;
}
body.single-product .tcf-sp-related-rail ul.products li.product .button,
body.single-product .tcf-sp-related-rail ul.products li.product a.button {
    display: none !important;
}
@media (max-width: 781px) {
    .tcf-sp-related-rails {
        margin-top: 0.85rem;
    }
    .tcf-sp-related-rail {
        padding-top: 0.75rem;
    }
    .tcf-sp-related-rail > h2 {
        font-size: 0.95rem;
        margin-bottom: 0.55rem;
    }
    body.single-product .tcf-sp-related-rail ul.products {
        gap: 8px;
        padding-bottom: 8px;
    }
    body.single-product .tcf-sp-related-rail ul.products li.product {
        flex: 0 0 148px !important;
        width: 148px !important;
        min-width: 148px !important;
        max-width: 148px !important;
        padding: 6px;
        border-radius: 9px;
    }
    body.single-product .tcf-sp-related-rail ul.products li.product .woocommerce-loop-product__title {
        font-size: 0.78rem !important;
        min-height: 2.5em;
    }
    body.single-product .tcf-sp-related-rail ul.products li.product .price {
        font-size: 0.82rem !important;
    }
}
.tcf-sp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(20, 12, 8, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
}
.tcf-sp-lightbox[hidden] {
    display: none !important;
}
.tcf-sp-lightbox-img {
    max-width: min(92vw, 1100px);
    max-height: 86vh;
    object-fit: contain;
}
.tcf-sp-lightbox-close,
.tcf-sp-lightbox-prev,
.tcf-sp-lightbox-next {
    position: absolute;
    border: 0;
    background: rgba(255,255,255,0.14);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    cursor: pointer;
}
.tcf-sp-lightbox-close {
    top: 16px;
    right: 16px;
}
.tcf-sp-lightbox-prev {
    left: 12px;
}
.tcf-sp-lightbox-next {
    right: 12px;
}
.tcf-sp-shipping-notice {
    margin: 0.75rem 0 0;
    padding: 0.7rem 0.85rem;
    border: 1px solid rgba(184, 139, 70, 0.45);
    background: var(--tbt-washi-cream, #F8F4ED);
    color: var(--tbt-shouzumi, #3F3F3F);
    font-size: 0.88rem;
    line-height: 1.65;
}
.tcf-sp-shipping-notice p {
    margin: 0;
}
.tcf-sp-shipping-notice p + p {
    margin-top: 0.35rem;
}
.tcf-sp-shipping-notice[hidden] {
    display: none !important;
}

.tcf-sp-sticky-cart {
    display: none !important;
}
@media (max-width: 781px) {
    .tcf-sp-sticky-cart {
        display: flex !important;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 80;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.96);
        border-top: 1px solid rgba(170, 140, 112, 0.35);
        box-shadow: 0 -8px 24px rgba(43, 29, 20, 0.12);
    }
    .tcf-sp-sticky-cart[hidden] {
        display: none !important;
    }
    body.single-product.tcf-has-sticky-cart {
        padding-bottom: 88px;
    }
}
