@charset "UTF-8";
/*
Theme Name: Cocoon Child
Template:   cocoon-master
Version:    1.0.0
*/

/* ▼▼▼ あなたのコードはここから下に書いてください ▼▼▼ *//* ============================================
   【決定版】カルーセル「デカ画像」表示設定
   ============================================ */

/* 1. タイトルと本文のエリアを消す */
.carousel-entry-card .card-content,
.carousel-entry-card .entry-card-content,
.carousel-entry-card .entry-title,
.carousel-entry-card .card-title,
.carousel-entry-card h2,
.carousel-entry-card h3 {
    display: none !important;
}

/* 2. カテゴリーラベルを消す */
.carousel-entry-card .cat-label,
.carousel-entry-card .entry-category,
.carousel-entry-card .entry-card-category,
.carousel-entry-card .ribbon,
.carousel-entry-card .label {
    display: none !important;
}

/* 3. カード自体の「横幅」を強制的に広げる（ここが重要！） */
.carousel-entry-card {
    /* スマホ用に幅を大きく指定します */
    width: 150px !important; 
    max-width: 90vw !important; /* 画面からはみ出さないように調整 */
    
    /* 余計な枠線や背景を消す */
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* パソコン用の幅設定 */
@media screen and (min-width: 768px) {
    .carousel-entry-card {
        /* PCならもっと大きく */
        width: 350px !important; 
    }
}

/* 4. 画像を広げた枠いっぱいに表示する */
.carousel-entry-card figure,
.carousel-entry-card .card-thumb,
.carousel-entry-card a {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    background: transparent !important;
}

/* 5. 画像自体の調整 */
.carousel-entry-card img {
    width: 100% !important; /* カードの幅(300px/500px)に合わせる */
    height: auto !important; /* 高さは自動で伸び縮みさせる */
    object-fit: contain !important; /* 画像全体を表示 */
    vertical-align: bottom !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
/* ============================================
   一覧・検索ページの上部余白を「強制削除」
   ============================================ */

/* 1. パンくずリスト（TOP>靴...）の下の余白を完全に消す */
.breadcrumb {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* 2. ページタイトルエリア（検索結果：〇〇など）の余白も消す */
.archive-header,
.search-header {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    min-height: 0 !important;
    border: none !important; /* 枠線があれば消す */
}

/* 3. メインエリアをマイナス指定で上に引き上げる */
/* ★ここの数字を変えて調整してください★ */
body.archive #main,
body.search #main {
    margin-top: 0px !important; /* -20px, -30px, -40px と試してください */
    padding-top: 0 !important;
}
/* ============================================
   ストアボタン：余白を削除してサイズを中身に合わせる
   ============================================ */
.store-links-container {
    display: flex !important;
    flex-direction: column !important; /* 縦並び */
    align-items: flex-start !important; /* ★ここ重要：左端に詰める（引き伸ばさない） */
    gap: 10px !important;
}

.store-link-wrapper {
    /* ★ここ重要：横幅を「100%」ではなく「中身に合わせる」に変更 */
    width: fit-content !important; 
    
    /* はみ出し防止の保険 */
    max-width: 100% !important; 
    
    margin: 0 !important;
    box-sizing: border-box !important;
    
    /* 中身のレイアウト */
    display: flex !important;
    flex-direction: column !important; /* 店名が上、アイコンが下 */
    align-items: center !important;    /* 中央揃え */
    
    /* 余白を極限まで小さく */
    padding: 5px 15px !important;      /* 上下5px、左右は少し余裕を持たせて15px */
}
/* ============================================
   2. 店舗名（ゼビオ店など）の文字サイズ調整
   ============================================ */
.store-name-label-header {
    margin: 0 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    
    /* ▼▼▼ ここを調整してください ▼▼▼ */
    font-size: 20px !important; /* 現在13px。14pxや15pxにすると大きくなります */
}
/* ============================================
   PCのみ：右側の情報をスクロール追従させる
   ============================================ */
@media screen and (min-width: 769px) {
    .product-col-right {
        /* 追従設定 */
        position: -webkit-sticky; /* Safari用 */
        position: sticky;
        
        /* 上からどのくらいの位置で止めるか */
        top: 30px; 
        
        /* ★ここ重要：高さを自動にして追従スペースを作る */
        align-self: flex-start;
        height: auto;
    }
}

/* ============================================
   1. 靴の詳細ページ（single-shoes）
      → PC・スマホ両方で検索フォームを隠す
   ============================================ */
body.single-shoes .vk_filter_search,
body.single-shoes .vkfs,
body.single-shoes .vk-filter-search-container {
    display: none !important;
}

/* ============================================
   2. 固定ページ（page）
      → 【スマホの時だけ】検索フォームを隠す
   ============================================ */
@media screen and (max-width: 768px) {
    body.page .vk_filter_search,
    body.page .vkfs,
    body.page .vk-filter-search-container {
        display: none !important;
    }
}
/* ============================================
   4. アイコンボタン（R Y A）のサイズ調整
   ============================================ */
.store-icon-link {
    width: auto !important;
    flex: none !important;
    
    /* ▼▼▼ ここを調整してください ▼▼▼ */
    font-size: 18px !important;   /* 中の文字サイズ（現在12px）。14pxなどにすると大きくなります */
    padding: 4px 8px !important;  /* ボタンの余白（上下4px, 左右8px）。ここを増やすとボタン全体が大きくなります */
}
.shoe-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.shoe-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 💡【最重要修正】全てのリンク要素から下線を強制的に除去し、文字色を黒に統一 */
.shoe-card a {
  text-decoration: none !important; /* 全てのリンクの下線を強制的に除去 */
  color: #333 !important; /* 文字色を黒に統一（!importantでテーマの上書きを防ぐ） */
}

/* 画像、情報エリアのスタイルはそのまま */
.shoe-thumb {
  padding: 0; 
  margin: 0;
}

.shoe-thumb img {
  width: 180%;
  height: 200px; /* 💡【修正】画像の高さを300pxに設定 */
  object-fit: contain; 
  padding: 0;
}

.shoe-info {
  padding: 10px;
}

/* カテゴリーとタグのエリア (サイズ変更なし) */
.card-terms {
  display: flex;
  justify-content: flex-start;
  padding: 8px 10px 0 10px;
  gap: 5px;
}

/* カテゴリーとタグの背景色と文字色 (サイズ変更なし) */
.card-category,
.card-tag {
  background: #f0f0f0;
  color: #333; /* 黒 */
  font-size: 0.9rem; /* サイズ変更なし */
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* 💡 タイトル：サイズを2割アップ */
.shoe-title {
  font-size: 1.7rem; /* 1.1remから修正 */
  font-weight: bold;
  margin: 0 0 5px 0;
  line-height: 1.4;
  color: #333; 
}

/* 💡 キャッチコピー：サイズを2割アップ */
.shoe-catch-copy {
  font-size: 1.1rem; /* 0.9remから修正 */
  color: #333; 
  margin-bottom: 8px;
}

/* 価格表示エリア */
.price-line {
  margin-bottom: 5px;
  min-height: 16px;
}

/* 💡 定価 (original_price)：サイズを2割アップ */
.original-price {
  font-size: 1.1rem; /* 0.8remから修正 */
  color: #333; 
  text-decoration: line-through;
  margin-right: 5px;
}

/* 💡 割引率 (discount_rate)：サイズを2割アップ */
.discount-rate-small {
  font-size: 1.1rem; /* 0.8remから修正 */
  color: #333; 
  font-weight: bold;
}

/* 💡 現在の価格 (current_price)：サイズを2割アップ（赤色維持）*/
.shoe-current-price {
  font-size: 2.0rem; /* 1.5remから修正 */
  color: #d32f2f; /* 赤色 */
  font-weight: 900;
  margin: 0 0 5px 0;
}

/* 💡 お得フラグ (is_super_deal)：サイズを2割アップ（赤色維持）*/
.super-deal-flag {
  font-size: 1.3rem; /* 0.9remから修正 */
  color: #d32f2f; /* 赤色 */
  font-weight: bold;
  margin-top: 5px;
}

/* その他の情報 */
.shoe-brand, .shoe-condition {
  display: none;
}
/* ======================================================
   個別投稿ページ（single-shoes.php）のレイアウトCSS
   ====================================================== */
.product-layout-split {
  display: flex;
  flex-wrap: wrap; 
  gap: 30px;      
  margin-top: 30px;
  /* 左右の上端を揃える */
  align-items: flex-start; 
}

/* 💡【再調整】左カラム: 画像ギャラリー（比率を5.5:4.5に変更し、画像を広げる）*/
.product-col-left {
  flex: 5.5; /* 5.5/10 = 55% */
  min-width: 300px;
}

/* 💡【再調整】右カラム: 商品情報（45%の幅）*/
.product-col-right {
  flex: 4.5; /* 4.5/10 = 45% */
  min-width: 250px;
}

/* 💡【最重要】FooGalleryの画像/コンテナを左カラムの幅いっぱいに広げる */
/* 画像の右側の余白を消すためのCSS */
.product-col-left .foogallery-container,
.product-col-left .fg-wrapper,
.product-col-left .fg-gallery {
    width: 100% !important; /* コンテナを100%に */
    max-width: 100% !important;
}

/* スマホ表示時の調整（変更なし） */
@media screen and (max-width: 768px) {
  .product-col-left,
  .product-col-right {
    flex: 1 1 100%; 
    min-width: auto;
  }
}

/* --- 右カラムのタイトル/ACF情報 デザイン --- */

/* 右カラムのタイトル調整 */
.single-shoe-title {
  font-size: 2.2rem; 
  font-weight: 900; 
  margin-top: 0;
  margin-bottom: 25px; 
}


/* 価格エリアの装飾 */
.price-info-box {
  padding: 25px; 
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  margin-bottom: 25px;
}

.product-catch-copy {
  font-size: 1.4rem; 
  color: #555;
  margin-bottom: 15px;
  font-weight: bold; 
}

/* 定価と割引率の行 */
.original-price-single {
  font-size: 1.2rem; 
  color: #777;
  text-decoration: line-through;
  margin-right: 15px; 
}

/* 💡【修正】割引率の色を黒に変更 */
.discount-rate-single {
  font-size: 1.2rem; 
  color: #000; /* 黒色に変更 */
  font-weight: 900; 
}

/* 現在の価格 */
.current-price-large {
  font-size: 3.2rem; 
  color: #d32f2f;
  font-weight: 900;
  margin: 10px 0 10px 0;
}

/* お得フラグ */
.super-deal-flag-single {
  font-size: 1.5rem; 
  color: #d32f2f;
  font-weight: bold;
  margin-top: 10px;
}

/* 購入ボタンのスタイル */
.buy-button {
  display: block;
  width: 100%;
  padding: 18px 10px; 
  background-color: #d32f2f; 
  color: #fff !important;
  text-align: center;
  font-size: 1.6rem; 
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none !important;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2); 
  transition: opacity 0.2s;
}

.buy-button:hover {
  opacity: 0.8;
}

/* カテゴリー・タグのスタイル */
.product-meta {
  margin-top: 25px;
  font-size: 1rem;
}

.product-meta .meta-label {
  font-weight: bold;
  margin-right: 5px;
  color: #333;
}
/* ======================================================
   スマホ表示時の余白調整（赤丸部分の余白を削る）
   ====================================================== */
@media screen and (max-width: 768px) {
    /* ページの上下の余白を調整 (Cocoonテーマなど) */
    .site-content {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    /* 商品レイアウト全体の上下マージンを減らす */
    .product-layout-split {
        margin-top: 10px !important;
        margin-bottom: 10px !important;
        gap: 15px !important; /* 部品間の隙間も狭く */
    }

    /* 画像ギャラリーエリアの上下の余白を削る */
    .product-col-left {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    /* FooGalleryのコンテナ自体の上下マージンを削る */
    .foogallery-container {
        margin-top: 0 !important;
        margin-bottom: 10px !important;
    }

    /* タイトルと価格エリアの余白調整 */
    .single-shoe-title {
        margin-top: 10px !important; /* 画像のすぐ下にタイトルを寄せる */
        margin-bottom: 10px !important;
        font-size: 1.8rem; /* スマホでは少し小さく */
    }

    /* 価格情報ボックスの余白も調整 */
    .price-info-box {
        margin-bottom: 15px !important;
        padding: 15px !important;
    }
}
/* ======================================================
   店舗名表示 (store) のデザインCSS
   ====================================================== */
/* 価格と店舗名を囲むコンテナ (横並びにする準備) */
.current-price-large-wrap {
    display: flex;
    align-items: baseline; /* ベースラインで揃える */
    margin: 10px 0 10px 0 !important; /* マージンを上書き */
}

/* 価格のスタイル */
.current-price-large {
    font-size: 3.2rem; 
    color: #d32f2f;
    font-weight: 900;
    /* 💡 価格と店舗名の間に隙間を作る */
    margin-right: 15px; 
}

/* 💡【追加】店舗名のスタイル（黒色で少し小さく）*/
.product-store-name {
    font-size: 1.2rem; /* 価格より小さく */
    color: #000;      /* 黒色 */
    font-weight: normal; /* 太字にしない */
}
/* ======================================================
   アーカイブカード内の店舗名表示 (store) のデザインCSS
   ====================================================== */

/* 価格と店舗名を囲むコンテナ (横並びにする) */
/* 💡 修正: 中央寄せを適用するため、width: fit-content; と margin: auto; を追加 */
.current-price-card-wrap {
    display: flex;
    align-items: baseline; 
    margin: 5px auto 5px auto; /* 💡 中央寄せに変更 */
    width: fit-content;      /* 💡 コンテンツの幅に合わせる */
}

/* 💡【追加】店舗名のスタイル（黒色で少し小さく）*/
.product-card-store-name {
    font-size: 0.9rem; 
    color: #000;      
    font-weight: normal; 
    margin-left: 8px; 
}

/* カード内の価格のスタイル（既存のものに影響しないように） */
.current-price-card-wrap .shoe-current-price {
    font-size: 2.0rem; 
    color: #d32f2f;
    font-weight: 900;
}
/* ================================================= */
/* 【おとくつナビ】商品詳細ページ用 CSS (最終統合版) */
/* ================================================= */

/* ------------------------------------------- */
/* 1. 【複数店舗リンクコンテナ】 (横並び制御) */
/* ------------------------------------------- */
.store-links-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); 
    gap: 15px; 
    /* 💡 修正点：上の余白を極限まで狭める (is_super_dealとの間) */
    margin-top: 10px; 
    /* 前回の調整を維持 (カテゴリとの間) */
    margin-bottom: 10px; 
}

/* ------------------------------------------- */
/* 2. 【各店舗リンクブロック全体】 (枠とホバー) */
/* ------------------------------------------- */
.store-link-wrapper {
    display: flex;
    flex-direction: column; 
    align-items: center;
    text-align: center;
    padding: 15px 10px;
    
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #ffffff;
    transition: all 0.2s ease-in-out;
    cursor: default;
}
.store-link-wrapper:hover {
    border-color: #f63c3c; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* ------------------------------------------- */
/* 3. 【店舗名のラベル】 */
/* ------------------------------------------- */
.store-name-label-header {
    font-weight: 700; 
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.2;
    color: #333;
}

/* ------------------------------------------- */
/* 4. 【アイコンコンテナ】 (R Y Aをまとめる行) */
/* ------------------------------------------- */
.store-icons-set {
    display: flex;
    justify-content: center;
    gap: 8px; 
}

/* ------------------------------------------- */
/* 5. 【個別アイコンのリンク】 */
/* ------------------------------------------- */
.store-icons-set .store-icon-link {
    text-decoration: none;
    display: block;
    line-height: 1;
}

/* ------------------------------------------- */
/* 6. 【個別アイコン】 (デザインと色) */
/* ------------------------------------------- */
.store-icons-set .store-icon-link .icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    border-radius: 6px; 
    color: white;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.store-icons-set .icon-rakuten {
    background-color: #d90000; 
}
.store-icons-set .icon-yahoo {
    background-color: #f63c3c; 
}
.store-icons-set .icon-amazon {
    background-color: #232f3e; 
    color: white; 
}

/* ------------------------------------------- */
/* 7. 【自由テキストエリア】 */
/* ------------------------------------------- */
.product-free-text-area {
    margin-top: 15px;
    padding-top: 5px;
    border-top: 1px dashed #eee; 
    font-size: 14px;
}

/* ------------------------------------------- */
/* 8. 【カテゴリ・タグエリア】 */
/* ------------------------------------------- */
.product-meta {
    /* ボタンとカテゴリの間の余白を維持 */
    margin-top: 5px !important; 
    margin-bottom: 25px;
    font-size: 14px;
}

/* ================================================= */
/* 💡 価格表示エリアの余白調整（最終強化版） */
/* ================================================= */

/* 1. 商品タイトル (h1) */
.single-shoe-page .entry-title.single-shoe-title {
    margin-top: 0 !important;
    margin-bottom: 5px !important;
    padding: 0;
    line-height: 1.2;
}

/* 2. キャッチコピー */
.single-shoe-page .product-catch-copy {
    margin-top: 5px !important;
    margin-bottom: 8px !important; 
    padding: 0;
    line-height: 1.4;
}

/* 3. 価格情報ボックス全体 */
.single-shoe-page .price-info-box {
    margin-top: 10px !important; 
    margin-bottom: 10px !important; 
    padding: 0;
}

/* 4. 定価と割引率の行 */
.single-shoe-page .price-line {
    margin-top: 0 !important;
    margin-bottom: 5px !important;
    padding: 0;
}

/* 5. 現在の価格と店舗名の行（大きな数字） */
.single-shoe-page .current-price-large-wrap {
    margin-top: 0 !important;
    margin-bottom: 5px !important;
    padding: 0;
    line-height: 1.1;
}

/* 6. お得情報フラグ (ポイント) */
.single-shoe-page .super-deal-flag-single {
    /* 💡 修正点：下の余白を極限まで狭める (store-links-containerとの間) */
    margin-top: 5px !important;
    margin-bottom: 10px !important; 
    padding: 0;
}
/* 在庫切れのカード全体を少し薄くする */
.shoe-card.out-of-stock {
    opacity: 0.7;
}

/* サムネイル上のSOLD OUTラベル */
.shoe-thumb {
    position: relative !important; /* 強制的に基準点にする */
}

.sold-out-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 16px;
    z-index: 9999 !important; /* 最前面に持ってくる */
    white-space: nowrap;
    pointer-events: none; /* クリックの邪魔をしない */
}

/* ▼▼▼ ここから書き換え ▼▼▼ */

/* 検索ボタンのデザイン改善（最強版） */
/* どんな名前のボタンでも、この箱の中にあれば強制適用 */
.vk-filter-search input[type="submit"],
.vk-filter-search button,
.vk-filter-search .btn,
.vk-filter-search .wp-block-button__link {
    width: 100% !important;
    background-color: #FF9900 !important; /* Amazonオレンジ */
    color: white !important;
    border: none !important;
    padding: 12px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    border-radius: 5px !important; /* 少し四角くして押しやすく */
    margin-top: 20px !important;
    cursor: pointer !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
    appearance: none !important; /* スマホでの見た目リセット */
    -webkit-appearance: none !important;
}

.vk-filter-search input[type="submit"]:hover,
.vk-filter-search button:hover,
.vk-filter-search .btn:hover {
    background-color: #e68a00 !important;
    color: white !important;
}
.shoes-grid {
  display: grid;
  /* 💡 カードの最小幅を「280px」に設定 */
  /* これなら狭い画面では2〜3列に減り、広い画面でも最大5列（1920pxモニタ時）に収まります */
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
  gap: 1.5rem;
  margin-top: 2rem;
}

/* ================================================= */
/* 💡 商品カード内の「青枠の隙間」を極限まで狭くする */
/* ================================================= */

/* 1. 「47%OFF」と「価格」の間の隙間をなくす */
.price-line {
    margin-bottom: 0 !important;    /* 下の余白をゼロに */
}

/* 2. 「価格（¥9,990）」エリアの上下の隙間をなくす */
.current-price-card-wrap {
    margin-top: 0 !important;       /* 上の余白をゼロに */
    margin-bottom: 0 !important;    /* 下の余白をゼロに */
    line-height: 1 !important;      /* 行の高さを文字ギリギリまで詰める */
}

/* 価格の数字自体の余白もなくす */
.shoe-current-price {
    margin-bottom: 0 !important;
}

/* 3. 「さらに...（赤文字）」の上の隙間を調整 */
.super-deal-flag {
    margin-top: 2px !important;     /* くっつきすぎないよう2pxだけ確保 */
    line-height: 1.2 !important;    /* 行間を少し詰める */
}
/* ================================================= */
/* 💡 カード内の文字情報の「左右の余白」を限界まで削る */
/* ================================================= */
.shoe-info {
    /* 上下は10px、左右は2px（ほぼ無し）にする */
    padding: 10px 2px !important; 
    
    /* ※もしタイトルが枠にくっつきすぎると感じる場合は */
    /* 2px を 5px くらいに調整してください */
}

/* タイトル文字自体が持っている余白も念のためゼロにする */
.shoe-title {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important; /* 横幅いっぱいに使う */
}

/* PCサイズ（835px以上）の時だけ適用 */
@media screen and (min-width: 835px) {
  
  /* メインエリア：100%から「サイドバー(250px)」と「すき間(40px)」を引く */
  .main {
    max-width: -webkit-calc(100% - 250px - 40px) !important;
    max-width: calc(100% - 250px - 40px) !important;
    width: calc(100% - 250px - 40px) !important;
  }
  
  /* サイドバー：250px */
  .sidebar {
    width: 250px !important;
  }
}

/* --- 追加の修正CSS --- */

/* タイトルの枠線（リンク下線）を完全に消す */
.shoe-card a {
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important; /* Cocoonなどのテーマ用 */
    display: block; /* カード全体をクリック可能に */
    color: inherit !important;
}

.shoe-title {
    border-bottom: none !important; /* タイトル自体の線を消す */
    text-decoration: none !important;
}

/* 店舗名のデザイン（価格の横に小さく表示） */
.shoe-store-name {
    font-size: 0.8rem;
    color: #333;
    font-weight: normal;
    margin-left: 8px;
}

/* もしお買い得フラグのデザインが反映されていない場合は以下も追加 */
.super-deal-flag {
    font-size: 1.1rem;
    color: #d32f2f;
    font-weight: bold;
    margin-top: 5px;
    line-height: 1.3;
}
/* ==============================================
   Cocoonなどのテーマ装飾を強制リセット（最強版）
   ============================================== */

/* bodyタグから指定して優先順位を強制的に上げる */
body .entry-content .shoe-card a,
body .shoe-card a {
    text-decoration: none !important; /* 下線消去 */
    border: none !important;          /* 枠線消去 */
    border-bottom: none !important;   /* 下線（ボーダー）消去 */
    background: transparent !important; /* 背景色（マーカー）消去 */
    box-shadow: none !important;      /* 影（アンダーライン）消去 */
    outline: none !important;         /* 輪郭線消去 */
    color: inherit !important;        /* 文字色を親要素に従わせる */
}

/* ホバー時の動作 */
body .entry-content .shoe-card a:hover,
body .shoe-card a:hover {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    opacity: 1 !important;
    transform: translateY(-2px); /* 浮く動きだけ有効にする */
    color: inherit !important;
}

/* タイトルなどの内部要素のリセット */
body .entry-content .shoe-card .shoe-title,
body .shoe-card .shoe-title {
    border: none !important;
    border-bottom: none !important;
    text-decoration: none !important;
    background: none !important;
}

/* もしCocoonがアイコン（外部・内部リンクマーク）を自動でつけている場合用 */
body .shoe-card a::after,
body .shoe-card a::before {
    content: none !important;
    display: none !important;
}
/* ================================================= */
/* いただいたコンパクトCSSを適用 */
/* ================================================= */

/* 1. 「47%OFF」と「価格」の間の隙間をなくす */
.price-line {
    margin-bottom: 0 !important;
}

/* 2. 「価格（¥9,990）」エリアの上下の隙間をなくす */
/* PHP側でこのクラスを追加したので効くようになります */
.current-price-card-wrap {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    line-height: 1 !important;
}

/* 価格の数字自体の余白もなくす */
.shoe-current-price {
    margin-bottom: 0 !important;
}

/* 3. 「さらに...（赤文字）」の上の隙間を調整 */
.super-deal-flag {
    margin-top: 2px !important;
    line-height: 1.2 !important;
}

/* 4. カード内の文字情報の「左右の余白」を削る */
.shoe-info {
    /* 上下は10px、左右は2pxにする */
    padding: 10px 2px !important; 
}

/* タイトル文字自体が持っている余白もゼロにする */
.shoe-title {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 4px !important; /* タイトル下の微調整 */
    line-height: 1.3 !important;
    width: 100% !important;
}

/* 店舗名の位置調整 */
.shoe-store-name {
    margin-left: 5px !important;
    font-size: 0.8rem;
    font-weight: normal;
    color: #333;
}
/* ==============================================
   激アツバッジのデザイン
   ============================================== */

/* カードの基準位置を設定（バッジを角に置くために必須） */
.shoe-card {
    position: relative !important;
}

/* 激アツバッジ本体 */
.badge-gekiatsu {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10; /* 画像より手前に表示 */
    
    background: #ff0000; /* 真っ赤な背景 */
    background: linear-gradient(135deg, #ff0000 0%, #ff5e00 100%); /* グラデーションでリッチに */
    color: #fff;
    
    font-size: 0.85rem;
    font-weight: bold;
    padding: 4px 8px;
    
    /* 左下だけ丸くする（スタイリッシュな形状） */
    border-bottom-left-radius: 8px;
    
    box-shadow: 0 2px 4px rgba(0,0,0,0.3); /* 影をつけて浮き上がらせる */
}
/* ============================================
   スマホ専用デザイン（画面幅767px以下で適用）
   ============================================ */
@media screen and (max-width: 767px) {

    /* --- レイアウトの基本設定（ここは触らなくてOK） --- */
    .shoes-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 0 5px;
    }
    .shoe-card {
        background: #fff;
        border: 1px solid #eee;
        border-radius: 4px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    .shoe-thumb img {
        width: 100%;
        height: auto;
        object-fit: cover;
        display: block;
    }
    .shoe-info {
        padding: 8px; /* カード内の余白 */
    }

  /* ----------------------------------------------------
   ★修正版CSS（PHPのクラス名に合わせました）★
   ---------------------------------------------------- */

/* 1. タグ */
.card-category, .card-tag {
    font-size: 11.5px !important;
    padding: 2px 4px !important;
    margin-bottom: 4px !important;
}

/* 2. 商品タイトル */
.shoe-title {
    font-size: 18px !important;
    line-height: 1.4 !important;
    margin: 5px 0 !important;
    font-weight: bold !important;
    height: auto !important;
}

/* 3. キャッチコピー【修正箇所】 */
/* PHPのクラス名 "shoe-catch-copy" に変更しました */
.shoe-catch-copy {
    font-size: 13px !important;      /* ←小さくする */
    font-weight: normal !important;  /* ←太字解除 */
    color: #666 !important;
    line-height: 1.3 !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    border: none !important;         /* 余計な装飾を消す */
    
    /* 長すぎる場合の省略設定 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 4. 定価・割引率 */
.original-price {
    font-size: 13px !important;
    color: #888 !important;
    text-decoration: line-through !important;
}
.discount-rate-small {
    font-size: 13px !important;
    font-weight: bold !important;
    color: #d32f2f !important;
    margin-left: 5px !important;
}

/* 5. 現在の価格 */
.shoe-current-price {
    font-size: 20px !important;
    color: #bf0000 !important;
    font-weight: bold !important;
    margin-top: 2px !important;
}

/* 6. 店舗名【修正箇所】 */
/* PHPのクラス名 "shoe-store-name" に変更しました */
.shoe-store-name {
    font-size: 12px !important;
    color: #999 !important;
    margin-top: 6px !important;
    display: block !important;       /* 改行させる */
    font-weight: normal !important;
}

/* 7. お買い得フラグ */
.super-deal-flag {
    font-size: 13px !important;
    background: #d32f2f !important;
    color: #fff !important;
    padding: 4px 8px !important;
    margin-top: 10px !important;
    border-radius: 4px !important;
    line-height: 1.2 !important;
    display: inline-block !important;
}
/* ============================================
   パソコン・タブレット用（変更なし）
   ============================================ */
@media screen and (min-width: 768px) {
    .shoes-grid {
        display: grid;
  
        gap: 20px;
    }
    .shoe-card { border: 1px solid #eee; }
    .shoe-thumb img { width: 100%; height: auto; }
    .shoe-info { padding: 15px; }
}
/* スマホの時だけ適用（767px以下） */
@media screen and (max-width: 767px) {
  
  /* 1. タグとタイトルの間 */
  .shoe-info {
      margin-top: -15px !important; /* スマホ用の数値 */
  }

  /* 2. キャッチコピーと定価の間 */
  .shoe-catch-copy {
      margin-bottom: -5px !important; /* スマホ用の数値 */
  }

}


/* ============================================
   スマホ表示時の「左右の余白」を極限まで狭くする
   ============================================ */
/* 画面幅が767px以下のスマホにのみ適用 */
@media screen and (max-width: 767px) {

    /* 1. サイト全体のコンテンツ枠（.wrap）の左右余白をなくす */
    /* ※Cocoonテーマが標準で持っている余白を強制的に打ち消します */
    .wrap {
        /* 完全に0pxにします。もし端すぎて見づらい場合は 2px などに調整してください */
        padding-left: 0 !important;
        padding-right: 0 !important;
        
        /* 幅を画面いっぱいにする設定 */
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* 2. 商品グリッド自体の左右の余白設定もゼロにする */
    .shoes-grid {
        /* 以前のCSSで設定されていた padding: 0 5px; を打ち消します */
        padding-left: 0 !important;
        padding-right: 0 !important;
        
        /* 💡【提案】さらに広く見せるコツ：カードの間の隙間も少し狭くする */
        /* 元は10pxでした。狭くするとカードが大きくなります。お好みで調整してください */
        gap: 5px !important; 
    }
    
    /* 念のためのリセット（通常は不要ですが保険として） */
    #content, #main {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}
/* 一覧アイキャッチのカテゴリ非表示 */
.cat-label {
    display: none;
}