/* ===========================
   商品詳細ページ
   =========================== */

/* ===========================
   メインセクション（2カラム）
   =========================== */
.product-detail-main {
  padding: 80px 0 100px;
}

.product-detail-main__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: 60px;
  align-items: start;
}

/* ===========================
   ギャラリー（左カラム）
   サムネイル削除・メイン画像のみ
   =========================== */
.product-gallery {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.product-gallery__main {
  aspect-ratio: 1 / 1;
  background: #f1f3f5;
  border-radius: 24px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-gallery__main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-gallery__main:hover .product-gallery__main-img {
  transform: scale(1.03);
}

/* スライダーナビ */
.product-gallery__slider-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 40px;
  padding: 14px 20px;
  margin-top: 16px;
  border: none;
}

.product-gallery__slider-arrow {
  appearance: none;
  background: transparent;
  border: 1.5px solid #bbb;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: #888;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s;
}

.product-gallery__slider-arrow:hover {
  border-color: #888;
  color: #555;
}

.product-gallery__slider-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-gallery__slider-dot {
  appearance: none;
  background: transparent;
  border: 1.5px solid #bbb;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.product-gallery__slider-dot.is-active {
  background: #888;
  border-color: #888;
}

/* ===========================
   商品情報パネル（右カラム）
   =========================== */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.product-info__category {
  font-family: 'M PLUS 1', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--cyan);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.product-info__name {
  font-family: 'M PLUS 1', sans-serif;
  font-weight: 700;
  font-size: 40px;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 20px;
}

.product-info__catch {
  font-family: 'M PLUS 1', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--navy);
  line-height: 1.6;
  margin-bottom: 12px;
}

.product-info__desc {
  font-family: 'M PLUS 1', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #555;
  line-height: 1.85;
  margin-bottom: 24px;
}

.product-info__divider {
  border: none;
  border-top: 1px solid #e0e4ea;
  margin: 0 0 24px;
}

/* 同梱品 */
.product-info__includes {
  margin-bottom: 24px;
}

.product-info__includes-label {
  font-family: 'M PLUS 1', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: #9b9b9b;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.product-info__includes-text {
  font-family: 'M PLUS 1', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: var(--navy);
  line-height: 1.8;
}

/* ===========================
   価格 + 数量 横並び（purchase-row）
   =========================== */
.product-info__purchase-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.product-info__price-block {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-shrink: 0;
}

.product-info__price-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 38px;
  color: var(--navy);
  line-height: 1;
}

.product-info__price-unit {
  font-family: 'M PLUS 1', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--navy);
}

.product-info__price-tax {
  font-family: 'M PLUS 1', sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: #9b9b9b;
  margin-left: 4px;
}

.product-info__qty {
  display: flex;
  align-items: center;
  gap: 0;
}

/* 数量セレクター */
.product-qty__label {
  font-family: 'M PLUS 1', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: #9b9b9b;
  letter-spacing: 0.06em;
  margin-right: 16px;
}

.product-qty__control {
  display: flex;
  align-items: center;
  border: 1.5px solid #c5ccd8;
  border-radius: 999px;
  overflow: hidden;
}

.product-qty__btn {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  font-family: 'M PLUS 1', sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
}

.product-qty__btn:hover {
  background: var(--cyan);
  color: var(--white);
}

.product-qty__num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
  min-width: 40px;
  text-align: center;
  padding: 0 4px;
}

/* ===========================
   ボタン群
   =========================== */
.product-info__buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

/* カートに入れるボタン（btn テイストに統一） */
.product-info__cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 24px;
  background: var(--white);
  color: var(--cyan);
  border: 1px solid var(--cyan);
  border-radius: 999px;
  font-family: 'M PLUS 1', sans-serif;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.product-info__cart-btn:hover {
  background: var(--cyan);
  color: var(--white);
}

.product-info__cart-btn:hover .product-info__cart-icon {
  background-color: var(--white);
}

.product-info__cart-icon {
  width: 30px;
  height: 30px;
  display: block;
  flex-shrink: 0;
  background-color: var(--cyan);
  -webkit-mask: url('../assets/images/cart-add.svg') center / contain no-repeat;
  mask: url('../assets/images/cart-add.svg') center / contain no-repeat;
  transition: background-color 0.2s;
}

/* 今すぐ購入ボタン（cyan カラー + トラックアイコン） */
.product-info__buy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  background: var(--cyan);
  color: var(--white);
  border: 2px solid var(--cyan);
  border-radius: 999px;
  font-family: 'M PLUS 1', sans-serif;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.product-info__buy-btn:hover {
  background: var(--white);
  color: var(--cyan);
  border-color: var(--cyan);
}

.product-info__buy-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: block;
}

/* 配送補足 */
.product-info__shipping {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-info__shipping-item {
  font-family: 'M PLUS 1', sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: #9b9b9b;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.6;
}

.product-info__shipping-item::before {
  content: '●';
  font-size: 6px;
  color: var(--cyan);
  margin-top: 6px;
  flex-shrink: 0;
}

/* ===========================
   セクション共通見出し
   =========================== */
.section-heading {
  margin-bottom: 48px;
}

.section-heading__en {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--cyan);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.section-heading__ja {
  font-family: 'M PLUS 1', sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--navy);
  line-height: 1.4;
  margin: 0;
}

/* ===========================
   商品詳細セクション
   =========================== */
.product-detail-info {
  padding: 80px 0;
  background: var(--page-bg);
}

.product-detail-info__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-detail-info__body p {
  font-family: 'M PLUS 1', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--navy);
  line-height: 2;
}

/* ===========================
   スペック表セクション
   =========================== */
.product-detail-spec {
  padding: 80px 0;
}

.product-spec-table {
  width: 100%;
  border: 1px solid #e0e4ea;
  border-radius: 12px;
  overflow: hidden;
}

.product-spec-table__row {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 1px solid #e0e4ea;
}

.product-spec-table__row:last-child {
  border-bottom: none;
}

.product-spec-table__term,
.product-spec-table__desc {
  padding: 18px 16px;
  font-family: 'M PLUS 1', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.product-spec-table__term {
  font-weight: 600;
  color: #9b9b9b;
  font-size: 13px;
  letter-spacing: 0.03em;
  background: #f7fafc;
}

.product-spec-table__desc {
  color: var(--navy);
}

/* ===========================
   関連商品セクション
   =========================== */
.product-detail-related {
  padding: 80px 0 120px;
  background: var(--page-bg);
}

.related-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* 関連商品カード */
.related-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.related-card__link {
  position: absolute;
  inset: 0;
  z-index: 1;
  text-decoration: none;
  color: inherit;
}

.related-card:hover .related-card__image {
  transform: scale(1.05);
}

.related-card__media {
  aspect-ratio: 4 / 3;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f3f5;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
}

.related-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.related-card__cart-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  background: var(--white);
  color: var(--cyan);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.related-card__cart-btn:hover {
  background: var(--cyan);
  color: var(--white);
}

.related-card__cart-icon {
  width: 20px;
  height: 20px;
  display: block;
  pointer-events: none;
  background-color: currentColor;
  -webkit-mask: url('../assets/images/cart-add.svg') center / contain no-repeat;
  mask: url('../assets/images/cart-add.svg') center / contain no-repeat;
}

.related-card__name {
  font-family: 'M PLUS 1', sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--navy);
  margin: 0 0 6px;
}

.related-card__price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin: 0 0 6px;
}

.related-card__price-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
}

.related-card__price-unit {
  font-family: 'M PLUS 1', sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: var(--navy);
}

.related-card__desc {
  font-family: 'M PLUS 1', sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: #9b9b9b;
  line-height: 1.7;
  margin: 0;
}

/* 商品一覧へボタン */
.product-detail-related__more {
  margin-top: 48px;
  text-align: center;
}

/* ===========================
   メンバーシップ前余白
   =========================== */
.membership-section {
  margin-top: 80px;
}

/* ===========================
   レスポンシブ（1100px以下）
   =========================== */
@media (max-width: 1100px) {
  .product-detail-main__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-gallery {
    position: static;
  }

  .product-info__name {
    font-size: 32px;
  }

  .product-info__price-num {
    font-size: 32px;
  }

  .product-spec-table__row {
    grid-template-columns: 160px 1fr;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .section-heading__ja {
    font-size: 24px;
  }
}

/* ===========================
   レスポンシブ（767px以下）
   =========================== */
@media (max-width: 767px) {
  .product-detail-main {
    padding: 60px 0 80px;
  }

  .product-detail-main__inner {
    gap: 32px;
  }

  .product-info__name {
    font-size: 28px;
    margin-bottom: 16px;
  }

  .product-info__price-num {
    font-size: 28px;
  }

  .product-info__catch {
    font-size: 15px;
  }

  /* 価格 + 数量 モバイルは縦積み */
  .product-info__purchase-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .product-detail-info,
  .product-detail-spec,
  .product-detail-related {
    padding: 60px 0;
  }

  .product-detail-related {
    padding-bottom: 80px;
  }

  .membership-section {
    margin-top: 60px;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .section-heading__ja {
    font-size: 22px;
  }

  .product-spec-table__row {
    grid-template-columns: 110px 1fr;
  }

  .product-spec-table__term,
  .product-spec-table__desc {
    padding: 14px 12px;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-qty__btn {
    width: 36px;
    height: 36px;
  }
}
