/* EC ショップ — 白黒・左サイドバー（Oswald / Noto Sans JP） */
:root {
    --shop-bg: #ffffff;
    --shop-text: #000000;
    --shop-muted: #555555;
    --shop-accent: #000000;
    --shop-accent-dark: #000000;
    --shop-line: rgba(0, 0, 0, 0.12);
    --shop-card: #fff;
    /* スマホのオーバーレイ幅 / PC は固定幅 */
    --shop-sidebar-drawer-w: min(88vw, 280px);
    --shop-sidebar-w-desktop: 240px;
    --shop-font-display: "Oswald", sans-serif;
    --shop-font-body: "Noto Sans JP", sans-serif;
    --shop-yellow: #ffff00;
}

/* スマホの固定ヘッダー分、ページ内リンク・スクロール時に見出しが隠れないよう余白 */
@media (max-width: 991.98px) {
    .shop-body {
        scroll-padding-top: calc(3.5rem + env(safe-area-inset-top, 0px));
    }
}

.shop-body {
    margin: 0;
    font-family: var(--shop-font-body);
    font-weight: 700;
    color: var(--shop-text);
    background: var(--shop-bg);
    line-height: 1.6;
    font-size: 14px;
    /* 縦スクロールバー分だけ右側が狭く見えるのを抑える */
    scrollbar-gutter: stable;
}

.shop-font-display {
    font-family: var(--shop-font-display);
    font-weight: 500;
    letter-spacing: 0.06em;
}

.shop-font-body {
    font-family: var(--shop-font-body);
    font-weight: 700;
}

.shop-app {
    width: 100%;
}

.shop-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: var(--shop-sidebar-drawer-w);
    min-height: 100vh;
    min-height: 100dvh;
    background: #000;
    color: #fff;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.shop-sidebar.is-open {
    transform: translateX(0);
}

@media (min-width: 992px) {
    .shop-sidebar {
        position: sticky;
        top: 0;
        align-self: flex-start;
        flex: 0 0 var(--shop-sidebar-w-desktop);
        width: var(--shop-sidebar-w-desktop);
        max-width: var(--shop-sidebar-w-desktop);
        min-width: 0;
        min-height: 100vh;
        min-height: 100dvh;
        transform: none;
    }
}

.shop-sidebar__inner {
    min-height: 100%;
}

.shop-sidebar__logo {
    display: block;
    text-align: center;
    padding: 1.5rem 0.5rem 1rem;
}

/* ロゴは SVG 想定 150×70（黒背景用の明るい色）。PNG が暗い場合は .shop-sidebar__logo-img--invert を付与 */
.shop-sidebar__logo-img {
    width: 150px;
    height: 70px;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: none;
}

.shop-sidebar__logo-img--invert {
    filter: brightness(0) invert(1);
}

.shop-sidebar__logo-text {
    font-size: 1.75rem;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

/* 見本: 細い白円線の中にアイコン */
.shop-sidebar__icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.45rem 0.4rem;
    padding: 0.25rem 0.35rem 1.35rem;
}

.shop-sidebar__icon-ring {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.92);
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    line-height: 1;
    background: transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    box-sizing: border-box;
}

a.shop-sidebar__icon-ring:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: #fff;
}

.shop-sidebar__icon-ring--muted {
    opacity: 0.42;
    pointer-events: none;
    cursor: default;
}

.shop-sidebar__icon-ring--cart {
    position: relative;
}

.shop-sidebar__cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 1.125rem;
    height: 1.125rem;
    padding: 0 4px;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.125rem;
    text-align: center;
    background: var(--shop-yellow);
    color: #000;
    border-radius: 999px;
    font-family: var(--shop-font-body);
    box-sizing: border-box;
    border: 1px solid #000;
}

.shop-mobile-cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 4px;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.1rem;
    text-align: center;
    background: var(--shop-yellow);
    color: #000;
    border-radius: 999px;
    font-family: var(--shop-font-body);
}

.shop-sidebar__nav {
    text-align: left;
    --shop-sidebar-nav-gutter: 1rem;
    padding-left: var(--shop-sidebar-nav-gutter);
    padding-right: var(--shop-sidebar-nav-gutter);
}

.shop-sidebar__nav a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 0.4rem 0;
    font-family: var(--shop-font-body);
    font-weight: 700;
    font-size: 0.8125rem;
    line-height: 1.45;
    letter-spacing: 0.02em;
}

.shop-sidebar__nav a:hover,
.shop-sidebar__nav a.is-active {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.shop-sidebar__cat li {
    margin: 0;
}

/* 中央の inline-block 内で CATEGORY をセンター。GUIDE/OTHER は同じ幅の 100% を基準に C の字下げを再現 */
.shop-sidebar__category-wrap {
    text-align: center;
    margin-bottom: 0;
    width: 100%;
}

.shop-sidebar__category-inner {
    display: inline-block;
    text-align: left;
    vertical-align: top;
    max-width: 100%;
    /* 「CATEGORY」（Oswald・clamp・letter-spacing 0.16em）の実幅に近い値 — ずれたらここだけ調整 */
    --shop-sidebar-category-label-width: 10.25rem;
}

.shop-sidebar__category-inner .shop-sidebar__section-title--category {
    text-align: center;
    width: 100%;
}

.shop-sidebar__section-title {
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
}

.shop-sidebar__section-title--category {
    font-family: var(--shop-font-display);
    font-weight: 500;
    font-size: clamp(1.1rem, 2.8vw, 1.45rem);
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 0.35rem;
    margin-bottom: 1.1rem;
}

/* 100% = .category-inner の幅（カテゴリ一覧と同じ箱）。CATEGORY 中央時の「C」の左位置と一致させる */
.shop-sidebar__category-inner .shop-sidebar__section-title--sub {
    margin-top: var(--shop-sidebar-nav-gutter, 1rem);
    margin-bottom: 0.55rem;
    margin-left: 0;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding-left: max(0px, calc((100% - var(--shop-sidebar-category-label-width)) / 2));
    text-align: left;
    font-family: var(--shop-font-display);
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.shop-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1030;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s;
}

.shop-sidebar-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.shop-main-col {
    min-width: 0;
    flex: 1 1 0%; /* サイドバー以外の列がビュー幅の残りを必ず使う（子の min-content で狭まらない） */
}

/* lg 未満: 固定ドロワーの sidebar が flex 子として幅を占有し、メインが右に大きな余白だけ残る現象を防ぐ */
@media (max-width: 991.98px) {
    .shop-app.d-flex {
        display: block !important;
    }

    .shop-main-col {
        width: 100%;
        max-width: 100%;
    }
}

.shop-mobile-bar {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: #fff;
    /* ノッチ機種でヘッダーが画面端に張り付く */
    padding-top: max(0.35rem, env(safe-area-inset-top, 0px));
}

.shop-sidebar-toggle {
    border: none;
    text-decoration: none;
}

.shop-page {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 50vh;
    padding-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.shop-page > .shop-detail,
.shop-page > h1.shop-page-title {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(1rem, 4vw, 1.75rem);
    padding-right: clamp(1rem, 4vw, 1.75rem);
    box-sizing: border-box;
}

.shop-page > .shop-detail {
    --shop-detail-pad-x: clamp(0.9rem, 3.25vw, 1.55rem);
    padding-top: clamp(1.25rem, 4vw, 2.5rem);
    /* 左右は必ず同じ値（インライン一括）。全体を従来よりほんの少しだけ詰める */
    padding-inline: var(--shop-detail-pad-x);
}

.shop-page > h1.shop-page-title {
    padding-top: 1.25rem;
}

.shop-page > p,
.shop-page > form {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(1rem, 4vw, 1.75rem);
    padding-right: clamp(1rem, 4vw, 1.75rem);
    box-sizing: border-box;
}

.shop-page > .shop-checkout-grid,
.shop-page > .shop-thanks,
.shop-page > .shop-paidy-placeholder {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(1rem, 4vw, 1.75rem);
    padding-right: clamp(1rem, 4vw, 1.75rem);
    box-sizing: border-box;
    width: 100%;
}

.shop-index-main > .shop-cart-layout {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
}

/*
 * TOP スライダー: 横幅 100%、高さは画像のアスペクト比に任せる（トリミングしない）
 */
/* トップ: フル幅ヒーロー〜クイックリンク（メイン列いっぱいに広げる） */
.shop-hero-carousel {
    position: relative;
    width: 100%;
    max-width: none;
    align-self: stretch;
    background: #000;
    /* オーバーレイのテキストが画像上に収まらないときに上方向へ切れないよう、単体/空は可視に */
    overflow: visible;
}

/* Bootstrap カルーセルは横スライド用に子でクリップ（外側ははみ出し防止のためそのまま） */
.shop-hero-carousel.carousel {
    overflow: hidden;
}

/* 1枚のみ: Bootstrap カルーセル未使用（スワイプ・自動送りなし）。画像は .shop-hero-carousel__img 共通スタイル */

.shop-hero-carousel--empty {
    min-height: 200px;
}

/* difference ブレンドの「背後」をスライド画像に限定する（外だと #000 背景と差分され白が消える） */
.shop-hero-carousel__stage {
    position: relative;
    isolation: isolate;
    width: 100%;
    overflow: visible;
}

.shop-hero-carousel--empty .shop-hero-carousel__stage {
    min-height: 200px;
}

.shop-hero-carousel.carousel {
    width: 100%;
}

.shop-hero-carousel .carousel-inner {
    position: relative;
    isolation: isolate;
    width: 100%;
    height: auto;
    /* スライドの見切れ用。オーバーレイは兄弟要素のため、テキストは下のルールで内側に収める */
    overflow: hidden;
}

.shop-hero-carousel .carousel-item {
    width: 100%;
    height: auto;
}

.shop-hero-carousel__item {
    height: auto;
}

.shop-hero-carousel__link {
    height: auto;
    display: block;
}

.shop-hero-carousel__img {
    width: 100%;
    height: auto;
    display: block;
    /* 写真を独立レイヤーにして、その上の mix-blend がピクセルと合成されやすくする */
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* キッカー: 白 + difference。領域は画像内に収め、はみ出す場合はこの枠内でスクロール */
.shop-hero-carousel__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    box-sizing: border-box;
    padding: clamp(0.65rem, 3vw, 1.75rem);
    padding-bottom: clamp(0.85rem, 2.5vw, 1.75rem);
    max-height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 10;
    color: #fff;
    mix-blend-mode: difference;
}

.shop-hero-carousel--multi .shop-hero-carousel__overlay {
    /* インジケーターと被らないよう下余白 */
    padding-bottom: clamp(2.25rem, 5vw, 3.75rem);
}

.shop-hero-carousel__hero-title {
    margin: 0;
    font-family: var(--shop-font-display);
    /* 旧: min 6.75rem で狭い幅で画面外に必ずはみ出していた → vw/vmin で画面内に収める */
    font-size: clamp(1.35rem, min(12vw, 18vmin), 10.5rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: 0.06em;
    color: inherit;
    mix-blend-mode: normal;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.shop-hero-carousel__hero-lead {
    margin: clamp(0.65rem, 2.5vw, 1.25rem) 0 0;
    font-family: var(--shop-font-body, inherit);
    font-size: clamp(0.8125rem, min(3.8vw, 2.8vmin), 1.9rem);
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: 0.04em;
    color: inherit;
    mix-blend-mode: normal;
    max-width: min(36em, 100%);
    word-break: break-word;
    overflow-wrap: anywhere;
}

.shop-hero-carousel__fallback {
    width: 100%;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: clamp(2rem, 8vw, 3.5rem);
    letter-spacing: 0.12em;
}

.shop-hero-carousel__indicators {
    margin-bottom: 0.75rem;
}

.shop-hero-carousel__indicators [data-bs-target] {
    width: 28px;
    height: 3px;
    border: none;
    border-radius: 0;
    background-color: rgba(255, 255, 255, 0.35);
}

.shop-hero-carousel__indicators .active {
    background-color: #fff;
}

.shop-hero-carousel__ctrl {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    top: 50%;
    transform: translateY(-50%);
}

.shop-hero-carousel .carousel-control-prev {
    left: 12px;
}

.shop-hero-carousel .carousel-control-next {
    right: 12px;
}

.shop-strip {
    width: 100%;
    max-width: none;
    align-self: stretch;
    background: #000;
    letter-spacing: 0.2em;
}

.shop-quad-nav {
    background: #000;
    width: 100%;
    max-width: none;
    align-self: stretch;
}

.shop-quad-nav__cell {
    flex: 1 1 50%;
    box-sizing: border-box;
    padding: 1.35rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    margin: 0 0 -1px -1px;
    font-size: clamp(0.75rem, 2.5vw, 0.95rem);
    letter-spacing: 0.08em;
    transition: background 0.15s ease;
}

.shop-quad-nav__cell:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff !important;
}

@media (min-width: 992px) {
    .shop-quad-nav__cell {
        flex: 1 1 25%;
    }
}

/* トップ：テキストニュース（右→左スクロール） */
.shop-ticker {
    background: #000;
    color: #fff;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.shop-ticker__viewport {
    overflow: hidden;
}

.shop-ticker__marquee {
    display: flex;
    width: max-content;
    animation: shop-ticker-marquee 50s linear infinite;
}

.shop-ticker__group {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    padding: 0.55rem 0;
    font-size: clamp(0.7rem, 2vw, 0.82rem);
    letter-spacing: 0.06em;
}

.shop-ticker__link {
    color: #fff;
    text-decoration: none;
}

.shop-ticker__link:hover {
    color: #fff;
    text-decoration: underline;
}

.shop-ticker__text {
    color: #fff;
}

.shop-ticker__sep {
    opacity: 0.88;
    user-select: none;
}

@keyframes shop-ticker-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .shop-ticker__marquee {
        animation: none;
        width: 100%;
        max-width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 0.25rem;
    }

    .shop-ticker__group[aria-hidden="true"] {
        display: none !important;
    }

    .shop-ticker__group {
        white-space: normal;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
}

.shop-section-title {
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    letter-spacing: 0.14em;
}

.shop-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    list-style: none;
    padding: 0;
    color: var(--shop-muted);
}

.shop-breadcrumb__item:not(:last-child)::after {
    content: "/";
    margin-left: 0.5rem;
    color: var(--shop-line);
    pointer-events: none;
}

.shop-breadcrumb__link {
    color: var(--shop-text);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.shop-breadcrumb__link:hover {
    color: #000;
}

.shop-breadcrumb__item--current {
    color: var(--shop-text);
    font-weight: 700;
}

.shop-category-page-title {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    letter-spacing: 0.12em;
}

.shop-cat-feature__title {
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    letter-spacing: 0.12em;
    border-bottom: 1px solid var(--shop-line);
    padding-bottom: 0.5rem;
}

.shop-cat-feature__title--main {
    margin-top: 0.5rem;
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
}

.shop-filter-pill {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--shop-line);
    color: var(--shop-text);
    text-decoration: none;
    font-size: 0.8rem;
    transition: background 0.15s, color 0.15s;
}

.shop-filter-pill:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.shop-filter-pill.is-active {
    background: #000;
    color: #fff;
    border-color: #000;
}

.shop-filter-accordion .accordion-button {
    background: #fff;
    color: #000;
    box-shadow: none;
}

.shop-filter-accordion .accordion-button:not(.collapsed) {
    background: #f5f5f5;
    color: #000;
}

.shop-filter-open-btn {
    letter-spacing: 0.08em;
    border-radius: 0;
}

.shop-filter-open-btn__badge {
    display: inline-block;
    min-width: 1.25rem;
    padding: 0.1rem 0.35rem;
    margin-left: 0.15rem;
    font-size: 0.65rem;
    line-height: 1.2;
    vertical-align: 0.08em;
    background: #fff;
    color: #000;
}

.shop-filter-offcanvas {
    --bs-offcanvas-width: min(100vw - 1rem, 520px);
}

@media (min-width: 576px) {
    .shop-filter-offcanvas {
        --bs-offcanvas-width: min(560px, 92vw);
    }
}

.shop-filter-offcanvas .offcanvas-header {
    background: #fff;
}

.shop-filter-offcanvas .offcanvas-title {
    letter-spacing: 0.1em;
}

.shop-filter-offcanvas .offcanvas-body {
    container-type: inline-size;
    container-name: shopfilter;
}

.shop-filter-groups--panel {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

@container shopfilter (min-width: 420px) {
    .shop-filter-groups--panel {
        flex-direction: row;
        align-items: flex-start;
        gap: 2rem;
    }

    .shop-filter-groups--panel > .shop-filter-groups__col {
        flex: 1 1 0;
        min-width: 0;
    }
}

.shop-card--bw .shop-card__img-wrap--square {
    aspect-ratio: 1 / 1;
    border-radius: 0;
    background: #fafafa;
}

.shop-card--bw .shop-card__placeholder {
    background: #f0f0f0;
}

.shop-card--bw .shop-card__name {
    font-size: 0.82rem;
    line-height: 1.45;
}

.shop-card__fav {
    font-size: 0.85rem;
    opacity: 0.45;
    pointer-events: none;
}

.shop-line-float {
    position: fixed;
    right: 16px;
    bottom: 20px;
    z-index: 1050;
    background: #000;
    border-radius: 999px;
    padding: 0.65rem 1rem 0.65rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    max-width: calc(100vw - 32px);
}

.shop-line-float:hover {
    color: #fff !important;
    filter: brightness(1.08);
}

.shop-line-float__icon {
    display: inline-flex;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: #06c755;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.shop-header {
    background: rgba(249, 248, 245, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--shop-line);
    position: sticky;
    top: 0;
    z-index: 100;
}

.shop-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shop-header__brand {
    font-weight: 700;
    letter-spacing: 0.2em;
    text-decoration: none;
    color: var(--shop-text);
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    max-width: min(220px, 55vw);
}

.shop-header__brand-text {
    letter-spacing: 0.2em;
}

.shop-header__logo {
    display: block;
    max-height: 2.25rem;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.shop-header__nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.shop-header__nav a {
    color: var(--shop-muted);
    text-decoration: none;
    font-size: 0.88rem;
    letter-spacing: 0.06em;
}

.shop-header__nav a:hover {
    color: var(--shop-accent-dark);
}

.shop-header__badge {
    display: inline-block;
    min-width: 1.25rem;
    padding: 0 0.35rem;
    margin-left: 0.25rem;
    background: var(--shop-accent);
    color: #fff;
    border-radius: 999px;
    font-size: 0.7rem;
    vertical-align: middle;
    text-align: center;
}

/* フッター：左ロゴ / 右 SNS＋メニュー / 下 大型コピーライト */
.shop-footer--split {
    background: #fff;
    border-top: 1px solid var(--shop-line);
    color: var(--shop-text);
    font-size: 0.8125rem;
    padding: 2.5rem 1.25rem 2rem;
}

.shop-footer--split .shop-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.shop-footer__grid {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 2rem clamp(1.5rem, 4vw, 4rem);
}

.shop-footer__col--brand {
    min-width: 0;
    justify-self: start;
    text-align: left;
}

.shop-footer__col--meta {
    min-width: 0;
    max-width: 100%;
}

@media (min-width: 768px) {
    .shop-footer__col--meta {
        justify-self: end;
        text-align: right;
    }
}

.shop-footer__brand-link {
    display: inline-block;
    text-decoration: none;
}

.shop-footer__logo-main {
    display: block;
    height: 120px;
    width: auto;
    max-width: min(100%, 85vw);
    object-fit: contain;
    object-position: left center;
}

.shop-footer__brand-fallback {
    display: inline-block;
    font-size: clamp(1.35rem, 3.5vw, 2rem);
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--shop-text);
    text-decoration: none;
    line-height: 1.1;
    max-width: 12rem;
}

.shop-footer__brand-fallback:hover {
    color: var(--shop-text);
    opacity: 0.8;
}

.shop-footer__sns-icons {
    gap: 0.75rem 1.1rem;
    margin-bottom: 1rem !important;
}

.shop-footer__sns-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    font-size: 1.35rem;
    color: #000;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.shop-footer__sns-icon-link:hover {
    color: #000;
    opacity: 0.65;
}

.shop-footer__menus {
    line-height: 1.65;
}

.shop-footer__menu-row {
    margin-bottom: 0.2rem;
}

.shop-footer__menu-row:last-child {
    margin-bottom: 0;
}

.shop-footer__menu-sep {
    color: rgba(0, 0, 0, 0.35);
    margin: 0 0.35rem;
    font-weight: 300;
}

.shop-footer__menu-link {
    color: var(--shop-text);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
}

.shop-footer__menu-link:hover {
    color: var(--shop-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.shop-footer__menu-link--muted {
    color: var(--shop-muted);
    text-decoration: none;
    cursor: default;
}

.shop-footer__copyright {
    margin: 2.75rem 0 0;
    padding-top: 2.25rem;
    border-top: 1px solid var(--shop-line);
    text-align: center;
    font-size: clamp(1.35rem, 4.2vw, 2.65rem);
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.2;
    color: #000;
}

@media (max-width: 767.98px) {
    .shop-footer__grid {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .shop-footer__col--meta {
        order: 1;
        width: 100%;
        justify-self: center;
        text-align: center;
    }

    .shop-footer__col--brand {
        order: 2;
        justify-self: center;
        text-align: center;
    }

    .shop-footer__logo-main {
        object-position: center center;
        margin-left: auto;
        margin-right: auto;
    }

    .shop-footer__sns-icons {
        justify-content: center !important;
    }

    .shop-footer__menus {
        text-align: center;
    }
}

.shop-hero {
    padding: 2.5rem 0 2rem;
    text-align: center;
    border-bottom: 1px solid var(--shop-line);
    margin-bottom: 2rem;
}

.shop-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 500;
    letter-spacing: 0.25em;
    margin: 0 0 0.5rem;
}

.shop-hero__lead {
    color: var(--shop-muted);
    margin: 0 0 1.5rem;
    font-size: 0.92rem;
}

.shop-search {
    display: flex;
    max-width: 420px;
    margin: 0 auto;
    gap: 0.5rem;
    border-bottom: 1px solid var(--shop-line);
    padding-bottom: 0.25rem;
}

.shop-search__input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0.5rem 0;
}

.shop-search__input:focus {
    outline: none;
}

.shop-search__btn {
    border: none;
    background: transparent;
    color: var(--shop-accent-dark);
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
}

.shop-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 900px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }
    .shop-filters {
        position: static;
    }
}

.shop-filters {
    position: sticky;
    top: 5rem;
    font-size: 0.88rem;
}

.shop-filters__heading {
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--shop-muted);
    margin: 1.5rem 0 0.6rem;
    font-weight: 500;
}

.shop-filters__heading:first-child {
    margin-top: 0;
}

.shop-filters__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.shop-filters__list a {
    display: block;
    padding: 0.35rem 0;
    color: var(--shop-text);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.shop-filters__list a:hover,
.shop-filters__list a.is-active {
    color: var(--shop-accent-dark);
    border-bottom-color: var(--shop-accent);
}

.shop-color-form {
    margin-top: 0.5rem;
}

.shop-color-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
}

.shop-color-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    font-size: 0.82rem;
}

.shop-color-chip input {
    margin: 0;
}

.shop-color-chip__swatch {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: var(--swatch, #ccc);
    display: inline-block;
}

.shop-color-chip__swatch--lg {
    width: 22px;
    height: 22px;
}

.shop-result-count {
    color: var(--shop-muted);
    font-size: 0.85rem;
    margin: 0 0 1.25rem;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.75rem 1.25rem;
}

.shop-card__link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.shop-card__img-wrap {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #ece8e4;
    margin-bottom: 0.75rem;
    border-radius: 2px;
}

.shop-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.35s ease;
}

.shop-card__link:hover .shop-card__img,
.shop-card__media-link:hover .shop-card__img {
    transform: scale(1.03);
}

.shop-card__title-link:hover .shop-card__name {
    text-decoration: underline;
}

.shop-card__actions .btn {
    border-radius: 2px;
}

.shop-card__stockout {
    padding: 0.35rem 0;
}

.shop-cart-flash {
    border-radius: 2px;
    border: 1px solid rgba(25, 135, 84, 0.35);
}

.shop-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #e8e4df, #f2eeea);
}

.shop-card__name {
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0 0 0.35rem;
    line-height: 1.4;
}

.shop-card__price {
    font-size: 0.88rem;
}

.shop-card__compare {
    text-decoration: line-through;
    color: var(--shop-muted);
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

.shop-card__now {
    font-weight: 700;
    color: #000;
}

.shop-card__tax-inline {
    font-size: 0.72rem;
    margin-left: 0.2rem;
    color: var(--shop-muted);
    font-weight: 400;
}

.shop-time-sale-badge {
    display: inline-block;
    background: var(--shop-yellow);
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.12rem 0.4rem;
    border-radius: 2px;
    margin-right: 0.3rem;
    letter-spacing: 0.04em;
    vertical-align: middle;
    font-family: var(--shop-font-body);
}

.shop-time-sale-pct {
    color: #000;
    font-weight: 700;
    font-size: 0.92rem;
    margin-right: 0.35rem;
    vertical-align: middle;
}

.shop-price-ref {
    font-size: 0.76rem;
    color: var(--shop-muted);
    margin: 0.3rem 0 0;
    line-height: 1.35;
}

.shop-price-ref__num {
    text-decoration: line-through;
    color: var(--shop-muted);
}

.shop-detail__price-sale-row {
    margin-bottom: 0.4rem;
}

.shop-detail__price-main {
    margin-bottom: 0.15rem;
}

.shop-detail__price-now {
    font-size: 1.45rem;
}

.shop-price-ref--detail {
    font-size: 0.84rem;
    margin-top: 0.35rem;
}

.shop-empty {
    text-align: center;
    color: var(--shop-muted);
    padding: 3rem 1rem;
}

.shop-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.shop-pager__link {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.shop-page-title {
    font-family: var(--shop-font-display);
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 0 1.5rem;
}

.shop-detail__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
    width: 100%;
    min-width: 0;
}

.shop-detail__gallery {
    grid-column: 1;
    grid-row: 1;
}

.shop-detail__info {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}

/* 商品情報（価格・カート等）を左の長いコンテンツ閲覧中も見えるよう追従 */
@media (min-width: 992px) {
    .shop-detail__info {
        position: sticky;
        top: 1rem;
        align-self: start;
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        /* 左列のコンテンツより手前に描画（重なり対策） */
        z-index: 2;
        background: var(--shop-bg);
    }
}

.shop-detail__desc-html {
    grid-column: 1;
    grid-row: 2;
}

/* 左列のみ（写真・説明と同じ幅）。全幅化すると sticky の右列と重なるため 1 / -1 にしない */
.shop-detail__coordinates {
    grid-column: 1;
    grid-row: 3;
    margin-top: 0.25rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--shop-line);
    min-width: 0;
    box-sizing: border-box;
}

.shop-detail__coord-heading {
    font-size: 1rem;
    margin: 0 0 1.25rem;
    letter-spacing: 0.12em;
}

/* 横スワイプ（scroll-snap）。キーボード操作用にフォーカス可能 */
.shop-detail__coord-viewport {
    outline: none;
}

.shop-detail__coord-viewport:focus-visible {
    box-shadow: inset 0 0 0 2px var(--shop-accent, #000);
}

/* バーは出さず、スワイプ／ドラッグ／トラックパッドで操作 */
.shop-detail__coord-scroller {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    box-sizing: border-box;
    cursor: grab;
}

.shop-detail__coord-scroller.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    user-select: none;
}

.shop-detail__coord-scroller::-webkit-scrollbar {
    display: none;
}

.shop-detail__coord-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    box-sizing: border-box;
    padding-bottom: 0.25rem;
}

.shop-detail__coord-figure {
    margin: 0 0 0.75rem;
    line-height: 0;
}

.shop-detail__coord-img {
    width: 100%;
    max-width: none;
    height: auto;
    display: block;
    border-radius: 2px;
    /* タッチが画像に吸われて横スクロールできない端末対策 */
    pointer-events: none;
    user-select: none;
}

.shop-detail__coord-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    font-family: var(--shop-font-body);
}

.shop-detail__coord-body {
    font-size: 0.9rem;
    color: var(--shop-muted);
    line-height: 1.65;
}

@media (max-width: 991.98px) {
    .shop-page > .shop-detail {
        width: 100%;
        max-width: 100%;
    }

    .shop-detail__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .shop-detail__gallery {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        justify-self: stretch;
    }

    .shop-detail__info {
        grid-column: 1;
        grid-row: 2;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        justify-self: stretch;
    }

    .shop-detail__desc-html {
        grid-column: 1;
        grid-row: 3;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        justify-self: stretch;
    }

    .shop-detail__coordinates {
        grid-column: 1;
        grid-row: 4;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        justify-self: stretch;
    }

    .shop-detail__coord-viewport,
    .shop-detail__coord-scroller {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    /* iOS で横スクロールが効きにくい場合向け */
    .shop-detail__coord-scroller {
        overflow-x: scroll;
        overscroll-behavior-x: auto;
    }
}

/* Amazon風: 左に縦サムネ（最大5枚）、右にメイン。グリッドセル内で幅いっぱい・先頭寄せを明示 */
.shop-detail__gallery {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.75rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-inline: 0;
    padding-inline: 0;
    justify-self: stretch;
}

.shop-detail__gallery--single .shop-detail__main-col {
    width: 100%;
}

.shop-detail__thumbs {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: 0.45rem;
    width: 4.5rem;
    max-height: min(70vh, 36rem);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1px;
    -webkit-overflow-scrolling: touch;
}

.shop-detail__thumb {
    display: block;
    margin: 0;
    padding: 2px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    line-height: 0;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.shop-detail__thumb:hover {
    border-color: rgba(0, 0, 0, 0.28);
}

.shop-detail__thumb.is-active {
    border-color: var(--shop-accent-dark, #333);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.shop-detail__thumb:focus-visible {
    outline: 2px solid var(--shop-accent, #333);
    outline-offset: 2px;
}

.shop-detail__thumb__img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: contain;
    object-position: center;
    border-radius: 1px;
    display: block;
    pointer-events: none;
}

.shop-detail__main-col {
    flex: 1;
    min-width: 0;
}

.shop-detail__figure.is-main {
    margin: 0;
    width: 100%;
    max-width: 100%;
}

.shop-detail__figure.is-main .shop-detail__img {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: contain;
    object-position: center;
    border-radius: 2px;
    display: block;
    background: #f5f2ef;
}

.shop-detail__placeholder {
    flex: 1;
    width: 100%;
    aspect-ratio: 3 / 4;
    background: linear-gradient(145deg, #e8e4df, #f2eeea);
    border-radius: 2px;
}

@media (max-width: 991.98px) {
    .shop-detail {
        text-align: center;
    }

    .shop-detail__gallery {
        justify-content: center;
        align-items: center;
    }

    .shop-detail__gallery:not(.shop-detail__gallery--single) {
        flex-direction: column;
        gap: 0.65rem;
    }

    .shop-detail__gallery:not(.shop-detail__gallery--single) .shop-detail__main-col {
        order: -1;
        width: 100%;
    }

    .shop-detail__thumbs {
        flex-direction: row;
        width: 100%;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        gap: 0.4rem;
        padding-bottom: 0.2rem;
        justify-content: center;
    }

    .shop-detail__thumbs .shop-detail__thumb {
        flex: 0 0 3.5rem;
        width: 3.5rem;
    }

    .shop-detail__color-cards {
        justify-content: center;
    }

    .shop-detail__size-btns {
        justify-content: center;
    }

    .shop-detail > .shop-back {
        text-align: center;
    }

    .shop-detail__coord-heading {
        text-align: center;
    }

    .shop-detail__desc-html.ec-product-body {
        text-align: center;
    }

    .shop-detail__desc-html.ec-product-body table {
        margin-inline: auto;
    }

    /* メイン写真: ベースの .shop-detail__figure より後に書き、画面内に収める */
    .shop-detail__gallery .shop-detail__main-col {
        width: 100%;
        max-width: 100%;
        margin-inline: auto;
    }

    .shop-detail__figure.is-main .shop-detail__img {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: min(88dvh, 140vw);
        aspect-ratio: 3 / 4;
        object-fit: contain;
    }

    .shop-detail__placeholder {
        max-height: min(88dvh, 140vw);
        width: 100%;
        aspect-ratio: 3 / 4;
    }
}

.shop-detail__meta {
    font-size: 0.8rem;
    color: var(--shop-muted);
    margin: 0 0 0.5rem;
}

.shop-detail__title {
    font-family: var(--shop-font-body);
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    line-height: 1.35;
}

.shop-detail__sku {
    font-size: 0.8rem;
    color: var(--shop-muted);
    margin: 0 0 1rem;
}

.shop-detail__price {
    margin-bottom: 1.25rem;
}

.shop-detail__tax {
    font-size: 0.78rem;
    color: var(--shop-muted);
    margin-left: 0.35rem;
}

@media (max-width: 991.98px) {
    .shop-detail__meta {
        font-size: 0.88rem;
    }

    .shop-detail__title {
        font-size: clamp(1.45rem, 4.5vw + 0.4rem, 1.85rem);
    }

    .shop-detail__sku {
        font-size: 0.88rem;
    }

    .shop-detail__price .shop-card__now,
    .shop-detail__price-now {
        font-size: clamp(1.55rem, 5vw + 0.5rem, 2rem);
    }

    .shop-detail__tax {
        font-size: 0.86rem;
        margin-left: 0.28rem;
    }

    .shop-detail .shop-time-sale-badge {
        font-size: 0.74rem;
        padding: 0.14rem 0.45rem;
    }

    .shop-detail .shop-time-sale-pct {
        font-size: 1rem;
    }

    .shop-detail .shop-price-ref--detail {
        font-size: 0.92rem;
    }
}

.shop-detail__label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: var(--shop-muted);
    margin-bottom: 0.25rem;
}

.shop-detail__size-picker {
    margin: 0 0 1.1rem;
}

.shop-detail__size-picker-label {
    font-size: 0.88rem;
    font-weight: 500;
    margin: 0 0 0.45rem;
}

.shop-detail__size-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.shop-detail__size-btn {
    margin: 0;
    padding: 0.4rem 0.85rem;
    font: inherit;
    font-size: 0.85rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.shop-detail__size-btn:hover {
    border-color: rgba(0, 0, 0, 0.35);
}

.shop-detail__size-btn.is-selected {
    border-color: #204a82;
    box-shadow: 0 0 0 1px #204a82;
    font-weight: 600;
}

.shop-detail__size-btn:focus-visible {
    outline: 2px solid var(--shop-accent, #204a82);
    outline-offset: 2px;
}

.shop-detail__color-card--selectable {
    cursor: pointer;
    opacity: 1;
}

.shop-detail__color-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

.shop-detail__color-list button.shop-detail__color-opt {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0.2rem 0.4rem;
    font: inherit;
    color: inherit;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
}

.shop-detail__color-opt.is-selected {
    border-color: var(--shop-line, #ccc);
    box-shadow: 0 0 0 1px var(--shop-accent-dark, #333);
}

.shop-detail__color-opt:focus-visible {
    outline: 2px solid var(--shop-accent, #333);
    outline-offset: 2px;
}

.shop-detail__color-static {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.shop-detail__color-picker-label {
    font-size: 0.88rem;
    margin: 0 0 0.5rem;
    font-weight: 500;
}

.shop-detail__color-picker-label #shop-detail-color-name {
    font-weight: 600;
}

.shop-detail__color-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: stretch;
}

.shop-detail__color-card {
    display: flex;
    flex-direction: column;
    width: 5.75rem;
    margin: 0;
    padding: 0.35rem;
    font: inherit;
    color: inherit;
    text-align: left;
    background: #fff;
    border: 2px solid rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.shop-detail__color-card:hover {
    border-color: rgba(0, 0, 0, 0.28);
}

.shop-detail__color-card.is-selected {
    border-color: #204a82;
    box-shadow: 0 0 0 1px #204a82;
}

.shop-detail__color-card:focus-visible {
    outline: 2px solid var(--shop-accent, #204a82);
    outline-offset: 2px;
}

.shop-detail__color-card--static {
    cursor: default;
    opacity: 0.92;
}

.shop-detail__color-card__img-wrap {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 4px;
    background: #ece8e4;
}

.shop-detail__color-card__img-wrap--swatch {
    background: var(--swatch, #ccc);
    min-height: 4.5rem;
}

.shop-detail__color-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    vertical-align: middle;
}

.shop-detail__color-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-top: 0.35rem;
    min-height: 2.5rem;
}

.shop-detail__color-card__price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.05rem;
    line-height: 1.2;
}

.shop-detail__color-card__price-now {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--shop-accent-dark, #1a1a1a);
}

.shop-detail__color-card__price-ref {
    font-size: 0.68rem;
    color: var(--shop-muted);
    text-decoration: line-through;
}

.shop-detail__color-card__name {
    font-size: 0.7rem;
    line-height: 1.25;
    color: var(--shop-muted);
}

.shop-detail__color-card__note {
    font-size: 0.62rem;
    color: var(--shop-muted);
}

@media (max-width: 991.98px) {
    .shop-detail__color-card {
        width: calc(33.333% - 0.45rem);
        min-width: 5rem;
        max-width: 6.5rem;
        text-align: center;
        align-items: center;
    }

    .shop-detail__color-card__body {
        align-items: center;
    }

    .shop-detail__color-card__price {
        align-items: center;
    }
}

.shop-detail__stock {
    font-size: 0.88rem;
    margin: 1rem 0;
}

.shop-add-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    margin: 1.5rem 0 2rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--shop-line);
    border-bottom: 1px solid var(--shop-line);
}

@media (max-width: 991.98px) {
    .shop-detail .shop-add-form {
        justify-content: center;
        align-items: center;
    }
}

.shop-add-form__qty input {
    width: 4rem;
    margin-left: 0.5rem;
    padding: 0.35rem;
    border: 1px solid var(--shop-line);
    font-family: inherit;
}

.shop-detail__desc {
    font-size: 0.92rem;
    color: var(--shop-muted);
    white-space: pre-wrap;
}

.shop-detail__desc-html {
    margin-top: 0;
    font-size: 0.92rem;
    color: var(--shop-muted);
    line-height: 1.65;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Summernote 等のリッチHTML: スマホで横はみ出ししない */
.shop-detail__desc-html.ec-product-body {
    overflow-wrap: anywhere;
    word-wrap: break-word;
}

.shop-detail__desc-html.ec-product-body img,
.shop-detail__desc-html.ec-product-body video,
.shop-detail__desc-html.ec-product-body svg,
.shop-detail__desc-html.ec-product-body iframe {
    max-width: 100%;
    height: auto;
}

.shop-detail__desc-html.ec-product-body table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    word-break: break-word;
}

.shop-detail__desc-html.ec-product-body pre {
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.shop-back {
    margin-top: 2.5rem;
}

.shop-back a {
    color: #000;
    text-decoration: underline;
}

.shop-btn {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    border: none;
    text-decoration: none;
    text-align: center;
}

.shop-btn--primary {
    background: #000;
    color: #fff;
}

.shop-btn--primary:hover {
    background: #222;
    color: #fff;
}

.shop-btn--ghost {
    background: transparent;
    color: #000;
    border: 1px solid rgba(0, 0, 0, 0.35);
}

.shop-btn--small {
    padding: 0.4rem 1rem;
    font-size: 0.78rem;
}

.shop-btn--block {
    display: block;
    width: 100%;
    margin-top: 1rem;
}

.shop-msg {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.06);
    color: #000;
}

.shop-msg--err {
    background: rgba(180, 60, 60, 0.08);
    color: #8b3a3a;
}

.shop-cart-update-form {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* カート：2カラム・コンパクト行 */
.shop-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    gap: 1rem 1.5rem;
    align-items: start;
}

.shop-cart-main {
    min-width: 0;
}

.shop-cart-list {
    margin-bottom: 0;
}

.shop-cart-item {
    display: flex;
    gap: 0.65rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #e3e6e6;
}

.shop-cart-item:last-child {
    border-bottom: none;
}

.shop-cart-item__media {
    flex-shrink: 0;
    width: 72px;
    line-height: 0;
    border-radius: 3px;
    overflow: hidden;
    align-self: flex-start;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.shop-cart-item__media--empty {
    height: 96px;
    background: linear-gradient(145deg, #ece8e4, #f5f2ee);
}

.shop-cart-item__img {
    width: 72px;
    height: 96px;
    object-fit: contain;
    object-position: center;
    background: #f5f2ef;
    display: block;
}

.shop-cart-item__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.shop-cart-item__title {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

.shop-cart-item__title a {
    color: #0f1111;
    text-decoration: none;
}

.shop-cart-item__title a:hover {
    color: #c7511f;
    text-decoration: underline;
}

.shop-cart-item__variant {
    font-size: 0.82rem;
    color: var(--shop-muted);
    margin: 0;
}

.shop-cart-item__spec-note {
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--shop-muted);
    margin: 0;
}

.shop-cart-item__price-line {
    font-size: 0.8rem;
    color: #0f1111;
    margin: 0.1rem 0 0;
}

.shop-cart-item__unit-tax {
    font-size: 0.72rem;
    color: var(--shop-muted);
    font-weight: 400;
}

.shop-cart-item__dot {
    margin: 0 0.35rem;
    color: #ccc;
}

.shop-cart-item__sub-num {
    font-variant-numeric: tabular-nums;
}

.shop-cart-item__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
    margin-top: 0.35rem;
}

.shop-cart-qty-pill {
    --shop-cart-pill-border: #f0c14b;
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--shop-cart-pill-border);
    border-radius: 999px;
    overflow: hidden;
    background: linear-gradient(to bottom, #f8f8f8, #f0f0f0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.shop-cart-qty-pill__slot {
    position: relative;
    width: 2.1rem;
    flex-shrink: 0;
    align-self: stretch;
    min-height: 2.05rem;
}

.shop-cart-qty-pill__slot .shop-cart-qty-pill__dec {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.shop-cart-qty-pill__dec,
.shop-cart-qty-pill__inc {
    width: 2.1rem;
    min-height: 2.05rem;
    border: none;
    background: #fafafa;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    color: #0f1111;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.shop-cart-qty-pill__inc {
    flex-shrink: 0;
}

.shop-cart-qty-pill__dec:hover,
.shop-cart-qty-pill__inc:hover {
    background: #ebebeb;
}

.shop-cart-qty-trash {
    color: #555;
    font-size: 0.95rem;
}

.shop-cart-qty-trash:hover {
    color: #c7511f;
}

.shop-cart-qty-pill__input {
    width: 2.5rem;
    text-align: center;
    border: none;
    border-left: 1px solid #d5d9d9;
    border-right: 1px solid #d5d9d9;
    padding: 0.25rem 0.1rem;
    margin: 0;
    font-family: inherit;
    font-size: 0.95rem;
    background: #fff;
    -moz-appearance: textfield;
}

.shop-cart-qty-pill__input::-webkit-outer-spin-button,
.shop-cart-qty-pill__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.shop-cart-item__links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
}

.shop-cart-item__link {
    color: #2162a1;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    text-decoration: none;
}

.shop-cart-item__link:hover {
    color: #c7511f;
    text-decoration: underline;
}

.shop-cart-remove-form {
    margin: 0;
    padding: 0;
    border: 0;
}

.shop-cart-main > .shop-cart-note {
    margin-top: 0.35rem;
    margin-bottom: 0;
}

.shop-cart-note {
    font-size: 0.78rem;
    color: var(--shop-muted);
    line-height: 1.45;
}

@media (max-width: 900px) {
    .shop-cart-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .shop-cart-item {
        gap: 0.5rem;
        padding: 0.55rem 0;
    }

    .shop-cart-item__toolbar {
        flex-direction: row;
        align-items: center;
    }
}

.shop-inline-form {
    margin: 0;
}

.shop-link-btn {
    background: none;
    border: none;
    padding: 0;
    color: #000;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    text-decoration: underline;
}

.shop-cart-summary {
    margin-top: 0;
    padding: 1rem 1.1rem;
    background: var(--shop-card);
    border-radius: 4px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8e6e3;
    position: sticky;
    top: 0.75rem;
    width: 100%;
    box-sizing: border-box;
}

.shop-cart-summary__row {
    font-size: 0.88rem;
    margin: 0 0 0.35rem;
}

.shop-cart-summary__row:last-of-type {
    margin-bottom: 0.5rem;
}

.shop-cart-summary .shop-cart-total {
    font-size: 1rem;
    margin-top: 0.5rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--shop-line);
}

.shop-cart-summary__checkout {
    margin-top: 0.85rem;
}

.shop-checkout-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 900px) {
    .shop-checkout-grid {
        grid-template-columns: 1fr;
    }
}

.shop-checkout-form label {
    display: block;
    margin-bottom: 1rem;
    font-size: 0.88rem;
}

.shop-checkout-form input,
.shop-checkout-form textarea {
    display: block;
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--shop-line);
    font-family: inherit;
    box-sizing: border-box;
}

.shop-checkout-form h2 {
    font-size: 1rem;
    font-weight: 500;
    margin: 1.75rem 0 0.75rem;
    letter-spacing: 0.08em;
}

.shop-checkout-form h2:first-child {
    margin-top: 0;
}

.req {
    color: #000;
}

.shop-radio {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.shop-pay-note {
    font-size: 0.78rem;
    color: var(--shop-muted);
    margin: 0 0 1rem 1.5rem;
}

.shop-checkout-summary {
    font-size: 0.9rem;
    padding: 1.25rem;
    background: var(--shop-card);
    border-radius: 4px;
    border: 1px solid var(--shop-line);
}

.shop-checkout-lines {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.shop-checkout-lines li {
    margin-bottom: 0.35rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--shop-line);
}

.shop-checkout-line-note {
    display: block;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--shop-muted);
    margin-top: 0.2rem;
    font-weight: 400;
}

.shop-thanks {
    text-align: center;
    padding: 2rem 1rem 4rem;
    max-width: 520px;
    margin: 0 auto;
}

.shop-paidy-placeholder {
    max-width: 640px;
    margin: 0 auto;
    padding: 1rem 0 3rem;
    font-size: 0.92rem;
}

.shop-paidy-placeholder code {
    font-size: 0.82rem;
    word-break: break-all;
}
