/*
Theme Name: Lightning Child Ebihara
Theme URI:
Template: lightning
Description:
Author:
Tags:
Version: 0.6.1
*/

/*-------------------------------------------*/
/* コメント欄削除
/*-------------------------------------------*/
.comments-area {
  display: none !important;
}
/*-------------------------------------------*/
/* 投稿カテゴリー欄削除
/*-------------------------------------------*/
.entry-meta-data-list--category {
  display: none !important;
}
/*-------------------------------------------*/
/* 投稿次へ前へ欄削除
/*-------------------------------------------*/
.vk_posts.next-prev {
  display: none !important;
}
/* Welcart 商品詳細：メイン画像を最大1000pxで表示 */
#itempage .itemimg img{
  width: 100% !important;
  max-width: 1200px !important;
  height: auto !important;
}
/*-------------------------------------------*/
/* 一覧カード（Bootstrapのcardと衝突しない命名）
/*-------------------------------------------*/
.usces-item-card{
  margin-bottom: 10px; /* ←ここで確実に5px */
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 6px;
  overflow: hidden;
}

/* サムネ */
.usces-item-card__thumb img{
  display: block;
  width: 100%;
  height: auto;
}

/* ボディ */
.usces-item-card__body{
  padding: 12px;
}

/* タイトル */
.usces-item-card__title{
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.4;
}

/* NEW */
.usces-item-card__new{
  font-weight: 700;
  margin-right: 4px;
  color: #ED5B14;
  font-weight: bold;
}

/* 価格 */
.usces-item-card__price{
  margin: 8px 0;
}

/* ボタン余白 */
.usces-item-card__btnwrap{
  margin: 8px 0 0;
}
/* 売り切れ：文字のみオレンジ */
.usces-item-card__soldout {
  color: #ED5B14;
  font-weight: bold;
}
/* 商品カード：タイトル背景を薄いグレーにする */
.usces-item-card__title {
  background: #f2f2f2;     /* 薄いグレー */
  padding: 6px 8px;        /* 余白（好みで調整） */
  margin: 0 0 6px 0;
  border: none;            /* 下線を完全に消す */
  text-decoration: none;   /* 念のため */
  font-size: 16px;         /* 既存に合わせて調整可 */
  line-height: 1.4;
}
/* 商品カード表示整形 */
.usces-item-card__title{
  background: #f2f2f2;
  padding: 8px 10px;
  border-radius: 4px;
  margin: 0 0 8px 0;
}
/* タイトルの黒い下線（Lightning由来）を完全に消す：決定版 */
.usces-item-card__title{
  border-bottom: 0 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  background-image: none !important;
}

.usces-item-card__title::before,
.usces-item-card__title::after,
.usces-item-card__title a::before,
.usces-item-card__title a::after{
  content: none !important;
  display: none !important;
}

/* 念のため：リンク側の下線も完全OFF */
.usces-item-card__title a{
  border-bottom: 0 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  background-image: none !important;
}
/* 売切れ時：画像の上に薄い黒 + SOLD OUT */
.usces-item-card__thumb{
  position: relative;
  display: block;
}

.usces-item-card__soldout-overlay{
  position: absolute;
  inset: 0;                 /* top/right/bottom/left:0 と同じ */
  background: rgba(0,0,0,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;     /* クリックは下のリンクが通る */
}

.usces-item-card__soldout-text{
  color: #fff;
  font-weight: 800;
  letter-spacing: .08em;
  font-size: 18px;          /* 好みで調整 */
  line-height: 1;
  padding: 8px 12px;
  border: 2px solid rgba(255,255,255,.85);
  border-radius: 4px;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}

/* 任意：売切れカードは少しだけ全体を落ち着かせる（不要なら削除OK） */
.usces-item-card.is-soldout{
  opacity: .95;
}

/* ----------------------------------
 商品詳細：在庫ステータス「売切れ」を指定カラーで表示 
---------------------------------- */
.zaiko_status {
  color: #fff !important;
  background: #ED5B14;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 3px;
  font-weight: bold;
  font-size: 1.1em;
}

/* ----------------------------------
  Welcart カート進捗（現在地）を単色化：グラデーションを消す
---------------------------------- */

/* ベース（念のため） */
.usccart_navi .ucart > li.ucart{
  background-image: none !important;
}

/* ① カート（グレー：単色） */
.usccart_navi .ucart > li.usccart_cart{
  background-image: none !important;
  background-color: #d6d3d3 !important; /* 濃い黄色（好みで変更OK） */
  color: #111 !important;
}

/* ② お客様情報（グレー：単色） */
.usccart_navi .ucart > li.usccart_customer{
  background-image: none !important;
  background-color: #d6d3d3 !important; /* 濃いオレンジ */
  color: #fff !important;
}

/* ③ 配送・支払方法（グレー：単色） */
.usccart_navi .ucart > li.usccart_delivery{
  background-image: none !important;
  background-color: #d6d3d3 !important; /* 濃いオレンジ */
  color: #fff !important;
}

/* ④ 内容確認（濃い赤：単色） */
.usccart_navi .ucart > li.usccart_confirm{
  background-image: none !important;
  background-color: #b00000 !important; /* 濃い赤 */
  color: #fff !important;
}
/* ----------------------------------
  Welcart カート進捗：スマホは2列（2×2）
---------------------------------- */
@media (max-width: 767px){
  .usccart_navi .ucart{
    display: flex !important;
    flex-wrap: wrap !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
  }
  .usccart_navi .ucart > li.ucart{
    width: 50% !important;     /* 2列 */
    box-sizing: border-box !important;
    float: none !important;     /* 既存float潰し */
  }
}
/* ----------------------------------
  Welcart カート進捗：スマホ時は文字を中央寄せ
---------------------------------- */
@media (max-width: 767px){
  .usccart_navi .ucart > li.ucart{
    text-align: center !important;
    padding-left: 10px !important;
    padding-right: 10px !important;

    /* 高さを揃えて中央に見せる（任意だが見た目が安定） */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}
/* ----------------------------------
  Welcart カートテーブル：スマホで見切れないように（横スクロール）
---------------------------------- */
@media (max-width: 767px){

  /* テーブル外側にスクロール領域を作る */
  #cart_table{
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* iPhoneでスムーズに */
  }

  /* テーブル本体は最低幅を確保（列が潰れない） */
  #cart_table thead,
  #cart_table tbody,
  #cart_table tfoot{
    display: table;
    width: 100%;
    min-width: 760px; /* ここが肝。列数が多いので一定幅を確保 */
    table-layout: auto;
  }

  /* 入力欄が極端に小さくならないように */
  #cart_table input.quantity{
    min-width: 54px;
  }
}
/* ----------------------------------
  カート表：横スクロールできることを視覚的に伝える
---------------------------------- */
@media (max-width: 767px){

  /* スクロール領域の親化（疑似要素を載せる） */
  #cart_table{
    position: relative;
    padding-bottom: 26px; /* 案内文ぶんの余白 */
  }

  /* 右端フェード（続きがある雰囲気） */
  #cart_table::after{
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 42px;
    height: calc(100% - 26px);
    pointer-events: none;
    background: linear-gradient(to left, rgba(255,255,255,0.95), rgba(255,255,255,0));
  }

  /* 案内テキスト（下に表示） */
  #cart_table::before{
    content: "← 左右にスワイプできます →";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    text-align: center;
    font-size: 12px;
    opacity: .75;
    pointer-events: none;
    white-space: nowrap;
  }
}

/* YouTube 最新動画グリッド：PC 3列 / スマホ 2列 */
.yt-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* ← PCは3列 */
  gap: 12px;
}

/* スマホ（必要なら768pxでもOK） */
@media (max-width: 767px){
  .yt-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 見た目の最低限（任意） */
.yt-card{
  display: block;
  text-decoration: none;
}

.yt-card img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.yt-title{
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.35;
}
