@charset "UTF-8";

/* =========================================
   Product Detail Page Specific Styles
   ========================================= */

/* ▼▼▼ スマホ調整 ▼▼▼ */
@media (max-width: 959px) {
  #vl-detail-page .vl-section {
    padding-top: 16px !important; 
    padding-bottom: 24px !important;
  }
  #vl-detail-page .vl-breadcrumb {
    margin-bottom: 16px !important; 
  }
  #vl-detail-page .vl-prod-tab-section {
    margin-bottom: 24px !important;
  }
  #vl-detail-page .vl-info-banners {
    padding-top: 24px !important;
    margin-top: 0 !important;
  }
}

/* ===== Layout ===== */
@media(min-width: 960px) {
  .vl-prod-layout {
    display: grid;
    grid-template-columns: minmax(0, 58%) minmax(0, 42%);
    gap: 40px;
  }
}

/* ===== Gallery ===== */
.vl-prod-gallery { margin-inline: -16px; position: relative; }
@media(min-width: 960px) { .vl-prod-gallery { margin-inline: 0; } }

/* 画像ラッパー (矢印配置の基準) */
.main-image-wrapper {
  position: relative;
  margin-bottom: 8px;
}

/* ▼▼▼ 修正: 画像比率を「元のまま(auto)」に確定 ▼▼▼ */
.vl-prod-gallery .main-image {
  aspect-ratio: auto; /* ここが3/4になっていたのを修正 */
  background: #f0f0f0; 
  border: 1px solid #eee; 
  overflow: hidden; 
  height: auto;
  cursor: zoom-in; 
}

.vl-prod-gallery .main-image img { 
  width: 100%; 
  height: auto; 
  object-fit: contain; 
  display: block; 
}

/* メイン画像の矢印ナビゲーション */
.vl-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #ddd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
  opacity: 0; 
}
.vl-gallery-nav svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #0b0917;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.vl-gallery-nav.prev { left: 10px; }
.vl-gallery-nav.next { right: 10px; }

@media(hover: hover) {
  .main-image-wrapper:hover .vl-gallery-nav { opacity: 1; }
  .vl-gallery-nav:hover { background: #0b0917; border-color: #0b0917; }
  .vl-gallery-nav:hover svg { stroke: #fff; }
}
@media(max-width: 959px) { .vl-gallery-nav { display: none; } }

.vl-prod-gallery .thumbnails { display: flex; gap: 8px; padding-inline: 16px; padding-bottom: 8px; overflow-x: auto; }
@media(min-width: 960px) { .vl-prod-gallery .thumbnails { padding-inline: 0; } }
.vl-prod-gallery .thumb { flex: 0 0 70px; aspect-ratio: 1/1; border: 1px solid #ddd; cursor: pointer; opacity: 0.7; transition: .2s; }
.vl-prod-gallery .thumb.is-active { opacity: 1; border-color: #0b0917; }
.vl-prod-gallery .thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Info ===== */
.vl-prod-info { padding-top: 16px; position: relative; }
@media(min-width: 960px) { .vl-prod-info { padding-top: 0; position: sticky; top: 100px; align-self: start; } }

/* 隠しリンク */
.vl-secret-link { position: absolute; top: 0; right: 0; width: 40px; height: 40px; opacity: 0; z-index: 900; cursor: default; }

.vl-prod-info .name { font-size: var(--fz-l); font-weight: 700; margin: 0 0 12px; line-height: 1.4; }
.vl-prod-info .price { font-size: var(--fz-l); font-weight: 600; margin: 0 0 16px; }
.vl-prod-info .price.is-sale { margin-top: 0; }
.vl-prod-info .price.is-sale span { color: #c00; }
.vl-prod-info .price del { color: #aaa; font-size: 0.8em; margin-right: 8px; }

/* セールバッジ */
.vl-sale-badge {
  display: inline-block;
  background: #cc0000;
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 6px;
  line-height: 1;
}

.vl-sales-note { font-size: 11px !important; color: #666; margin-top: 4px; font-weight: normal; }

/* Fav Button */
.vl-fav-button { margin: 16px 0; }
.vl-fav-button-trigger { display: inline-flex; align-items: center; gap: 8px; background: none; border: none; font-weight: 600; cursor: pointer; }
.vl-fav-button-trigger svg { width: 20px; height: 20px; stroke: #0b0917; fill: none; stroke-width: 1.8; }
.vl-fav-button-trigger.is-active svg { fill: #0b0917; }

/* Cart Form */
.vl-cart-form { margin-top: 16px; border-top: 1px solid #eee; padding-top: 16px; }
.vl-form-group { margin-bottom: 16px; }
.vl-form-group > label { display: block; font-size: var(--fz-xs); font-weight: 600; margin-bottom: 8px; }
.vl-cart-form select { width: 100%; font-family: inherit; font-size: var(--fz-s); padding: 10px 12px; border-radius: 8px; border: 1px solid #ddd; background-color: #fff; cursor: pointer; }

/* 数量＆お気に入りエリア */
.vl-quantity-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px; 
  margin-top: 16px;
}

.vl-quantity-selector--horizontal {
  display: flex; 
  flex-direction: row; 
  align-items: center; 
  gap: 16px; 
  margin: 0; 
}
.vl-quantity-selector label { font-size: var(--fz-xs); font-weight: 600; margin: 0; }

.vl-qty-control {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px; 
  overflow: hidden;
  background: #f9f9f9;
  height: 40px; 
}
.vl-qty-btn {
  width: 40px;
  height: 100%;
  background: transparent;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.vl-qty-btn:hover { background: #eee; color: #0b0917; }
.vl-qty-control input[type="number"] {
  width: 50px;
  height: 100%;
  border: none;
  border-left: 1px solid #eee;
  border-right: 1px solid #eee;
  background: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  -moz-appearance: textfield;
}
.vl-qty-control input[type="number"]::-webkit-inner-spin-button,
.vl-qty-control input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* シンプルお気に入りボタン */
.vl-fav-icon-btn {
  background: none;
  border: 1px solid #ddd;
  border-radius: 50%; 
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: auto;
}
.vl-fav-icon-btn:hover { border-color: #999; }
.vl-fav-icon-btn svg { width: 20px; height: 20px; stroke: #ccc; fill: none; stroke-width: 2; transition: all 0.2s ease; }
.vl-fav-icon-btn.is-active { border-color: #cc0000; }

.vl-stock-status-wrap { margin-bottom: 16px; }

/* カートボタン */
.vl-add-to-cart {
  width: 100%; background: #0b0917; color: #fff; padding: 16px; border-radius: 8px; font-weight: 700; cursor: pointer; transition: all 0.2s ease;
}
.vl-add-to-cart:hover { background: #fff; color: #0b0917; border: 1px solid #0b0917; }
.vl-add-to-cart:disabled { background: #ccc; cursor: not-allowed; border-color: #ccc; }

/* 安心材料 */
.vl-reassurance-info { margin-top: 16px; margin-bottom: 24px; font-size: 11px; color: #666; line-height: 1.6; }
.vl-reassurance-link { text-decoration: none; color: inherit; display: block; padding: 4px 0; }
.vl-reassurance-link:hover { color: #0b0917; opacity: 0.8; }
.vl-reassurance-info p { margin: 0 0 4px; }

/* Fallback: Table Option */
.vl-option-table-sku { margin: 0 0 16px; border: 1px solid #eee; border-radius: 8px; overflow: hidden; }
.vl-option-table-sku table { width: 100%; border-collapse: collapse; }
.vl-option-table-sku th { font-size: var(--fz-xs); font-weight: 600; background: #f9f9f9; padding: 14px 10px; }
.vl-option-table-sku td { padding: 14px 10px; text-align: center; border-bottom: 1px solid #eee; }
.vl-option-table-sku input[type="text"] { width: 60px; padding: 10px; border-radius: 8px; border: 1px solid #ddd; text-align: center; }

/* ===== JS Chip Option ===== */
.vl-option-chips--custom { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; align-items: stretch; }
.vl-chip-wrapper { display: flex; flex: 0 0 auto; }
.vl-chip-wrapper input[type="radio"] { display: none; }
.vl-chip-wrapper label {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 14px 20px; border: 1px solid #ddd; background: #fff; border-radius: 6px; cursor: pointer;
  min-width: 80px; min-height: 60px; width: 100%; height: 100%; text-align: center; transition: all 0.2s; color: #333;
  -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;
}
.vl-chip-wrapper label:not(.disabled):hover { background-color: #f1f1ee; border-color: #dcdcdc; }
.vl-chip-wrapper label.disabled { background: #f9f9f9; cursor: not-allowed; opacity: 0.6; }
.vl-chip-wrapper label.disabled .name { text-decoration: line-through; color: #aaa; }
.vl-chip-wrapper input[type="radio"]:checked + label { border-color: #0b0917; background-color: #0b0917; color: #fff; }
.vl-chip-wrapper input[type="radio"]:checked + label .name,
.vl-chip-wrapper input[type="radio"]:checked + label .stock,
.vl-chip-wrapper input[type="radio"]:checked + label .stock.few { color: #fff !important; }
.vl-chip-wrapper .name { font-size: 15px; font-weight: bold; margin-bottom: 4px; }
.vl-chip-wrapper .stock { font-size: 11px; display: block; }
.vl-chip-wrapper .stock.out { color: #ccc; }
.vl-chip-wrapper .stock.in { color: #888; }
.vl-chip-wrapper .stock.few { color: #999; font-weight: bold; }
.vl-option-label { font-size: 14px; font-weight: bold; }
.vl-option-note { font-size: 12px; font-weight: normal; color: #666; }
#js-raw-option-table { display: none !important; }

/* ===== Tab & Description ===== */
.vl-prod-tab-section { margin-top: 48px; }
.vl-tab-nav { display: flex; border-bottom: 1px solid #eee; margin-bottom: 24px; }
.vl-tab-btn {
  flex: 1; padding: 12px; background: none; border: none; border-bottom: 2px solid transparent; 
  font-size: 15px !important; font-weight: 700; color: #666; cursor: pointer; transition: all 0.2s;
}
.vl-tab-btn.is-active { color: #0b0917; border-bottom-color: #0b0917; }
.vl-tab-panel { display: none; }
.vl-tab-panel.is-active { display: block; }
.vl-prod-description { font-size: 13px !important; line-height: 1.8; color: #333; }
.vl-prod-description p { margin: 0 0 1.5em; }
.vl-prod-description h2 { font-size: 20px; font-weight: 800; margin-top: 40px; margin-bottom: 16px; }
.vl-prod-description h3 { font-size: 16px; font-weight: 700; margin-top: 28px; margin-bottom: 12px; }
.vl-prod-description table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 12px; }
.vl-prod-description th, .vl-prod-description td { border-bottom: 1px solid #eee; padding: 12px; text-align: left; }
.vl-prod-description th { font-weight: 600; }

/* ===== Related & Info ===== */
.vl-related-paths { margin-top: 40px; border-bottom: none; }
.vl-related-paths h3 { font-size: 12px; color: #666; letter-spacing: .08em; margin-bottom: 10px; font-weight: 700; }
.vl-related-paths .vl-tags a {
  display: inline-block; margin-right: 12px; font-size: 12px; color: #666; text-decoration: none; padding: 6px 12px; 
  border-radius: 20px; border: 1px solid transparent; transition: all 0.2s ease;
}
.vl-related-paths .vl-tags a:hover { background-color: #0b0917; color: #fff !important; }

/* 線なし・余白調整 */
.vl-info-banners::before { content: none !important; display: none !important; }
.vl-info-banners {
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 12px; 
  border-top: none; 
  margin-top: 0; 
  padding-top: 32px; 
}
@media(min-width: 960px) {
  .vl-info-banners { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 24px; 
  }
}
.vl-info-banners a {
  display: flex; align-items: center; gap: 16px; padding: 20px; border: 1px solid #e5e5e3; border-radius: 12px; text-decoration: none; color: #0b0917; transition: all 0.2s ease;
}
.vl-info-banners .material-symbols-outlined { font-size: 28px; transition: color 0.2s ease; }
.vl-info-banners .title { font-weight: 700; font-size: 13px; transition: color 0.2s ease; }
.vl-info-banners .subtitle { font-size: 11px; color: #666; transition: color 0.2s ease; }
.vl-info-banners a:hover { background-color: #0b0917; border-color: #0b0917; }
.vl-info-banners a:hover .material-symbols-outlined, .vl-info-banners a:hover .title { color: #fff !important; }
.vl-info-banners a:hover .subtitle { color: #ccc !important; }

/* ===== Mobile Sticky Cart Bar (スクロール表示修正版) ===== */
.vl-sticky-cart-bar {
  display: none; 
  position: sticky; 
  bottom: 64px; 
  left: 0; 
  right: 0; 
  z-index: 70; 
  background: #fff; 
  border-top: 1px solid #eee;

  /* ▼▼▼ 追加: 最初は隠しておく設定 ▼▼▼ */
  opacity: 0;                     /* 透明にする */
  visibility: hidden;             /* クリック判定も消す */
  transform: translateY(20px);    /* 少し下に下げておく */
  transition: all 0.3s ease-out;  /* アニメーション設定 */
}

@media(max-width: 959px) { 
  .vl-sticky-cart-bar { 
    display: block; 
  }

  /* ▼▼▼ 追加: JSでクラスがついたら表示する設定 ▼▼▼ */
  .vl-sticky-cart-bar.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

.vl-sticky-cart-bar .container {
  display: flex; 
  align-items: center; 
  gap: 12px; 
  padding: 12px 16px; 
}
.vl-sticky-cart-bar .price { display: none; }

/* 追従ボタン（ベージュ） */
.vl-sticky-cart-bar .vl-add-to-cart { 
  margin-top: 0; 
  width: 100%; 
  background: #e5e5e3;
  color: #0b0917;
  border: 1px solid #e5e5e3; 
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.vl-sticky-cart-bar .vl-add-to-cart::after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-top: 2px solid #0b0917;
  border-right: 2px solid #0b0917;
  transform: rotate(-45deg); 
  position: absolute;
  right: 20px;
  top: 50%;
  margin-top: -3px; 
  transition: all 0.2s ease;
}
.vl-sticky-cart-bar .vl-add-to-cart:hover {
  background: #0b0917;
  color: #fff;
  border-color: #0b0917;
  opacity: 1;
}
.vl-sticky-cart-bar .vl-add-to-cart:hover::after {
  border-color: #fff;
}

/* =========================================
   ▼▼▼ PhotoSwipe Custom (New: Elegant Arrows) ▼▼▼
   ========================================= */
.pswp__button--arrow .pswp__icn { display: none !important; }
.pswp__button--arrow {
  background: none !important; 
  width: 50px !important;
  height: 100% !important;     
  top: 0 !important;
  margin-top: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0.8 !important;
  transition: opacity 0.2s ease !important;
}
.pswp__button--arrow:hover { opacity: 1 !important; }
.pswp__button--arrow::before {
  content: ''; display: block; width: 14px; height: 14px;
  border-top: 1px solid #fff; border-right: 1px solid #fff;
  transform: rotate(45deg); 
  filter: drop-shadow(0 0 2px rgba(0,0,0,0.5));
}
.pswp__button--arrow--prev::before { transform: rotate(-135deg); margin-left: 4px; }
.pswp__button--arrow--next::before { transform: rotate(45deg); margin-right: 4px; }
.pswp__button--close { opacity: 0.8 !important; }
.pswp__button--close:hover { opacity: 1 !important; }

/* =========================================
   Gift Wrapping Table
   ========================================= */
.vl-gift-table-wrap {
  border: 1px solid #e5e5e3;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 24px;
  margin-bottom: 24px;
  max-width: 100%;
}

.vl-gift-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* 各列の幅を均等にする */
}

/* ヘッダーエリア */
.vl-gift-table th {
  background: #f9f9f9;
  border-bottom: 1px solid #e5e5e3;
  border-right: 1px solid #e5e5e3;
  padding: 0; /* リンクを広げるためにpaddingを0にする */
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #0b0917;
}

.vl-gift-table th:last-child {
  border-right: none;
}

/* ヘッダー内のリンク（th全体をクリック可能にする） */
.vl-gift-table th a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 12px 4px;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #ccc; /* 下線を少し薄くして上品に */
  transition: all 0.2s ease;
}

/* ホバー時の挙動：サイト内のタグやボタンと同様に黒反転 */
.vl-gift-table th a:hover {
  background: #0b0917;
  color: #ffffff;
  text-decoration: none;
}

/* データエリア */
.vl-gift-table td {
  text-align: center;
  vertical-align: middle;
  padding: 16px 8px;
  border-right: 1px solid #e5e5e3;
  color: #0b0917;
  font-size: 14px;
  font-weight: 500;
}

.vl-gift-table td:last-child {
  border-right: none;
}

/* 記号ごとの微調整（必要であれば） */
/* ×印などを少し薄くしたい場合は以下を追加 */
/*
.vl-gift-table td {
  font-family: "Zen Kaku Gothic New", sans-serif; 
}
*/