/* =========================================
   bd-product.css（完全置換版）
   ========================================= */

/* ===== Base ===== */
.bd-product{
  max-width: 980px;
  margin: 0 auto;
  padding: 16px;
}

.bd-title{
  font-size: 24px;
  line-height: 1.35;
  margin: 0 0 12px;
}

/* ===== Gallery ===== */
.bd-gallery{
  margin: 12px 0 18px;
}

.bd-gallery__main{
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.bd-gallery__mainBtn{
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  width: 100%;
  cursor: pointer;
}

.bd-gallery__mainBtn img{
  width: 100%;
  height: auto;
  display: block;
  max-height: 520px;
  object-fit: contain;
}

/* thumbs */
.bd-gallery__thumbs{
  display: flex;
  gap: 10px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.bd-gallery__thumb{
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 0;
  background: #fff;
  cursor: pointer;
}

.bd-gallery__thumb[aria-current="true"]{
  outline: 2px solid rgba(0,0,0,0.35);
}

.bd-gallery__thumb img{
  width: 72px;
  height: 72px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

/* ===== Spec ===== */
.bd-product-single .bd-spec{
  margin-top: 22px;
  margin-bottom: 30px !important; /* スペック表と資料請求ボックスの間に30px余白 */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.bd-h2{
  font-size: 18px;
  margin-bottom: 10px;
}

.bd-specTable{
  width: 100%;
  border-collapse: collapse;
}

.bd-specTable th,
.bd-specTable td{
  border: 1px solid #e6e6e6;
  padding: 10px;
}

.bd-specTable th{
  width: 28%;
  background: #fafafa;
}

/* spec highlight */
.bd-specHighlight{
  margin: 8px 0 12px;
}

/* ===== 添付資料ボタン ===== */
.bd-docButton{
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #e6e6e6;
  background: #fff;
  text-decoration: none;
  line-height: 1;
}

.bd-docButton:hover{
  opacity: .85;
}

/* ===== Actions ===== */
.bd-actions{
  margin-top: 18px;
}

/* 資料請求ボックス：スペック表と同じ幅・グレー背景・30px余白を確実に確保 */
.bd-product-single .bd-product-bottom .bd-request-box{
  margin-top: 30px !important; /* スペック表との間に30px余白（赤矢印箇所） */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 1rem;
  background: var(--site-bg-gray, #e9ecef);
}

/* 下部1カラム：スペック表と資料請求ボックスの幅を完全に統一 */
.bd-product-single .bd-product-bottom{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.bd-product-single .bd-product-bottom .bd-spec,
.bd-product-single .bd-product-bottom .bd-request-box{
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  box-sizing: border-box;
}

.bd-product-single .bd-product-bottom .bd-specTable{
  width: 100% !important;
}

/* 資料請求ボタン：ロゴ1色目（ネイビー） */
.bd-product-single .bd-product-add-request .bd-add-to-request,
.bd-product-single .bd-request-box .bd-add-to-request{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  font-size: 0.95em;
  font-weight: 700;
  border-radius: 8px;
  border: 0;
  color: #fff !important;
  background: var(--bd-btn-primary, #2bb2f5) !important;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: 0 1px 3px rgba(43, 178, 245, 0.35);
}

.bd-product-single .bd-product-add-request .bd-add-to-request:hover,
.bd-product-single .bd-request-box .bd-add-to-request:hover{
  background: var(--bd-btn-primary-hover, #1a9de0) !important;
  box-shadow: 0 4px 12px rgba(43, 178, 245, 0.4);
  transform: translateY(-1px);
}

.bd-product-single .bd-product-add-request .bd-add-to-request:active,
.bd-product-single .bd-request-box .bd-add-to-request:active{
  background: var(--bd-btn-primary-active, #1589c7) !important;
  box-shadow: 0 1px 2px rgba(43, 178, 245, 0.3);
  transform: translateY(0);
}

/* ===== Lightbox ===== */
.bdp-lightbox{
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}

.bdp-lightbox.is-open{
  display: block;
}

.bdp-lightbox__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.75);
}

.bdp-lightbox__panel{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.bdp-lightbox__img{
  max-width: 95vw;
  max-height: 90vh;
  display: block;
  border-radius: 10px;
}

.bdp-lightbox__close{
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
}

/* ===== 添付資料ボタン（複数対応） ===== */
.bd-docButtons{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bd-docButton{
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #e6e6e6;
  background: #fff;
  text-decoration: none;
  line-height: 1;
}

.bd-docButton:hover{
  opacity: .85;
}

/* PDFだけ少し意味づけ（任意：不要なら消してOK） */
.bd-docButton.is-pdf{
  font-weight: 600;
}

/* =========================
   製品詳細 上部レイアウト復活（2カラム）
   ========================= */

/* 親：2カラム（左：画像 / 右：情報） */
.bd-product-single .bd-product-layout{
  display: grid !important;
  grid-template-columns: 1.25fr 1fr;
  gap: 24px;
  align-items: start;
}

/* 左：画像 */
.bd-product-single .bd-product-col--media{
  min-width: 0;
}

/* 右：情報 */
.bd-product-single .bd-product-col--info{
  min-width: 0;
}

/* モバイル時は縦積み */
@media (max-width: 900px){
  .bd-product-single .bd-product-layout{
    grid-template-columns: 1fr;
  }

  /* サムネイルヒント：モバイル時は非表示 */
  .bd-product-single .bd-gallery-hint{
    display: none;
  }
}

/* =========================
   Unapproved product page (薬機法・安全固定)
   ========================= */
.bd-unapproved{
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.bd-unapproved__title{
  font-size: 32px;
  line-height: 1.25;
  font-weight: 700;
  margin: 6px 0 12px;
  color: #0A2540; /* ネイビー */
}

.bd-unapproved__lead{
  line-height: 1.9;
  margin: 0 0 16px;
  color: #333;
}

.bd-unapproved__cta{
  margin: 10px 0 22px;
}

.bd-unapproved__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 700;
  color: #fff;
  background: var(--bd-btn-primary, #2bb2f5);
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  box-shadow: 0 1px 3px rgba(43, 178, 245, 0.35);
}

.bd-unapproved__btn:hover{
  background: var(--bd-btn-primary-hover, #1a9de0);
  box-shadow: 0 4px 12px rgba(43, 178, 245, 0.4);
  transform: translateY(-1px);
}

.bd-unapproved__btn:active{
  background: var(--bd-btn-primary-active, #1589c7);
  box-shadow: 0 1px 2px rgba(43, 178, 245, 0.3);
  transform: translateY(0);
}

.bd-unapproved__h2{
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #111;
}

.bd-unapproved__h2--center{
  text-align: center;
  margin-top: 26px;
}

.bd-unapproved__table{
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.bd-unapproved__table th,
.bd-unapproved__table td{
  border: 1px solid #e6e6e6;
  padding: 10px 12px;
  vertical-align: top;
}

.bd-unapproved__table th{
  width: 25%;
  background: #fafafa;
  font-weight: 700;
}

.bd-unapproved__form{
  margin-top: 18px;
}

/* CF7の最低限整形（安全） */
.bd-unapproved__form .wpcf7 form{
  max-width: 760px;
  margin: 0 auto;
}
