/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

.woocommerce-cart {
  background-color: #F2F6F7;
}

.cart-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.woocommerce-cart .cart-layout{ max-width: 1280px; margin: 0 auto; gap: 36px; }
.woocommerce-cart .cart-left{  flex: 1 1 70%; min-width: 0; }
.woocommerce-cart .cart-right{ flex: 0 0 30%; }  /* 右カラムの幅 */

.cart-title{
  position: relative;
  padding-left: 14px;
  margin: 0 0 16px;
  font-weight: 700;
}

.cart-title::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 6px;
  border-radius: 3px;
  background: linear-gradient(180deg, #6ec1e4 0%, #009fe8 100%);
}

@media only screen and (max-width: 1020px) {
.woocommerce-cart .cart-layout {
  display: block;
}
}
@media(max-width: 689.98px) {
    .woocommerce-cart .cart-layout table.shop_table_responsive {
        --theme-table-padding: 1em 0.7em;
        display: block;
        overflow-x: auto;
        width: 100%;
    }
    .woocommerce-cart .cart-layout table.shop_table_responsive tbody {
        display: table;
    }
    .woocommerce-cart .cart-layout table.shop_table_responsive tbody td {
        display: table-cell;
        text-align: left;
    }
    .woocommerce-cart .cart-layout table.shop_table_responsive tbody td.product-thumbnail {
        min-width: 120px;
    }
    .woocommerce-cart .cart-layout table.shop_table_responsive tbody td[data-title]:before {
      content:none;
    }
}


/*
* 商品一覧（カート左）
*/
.cart-left__woocommerce {
  padding: 22px 18px 26px;
  background-color: #fff;
}
.cart-left {
  flex: 2;
}

.cart-left td {
  border: 1px solid black;
  border-left: none;
  border-right: none;
}

/* ヘッダー（商品名） */
.cart-left .header-product-name{
  color:#4b6f7f;
  font-weight: bold  !important;
  padding: unset !important;
}

/* ヘッダー（価格） */
.cart-left .product-price {
  color:#4b6f7f;
  font-weight: bold  !important;
  text-align: right;
}

/* 商品名 */
.cart-left .product-name a{
  color: black;
  font-weight: bold;
}

/* 商品説明文 */
.cart-item-excerpt{
  color:#4b6f7f;
}

/* 価格 */
.woocommerce-Price-amount {
  color: black;
  font-weight: bold;
}

/* 小計 */
.cart-inline-subtotal{
    text-align:right;
}

.cart-inline-subtotal .cart-inline-subtotal__label{
  color: #4b6f7f;
}

/*
* 商品の小計（カート右）
*/
.cart-right {
  flex: 1;
  background: #f9fbfd;
  padding: 20px;
  border-radius: 8px;
}

.cart-bulk-actions{ display:flex; gap:16px; margin:10px 0 14px; }
.cart-bulk-actions a{ text-decoration:none; cursor:pointer; }
.my-cart-totals-card.is-loading,
.cart-inline-subtotal.is-loading{ opacity:.5; pointer-events:none; }

.my-cart-totals-card{
  background: #f3f9fd;
  border-radius: 12px;
  padding: 20px;
}
.cart-right .my-cart-totals-card {
  background: #fff;
}

.my-cart-totals-card .row{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 12px;
  margin: 8px 0;
}

.my-cart-totals-card .row dt{
  font-weight:600; color: #4b6f7f;
}

.my-cart-totals-card .row dd{
  margin:0;
  font-weight:700;
}

.my-cart-totals-card .line{
  border-bottom:1px solid #e3edf5;
  padding-bottom:10px;
}

.my-cart-totals-card .fee-options label{
  display:block;
  margin:6px 0;
  font-weight:500;
}
.my-cart-totals-card .fee-options{
  font-size: 13px;
  opacity:.8;
  margin:10px 0 6px;
}

.my-cart-totals-card .emph dt{ font-size:18px; }
.my-cart-totals-card .emph dd{ font-size:22px; }

.my-cart-totals-card .divider{ border-top:1px solid black; margin:14px 0; }
.my-cart-totals-card .policy{ 
    font-size:13px; margin:8px 0 14px;
    text-align: right;
}

/* キャンセル・ポリシー */
.my-cart-totals-card .policy a{
  text-decoration: none;
  color:#000;
}

.my-cart-totals-card .btn-wrap .checkout-button{
  width:100%;
  border-radius: 999px;
  padding: 14px 18px;
  font-size: 16px;
}

/* 「レジに進む」ボタン */
.cart-right .button.checkout-button {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  background: #4fd1ff;
  color: #fff;
  border-radius: 9999px;
}

/* 「カゴに追加」後に表示される「お買い物カゴを表示」ボタンを非表示
   （商品ページ・wc_cards 内など） */
.elemos-add-cart-form a.added_to_cart.wc-forward,
.cs-section a.added_to_cart.wc-forward {
  display: none !important;
}

.qty-inline{ display:flex; align-items:center; gap:10px; }
.qty-label{ font-weight:600; }
.qty-remove{ color:#1e90ff; text-decoration:underline; font-size:14px; }
.qty-remove:hover{ text-decoration:none; }

/* カスタム・サービス、便利なエレモーズ関連製品 */
.cart-left__services {
  margin: 20px 0px 20px 0px;
}

/* ===========================
   column_slider（エレモーズコラム）
   =========================== */

/* メインコンテナ */
.elemos-column-slider{
  background:#fff;
  padding:80px 0px;
}
.ecs-inner{
  max-width:1249px;
  margin:0 auto;
}

/* タイトル */
.ecs-title{
  font-family:'Noto Sans JP',sans-serif;
  font-weight:700;
  font-size:48px;
  line-height:1.2;
  text-align:center;
  margin:0 0 40px;
  color:#000;
}

/* スライダーラッパー */
.ecs-slider-wrap{
  display:flex;
  align-items:center;
  gap:40px;
  margin-bottom:24px;
}

/* 矢印ナビゲーション */
.ecs-arrow{
  background:none;
  border:none;
  padding:0;
  cursor:pointer;
  flex-shrink:0;
  transition:opacity .2s;
  width:20px;
  height:39px;
}
.ecs-arrow:hover{
  opacity:.7;
}
.ecs-arrow:disabled{
  opacity:.3;
  cursor:not-allowed;
}
.ecs-arrow img{
  display:block;
  width:100%;
  height:100%;
}

/* Swiperコンテナ */
.ecs-swiper{
  flex:1;
  overflow:hidden;
  max-width:1130px;
}
.ecs-swiper .swiper-wrapper{
  display:flex;
}
.ecs-swiper .swiper-slide{
  /* 幅は Swiper（slidesPerView）の計算に任せる */
  flex-shrink:0;
  height:auto;
  box-sizing:border-box;
}

/* カード */
.ecs-card{
  background:#fff;
  padding:32px;
  display:flex;
  flex-direction:column;
  gap:16px;
  align-items:center;
  height:100%;
  box-sizing:border-box;
}

/* サムネイル */
.ecs-thumb{
  width:286px;
  height:190px;
  background:#f0f0f0;
  overflow:hidden;
  flex-shrink:0;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.ecs-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.ecs-thumb-placeholder{
  background:#f0f0f0;
  width:286px;
  height:190px;
}

/* タイトル */
.ecs-card-title{
  font-family:'Noto Sans JP',sans-serif;
  font-weight:700;
  font-size:24px;
  line-height:1.2;
  color:#000;
  margin:0;
  width:100%;
  text-align:left;
  min-height:58px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* 日付 */
.ecs-card-date{
  font-family:'Noto Sans JP',sans-serif;
  font-weight:400;
  font-size:14px;
  line-height:1.5;
  color:#000;
  margin:0;
  width:100%;
  text-align:left;
}

/* 詳細ボタン */
.ecs-btn{
  display:inline-block;
  padding:12px 40px;
  background:#000;
  color:#fff;
  border-radius:20px;
  text-decoration:none;
  font-family:Inter,sans-serif;
  font-weight:700;
  font-size:14px;
  line-height:1.21;
  transition:background .2s;
  margin-top:auto;
}
.ecs-btn:hover{
  background:#333;
  color:#fff;
}

/* ページネーションドット */
.ecs-dots{
  display:flex;
  justify-content:center;
  gap:16px;
  min-height:10px;
}
.ecs-dots .swiper-pagination-bullet{
  width:10px;
  height:10px;
  background:#d9d9d9;
  border-radius:50%;
  opacity:1;
  cursor:pointer;
  border:none;
  transition:background .2s;
}
.ecs-dots .swiper-pagination-bullet:hover{
  background:#999;
}
.ecs-dots .swiper-pagination-bullet-active{
  background:#000;
}

/* レスポンシブ: タブレット */
@media (max-width:1024px){
  .elemos-column-slider{
    padding:60px 48px;
  }
  .ecs-title{
    font-size:36px;
  }
  .ecs-slider-wrap{
    gap:24px;
  }
}

/* レスポンシブ: モバイル */
@media (max-width:768px){
  .elemos-column-slider{
    padding:40px 24px;
  }
  .ecs-title{
    font-size:28px;
    margin-bottom:24px;
  }
  .ecs-slider-wrap{
    gap: 0; /* 不要な隙間も消す */
  }
  .ecs-arrow{
    display: none;
  }
  .ecs-arrow img{
    width:100%;
    height:auto;
  }
  .ecs-card{
    padding:24px;
  }
  .ecs-thumb{
    width:100%;
    height:auto;
    aspect-ratio:3/2;
  }
  .ecs-card-title{
    font-size:18px;
    min-height:auto;
  }
  /* スマホではスライダー幅を100%に強制 */
  .ecs-swiper{
    flex: 1;
    max-width: 100% !important;
  }
}

/* セクション枠 */
.cs-section{
  background:#f3f9fd;
  border-radius:12px;
  padding:22px 18px 26px;
}
.cs-title{
  font-size:22px; font-weight:700; margin:0 0 14px;
  padding-left:14px; position:relative;
}
.cs-title::before{
  content:""; position:absolute; left:0; top:.25em; bottom:.25em; width:6px; border-radius:3px;
  background:linear-gradient(180deg,#6ec1e4 0%, #1aa7db 100%);
}

/* 5列グリッド。縦長にならないよう上寄せ */
.cs-grid{ display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:22px; align-items:start; }

/* ---- カード ---- */
/* カード */
.cs-card{
  background:#fff; 
  border-radius:12px;
  padding:25px;
  box-shadow:0 1px 8px rgba(0,0,0,.05);
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  height:95%;
}

.cs-grid .cs-card{
  background:transparent !important;   /* 白い大きなカードをやめる */
  box-shadow:none !important;
  border-radius:0 !important;
  padding:0 !important;
  text-align:center;
  display:flex; flex-direction:column; align-items:center;
  min-height:unset !important;
}

/* サムネイル */
.cs-thumb{ width:100%; height:120px; display:flex; align-items:center; justify-content:center; margin-bottom:8px; }
.cs-thumb img{ max-width:100%; max-height:100%; object-fit:contain; }

/* タイトル */
.cs-name{
  font-size:14px; font-weight:700; margin:6px 0 2px;
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden;
  min-height:2.8em;
}
.cs-name a{ color:#222; text-decoration:none; }

/* 価格 */
.cs-price span{ color:#e53935; font-weight:700; margin:6px 0; }

/* 説明は小さめ・3行で省略 */
.cs-excerpt{
  font-size:12px; color:#6b7b87; line-height:1.6;
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden;
  min-height:3.2em; max-width:220px; margin:0 auto;
}

/* ボタン */
.cs-btn{ margin-top:auto; width:100%; }
.cs-btn .button{
  display:flex; align-items:center; justify-content:center;
  width:100px; height:34px; margin:10px auto 0;
  border-radius:9999px; background:#57d1ff; color:#fff; font-weight:700; font-size:13px;
  box-shadow:0 6px 18px rgba(25,186,255,.22); white-space:nowrap; box-sizing:border-box;
}

.cs-btn .button,
.cs-btn button.button {
  border: 0 !important;           /* 枠線 */
}
.cs-btn .button:hover{ filter:brightness(.96); }

body.woocommerce-js.customize-support .cs-btn .button {
  border-radius: 999px;
  background: #5bcfff;
  color: #fff;
}

/* 公式ストア用表示 */
body.woocommerce-js .cs-section {
  padding: 0;
  background-color: initial;
}
body.woocommerce-js .cs-title{
  background-color: var(--wp--preset--color--palette-color-3);
  font-size: clamp(27.894px, 1.743rem + ((1vw - 3.2px) * 1.571), 48px);
  color: #fff;
  text-align: center;
  padding: 5px 0;
}
body.woocommerce-js .cs-title::before {
  content: initial;
}
body.woocommerce-js .cs-grid.cols-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
  padding: 0;
}
body.woocommerce-js .cs-grid.cols-5 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
  padding: 0;
}
body.woocommerce-js .cs-grid .cs-card {
  background: #fff !important;
  height: 100%;
}
body.woocommerce-js .cs-name {
  font-size: 18px;
  margin: 6px 10px 2px;
  margin-block-end: initial;
}
body.woocommerce-js .cs-price {
  font-size: 20px;
} 
body.woocommerce-js .cs-excerpt {
  font-size: 17px;
  margin: 0 5px;
} 
body.woocommerce-js .cs-btn {
  margin-bottom: 20px;
}
body.woocommerce-js .cs-btn .button, .cs-btn button.button {
  width: calc(75% - var(--wp--style--block-gap, .5em) * .25);
  box-shadow: none;
}

/* カートページ用表示調整 */
body.woocommerce-js.woocommerce-cart .cs-grid.cols-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
  padding: 0;
}
body.woocommerce-js.woocommerce-cart .cs-grid.cols-5 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
  padding: 0;
}
@media(max-width: 768px) {
  body.woocommerce-js .cs-grid.cols-4 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  body.woocommerce-js .cs-grid.cols-5 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }  
}
body.woocommerce-js.woocommerce-cart .cs-grid .cs-card {
  background: #fff !important;
  height: 100%;
}
body.woocommerce-js.woocommerce-cart .cs-name {
  font-size: 14px;
  margin: 6px 0 2px;
  margin-block-end: calc(var(--has-theme-content-spacing, 1) * (.3em + 10px));
}
body.woocommerce-js.woocommerce-cart .cs-price {
  font-size: 20px;
} 
body.woocommerce-js.woocommerce-cart .cs-excerpt {
  font-size: 14px;
} 
body.woocommerce-js.woocommerce-cart .cs-btn {
  margin-bottom: 0;
}
body.woocommerce-js.woocommerce-cart .cs-btn .button, .cs-btn button.button {
  width: calc(75% - var(--wp--style--block-gap, .5em) * .25);
  box-shadow: none;
}

body.woocommerce-js.woocommerce-cart .cs-section{
  background:#fff;
  border-radius:12px;
  padding:22px 18px 26px;
}
body.woocommerce-js.woocommerce-cart .cs-title{
  font-size:22px; font-weight:700; margin:0 0 14px;
  padding-left:14px; position:relative;
  background-color: initial;
  text-align: left;
  color: var(--theme-heading-color, var(--theme-heading-3-color, var(--theme-headings-color)));
}
body.woocommerce-js.woocommerce-cart .cs-title::before{
  content:""; position:absolute; left:0; top:.25em; bottom:.25em; width:6px; border-radius:3px;
  background:linear-gradient(180deg,#6ec1e4 0%, #1aa7db 100%);
}
body.woocommerce-js.woocommerce-cart .cart-left__services .cs-section {
  background:#fff;
}
body.woocommerce-js.woocommerce-cart .cart-left__services .cs-section .cs-btn button.button {
  width: 100%;
  padding: 15px;
  font-size: 14px;
  background: #4fd1ff;
  color: #fff;
  border-radius: 9999px;
  box-shadow: none;
}
body.woocommerce-js.woocommerce-cart .cart-left__services p,
body.woocommerce-js.woocommerce-cart .cart-right p.note {
  font-size: inherit;
} 
@media(max-width: 689.98px) {
  body.woocommerce-js.woocommerce-cart .cs-grid.cols-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 特定商取引法に基づく表記表示調整 */
@media(max-width: 689.98px) {
  .info-table > .wp-block-column > .wp-block-columns {
    display: block;
  }
  .info-table > .wp-block-column > .wp-block-columns p {
    padding: 10px !important;
  }
}
/* あんしん保障パック表示調整 */
.col2_block {
    margin: 0 20px;
}
/* エレモーズコラムスライドショー表示調整 */
.ecs-slider-wrap {
    display: flex;
}
.ecs-slider-wrap .ecs-swiper {
    width: 90%;
}
.ecs-slider-wrap .ecs-arrow {
    background: none;
}
.ecs-slider-wrap .ecs-dots {
    text-align: center;
}

/* --------------------------
   商品ページ Hero
-------------------------- */

/* Gutenberg の layout-constrained に合わせる */
.single-product .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: var(--wp--style--global--content-size);
  margin-left: auto !important;
  margin-right: auto !important;
}

/* カスタム商品テンプレ内の主要ブロックにも中央寄せを適用 */
.single-product .elemos-product-hero,
.single-product .elemos-product-tabs {
  max-width: var(--wp--style--global--content-size);
  margin-left: auto !important;
  margin-right: auto !important;
}

.elemos-product-hero {
  border-radius: 20px;
  padding: 0px;
  margin-top: 20px;
  margin-bottom: 60px;
}

.elemos-product-hero-inner {
  display: flex;
  gap: 36px;
  align-items: flex-start;
}

@media (max-width: 1024px) {
  .elemos-product-hero-inner {
    flex-wrap: wrap;
    gap: 0;
    flex-direction: column-reverse;
  }
  .elemos-product-info {
    width: 100%;
    flex: inherit;
  }
  .elemos-product-gallery {
    width: 50%;
    max-width: 300px;
    flex: inherit;
  }
}

/* 左カラム */
.elemos-product-info {
  flex: 1;
}

/* 商品名 */
.elemos-product-info h1.product_title {
  font-size: 30px;
  line-height: 1.4;
  font-weight: 700;
  margin-bottom: 20px;
}

/* ショート説明 */
.elemos-short {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 24px;
}

/* 価格 */
.elemos-product-info .price {
  font-size: 38px;
  font-weight: 700;
  margin: 25px 0 20px;
  color: #111;
}

/* 数量 + カート */
.elemoc-add-cart-block {
  margin-top: 20px;
  margin-bottom: 30px;
}

.quantity {
  margin-top: 10px !important;
  margin-bottom: 10px !important;
}

.quantity label {
  font-size: 15px !important;
  font-weight: 600;
  margin-bottom: 6px;
  display: inline-block;
}

.elemoc-add-cart-block button.single_add_to_cart_button {
  background: #5bcfff !important;
  color: #fff !important;
  font-size: 20px !important;
  padding: 16px 40px !important;
  border-radius: 999px !important;
  width: 100%;
  max-width: 360px;
  display: block;
  margin-top: 20px;
}

/* 右カラム（ギャラリー） */
.elemos-product-gallery {
  flex: 1;
  max-width: 500px;
  margin: 0 auto !important;
}

/* WooCommerceギャラリー本体を中央寄せ */
.elemoc-gallery-main .woocommerce-product-gallery {
  margin: 0 auto;
  width: 100%;
}

/* メイン画像（Blocksyのスライダー用） */
.elemoc-gallery-main .woocommerce-product-gallery .flexy-view[data-flexy-view="boxed"] {
  border-radius: 16px !important;
  overflow: visible !important;
  background: #fff !important;
  padding: 10px !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15) !important;
  position: relative !important;
}

.elemoc-gallery-main .flex-control-thumbs {
  display: flex !important;
  gap: 10px;
  margin-top: 16px;
  padding: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;      /* 横スクロール対応（枚数多い時に崩れない） */
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

/* サムネイル1枚ずつ */
.elemoc-gallery-main .flex-control-thumbs li {
  flex: 0 0 auto;
  list-style: none;
  display: block;
}

/* サムネイル画像 */
.elemoc-gallery-main .flex-control-thumbs img {
  width: 80px;
  height: 80px;
  object-fit: cover !important;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
  transition: all .2s ease;
  cursor: pointer;
}

/* アクティブなサムネイル（WooCommerce 自動付与） */
.elemoc-gallery-main .flex-control-thumbs img.flex-active {
  border: 2px solid #00aaff;
  transform: scale(1.05);
}

/* 商品ギャラリーの矢印スタイル - 常に表示 */
.elemoc-gallery-main .woocommerce-product-gallery [class*='flexy-arrow'] {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  width: 20px !important;
  height: 39px !important;
  transition: opacity .2s;
  opacity: 1 !important; /* 常に表示 */
  visibility: visible !important; /* 常に表示 */
  transform: none !important; /* アニメーションを無効化 */
  display: flex !important; /* 確実に表示 */
  position: absolute !important; /* 絶対配置 */
  z-index: 10 !important; /* 前面に表示 */
  pointer-events: auto !important; /* クリック可能にする */
}

/* 左右の位置を調整 */
.elemoc-gallery-main .woocommerce-product-gallery .flexy-arrow-prev {
  left: 10px !important;
}

.elemoc-gallery-main .woocommerce-product-gallery .flexy-arrow-next {
  right: 10px !important;
}

/* メディアクエリ内のスタイルも上書き */
@media (any-hover: hover) {
  .elemoc-gallery-main .woocommerce-product-gallery [class*='flexy-arrow'] {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
}

/* flexy-containerによるvisibility制御を無効化 */
.elemoc-gallery-main .woocommerce-product-gallery.flexy-container[data-flexy*="no"] .flexy > [class*='flexy-arrow'],
.elemoc-gallery-main .woocommerce-product-gallery .flexy-container[data-flexy*="no"] .flexy > [class*='flexy-arrow'] {
  visibility: visible !important;
}

.elemoc-gallery-main .woocommerce-product-gallery [class*='flexy-arrow'] svg {
  width: 20px;
  height: 39px;
  display: block;
}

.elemoc-gallery-main .woocommerce-product-gallery [class*='flexy-arrow']:hover {
  opacity: .7 !important;
  background: none !important;
  color: inherit !important;
  transform: none !important;
}

/* ホバー時の親要素による表示制御を無効化 */
.elemoc-gallery-main .woocommerce-product-gallery:hover [class*='flexy-arrow'],
.elemoc-gallery-main .woocommerce-product-gallery [class*='flexy']:hover [class*='flexy-arrow'] {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.elemoc-gallery-main .woocommerce-product-gallery [class*='flexy-arrow']:disabled,
.elemoc-gallery-main .woocommerce-product-gallery [class*='flexy-arrow'][aria-disabled="true"] {
  opacity: .3 !important;
  cursor: not-allowed !important;
}

/* タブ（説明欄）の余白 */
.elemos-product-tabs {
  margin-top: 60px;
}

/* Product total / Options total / Grand total を全部非表示 */
div.wapf-product-totals {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
}

.elemos-add-cart-form {
  display: flex !important;
  flex-direction: column !important;
}

/* 数量 */
.elemos-add-cart-form .elemos-qty-row {
  order: 1 !important;
  align-items: center;
  gap: 14px; /* ラベルと数量の間の余白 */
  margin-bottom: 20px;
}

/* 数量ラベル */
.elemos-qty-label {
  font-size: 15px;
  font-weight: 600;
  color: #111;
  white-space: nowrap; /* 改行しない */
}

/* WAPF */
.elemos-add-cart-form .wapf {
  order: 2 !important;
  color: #111;
}

.wapf .wapf-field-label.wapf--above > label > span {
  display: inline-block !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  margin-bottom: 8px !important;
}
/* 必須の * のみ */
.wapf .wapf-field-label.wapf--above > label > abbr.required {
  color: #e53935 !important;
  font-size: 20px !important;
  margin-left: 4px !important;
  font-weight: bold !important;
  text-decoration: none !important;
}

.wapf .wapf-field-description {
  font-size: 14px !important;
  color: #111 !important;
  margin-bottom: 8px !important;
  font-weight: 600 !important;
}

.wapf .wapf-field-input {
  margin-bottom: 8px !important;
}

.wapf .wapf-label-text {
  font-size: 16px !important;
  color: #111 !important;
  margin-bottom: 8px !important;
  font-weight: 600 !important;
}

.wapf .wapf-field-input input {
  font-size: 16px !important;
  color: #111 !important;
  margin-bottom: 8px !important;
  border-color: #ccc !important;
}

/* 数量の上下余白は不要になるので調整 */
.elemos-qty-block {
  margin-bottom: 0;
}

/* Blocksy の数量エリアを elemos-qty-row の右側へ */
.ct-cart-actions {
  margin: 0 !important;
}

/* Blocksy 数量フィールドの位置調整 */
.elemos-add-cart-form .ct-cart-actions {
  display: flex;
  align-items: center;
}

/* カートボタン */
.elemos-add-cart-form button.elemos-add-cart-btn {
  order: 3 !important;
  width: 100% !important;
  max-width: 700px !important;
  margin: 25px auto 0;
  padding: 16px 40px !important;
  border-radius: 999px !important;
  background: #5bcfff !important;
  color: #fff !important;
  font-size: 20px !important;
  font-weight: 700;
}

/* 商品ページ以外では「お問い合わせ」メニューを非表示 */
body:not(.single-product) #menu-item-23618 {
  display: none !important;
}


/* ========================================
   カスタムアーカイブページ
   ======================================== */

/* ヒーローセクション（アーカイブページ用） */
.custom-archive-hero {
  width: 100%;
  margin-bottom: 120px;
}

.hero-background {
  position: relative;
  width: 100%;
  height: 286px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-background img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #FFFFFF;
  max-width: 1120px;
  padding: 24px 0;
}

.hero-title {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 1.2;
  margin: 0 0 8px 0;
  color: #FFFFFF;
}

.hero-description {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  margin: 0;
  color: #FFFFFF;
}

/* ヒーローセクション（カテゴリーページ用） */
.category-hero {
  width: 100%;
  background: #34586D;
  padding: 0;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-hero-container {
  max-width: 1120px;
  width: 100%;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.category-hero-title {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 1.2;
  color: #FFFFFF;
  margin: 0;
}

.category-hero-description {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  color: #FFFFFF;
  margin: 0;
}

/* アーカイブコンテンツ */
.custom-archive-content {
  background: #F2F6F7;
  padding: 64px 160px 160px;
  min-height: 100vh;
}

.custom-archive-content .ct-container {
  max-width: 1120px;
  margin: 0 auto;
}

/* カテゴリータブ */
.archive-category-tabs {
  margin-bottom: 48px;
  width: 100%;
}

.category-tabs-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.category-tab {
  padding: 12px 24px;
  background: #FFFFFF;
  border: 2px solid #E0E0E0;
  border-radius: 30px;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  color: #333333;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.category-tab:hover {
  background: #F2F6F7;
  border-color: #34586D;
  color: #34586D;
}

.category-tab.active {
  background: linear-gradient(180deg, #06DDF7 0%, #01A6ED 100%);
  border-color: #01A6ED;
  color: #FFFFFF;
  font-weight: 700;
}

/* カテゴリーセクション */
.archive-category-section {
  margin-bottom: 80px;
}

.archive-category-section:last-child {
  margin-bottom: 0;
}

/* カテゴリーヘッダー */
.archive-category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 16px;
  margin-bottom: 32px;
}

.category-line {
  width: 8px;
  height: 36px;
  border-radius: 4px;
  background: linear-gradient(180deg, #06DDF7 0%, #01A6ED 100%);
  flex-shrink: 0;
}

.category-title {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.5;
  color: #000000;
  margin: 0;
  flex: 1;
}

/* カードグリッド */
.custom-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 352px);
  gap: 32px;
  justify-content: center;
  margin-bottom: 40px;
  transition: opacity 0.3s ease;
}

/* カード */
.custom-archive-card {
  background: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-archive-card:hover {
  transform: translateY(-4px);
  box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.3);
}

/* カードサムネイル */
.card-thumbnail {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
}

.card-thumbnail a {
  display: block;
  width: 100%;
  height: 100%;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.custom-archive-card:hover .card-image {
  transform: scale(1.05);
}

/* カードコンテンツ */
.card-content {
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

/* カードヘッダー */
.card-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 日付 */
.card-date {
  display: inline-flex;
  align-items: center;
  border-radius: 20px;
  background: transparent;
}

.date-text {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  color: #34586D;
}

/* カードタイトル */
.card-title {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.card-title a {
  color: #333333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.card-title a:hover {
  color: #34586D;
}

/* 区切り線 */
.card-divider {
  width: 100%;
  height: 1px;
  background: #E0E0E0;
}

/* カードフッター */
.card-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 8px 16px 8px 0;
}

/* 詳しく見るボタン */
.card-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.card-button:hover {
  opacity: 0.7;
}

.button-text {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  color: #34586D;
}

.card-button svg {
  width: 16px;
  height: 16px;
  color: #333333;
  flex-shrink: 0;
}

/* もっと見るボタン */
.category-more-button-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

.category-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 40px;
  background: #FFFFFF;
  border: 2px solid #34586D;
  border-radius: 60px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.category-more-button:hover {
  background: #F2F6F7;
  transform: translateY(-2px);
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
}

.category-more-button .button-text {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  color: #34586D;
}

.category-more-button svg {
  width: 16px;
  height: 16px;
  color: #34586D;
  flex-shrink: 0;
}

/* ページネーション */
.archive-pagination-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 64px;
}

.custom-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom-pagination .nav-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* ページ番号ボタン */
.custom-pagination .nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid #8FA0B7;
  border-radius: 3px;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.43;
  letter-spacing: 0.012em;
  color: #8FA0B7;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* 現在のページ */
.custom-pagination .nav-links .page-numbers.current {
  background: #4BD0FF;
  border-color: #4BD0FF;
  color: #FFFFFF;
  border-radius: 4px;
}

/* ホバー状態 */
.custom-pagination .nav-links .page-numbers:not(.current):not(.dots):hover {
  background: rgba(75, 208, 255, 0.1);
  border-color: #4BD0FF;
  color: #4BD0FF;
}

/* 矢印ボタン（prev/next） */
.custom-pagination .nav-links .prev,
.custom-pagination .nav-links .next {
  padding: 9px;
  border: none;
  background: transparent;
  width: auto;
  min-width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.custom-pagination .nav-links .prev svg,
.custom-pagination .nav-links .next svg {
  width: 24px;
  height: 24px;
  color: #8FA0B7;
  transition: color 0.3s ease;
}

.custom-pagination .nav-links .prev:hover,
.custom-pagination .nav-links .next:hover {
  background: rgba(143, 160, 183, 0.1);
  border: none;
  border-radius: 3px;
}

.custom-pagination .nav-links .prev:hover svg,
.custom-pagination .nav-links .next:hover svg {
  color: #4BD0FF;
}

/* ドット（...） */
.custom-pagination .nav-links .dots {
  border: none;
  background: transparent;
  color: #8FA0B7;
  cursor: default;
  pointer-events: none;
}

.custom-pagination .nav-links .dots:hover {
  background: transparent;
  border: none;
}

/* 投稿が見つからない場合 */
.no-posts-found {
  text-align: center;
  padding: 60px 20px;
  font-size: 18px;
  color: #666;
  transition: opacity 0.3s ease;
}

/* ローディング状態 */
.archive-loading {
  position: relative;
}

.archive-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #4BD0FF;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* レスポンシブ対応 */
@media (max-width: 1440px) {
  .custom-archive-content {
    padding: 64px 80px 120px;
  }
  
  .category-hero-container {
    padding: 24px 80px;
  }
}

@media (max-width: 1200px) {
  .custom-archive-grid {
    grid-template-columns: repeat(2, 352px);
  }
  
  .custom-archive-content {
    padding: 48px 40px 100px;
  }
  
  .category-hero-container {
    padding: 24px 40px;
  }
}

@media (max-width: 800px) {
  .hero-title {
    font-size: 36px;
  }
  
  .hero-description {
    font-size: 16px;
  }
  
  .category-hero-container {
    padding: 24px 20px;
  }
  
  .category-hero-title {
    font-size: 32px;
  }
  
  .category-hero-description {
    font-size: 16px;
  }
  
  .custom-archive-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .custom-archive-card {
    max-width: 450px;
    margin: 0 auto;
  }
  
  .custom-archive-content {
    padding: 32px 20px 80px;
  }
  
  .archive-category-section {
    margin-bottom: 60px;
  }
  
  .archive-category-header {
    padding: 8px 0;
  }
  
  .category-title {
    font-size: 20px;
  }
  
  .category-tabs-wrapper {
    gap: 12px;
  }
  
  .category-tab {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .category-more-button {
    padding: 12px 32px;
    font-size: 15px;
  }
  
  .custom-pagination .nav-links {
    gap: 12px;
  }
  
  .custom-pagination .nav-links .page-numbers {
    width: 36px;
    min-width: 36px;
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .custom-pagination .nav-links .prev svg,
  .custom-pagination .nav-links .next svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 640px) {
  .hero-background {
    height: 200px;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .hero-description {
    font-size: 14px;
  }
  
  .category-hero-container {
    padding: 24px 16px;
  }
  
  .category-hero-title {
    font-size: 24px;
  }
  
  .category-hero-description {
    font-size: 14px;
  }
  
  .custom-archive-content {
    padding: 24px 16px 60px;
  }
  
  .custom-archive-hero {
    margin-bottom: 60px;
  }
  
  .archive-category-section {
    margin-bottom: 48px;
  }
  
  .card-title {
    font-size: 18px;
  }
  
  .category-tabs-wrapper {
    gap: 8px;
  }
  
  .category-tab {
    padding: 8px 16px;
    font-size: 13px;
  }
  
  .archive-category-tabs {
    margin-bottom: 32px;
  }
  
  .category-more-button {
    padding: 10px 28px;
    font-size: 14px;
  }
  
  .category-more-button-wrapper {
    margin-top: 32px;
  }
  
  .custom-pagination .nav-links {
    gap: 8px;
  }
  
  .custom-pagination .nav-links .page-numbers {
    width: 32px;
    min-width: 32px;
    padding: 6px 10px;
    font-size: 12px;
  }
  
  .custom-pagination .nav-links .prev svg,
  .custom-pagination .nav-links .next svg {
    width: 18px;
    height: 18px;
  }
}


/* 会社概要ページ等に使用するスライドショー */
.slide-media,
.thumb-media {
  position: relative;
  overflow: hidden;
}
.slide-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.thumb-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 75%;
  -o-object-fit: cover;
     object-fit: cover;
}


.swiper-button-prev, .swiper-button-next {
  display: grid;
  place-content: center;
  width: 6.4rem;
  height: 6.4rem;
  cursor: pointer;
  -webkit-transition: var(--transition);
  transition: var(--transition);
}
.swiper-button-prev::before, .swiper-button-next::before {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  content: "";
  border-radius: 50%;
  -webkit-box-shadow: var(--box-shadow);
          box-shadow: var(--box-shadow);
}
.swiper-button-prev::after, .swiper-button-next::after {
  width: 1.2rem;
  height: 1.2rem;
  content: "";
  border: solid #ccc;
  border-width: 3px 3px 0 0;
}
.swiper-button-prev::after {
  margin-left: 0.4rem;
  -webkit-transform: rotate(-135deg);
          transform: rotate(-135deg);
}
.swiper-button-next::after {
  margin-right: 0.4rem;
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
}
.swiper-button-disabled {
  pointer-events: none;
  opacity: 0;
}

.gallery01 {
  overflow: hidden;
}
.gallery01 .swiper {
  max-width: 800px;
  margin: auto;
}
.gallery01 .thumb-wrapper {
  max-width: 600px;
  margin: auto;
}
.gallery01 .swiper {
  overflow: visible;
}
.gallery01 .swiper-fade .swiper-slide {
  -webkit-transition-property: opacity, -webkit-transform !important;
  transition-property: opacity, -webkit-transform !important;
  transition-property: opacity, transform !important;
  transition-property: opacity, transform, -webkit-transform !important;
  pointer-events: none;
}
.gallery01 .swiper-fade .swiper-slide-active {
  pointer-events: auto;
}
.gallery01 .swiper-controller {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding-top: 62.5%;
}
.gallery01 .swiper-button-prev, .gallery01 .swiper-button-next {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  margin: auto;
}
.gallery01 .swiper-button-prev {
  right: calc(100% + 3.2rem);
}
.gallery01 .swiper-button-next {
  left: calc(100% + 3.2rem);
}
.gallery01 .slide {
  display: block;
  overflow: hidden;
}
.gallery01 .slide-media {
  display: block;
  padding-top: 62.5%;
  border-radius: 4px;
}
.gallery01 .slide-media img {
  -o-object-fit: contain;
     object-fit: contain;
}
.gallery01 .slide-title {
  font-weight: bold;
  line-height: 1.6;
  padding: 3.2rem 0;
  text-align: center;
}
.gallery01 .thumb-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.gallery01 .thumb-media {
  padding-top: 100%;
  cursor: pointer;
  -webkit-transition: var(--transition);
  transition: var(--transition);
}
.gallery01 .thumb-media img {
  -webkit-transition: var(--transition);
  transition: var(--transition);
}
.gallery01 .thumb-media-active {
  -webkit-transform: scale(0.9);
          transform: scale(0.9);
  opacity: 0.3;
}
.gallery01 .thumb-media-active img {
  -webkit-transform: scale(1.1);
          transform: scale(1.1);
}



@media only screen and (max-width: 1024px) {
  html {
    -webkit-text-size-adjust: 100%;
  }
  .l-inner {
    padding: 0 4rem;
  }
  .pc {
    display: none !important;
  }
  .gallery01 .swiper-button-prev {
    right: calc(100% - 3.2rem);
  }
  .gallery01 .swiper-button-next {
    left: calc(100% - 3.2rem);
  }
}

@media only screen and (max-width: 599px) {
  html {
    font-size: 50%;
  }
  .pc-tab {
    display: none !important;
  }
  .gallery01 .thumb-wrapper {
    grid-template-columns: repeat(4, 1fr);
    padding: 0 40px;
  }
}

@media only screen and (min-width: 1025px) {
  .tab-sp {
    display: none !important;
  }
  .swiper-button-prev::before, .swiper-button-next::before {
    -webkit-transition: var(--transition);
    transition: var(--transition);
  }
  .swiper-button-prev:hover::before, .swiper-button-next:hover::before {
    -webkit-transform: scale(1.2);
            transform: scale(1.2);
  }
  .gallery01 .thumb-media:hover {
    -webkit-transform: scale(0.9);
            transform: scale(0.9);
  }
  .gallery01 .thumb-media:hover img {
    -webkit-transform: scale(1.1);
            transform: scale(1.1);
  }
}

@media only screen and (min-width: 600px) {
  .sp {
    display: none !important;
  }
}


/* トップページ等に使用するスライドショー */
.slide-box.gallery02 {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

/* ヘッダー直下の余白をなくす */
.home .entry-content > .slide-box.gallery02:first-child {
  margin-top: 0 !important;
}

.gallery02 .swiper-mv {
  width: 100%;
}

.gallery02 .swiper-slide {
  text-align: center;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery02 .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery02 .catchcopy {
  position: absolute;
  left:10%;
  top: 70%;
}

.gallery02 .catchcopy span {
  display: block;
  padding: 0px 10px;
  font-size: 35px;
  color: #fff;
  background-color: #4BD0FF;
  margin-bottom: 10px;
  text-align: left;
  font-weight: bold;
  width: fit-content;
}

@media only screen and (max-width: 1300px) {
  .gallery02 .swiper-mv {
    height: 100vh;
  }
}
@media only screen and (max-width: 600px) {
  .gallery02 .swiper-mv {
    height: inherit;
    max-height: initial;
  }
  .gallery02 .catchcopy {
    position: absolute;
    left:5%;
    top: 90%;
  }
  .gallery02 .catchcopy span {
    font-size: 16px;
    margin-bottom: -3px;
  }

/* 全体：スライダーの背景と上下余白 */
.elemos-swiper-container {
  width: 100%;
  padding: 0 0 40px;
  background: #f3f8f9; /* Elemo’sの薄い水色グレー */
  display: flex;
  justify-content: center;
}

/* スライダーの最大幅を制限して中央寄せ（これが一番効く） */
.elemos-swiper-container .swiper-wrapper {
  max-width: 1150px;
  margin: 0 auto;
}

/* スライド（カード） */
.elemos-swiper-container .swiper-slide {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0px 4px 18px rgba(0, 0, 0, 0.08);
}

/* カードの画像 */
.elemos-swiper-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

/* カード間の余白（SwiperのspaceBetweenだけだと不足するため補強） */
@media (min-width: 769px) {
  .elemos-swiper-container .swiper-slide {
    margin: 0 10px;
  }
}

/* ドットのデザイン（必ず表示させる） */
.elemos-swiper-container .swiper-pagination-bullet {
  background: #bde8f5;
  opacity: 1;
}

.elemos-swiper-container .swiper-pagination-bullet-active {
  background: #32b6e6;
}

}

/* ======================================================
  販売店向け商品専用レイアウト（上部ヒーロー + ボタン周り）
====================================================== */
body.single-product.elemos-dealer-order-page #elem-orderpage {
  max-width: 1100px;
  margin: 0 auto 60px;
  padding: 30px 16px 40px;
}

/* ヒーロー（タイトル + 説明 + 画像を縦並び中央寄せ） */
body.single-product.elemos-dealer-order-page .elem-hero {
  text-align: center;
  margin-bottom: 32px;
}

body.single-product.elemos-dealer-order-page .elem-hero img {
  display: block;
  margin: 20px auto 0;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  object-fit: cover;
}

body.single-product.elemos-dealer-order-page .elem-title {
  font-size: 26px;
  font-weight: 700;
  margin: 8px 0 6px;
  line-height: 1.4;
}

body.single-product.elemos-dealer-order-page .elem-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: #555;
}

/* WooCommerce のカートフォーム（販売店向け商品のみ） */
body.single-product.elemos-dealer-order-page form.cart {
  margin: 0 0 32px;
  padding: 20px 18px;
  background: #f8f9fb;
  border-radius: 10px;
  border: 1px solid #dfe4ef;
}

body.single-product.elemos-dealer-order-page form.cart .single_add_to_cart_button {
  min-width: 260px;
  padding: 14px 28px;
  font-size: 16px;
}

/* 下部共通パーツとの間隔 */
body.single-product.elemos-dealer-order-page .elemos-product-bottom-content {
  margin-top: 40px;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
  body.single-product.elemos-dealer-order-page #elem-orderpage {
    padding: 20px 12px 32px;
  }

  body.single-product.elemos-dealer-order-page .elem-title {
    font-size: 22px;
  }

  body.single-product.elemos-dealer-order-page .elem-desc {
    font-size: 13px;
  }

  body.single-product.elemos-dealer-order-page form.cart {
    padding: 16px 14px;
  }

  body.single-product.elemos-dealer-order-page form.cart .single_add_to_cart_button {
    width: 100%;
  }
}

body.single-product.elemos-dealer-order-page .wapf-field-checkboxes .wapf-check-wrap {
  display: flex;
  align-items: center;          /* 行の中心に揃える */
  justify-content: flex-start;
  gap: 20px;
  border: 1px solid #d0d7e2;
  padding: 18px 20px;
  margin-bottom: 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: .25s ease;
  background: #fff;
}

body.single-product.elemos-dealer-order-page .wapf-field-checkboxes .wapf-check-wrap:hover {
  border-color: #3b82f6;
  background: #f8fbff;
}

body.single-product.elemos-dealer-order-page .wapf-check-wrap.checked {
  border-color: #3b82f6 !important;
  background: #e8f1ff !important;
}

body.single-product.elemos-dealer-order-page .wapf-check-wrap .vehicle-image {
  width: 130px;
  height: auto;
  border-radius: 6px;
}

body.single-product.elemos-dealer-order-page .wapf-checkable {
    display: flex !important;
    align-items: center !important;
    gap: 16px;
}

/* チェックボックス自体を大きく*/
body.single-product.elemos-dealer-order-page .wapf-field-checkboxes input[type="checkbox"] {
  display: flex;
  width: 22px;
  height: 22px;
  margin: 0;
  flex-shrink: 0;
}

/* ラベルテキストと画像の並び */
body.single-product.elemos-dealer-order-page .wapf-field-checkboxes .wapf-label-text {
  font-size: 16px;
  font-weight: 600;
}

body.single-product.elemos-dealer-order-page .wapf-field-checkboxes .wapf-label-text {
  font-size: 18px;
  font-weight: 600;
}

/* 数量ラベルブロック全体を非表示（販売店向け商品のみ） */
body.single-product.elemos-dealer-order-page .elemos-qty-block {
  display: none !important;
}

/* 数量ラベルも非表示（販売店向け商品のみ） */
body.single-product.elemos-dealer-order-page .elemos-qty-label {
  display: none !important;
}

/* 数量行全体を非表示（販売店向け商品のみ） */
body.single-product.elemos-dealer-order-page .elemos-qty-row {
  display: none !important;
}

/* 合計金額表示（販売店向け商品のみ） */
body.single-product.elemos-dealer-order-page .elemos-total-summary {
  order: 3 !important;
  margin: 30px 0;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.single-product.elemos-dealer-order-page .elemos-total-header {
  background: #5bcfff !important;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  padding: 15px 20px;
  letter-spacing: 0.5px;
}

body.single-product.elemos-dealer-order-page .elemos-total-content {
  padding: 20px;
}

body.single-product.elemos-dealer-order-page .elemos-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 16px;
}

body.single-product.elemos-dealer-order-page .elemos-total-label {
  color: #333;
  font-weight: 500;
}

body.single-product.elemos-dealer-order-page .elemos-total-value {
  color: #333;
  font-weight: 600;
  text-align: right;
}

body.single-product.elemos-dealer-order-page .elemos-total-divider {
  height: 1px;
  background: #e0e0e0;
  margin: 10px 0;
}

body.single-product.elemos-dealer-order-page .elemos-total-row.elemos-total-grand {
  padding: 15px 0 5px;
  border-top: 2px solid #e0e0e0;
  margin-top: 10px;
}

body.single-product.elemos-dealer-order-page .elemos-total-row.elemos-total-grand .elemos-total-label {
  font-size: 18px;
  font-weight: 700;
}

body.single-product.elemos-dealer-order-page .elemos-total-row.elemos-total-grand .elemos-total-value {
  font-size: 20px;
  font-weight: 700;
  color: #d32f2f;
}

.vehicle-image {
  width: 120px;
  height: auto;
  border-radius: 6px;
  margin-bottom: 10px;
}

body.elemos-dealer-order-page .wapf-field-input.checked,
body.elemos-dealer-order-page .wapf-check-wrap.checked {
    border-color: #3b82f6 !important;
    background: #e8f1ff !important;
}

/* ===============================
  販売店向け商品 ご注意事項ボックス
================================= */
body.single-product.elemos-dealer-order-page .elemos-notice-box {
  margin: 36px 0 32px;
  padding: 18px 22px;
  border-radius: 8px;
  background: #f5f7f8;
  border: 1px solid #e1e5ea;
  font-size: 13px;
  line-height: 1.8;
  color: #444;
}

body.single-product.elemos-dealer-order-page .elemos-notice-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
}

body.single-product.elemos-dealer-order-page .elemos-notice-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 4px;
}

body.single-product.elemos-dealer-order-page .elemos-notice-item {
  position: relative;
  padding-left: 1.2em;
}

body.single-product.elemos-dealer-order-page .elemos-notice-item::before {
  content: "※";
  position: absolute;
  left: 0;
  top: 0;
}

body.single-product.elemos-dealer-order-page .elemos-notice-item a {
  color: #0073aa;
  text-decoration: underline;
}

body.single-product.elemos-dealer-order-page .elemos-notice-item a:hover {
  color: #005177;
}

@media (max-width: 768px) {
  body.single-product.elemos-dealer-order-page .elemos-notice-box {
    margin: 28px -8px 24px;
    border-radius: 0;
    padding: 14px 16px;
    font-size: 12px;
  }

  body.single-product.elemos-dealer-order-page .elemos-notice-title {
    font-size: 13px;
  }

  body.single-product.elemos-dealer-order-page .elemos-notice-content {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   商品ページタブのテキスト非表示
================================= */
/* 説明タブのテキストを非表示 */
.woocommerce-tabs .description_tab a {
  font-size: 0 !important;
  line-height: 0 !important;
}

/* 追加情報タブのテキストを非表示 */
.woocommerce-tabs .additional_information_tab a {
  font-size: 0 !important;
  line-height: 0 !important;
}

/* ===============================
   カート追加成功ポップアップ
================================= */
.elemos-cart-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 24px 32px;
  min-width: 300px;
  max-width: 90%;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.elemos-cart-popup.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.elemos-cart-popup.hide {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) scale(0.9);
}

.elemos-cart-popup-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: #5bcfff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
}

.elemos-cart-popup-icon::before {
  content: "✓";
  font-weight: bold;
}

.elemos-cart-popup-message {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.elemos-cart-popup-submessage {
  font-size: 14px;
  color: #666;
}

@media (max-width: 768px) {
  .elemos-cart-popup {
    padding: 20px 24px;
    min-width: 280px;
  }

  .elemos-cart-popup-icon {
    width: 56px;
    height: 56px;
    font-size: 28px;
    margin-bottom: 12px;
  }

  .elemos-cart-popup-message {
    font-size: 16px;
  }

  .elemos-cart-popup-submessage {
    font-size: 13px;
  }
}

/* ===============================
   ヘッダーカートボタンのバッジ
================================= */
.header-btn.kaede-contact-link {
  position: relative;
}

.header-cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #e53935;
  color: #fff;
  border-radius: 12px;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  padding: 0 6px;
  line-height: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header-cart-badge:empty {
  display: none;
}

@media (max-width: 768px) {
  .header-cart-badge {
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    padding: 0 5px;
  }
}

#sticky-add-to-cart {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.5);
  padding: 10px 15px;
}

.sticky-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center; /* ボタンを中央寄せ */
  align-items: center;
}

.sticky-cart-btn {
  background: #5bcfff;
  color: #fff;
  border: none;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 700;
  width: 100%;
  max-width: 400px;
  min-width: 200px;
}

.sticky-cart-btn:hover {
  opacity: 0.85;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  #sticky-add-to-cart {
    padding: 12px 16px;
  }

  .sticky-cart-btn {
    width: 100%;
    max-width: 100%;
    padding: 16px 24px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  #sticky-add-to-cart {
    padding: 10px 12px;
  }

  .sticky-cart-btn {
    padding: 14px 20px;
    font-size: 14px;
  }
}


/* ===============================
   固定ページ 表示調整
================================= */
@media only screen and (max-width: 600px) {
  .hero-section[data-type=type-1] {
    min-height: 40px;
  }
}