@charset "euc-jp";

/*======================================
  パターン2: 上下矢印スピンボタン形式
  変更点:
  1. 商品名をテーブル内に移動
  2. テーブルラベル変更（型番→BRAND、販売価格→PRICE）
  3. 購入数をスタイリッシュな上下矢印で操作
  4. ★2025/12/14追加: 拡大画像クリックでライトボックスを閉じる機能
  作成日: 2025年12月14日
  更新日: 2025年12月14日
======================================*/

/* オプションソース非表示 */
.prd-opt-src {
  display: none !important;
}

/*--------------------------------------
  商品画像エリア
--------------------------------------*/
.product-image {
  padding-right: 40px;
}

.product-image-main img {
  display: block;
  margin: 0 auto;
  height: auto;
}

/* メイン画像: 動的サイズ制御用（JavaScriptと連携） */
.product-image-main-sectioned {
  width: 100%;
  margin: 0 auto 20px;
  text-align: center;
}

/* 初期状態は800px上限、JavaScriptで動的に調整 */
.mainImage-sectioned {
  display: block;
  margin: 0 auto;
  width: auto;
  height: auto;
  max-width: 800px;
  max-height: 800px;
  object-fit: contain;
  transition: max-width 0.2s ease, max-height 0.2s ease;
}

/* 元サイズで表示中の画像に適用されるクラス */
.mainImage-sectioned.natural-size {
  /* JavaScriptで動的にサイズが設定される */
}

/* サムネイル一覧: 枠削除 + hover時シャドウ */
.product-image-thumb li {
  float: left;
  margin-top: 10px;
  cursor: pointer;
}

.product-thumb-sectioned {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 15px;
  list-style: none;
  margin: 0;
  padding: 0;
  /* iOS Safari gap fallback */
  margin-left: -7.5px;
  margin-right: -7.5px;
}

/* iOS Safari gap support check - gapがサポートされている場合はマージンをリセット */
@supports (gap: 15px) {
  .product-thumb-sectioned {
    margin-left: 0;
    margin-right: 0;
  }
}

/*======================================
  サムネイル下に30pxの余白を追加
======================================*/
.product-thumb-spacing-v2 {
  margin-bottom: 30px;
}

/* サムネイルリストアイテムの枠を削除し、hover時にシャドウ追加 */
/* ★2025/12/14変更: 横3列表示に対応 */
.product-thumb-sectioned li {
  /* iOS Safari互換: flexベースの幅指定 */
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 calc((100% - 30px) / 3);
  flex: 0 0 calc((100% - 30px) / 3);
  width: calc((100% - 30px) / 3);  /* 3列: (100% - gap×2) / 3 */
  max-width: calc(33.333% - 10px); /* フォールバック */
  /* aspect-ratio フォールバック for older iOS */
  aspect-ratio: 1 / 1;
  cursor: pointer;
  padding: 5px;
  border: none;
  border-radius: 4px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
  background: transparent;
  /* iOS gap fallback margin */
  margin: 0 7.5px 15px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

/* iOS Safari gap support - gapサポート時はマージンをリセット */
@supports (gap: 15px) {
  .product-thumb-sectioned li {
    margin: 0;
    max-width: 250px;
  }
}

/* aspect-ratio フォールバック（古いiOS Safari用） */
@supports not (aspect-ratio: 1 / 1) {
  .product-thumb-sectioned li::before {
    content: "";
    display: block;
    padding-top: 100%; /* 1:1 比率 */
  }
  
  .product-thumb-sectioned li {
    position: relative;
  }
  
  .product-thumb-sectioned li > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}

/* hover時にシャドウを表示 */
.product-thumb-sectioned li:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* サムネイル画像の枠を削除 */
.thumb {
  max-width: 100%;
  width: auto;
  height: auto;
  border: none;
  border-radius: 2px;
}

/* セクション用サムネイル画像の枠を削除 */
.thumb-sectioned {
  max-width: 100%;
  width: auto;
  height: auto;
  border: none;
  border-radius: 2px;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

/* ライトボックストリガー用 */
.thumb-lightbox-trigger {
  cursor: pointer;
}

.gallery-item:hover .thumb-sectioned {
  transform: scale(1.02);
}

/* アクティブ状態も枠なし（シャドウで区別） */
.thumb-active {
  border: none;
  opacity: 0.7;
}

/* アクティブなサムネイルの親要素にシャドウ */
.gallery-item:has(.thumb-active) {
  box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.5);
}

/* サムネイルオーバーレイ（拡大アイコン表示用） */
.thumb-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  cursor: pointer;
  border-radius: 4px;
}

.gallery-item:hover .thumb-overlay {
  background: rgba(0, 0, 0, 0.3);
}

.thumb-overlay-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.2s ease;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover .thumb-overlay-icon {
  opacity: 1;
  transform: scale(1);
}

/* 拡大アイコン（虫眼鏡） */
.thumb-overlay-icon::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 3px solid #333;
  border-radius: 50%;
  position: absolute;
  top: 12px;
  left: 12px;
}

.thumb-overlay-icon::after {
  content: "";
  width: 3px;
  height: 10px;
  background: #333;
  position: absolute;
  bottom: 10px;
  right: 14px;
  transform: rotate(-45deg);
  border-radius: 2px;
}

/*--------------------------------------
  商品説明
--------------------------------------*/
.product-exp {
  clear: both;
  margin: 20px 0;
  padding: 20px 0;
  border-top: 1px solid #dbdbdb;
  border-bottom: 1px solid #dbdbdb;
  line-height: 1.6;
}

.product-exp-sectioned {
  clear: both;
  margin: 20px 0;
  padding: 20px 0;
  border-top: 1px solid #dbdbdb;
  border-bottom: 1px solid #dbdbdb;
  line-height: 1.6;
}

.product-exp-sectioned img {
  max-width: 100%;
  height: auto;
}

/*--------------------------------------
  商品スペックテーブル
--------------------------------------*/
.product-spec-block {
  margin-bottom: 3em;
}

.product-spec-block table {
  width: 100%;
}

.product-spec-table {
  margin-bottom: 20px;
  border-top: 1px solid #dbdbdb;
}

.product-spec-table th {
  padding-top: 1em;
  padding-right: .5em;
  padding-bottom: 1em;
  border-right: 1px solid #dbdbdb;
  border-bottom: 1px solid #dbdbdb;
}

.product-spec-table td {
  overflow: hidden;
  padding-top: 1em;
  padding-bottom: 1em;
  padding-left: 1em;
  border-bottom: 1px solid #dbdbdb;
}

.product-spec-table th {
  width: 33.333%;
}

.product-spec-table td {
  width: 66.666%;
}

.product-spec-table select {
  width: 90%;
}

/* セクション分離型用 */
.product-spec-sectioned {
  margin-bottom: 2em;
}

.product-spec-sectioned table {
  width: 100%;
}

.product-spec-table-sectioned {
  margin-bottom: 20px;
  border-top: 1px solid #dbdbdb;
}

.product-spec-table-sectioned th {
  padding-top: 1em;
  padding-right: .5em;
  padding-bottom: 1em;
  border-right: 1px solid #dbdbdb;
  border-bottom: 1px solid #dbdbdb;
  width: 33.333%;
}

.product-spec-table-sectioned td {
  overflow: hidden;
  padding-top: 1em;
  padding-bottom: 1em;
  padding-left: 1em;
  border-bottom: 1px solid #dbdbdb;
  width: 66.666%;
}

.product-spec-table-sectioned select {
  width: 90%;
}

/*======================================
  ★新規追加: 新テーブルフォーマット v3
  BRAND / ITEM / PRICE 形式
======================================*/
.product-spec-table-v3 {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 25px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.product-spec-table-v3 tr {
  border-bottom: 1px solid #e8e8e8;
}

.product-spec-table-v3 tr:last-child {
  border-bottom: none;
}

/* ★ラベルセル（BRAND / ITEM / PRICE） */
.spec-label-v3 {
  padding: 18px 20px;
  background: linear-gradient(180deg, #2c2c2c 0%, #1a1a1a 100%);
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  width: 100px;
  min-width: 100px;
  vertical-align: middle;
  text-align: center;
  border-right: 1px solid #444;
}

/* ★値セル */
.spec-value-v3 {
  padding: 18px 25px;
  color: #333;
  font-size: 15px;
  line-height: 1.6;
  vertical-align: middle;
}

/* ★BRAND行のスタイル */
.spec-row-brand .spec-value-v3 {
  font-weight: 600;
  color: #fafafa;
  font-size: 14px;
}

/* ★ITEM行のスタイル（商品名） */
.spec-row-item .spec-value-v3 {
  font-weight: bold;
  font-size: 16px;
  color: #fafafa;
  line-height: 1.5;
}

.item-name-v3 {
  word-break: break-word;
}

/* ★PRICE行のスタイル */
.spec-row-price .spec-value-v3 {
}

.price-display-v3 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* 定価（打ち消し線） */
.price-original-v3 {
  text-decoration: line-through;
  color: #999;
  font-size: 14px;
}

/* 販売価格 */
.price-sales-v3 {
  font-size: 22px;
  font-weight: bold;
  color: #fafafa;
}

/* 割引バッジ */
.price-discount-badge-v3 {
  display: inline-block;
  padding: 4px 10px;
  background: #e53935;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* ★STOCK行のスタイル */
.spec-row-stock .spec-value-v3 {
  color: #666;
}

/* ★追加開始: 417行目の後に以下を挿入 */

/*--------------------------------------
  CONTACTボタン（v2）
--------------------------------------*/
.product-contact-area-v2 {
  margin-top: 25px;
  margin-bottom: 10px;
  text-align: left;
}

.btn-contact-v2 {
  display: inline-block;
  width: 50%;
  max-width: 200px;
  padding: 14px 20px;
  font-size: 0.95em;
  font-weight: bold;
  color: #000;
  background-color: #c59832;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 3px 0 rgba(0,0,0,0.2);
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
}

.btn-contact-v2:hover,
.btn-contact-v2:focus,
.btn-contact-v2:active {
  background-color: #c59832;
  color: #000;
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.2);
  text-decoration: none;
}

/* ★追加終了 */

/*--------------------------------------
  注文フォーム
--------------------------------------*/
.product-order-form input {
  float: left;
  margin-right: .3em;
  padding: .3em;
}

.product-unit {
  float: left;
  padding: .3em;
}

.product-init {
  display: none;
}

.product-init-num {
  width: 3em;
  text-align: right;
}

.product-option-table td div {
  margin-bottom: .5em;
}

/*--------------------------------------
  オプション選択エリア（セクション分離型用）
--------------------------------------*/
.product-options-sectioned {
  margin-bottom: 20px;
}

.product-options-table-sectioned {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  border-top: 1px solid #dbdbdb;
}

.product-options-table-sectioned th {
  padding-top: 1em;
  padding-right: .5em;
  padding-bottom: 1em;
  border-right: 1px solid #dbdbdb;
  border-bottom: 1px solid #dbdbdb;
  width: 33.333%;
}

.product-options-table-sectioned td {
  overflow: hidden;
  padding-top: 1em;
  padding-bottom: 1em;
  padding-left: 1em;
  border-bottom: 1px solid #dbdbdb;
  width: 66.666%;
}

.product-options-table-sectioned select {
  width: 90%;
}

/*--------------------------------------
  商品情報リスト
--------------------------------------*/
.product-info-lst {
  margin-bottom: 2em;
}

.product-info-lst li {
  margin: 15px 0;
}

.product-info-lst a {
  color: #444;
  text-decoration: none;
}

.product-info-lst a:hover {
  text-decoration: underline;
}

.product-review {
  margin-bottom: 30px;
}

.product-review a {
  font-weight: bold;
}

.social-share {
  margin-top: 1.5em;
}

.social-share li {
  margin-bottom: .5em;
}

/*======================================
  CSSグリッドによる横並びレイアウト
======================================*/
.product-info-grid-v2 {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 40px;
  align-items: start;
}

/* 左カラム: 商品情報エリア */
.product-info-column-v2 {
  min-width: 0;
}

/* 右カラム: 購入エリア */
.product-purchase-column-v2 {
  position: sticky;
  top: 20px;
}

/* 購入カードのデザイン */
.product-purchase-card-v2 {
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.purchase-card-title-v2 {
  font-size: 1.15em;
  font-weight: bold;
  color: #333;
  margin: 0 0 25px 0;
  padding-bottom: 15px;
  border-bottom: 2px solid #4a90d9;
  text-align: center;
}

/*======================================
  ★パターン2: 上下矢印スピンボタン
======================================*/
.product-quantity-area-v4 {
  margin-bottom: 25px;
}

.quantity-row-v4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: linear-gradient(180deg, #f8f8f8 0%, #f0f0f0 100%);
  border-radius: 10px;
  border: 1px solid #e0e0e0;
}

.quantity-label-v4 {
  font-weight: bold;
  color: #333;
  font-size: 0.95em;
}

/* ★スピンボタンコントロール */
.quantity-control-spin {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ★数量入力フィールド（スピン用） */
.quantity-input-v4 {
  width: 80px !important;
  height: 50px;
  padding: 10px !important;
  font-size: 22px;
  font-weight: bold;
  text-align: center !important;
  border: 2px solid #333;
  border-radius: 8px;
  background-color: #fff;
  color: #333;
  transition: all 0.2s ease;
  -moz-appearance: textfield;
}

.quantity-input-v4::-webkit-outer-spin-button,
.quantity-input-v4::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity-input-v4:focus {
  border-color: #4a90d9;
  box-shadow: 0 0 0 4px rgba(74, 144, 217, 0.2);
  outline: none;
}

/* ★スピンボタンコンテナ */
.spin-buttons {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ★スピンボタン共通 */
.spin-btn {
  width: 36px;
  height: 24px;
  border: 1px solid #ccc;
  background: linear-gradient(180deg, #fff 0%, #f0f0f0 100%);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
}

.spin-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #f5f5f5 0%, #e8e8e8 100%);
  border-color: #999;
}

.spin-btn:active:not(:disabled) {
  background: linear-gradient(180deg, #e0e0e0 0%, #d0d0d0 100%);
  transform: scale(0.95);
}

.spin-btn:disabled {
  background: #f5f5f5;
  border-color: #ddd;
  cursor: not-allowed;
}

.spin-btn:disabled .spin-arrow-up,
.spin-btn:disabled .spin-arrow-down {
  border-color: #ccc;
}

.spin-btn-up {
  border-radius: 6px 6px 0 0;
}

.spin-btn-down {
  border-radius: 0 0 6px 6px;
}

/* ★上矢印 */
.spin-arrow-up {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 8px solid #333;
}

/* ★下矢印 */
.spin-arrow-down {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #333;
}

.product-unit-v4 {
  color: #666;
  font-size: 0.95em;
  font-weight: 500;
}

/* 売り切れ・会員限定メッセージ */
.product_soldout_msg-v2 {
  padding: 15px;
  background: #fff5f5;
  border: 1px solid #ffcdd2;
  border-radius: 8px;
  color: #c62828;
  font-weight: bold;
  text-align: center;
}

.product-member-sale-msg-v2 {
  padding: 15px;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 8px;
  color: #f57c00;
  font-weight: bold;
  text-align: center;
}

/*--------------------------------------
  カートボタン（v2）
--------------------------------------*/
.cart-button-area-v2 {
  text-align: center;
}

.btn-cart-v2 {
  display: block;
  width: 100%;
  padding: 18px 30px;
  font-size: 1.1em;
  font-weight: bold;
  color: #000;
  background-color: #c59832;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 3px 0 rgba(0,0,0,0.2);
}

.btn-cart-v2:hover,
.btn-cart-v2:focus,
.btn-cart-v2:active,
.btn-cart-v2.active {
  background-color: #c59832;
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.2);
}

.btn-cart-v2.disabled,
.btn-cart-v2[disabled] {
  background-color: #c59832;
  color: #000;
}

.btn-quick-v2 {
  display: block;
  width: 100%;
  padding: 14px 30px;
  font-size: 1em;
  color: #000;
  background-color: #c59832;
  border: none;
  border-radius: 8px;
  margin-top: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  text-align: center;
}

.btn-quick-v2:hover,
.btn-quick-v2:focus {
  background-color: #c59832;
  text-decoration: none;
}

.btn-soldout-v2 {
  display: block;
  width: 100%;
  padding: 18px 30px;
  font-size: 1.1em;
  font-weight: bold;
  color: #b81717;
  background: #f5f5f5;
  border: 1px solid #dbdbdb;
  border-radius: 8px;
  cursor: not-allowed;
}

/* 補足情報 */
.purchase-note-v2 {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px dashed #e0e0e0;
}

.purchase-note-v2 p {
  margin: 0;
  font-size: 0.85em;
  color: #888;
  text-align: center;
}

/*--------------------------------------
  メッセージ
--------------------------------------*/
.product-member-sale-msg {
  color: #df7676;
}

.stock_error {
  margin: .5em 0;
  color: #f00;
  font-weight: bold;
  font-size: 123.076%;
  line-height: 3;
}

/*--------------------------------------
  トラックバック
--------------------------------------*/
#trackback {
  margin-bottom: 40px;
}

.trackback-block {
  clear: both;
}

.trackback-url {
  padding: .5em;
}

.together-block {
  clear: both;
}

.text-titles-list__detail-text {
  width: 85%;
}

/*======================================
  クイックカートイン CSS
======================================*/

.cart_in_modal,
.cart_in_error_modal {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, .7);
  z-index: 20000;
  display: flex;
  overflow: auto;
}

@media screen and (min-width: 960px) {
  .cart_in_modal,
  .cart_in_error_modal {
    align-items: center;
  }
}

.cart_in_modal__bg {
  background-color: rgba(0, 0, 0, .7);
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 20000;
}

.cart_in_modal__outline {
  width: 90%;
  margin: 20px 5%;
  padding: 20px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .4);
  box-sizing: border-box;
  text-align: center;
  position: absolute;
}

@media screen and (min-width: 960px) {
  .cart_in_modal__outline {
    width: 900px;
    margin: auto;
    padding: 20px 70px;
    position: relative;
  }
}

.cart_in_modal__heading {
  font-size: 20px;
  font-weight: bold;
  margin: 20px 0;
  line-height: 1.4;
}

@media screen and (min-width: 960px) {
  .cart_in_modal__heading {
    font-size: 26px;
    margin: 30px 0;
    line-height: 1.2;
  }
}

.cart_in_error_modal__heading {
  font-size: 20px;
  font-weight: bold;
  margin: 40px 0 20px;
  line-height: 1.4;
}

@media screen and (min-width: 960px) {
  .cart_in_error_modal__heading {
    margin: 30px 0;
    line-height: 1.2;
  }
}

.cart_in_modal__detail {
  display: flex;
  padding: 20px;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  align-items: center;
  flex-direction: column;
}

@media screen and (min-width: 960px) {
  .cart_in_modal__detail {
    flex-direction: row;
  }
}

.cart_in_modal__name {
  font-size: 16px;
  flex: 1;
  line-height: 1.4;
  text-align: left;
  margin: 0;
}

@media screen and (min-width: 960px) {
  .cart_in_modal__name {
    font-size: 18px;
  }
}

.cart_in_modal__image-wrap {
  padding: 5px;
  width: 170px;
  height: 170px;
  background: rgba(0, 0, 0, .1);
  position: relative;
  border: 5px solid transparent;
  box-sizing: border-box;
}

@media screen and (min-width: 960px) {
  .cart_in_modal__image-wrap {
    margin: 0 30px 0 0;
    flex-basis: 170px;
  }
}

.cart_in_modal__image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}

.cart_in_modal__text-link {
  color: #2169f3;
  cursor: pointer;
  position: relative;
  display: inline-block;
  margin: 20px 0 0;
  padding: 0 0 0 20px;
  line-height: 1.15;
}

.cart_in_modal__text-link::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  border-top: 2px solid #2169f3;
  border-right: 2px solid #2169f3;
  -webkit-transform: rotate(225deg);
  transform: rotate(225deg);
}

.cart_in_modal__button-wrap {
  width: 100%;
  margin: 30px auto;
  font-size: 17px;
}

@media screen and (min-width: 960px) {
  .cart_in_modal__button-wrap {
    width: 350px;
  }
}

.cart_in_modal__button {
  font-size: 17px;
  font-weight: bold;
  line-height: 23px;
  display: inline-block;
  box-sizing: border-box;
  cursor: pointer;
  vertical-align: middle;
  text-decoration: none;
  color: #fff;
  border: 0;
  border-radius: 4px;
  width: 100%;
  height: 58px;
  padding: 15px;
  background: #2169f3;
  box-shadow: 0 2px 0 #1a54c2;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.cart_in_modal__button:hover,
.cart_in_modal__button:focus {
  height: 58px;
  color: #e9f0fe;
  background-color: #1e5fdb;
  box-shadow: none;
  transform: translate3d(0, 2px, 0);
}

.cart_in_modal__close-icon {
  cursor: pointer;
}

.cart_in_modal__close-icon::before,
.cart_in_modal__close-icon::after {
  content: "";
  width: 35px;
  height: 6px;
  display: block;
  position: absolute;
  top: 30px;
  right: 20px;
  background: #eee;
  border-radius: 4px;
}

.cart_in_modal__close-icon::before {
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

.cart_in_modal__close-icon::after {
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

/*======================================
  ローディングスピナー
======================================*/
.spinner::before {
  content: "";
  box-sizing: border-box;
  position: absolute;
  top: 50%;
  left: 50%;
  height: 100px;
  width: 100px;
  margin-top: -50px;
  margin-left: -50px;
  border-radius: 50%;
  border: 5px solid #eee;
  border-top-color: #fd7f23;
  animation: spinner 0.5s linear infinite;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

@media screen and (min-width: 960px) {
  .sp-br {
    display: none;
  }
}

/*======================================
  ギャラリー風ライトボックス
======================================*/
.image-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 25000;
}

.image-lightbox__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.92);
  cursor: pointer;
}

.image-lightbox__container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 閉じるボタン */
.image-lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s ease;
}

.image-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.image-lightbox__close span {
  display: block;
  position: absolute;
  width: 24px;
  height: 2px;
  background: #fff;
  top: 50%;
  left: 50%;
}

.image-lightbox__close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.image-lightbox__close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* ナビゲーションボタン */
.image-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s ease;
}

.image-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.image-lightbox__nav--prev {
  left: 10px;
  border-radius: 4px;
}

.image-lightbox__nav--next {
  right: 10px;
  border-radius: 4px;
}

.image-lightbox__nav span {
  display: block;
  width: 16px;
  height: 16px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  position: absolute;
  top: 50%;
  left: 50%;
}

.image-lightbox__nav--prev span {
  transform: translate(-30%, -50%) rotate(-135deg);
}

.image-lightbox__nav--next span {
  transform: translate(-70%, -50%) rotate(45deg);
}

/* 画像コンテンツエリア */
.image-lightbox__content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-lightbox__image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-lightbox__image {
  max-width: 85vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  /* ★2025/12/14追加: 画像クリックで閉じることを示すスタイル */
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ★2025/12/14追加: 画像ホバー時のフィードバック */
.image-lightbox__image:hover {
  opacity: 0.9;
  transform: scale(0.99);
}

/* 画像カウンター */
.image-lightbox__counter {
  margin-top: 15px;
  color: #fff;
  font-size: 14px;
  text-align: center;
  opacity: 0.8;
}

/*======================================
  レスポンシブ対応
======================================*/
@media screen and (max-width: 980px) {
  /* タブレット以下ではグリッドを1カラムに */
  .product-info-grid-v2 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .product-purchase-column-v2 {
    position: static;
  }
  
  .product-purchase-card-v2 {
    max-width: 500px;
    margin: 0 auto;
  }
  
  /* テーブルのラベル幅調整 */
  .spec-label-v3 {
    width: 80px;
    min-width: 80px;
    font-size: 11px;
    padding: 15px;
  }
  
  .spec-value-v3 {
    padding: 15px 20px;
  }
}

@media screen and (max-width: 768px) {
  .product-image-main-sectioned {
    max-width: 100%;
  }
  
  /* モバイルでは画面幅を上限 */
  .mainImage-sectioned {
    max-width: 100%;
    max-height: none;
  }
  
 /* モバイルサムネイルも枠なし + hover時シャドウ */
  /* ★2025/12/16修正: iOS Safari互換の3列表示 */
  .product-thumb-sectioned {
    gap: 10px;
    margin-left: -5px;
    margin-right: -5px;
  }
  
  @supports (gap: 10px) {
    .product-thumb-sectioned {
      margin-left: 0;
      margin-right: 0;
    }
  }
  
  .product-thumb-sectioned li {
    /* iOS Safari互換: 強制3列レイアウト */
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 calc(33.333% - 7px);
    flex: 0 0 calc(33.333% - 7px);
    width: calc(33.333% - 7px) !important;
    max-width: none !important; /* max-width制限を解除 */
    min-width: 0; /* flex shrink許可 */
    aspect-ratio: 1 / 1;
    border: none;
    margin: 0 5px 10px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }
  
  @supports (gap: 10px) {
    .product-thumb-sectioned li {
      -webkit-flex: 0 0 calc((100% - 20px) / 3);
      flex: 0 0 calc((100% - 20px) / 3);
      width: calc((100% - 20px) / 3) !important;
      margin: 0;
    }
  }
  
  .product-thumb-sectioned li:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
  }
  
  /* モバイルでのオーバーレイアイコンサイズ調整 */
  .thumb-overlay-icon {
    width: 30px;
    height: 30px;
  }
  
  .thumb-overlay-icon::before {
    width: 10px;
    height: 10px;
    border-width: 2px;
    top: 7px;
    left: 7px;
  }
  
  .thumb-overlay-icon::after {
    width: 2px;
    height: 6px;
    bottom: 7px;
    right: 9px;
  }
  
  /* モバイル用テーブル */
  .product-spec-table-v3 tr {
    display: flex;
    flex-direction: column;
  }
  
  .spec-label-v3 {
    width: 100%;
    text-align: left;
    padding: 12px 15px;
    border-right: none;
    border-bottom: 1px solid #444;
  }
  
  .spec-value-v3 {
    width: 100%;
    padding: 15px;
  }
  
  .product-spec-table-sectioned th,
  .product-spec-table-sectioned td {
    display: block;
    width: 100%;
    padding: 0.7em;
  }
  
  .product-spec-table-sectioned th {
    border-bottom: none;
    border-right: none;
  }
  
  .product-options-table-sectioned th,
  .product-options-table-sectioned td {
    display: block;
    width: 100%;
    padding: 0.7em;
  }
  
  .product-options-table-sectioned th {
    border-bottom: none;
    border-right: none;
    text-align: left;
  }
  
  .product-options-table-sectioned select {
    width: 100%;
  }
  
  .text-titles-list__detail-text {
    width: 100%;
  }
  

  /* モバイル用CONTACTボタン */
  .product-contact-area-v2 {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 0px;
  }
  
  .btn-contact-v2 {
    width: 60%;
    max-width: 180px;
    padding: 12px 15px;
    font-size: 0.9em;
  }
  
  /* モバイル用購入カード */
  .product-purchase-card-v2 {
    padding: 10px;
    margin-bottom: 20px;
  }
  
  .purchase-card-title-v2 {
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    font-size: 0.95em;
  }
  
  .product-quantity-area-v4 {
    margin-bottom: 12px;
  }
  
  .quantity-row-v4 {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    padding: 10px;
  }
  
  .quantity-control-spin {
    justify-content: center;
  }
  
  .quantity-input-v4 {
    width: 70px !important;
    height: 36px;
    font-size: 16px;
  }
  
  .spin-btn {
    width: 32px;
    height: 18px;
  }
  
  .spin-arrow-up {
    border-left-width: 5px;
    border-right-width: 5px;
    border-bottom-width: 7px;
  }
  
  .spin-arrow-down {
    border-left-width: 5px;
    border-right-width: 5px;
    border-top-width: 7px;
  }
  
  .purchase-note-v2 {
    margin-top: 8px;
    padding-top: 6px;
  }
  
  .purchase-note-v2 p {
    font-size: 0.75em;
  }
  
  .btn-cart-v2 {
    padding: 10px 20px;
    font-size: 0.95em;
  }
  
  .btn-quick-v2 {
    padding: 8px 20px;
    font-size: 0.85em;
    margin-top: 6px;
  }
  
  .btn-soldout-v2 {
    padding: 10px 20px;
    font-size: 0.95em;
  }
  
  /* ライトボックス モバイル対応 */
  .image-lightbox__close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }
  
  .image-lightbox__close span {
    width: 20px;
  }
  
  .image-lightbox__nav {
    width: 40px;
    height: 60px;
  }
  
  .image-lightbox__nav--prev {
    left: 5px;
  }
  
  .image-lightbox__nav--next {
    right: 5px;
  }
  
  .image-lightbox__nav span {
    width: 12px;
    height: 12px;
    border-width: 2px;
  }
  
  .image-lightbox__image {
    max-width: 95vw;
    max-height: 85vh;
  }
  
  .image-lightbox__counter {
    font-size: 12px;
  }
}
