/*
Theme Name: Gibier Shop
Theme URI: https://ezosikacivet.shop/
Description: 株式会社ジビエ向け Welcart Basic 子テーマ
Author: OpenAI
Template: welcart_basic
Version: 1.3.0
Text Domain: gibier-shop
*/

:root{
  --brown:#3a160d;
  --brown2:#5a2416;
  --red:#8b2e1d;
  --cream:#f7f3ed;
  --text:#321f17;
  --muted:#74655d;
  --line:#e2d8cf;
}
body{color:var(--text);background:#fff;}
.gibier-home{font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;background:#fff;}
.gibier-home *{box-sizing:border-box}
.gibier-wrap{width:min(1180px,94%);margin:0 auto}
.gibier-topline{font-size:11px;color:#68564e;padding:8px 0;background:#fff}
.gibier-sitebar{background:#fff;border-bottom:1px solid #eee5df;position:relative;z-index:10}
.gibier-sitebar__inner{min-height:108px;display:flex;align-items:center;gap:28px}
.gibier-brand{display:flex;align-items:center;gap:12px;min-width:245px;color:var(--brown)!important;text-decoration:none!important}
.gibier-brand__mark{width:42px;height:42px;border:1px solid var(--brown);display:grid;place-items:center;font-size:18px;transform:rotate(45deg)}
.gibier-brand__mark::first-letter{transform:rotate(-45deg)}
.gibier-brand strong{display:block;font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:25px;letter-spacing:.06em}
.gibier-brand small{display:block;font-size:10px;margin-top:5px;color:#6d5a50}
.gibier-nav{margin-left:auto;display:flex;gap:24px;align-items:center}
.gibier-nav a{display:flex;flex-direction:column;align-items:center;color:#3f2a20!important;text-decoration:none!important;white-space:nowrap}
.gibier-nav strong{font-size:13px;font-weight:700}
.gibier-nav small{font-size:8px;margin-top:4px;color:#8a786f;letter-spacing:.08em}
.gibier-cart{display:flex;flex-direction:column;align-items:center;color:#5b2317!important;text-decoration:none!important;font-size:11px;white-space:nowrap}
.gibier-cart span{font-size:22px;line-height:1}
.gibier-cart strong{font-size:11px;margin-top:3px}

.gibier-hero{height:520px;position:relative;overflow:hidden;background:#1b0d08;color:#fff}
.gibier-hero__visual{position:absolute;inset:inset:0;background-size:cover;background-position:center center}
.gibier-hero__shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(18,8,5,.98) 0%,rgba(28,12,7,.92) 28%,rgba(32,15,9,.56) 53%,rgba(0,0,0,.05) 100%)}
.gibier-hero__inner{height:100%;display:flex;flex-direction:column;justify-content:center;position:relative;z-index:2;padding-left:20px}
.gibier-hero__eyebrow{font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:25px;line-height:1.55;letter-spacing:.06em;margin:0 0 10px}
.gibier-hero h1{font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:70px;line-height:1.05;letter-spacing:.09em;margin:0 0 22px;color:#fff}
.gibier-hero__lead{font-size:14px;line-height:1.95;margin:0 0 28px}
.gibier-btn{display:inline-flex;align-items:center;gap:18px;align-self:flex-start;padding:14px 30px;background:#8f2d1b;border:1px solid rgba(255,255,255,.6);color:#fff!important;text-decoration:none!important;font-weight:700;box-shadow:0 5px 15px rgba(0,0,0,.22)}
.gibier-btn span{font-size:23px;line-height:1}

.gibier-category-section{padding:28px 0 40px;background:#fff}
.gibier-title{text-align:center;font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:30px;letter-spacing:.06em;margin:0 0 26px;color:#3d2118}
.gibier-grid{display:grid;gap:12px}
.gibier-grid--5{grid-template-columns:repeat(5,1fr)}
.gibier-grid--3{grid-template-columns:repeat(3,1fr)}
.gibier-card{position:relative;display:block;aspect-ratio:1.46/1;overflow:hidden;background:#222;text-decoration:none!important}
.gibier-card img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s ease}
.gibier-card:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 30%,rgba(20,9,5,.86) 100%)}
.gibier-card__caption{position:absolute;z-index:2;left:14px;right:12px;bottom:12px;color:#fff;display:grid;grid-template-columns:1fr auto}
.gibier-card__caption strong{font-size:16px}
.gibier-card__caption small{font-size:9px;margin-top:2px;opacity:.88}
.gibier-card__caption b{grid-column:2;grid-row:1/3;align-self:center;font-size:24px;font-weight:400}
.gibier-card:hover img{transform:scale(1.035)}

.gibier-section{padding:46px 0}
.gibier-products-section{background:#fff}
.gibier-kicker{text-align:center;color:#7d2a1a;font-size:11px;font-weight:800;letter-spacing:.2em;margin:0 0 5px}
.gibier-products{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.gibier-product{border:0;background:#fff;display:flex;flex-direction:column}
.gibier-product__thumb{display:block;aspect-ratio:1.35/1;background:#eee;overflow:hidden}
.gibier-product__thumb img{width:100%;height:100%;object-fit:contain;display:block;transition:transform .25s}
.gibier-product__thumb:hover img{transform:scale(1.025)}
.gibier-product__placeholder{width:100%;height:100%;display:grid;place-items:center;color:#8c7d75;background:#eee7df}
.gibier-product__body{padding:12px 6px 2px;display:flex;flex-direction:column;flex:1}
.gibier-product__title{font-size:14px;line-height:1.55;margin:0 0 5px;min-height:44px}
.gibier-product__title a{color:#2f201a!important;text-decoration:none!important}
.gibier-product__price{font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:20px;font-weight:700;color:#5a1f14;margin:0 0 10px}
.gibier-product__price small{font-family:sans-serif;font-size:9px;font-weight:400;color:#75665e}
.gibier-product__link{display:inline-flex;align-items:center;justify-content:center;gap:16px;width:135px;padding:8px 11px;background:#5b2014;color:#fff!important;text-decoration:none!important;font-size:11px;font-weight:700}
.gibier-product__link:hover{background:#8b2e1d}
.gibier-center{text-align:center;margin-top:28px}
.gibier-outline-btn{display:inline-flex;align-items:center;gap:28px;padding:10px 34px;border:1px solid #8b6657;color:#4f2a1f!important;text-decoration:none!important;font-size:12px;background:#fff}
.gibier-empty{grid-column:1/-1;text-align:center;padding:24px;border:1px solid var(--line)}

.gibier-info-section{padding-top:34px}
.gibier-info{border:1px solid var(--line);border-top:3px solid #5a2115;background:#fff;padding:25px 28px;text-align:center}
.gibier-info__head{display:flex;align-items:center;justify-content:center;gap:12px}
.gibier-info__head span{width:44px;height:44px;border:1px solid #9c7668;border-radius:50%;display:grid;place-items:center;font-size:20px;color:#5b2115}
.gibier-info h3{font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:20px;margin:0;color:#44251b}
.gibier-info p{font-size:12px;line-height:1.85;color:#5d514c;margin:17px 0}
.gibier-info a{font-size:11px;color:#4e2a1e!important;text-decoration:none!important}

.gibier-lower{padding:38px 0 0;background:#fff}
.gibier-lower__grid{display:grid;grid-template-columns:1fr 1fr 1.25fr;gap:28px;align-items:stretch}
.gibier-lower h2{font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:20px;margin:0 0 18px}
.gibier-lower ul{list-style:none;padding:0;margin:0}
.gibier-lower li{font-size:11px;line-height:2;color:#594d47}

/* =========================================================
   Welcart カテゴリー商品一覧
   PC 4列 / タブレット 2列 / スマホ 1列
   ========================================================= */

body.archive.category .cat-il.type-grid{
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:20px !important;
    width:100% !important;
    margin:24px 0 40px !important;
}

body.archive.category .cat-il.type-grid article{
    float:none !important;
    width:auto !important;
    margin:0 !important;
    padding:14px !important;
    box-sizing:border-box !important;
    border:1px solid #e2d8cf !important;
    border-radius:8px !important;
    background:#fff !important;
    display:flex !important;
    flex-direction:column !important;
}

body.archive.category .cat-il.type-grid .itemimg {
    width: 100% !important;
    height: auto !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    overflow: visible !important;
    aspect-ratio: auto !important;
    flex-shrink: 0 !important;
}

body.archive.category .cat-il.type-grid .itemimg a{
    display:block !important;
    width:100% !important;
    height:auto !important;
}

body.archive.category .cat-il.type-grid .itemimg img{
    display:block !important;
    width:100% !important;
    height:auto !important;
    max-width:none !important;
    object-fit:contain !important;
    margin:0 !important;
}

body.archive.category .cat-il.type-grid .itemname{
    order:1;
    min-height:48px !important;
  　margin:12px 0 7px !important;
    padding:0 !important;
    font-size:14px !important;
    line-height:1.55 !important;
}

body.archive.category .cat-il.type-grid .itemname a{
    color:#2f201a !important;
    text-decoration:none !important;
    font-weight:600 !important;
}

body.archive.category .cat-il.type-grid .itemprice{
    order:2;
    margin:0 0 8px !important;
    padding:0 !important;
    font-size:20px !important;
    line-height:1.4 !important;
    font-weight:bold !important;
    color:#5a1f14 !important;
    text-align:left !important;
}

body.archive.category .cat-il.type-grid .itemprice .tax{
    margin-left:3px !important;
    font-size:10px !important;
    font-style:normal !important;
    font-weight:normal !important;
    color:#75665e !important;
}

/* 商品を見るボタン */
body.archive.category .cat-il.type-grid .itemname a::after{
    content:"商品を見る →";
    display:flex;
    align-items:center;
    justify-content:center;
    width:135px;
    min-height:34px;
    box-sizing:border-box;
    margin-top:12px;
    padding:8px 11px;
    background:#5b2014;
    color:#fff;
    font-size:11px;
    font-weight:bold;
}

body.archive.category .cat-il.type-grid .itemname a:hover::after{
    background:#8b2e1d;
}

/* タブレット */
@media screen and (max-width:900px){
    body.archive.category .cat-il.type-grid{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    }
}

/* スマートフォン */
@media screen and (max-width:600px){
    body.archive.category .cat-il.type-grid{
        grid-template-columns:1fr !important;
        gap:16px !important;
    }

    body.archive.category .cat-il.type-grid .itemname{
        min-height:0 !important;
    }

    body.archive.category .cat-il.type-grid .itemname a::after{
        width:100%;
    }
}
/* カテゴリー一覧 商品を見るボタン最終調整 */
body.archive.category .cat-il.type-grid .itemname a{
    display:flex !important;
    flex-direction:column !important;
    height:100% !important;
}

body.archive.category .cat-il.type-grid .itemname a::after{
    content:"商品を見る →" !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:100% !important;
    height:34px !important;
    min-height:34px !important;
    margin-top:12px !important;
    background:#5b2014 !important;
    color:#ffffff !important;
    line-height:34px !important;
    overflow:visible !important;
}
/* =========================================================
   カテゴリー一覧「商品を見る」ボタン 最終修正版
   ========================================================= */

/* 商品カード */
body.archive.category .cat-il.type-grid article{
    display:flex !important;
    flex-direction:column !important;
}

/* 商品名部分 */
body.archive.category .cat-il.type-grid .itemname{
    order:1 !important;
    display:block !important;
    min-height:78px !important;
    margin:0 0 8px !important;
}

/* 商品名リンク */
body.archive.category .cat-il.type-grid .itemname > a{
    display:block !important;
    height:auto !important;
    min-height:0 !important;
    color:#2f201a !important;
    text-decoration:none !important;
}

/* 全商品で必ず同じボタンを表示 */
body.archive.category .cat-il.type-grid .itemname > a::after{
    content:"商品を見る →" !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    width:100% !important;
    height:34px !important;
    min-height:34px !important;

    margin:12px 0 0 !important;
    padding:0 10px !important;

    box-sizing:border-box !important;
    background:#5b2014 !important;
    color:#ffffff !important;

    font-size:11px !important;
    font-weight:bold !important;
    line-height:1 !important;

    overflow:visible !important;
    white-space:nowrap !important;
}

/* マウスを乗せた時 */
body.archive.category .cat-il.type-grid .itemname > a:hover::after{
    background:#8b2e1d !important;
}

/* 価格 */
body.archive.category .cat-il.type-grid .itemprice{
    order:2 !important;
    margin-top:auto !important;
}

/* スマホ */
@media screen and (max-width:600px){

    body.archive.category .cat-il.type-grid .itemname{
        min-height:0 !important;
    }

    body.archive.category .cat-il.type-grid .itemname > a::after{
        width:100% !important;
    }
}
/* =========================================================
   カテゴリー商品カード
   商品を見るボタン位置を完全に揃える
   ========================================================= */

body.archive.category .cat-il.type-grid article{
    display:grid !important;
    grid-template-rows:
        auto
        minmax(52px,auto)
        34px
        auto !important;
    align-content:start !important;
}

/* 画像 */
body.archive.category .cat-il.type-grid .itemimg{
    grid-row:1 !important;
}

/* 商品名 */
body.archive.category .cat-il.type-grid .itemname{
    grid-row:2 !important;
    order:unset !important;

    min-height:52px !important;
    height:52px !important;

    margin:0 !important;
    padding:0 !important;

    overflow:hidden !important;
}

/* 商品名リンク */
body.archive.category .cat-il.type-grid .itemname > a{
    display:block !important;
    height:auto !important;
    min-height:0 !important;
}

/* 商品を見るボタン */
body.archive.category .cat-il.type-grid .itemname > a::after{
    content:"商品を見る →" !important;

    position:absolute !important;

    left:14px !important;
    right:14px !important;

    width:auto !important;
    height:34px !important;
    min-height:34px !important;

    margin:0 !important;
    padding:0 !important;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    background:#5b2014 !important;
    color:#fff !important;

    font-size:11px !important;
    font-weight:bold !important;
    line-height:1 !important;
}

/* カードをボタン位置の基準にする */
body.archive.category .cat-il.type-grid article{
    position:relative !important;
    padding-bottom:62px !important;
}

/* ボタン位置 */
body.archive.category .cat-il.type-grid .itemname > a::after{
    bottom:48px !important;
}

/* 価格を一番下に固定 */
body.archive.category .cat-il.type-grid .itemprice{
    position:absolute !important;
    left:14px !important;
    right:14px !important;
    bottom:12px !important;

    margin:0 !important;
    order:unset !important;
}
/* =========================================================
   Welcart 商品ページ
   右サイドバーを非表示にして横幅を広げる
   ========================================================= */

/* 商品カテゴリーの右サイドバーを非表示 */
body.archive.category #secondary,
body.single-post #secondary {
    display: none !important;
}

/* メイン部分を横いっぱいにする */
body.archive.category #main,
body.single-post #main {
    width: 100% !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 商品表示部分を広げる */
body.archive.category #primary,
body.single-post #primary {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

/* コンテンツ部分 */
body.archive.category #content,
body.single-post #content {
    width: 100% !important;
    max-width: none !important;
}

/* カテゴリー商品一覧は4列を維持 */
body.archive.category .cat-il.type-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

/* タブレット */
@media screen and (max-width: 900px) {
    body.archive.category .cat-il.type-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* スマートフォン */
@media screen and (max-width: 600px) {
    body.archive.category .cat-il.type-grid {
        grid-template-columns: 1fr !important;
    }
}
/* =========================================================
   カテゴリー商品一覧 コンパクト最終調整
   4列維持・画像縮小・上余白縮小
   ========================================================= */

/* カテゴリーページ上部の余白を縮める */
body.archive.category #main {
    padding-top: 20px !important;
}

body.archive.category .page-header {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    padding-top: 0 !important;
}

/* 商品一覧全体 */
body.archive.category .cat-il.type-grid {
    margin-top: 15px !important;
    gap: 18px !important;
}

/* 商品カード */
body.archive.category .cat-il.type-grid article {
    padding: 12px !important;
}

/* 商品画像を少し小さくする */
body.archive.category .cat-il.type-grid .itemimg {
    width: 88% !important;
    margin: 0 auto 12px !important;
    aspect-ratio: 1.45 / 1 !important;
}

/* 商品名 */
body.archive.category .cat-il.type-grid .itemname {
    height: 50px !important;
    min-height: 50px !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
}

/* 商品を見るボタン */
body.archive.category .cat-il.type-grid .itemname > a::after {
    left: 12px !important;
    right: 12px !important;
    height: 32px !important;
    min-height: 32px !important;
    bottom: 46px !important;
}

/* 価格 */
body.archive.category .cat-il.type-grid .itemprice {
    left: 12px !important;
    right: 12px !important;
    bottom: 11px !important;
    font-size: 18px !important;
}

/* ボタン・価格用の下余白 */
body.archive.category .cat-il.type-grid article {
    padding-bottom: 58px !important;
}

/* タブレット */
@media screen and (max-width: 900px) {
    body.archive.category .cat-il.type-grid {
        grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    }

    body.archive.category .cat-il.type-grid .itemimg {
        width: 92% !important;
    }
}

/* スマートフォン */
@media screen and (max-width: 600px) {
    body.archive.category .cat-il.type-grid {
        grid-template-columns: 1fr !important;
    }

    body.archive.category .cat-il.type-grid .itemimg {
        width: 100% !important;
    }
}
/* カテゴリー一覧 上部余白の最終調整 */
body.archive.category #main {
    padding-top: 0 !important;
}

body.archive.category #primary {
    padding-top: 0 !important;
}

body.archive.category .page-header {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
}

body.archive.category .cat-il.type-grid {
    margin-top: 10px !important;
}
/* =========================================================
   Gibier Shop トップページ スマートフォン対応
   PC表示には影響させない
   ========================================================= */

@media screen and (max-width: 600px) {

    /* ページ全体 */
    .gibier-home {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .gibier-wrap {
        width: 92% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* ロゴ・ナビゲーション部分 */
    .gibier-sitebar__inner {
        min-height: auto !important;
        display: block !important;
        padding: 14px 0 !important;
    }

    .gibier-brand {
        min-width: 0 !important;
        width: 100% !important;
        margin-bottom: 14px !important;
    }

    .gibier-brand strong {
        font-size: 21px !important;
    }

    /* ナビゲーションを折り返す */
    .gibier-nav {
        width: 100% !important;
        margin: 0 !important;
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px 5px !important;
    }

    .gibier-nav a {
        white-space: normal !important;
        text-align: center !important;
    }

    .gibier-nav strong {
        font-size: 11px !important;
    }

    .gibier-nav small {
        font-size: 7px !important;
    }

    /* メイン画像 */
    .gibier-hero {
        height: auto !important;
        min-height: 300px !important;
    }

    .gibier-hero h1 {
        font-size: 36px !important;
        line-height: 1.2 !important;
    }

    .gibier-hero__eyebrow {
        font-size: 18px !important;
    }

    .gibier-hero__inner {
        padding: 35px 18px !important;
    }

    /* 商品カテゴリー 5列 → 2列 */
    .gibier-grid--5 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .gibier-grid--3 {
        grid-template-columns: 1fr !important;
    }

    .gibier-card__caption strong {
        font-size: 12px !important;
    }

    /* おすすめ商品 4列 → 2列 */
    .gibier-products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 18px 12px !important;
    }

    .gibier-product__title {
        font-size: 13px !important;
        min-height: 42px !important;
    }

    .gibier-product__price {
        font-size: 18px !important;
    }

    .gibier-product__link {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 下部のお知らせ・会社情報など */
    .gibier-lower__grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    /* 見出し */
    .gibier-title {
        font-size: 24px !important;
    }

    .gibier-section {
        padding: 32px 0 !important;
    }
}
/* スマホ：トップページ上部をコンパクト化 */
@media screen and (max-width: 600px) {

    .gibier-sitebar__inner {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        padding: 10px 0 !important;
        gap: 8px !important;
    }

    .gibier-brand {
        width: auto !important;
        flex: 1 1 auto !important;
        margin: 0 !important;
        min-width: 0 !important;
    }

    .gibier-brand img {
        width: 170px !important;
        max-width: 100% !important;
        height: auto !important;
    }

    .gibier-cart {
        margin-left: auto !important;
    }

    .gibier-nav {
        display: none !important;
    }
}
/* スマホ：ロゴ部分の上下余白を縮める */
@media screen and (max-width: 600px) {

    .gibier-sitebar__inner {
        padding: 6px 0 !important;
        min-height: 0 !important;
    }

    .gibier-brand img {
        width: 155px !important;
    }
}
/* スマホ：トップページ各セクションの余白を縮める */
@media screen and (max-width: 600px) {

    /* メイン画像 → 商品カテゴリー */
    .gibier-category-section {
        padding-top: 12px !important;
        padding-bottom: 24px !important;
    }

    .gibier-category-section .gibier-title {
        margin-top: 0 !important;
        margin-bottom: 18px !important;
    }

    /* 商品カテゴリー → おすすめ商品 */
    .gibier-products-section {
        padding-top: 18px !important;
    }

    .gibier-products-section .gibier-kicker {
        margin-top: 0 !important;
    }

    .gibier-products-section .gibier-title {
        margin-top: 4px !important;
        margin-bottom: 18px !important;
    }
}
/* スマホ：トップページ縦余白 最終調整 */
@media screen and (max-width: 600px) {

    /* メイン画像 → 商品カテゴリー */
    .gibier-category-section {
        margin-top: -25px !important;
        padding-top: 0 !important;
        padding-bottom: 12px !important;
    }

    /* 商品カテゴリー見出し */
    .gibier-category-section .gibier-title {
        margin-bottom: 12px !important;
    }

    /* 商品カテゴリー → おすすめ商品 */
    .gibier-products-section {
        padding-top: 8px !important;
    }

    /* おすすめ商品の見出し */
    .gibier-products-section .gibier-title {
        margin-bottom: 12px !important;
    }
}
/* スマホ：メイン画像下の不要な高さを解除 */
@media screen and (max-width: 600px) {
    .gibier-hero {
        height: auto !important;
        min-height: 0 !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
}
/* スマホ：商品カテゴリー位置 修正版 */
@media screen and (max-width: 600px) {

    .gibier-hero {
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .gibier-category-section {
        margin-top: 0 !important;
        padding-top: 10px !important;
        padding-bottom: 12px !important;
    }
}
/* スマホ：商品カテゴリー上の余白を少し追加 */
@media screen and (max-width: 600px) {
    .gibier-category-section {
        padding-top: 22px !important;
    }
}
/* スマホ：商品カテゴリー見出しの上に余白 */
@media screen and (max-width: 600px) {
    .gibier-category-section .gibier-title {
        padding-top: 14px !important;
    }
}


/* スマホ：Welcartカート完全縦型 */
@media screen and (max-width: 600px) {

    #cart_table {
        display: block !important;
        width: 100% !important;
    }

    #cart_table thead {
        display: none !important;
    }

    #cart_table tbody {
        display: block !important;
        width: 100% !important;
    }

    #cart_table tbody tr {
        display: block !important;
        width: 100% !important;
        margin-bottom: 20px !important;
        padding: 10px !important;
        box-sizing: border-box !important;
        border-bottom: 1px solid #ccc !important;
    }

    #cart_table tbody td {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
        text-align: left !important;
        padding: 5px 0 !important;
    }

    #cart_table tbody td::before {
        content: attr(data-label);
        display: inline-block;
        font-weight: bold;
        margin-right: 8px;
    }

    #cart_table input[type="text"],
    #cart_table input[type="number"] {
        width: 100% !important;
        max-width: 180px !important;
        box-sizing: border-box !important;
    }
}

/* Shop notice */
.gibier-shop-notice {
    margin: 18px 0 24px;
}

.gibier-shop-notice__box {
    padding: 18px 24px;
    background: #fff8ee;
    border: 1px solid #d9b98c;
    border-left: 6px solid #8b2e1d;
    color: #321f17;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.8;
    text-align: center;
}

@media screen and (max-width: 600px) {
    .gibier-shop-notice {
        margin: 12px 10px 18px;
    }

    .gibier-shop-notice__box {
        padding: 14px 12px;
        font-size: 16px;
        line-height: 1.7;
    }
}

/* スマホ：Welcart お客様情報入力画面 */
@media screen and (max-width: 600px) {

    #customer-info table,
    #customer-info tbody,
    #customer-info tr,
    #customer-info th,
    #customer-info td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #customer-info th {
        white-space: normal !important;
        word-break: normal !important;
        text-align: left !important;
        padding: 10px 0 4px !important;
    }

    #customer-info td {
        padding: 0 0 10px !important;
    }

    #customer-info input[type="text"],
    #customer-info input[type="email"],
    #customer-info input[type="tel"],
    #customer-info select {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}
/* Mobile product images: show entire image */
@media screen and (max-width: 600px) {

    .gibier-product__thumb {
        aspect-ratio: 1 / 1 !important;
        overflow: hidden !important;
    }

    .gibier-product__thumb img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
    }

}
/* Mobile product images: show entire image */
@media screen and (max-width: 600px) {
    .gibier-product__thumb {
        aspect-ratio: 1 / 1 !important;
    }

    .gibier-product__thumb img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }
}
/* スマホの商品画像切れ対策 */
@media screen and (max-width: 600px) {

  .gibier-product__thumb,
  .itemimg,
  .itemimg a,
  .itemlist .itemimg {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .gibier-product__thumb img,
  .itemimg img,
  .itemlist img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
  }

}
/* スマホのカテゴリー商品画像を全体表示 */
@media screen and (max-width: 600px) {
  .cat-il.type-grid .itemimg {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .cat-il.type-grid .itemimg img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }
}

/* 鹿肉缶詰カテゴリー：スマホ画像の切れを防止 */
@media screen and (max-width: 600px) {

  body.category-canned .cat-il.type-grid .itemimg {
    height: auto !important;
    overflow: visible !important;
  }

  body.category-canned .cat-il.type-grid .itemimg a {
    display: block !important;
    height: auto !important;
  }

  body.category-canned .cat-il.type-grid .itemimg img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }

}
/* 商品詳細ページ：画像の上の商品名を非表示 */
body.single-post .entry-title {
    display: none !important;
}
/* 注文内容確認ページ：情報見出しを茶色に */
#wc_confirm #confirm_table tr.ttl td {
    background-color: #633022 !important;
    color: #ffffff !important;
    padding: 12px 16px !important;
}

#wc_confirm #confirm_table tr.ttl h3 {
    color: #ffffff !important;
    margin: 0 !important;
    font-size: 16px !important;
}
/* =========================================
   トップページ カテゴリー文字重なり修正
   PC・スマートフォン共通
   ========================================= */

.gibier-home .gibier-card__caption {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 16px !important;
    grid-template-rows: auto auto !important;
    column-gap: 4px !important;
    row-gap: 3px !important;
    align-items: start !important;
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
}

.gibier-home .gibier-card__caption strong {
    display: block !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    margin: 0 !important;
}

.gibier-home .gibier-card__caption small {
    display: block !important;
    grid-column: 1 !important;
    grid-row: 2 !important;
    font-size: 10px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    opacity: 1 !important;
}

.gibier-home .gibier-card__caption b {
    grid-column: 2 !important;
    grid-row: 1 / 3 !important;
    align-self: center !important;
    font-size: 20px !important;
}

/* スマートフォンでは文字を少し小さく */
@media screen and (max-width: 600px) {
    .gibier-home .gibier-card__caption strong {
        font-size: 12px !important;
    }

    .gibier-home .gibier-card__caption small {
        font-size: 9px !important;
    }
}
/* スマホ：トップページおすすめ商品の画像余白を調整 */
@media screen and (max-width: 600px) {

    .gibier-home .gibier-product__thumb {
        aspect-ratio: auto !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: hidden !important;
        background: transparent !important;
    }

    .gibier-home .gibier-product__thumb img {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
        margin: 0 !important;
    }

}

/* トップページ：PCのみカテゴリー文字重なり対策 */
@media screen and (min-width: 901px) {
    .gibier-home .gibier-card__caption {
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        padding: 8px 10px !important;
        background: rgba(20, 9, 5, 0.95) !important;
    }
    .gibier-home .gibier-card__caption strong {
        font-size: 13px !important;
        line-height: 1.4 !important;
    }
}

/* 案内文の見出しと説明の間隔 */
.gibier-cta__grid strong {
  margin-right: 0.5em !important;
}
