/* ===============================
   Shared Status Colors (Global)
   =============================== */
:root {
  --status-reserved: #b00000;
  /* Reserved red */
  --status-sold: #777;
  /* Sold grey */
}

/* =========================
   Base
========================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: #111;
  background: #fff;
}

/* =========================
   Layout
========================= */
.product-wrap {
  max-width: 1200px;
  margin: 40px auto 80px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 48px;
}

/* =========================
   Images
========================= */
.product-images {
  position: relative;
}

.main-image-wrap {
  max-width: 680px;
  position: relative;
}

.main-img {
  width: 100%;
  display: block;
  cursor: zoom-in;
}

.thumb-wrapper {
  max-width: 680px;
  margin-top: 24px;
}

.gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.gallery::-webkit-scrollbar {
  display: none;
}

.gallery img {
  width: 98px;
  height: 98px;
  object-fit: cover;
  flex: 0 0 auto;
  cursor: pointer;
  opacity: 0.55;
  border: 1px solid #e0e0e0;
  background: #fff;
  transition: opacity .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.gallery img:hover {
  opacity: 0.9;
  border-color: #c9c9c9;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

/* =========================
   Info
========================= */
.product-info {
  padding-top: 6px;
}

.product-title {
  font-size: 34px;
  line-height: 1.25;
  margin: 0 0 12px;
  font-weight: 700;
}

.price-block {
  margin: 28px 0 18px;
}

.price-main {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.price-currency {
  font-size: 14px;
  font-weight: 400;
  color: #666;
  margin-left: 6px;
}

.price-meta {
  margin-top: 6px;
  font-size: 13px;
  color: #666;
}

.trust-mini {
  list-style: none;
  padding: 0;
  margin: 18px 0 26px;
}

.trust-mini li {
  font-size: 13px;
  color: #333;
  margin-bottom: 6px;
}

.description {
  font-size: 15px;
  line-height: 1.75;
  color: #222;
  margin-bottom: 28px;
}

.back-link a {
  color: #0050ff;
  text-decoration: none;
  font-size: 14px;
}

.back-link a:hover {
  text-decoration: underline;
}

/* =========================
   Zoom Overlay
========================= */
#zoomOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  cursor: zoom-out;
}

#zoomOverlay img {
  max-width: 90vw;
  max-height: 90vh;
}

/* =========================
   Responsive
========================= */
@media (max-width: 900px) {
  .product-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product-title {
    font-size: 26px;
  }

  .price-main {
    font-size: 26px;
  }

  .spec-row {
    grid-template-columns: 140px 1fr;
  }
}

@media (max-width: 768px) {
  .spec-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .spec-label {
    font-size: 12px;
  }
}

/* =========================
   Hover Zoom (Drift)
========================= */
.drift-bounding-box {
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.drift-zoom-pane {
  background: #fff;
  border: 1px solid #ddd;
  z-index: 5;
}

/* =========================
   Main Image Arrows
========================= */
.main-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 64px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ddd;
  font-size: 28px;
  line-height: 62px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 6;
}

.main-image-wrap:hover .main-nav {
  opacity: 1;
}

.main-nav.left {
  left: 0;
  border-radius: 0 4px 4px 0;
}

.main-nav.right {
  right: 0;
  border-radius: 4px 0 0 4px;
}

/* =========================
   Thumbnail Arrows
========================= */
.thumb-wrapper {
  position: relative;
}

.thumb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 48px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #ddd;
  font-size: 22px;
  line-height: 46px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 5;
}

.thumb-wrapper:hover .thumb-nav {
  opacity: 1;
}

.thumb-nav.left {
  left: -16px;
  border-radius: 0 4px 4px 0;
}

.thumb-nav.right {
  right: -16px;
  border-radius: 4px 0 0 4px;
}

@media (hover: none) {
  .main-img {
    cursor: default;
  }
}

/* =========================
   Mobile: ダブルタップ拡大防止
========================= */
@media (hover: none) {

  .main-image-wrap,
  .gallery img {
    touch-action: manipulation;
  }
}

/* =========================
   Mobile swipe follow motion
========================= */
@media (hover: none) {
  .main-img {
    will-change: transform;
    transition: transform 0.25s ease;
    touch-action: pan-y;
  }

  .main-img.is-dragging {
    transition: none;
  }
}

.gallery img.active {
  opacity: 1 !important;
  border-color: #111 !important;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.btn-primary {
  display: inline-block;
  padding: 14px 28px;
  background: #111;
  color: #fff;
  text-decoration: none;
}

.btn-primary.is-sold {
  background: #666;
  cursor: default;
  pointer-events: none;
}

/* =========================================
   CTA – RESERVED / SOLD (Luxury Unified)
   ※ CSS変更のみ / HTML変更なし
========================================= */

.btn-primary.is-disabled {
  display: block;
  width: 100%;

  padding: 14px 22px;
  margin: 18px 0 10px;

  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;

  text-align: center;

  border-radius: 4px;
  cursor: default;
  pointer-events: none;

  opacity: 1;
  box-shadow: none;
}

/* ===== RESERVED ===== */
.price-reserved+.cta-block .btn-primary.is-disabled {
  background: #fff7ed;
  /* シャンパンベージュ */
  border: 1px solid #e6caa1;
  color: #7a4a00;
}

/* ===== SOLD ===== */
.price-sold+.cta-block .btn-primary.is-disabled,
.mobile-cta-button.is-sold {
  background: #f2f2f2;
  /* 上質ウォームグレー */
  border: 1px solid #d6d6d6;
  color: #666;
}

/* ホバー・アクティブ完全無効 */
.btn-primary.is-disabled:hover,
.btn-primary.is-disabled:active {
  background: inherit;
  box-shadow: none;
}

/* =========================
   Google Reviews (Trust)
========================= */

.review-stars {
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.review-score {
  font-weight: 600;
  margin-left: 4px;
}

.review-count {
  color: #777;
  margin-left: 4px;
}

.review-trust a {
  color: #0050ff;
  text-decoration: none;
  font-size: 13px;
  display: inline-block;
  margin-top: 4px;
}

.review-trust a:hover {
  text-decoration: underline;
}

.review-trust {
  margin-top: 24px;
  margin-bottom: 24px;
  padding-top: 16px;
  border-top: 1px solid #e5e5e5;
  font-size: 13px;
  color: #444;
}

/* ===============================
   DETAILS SECTION – Final Luxury
=============================== */

.details-section {
  max-width: 1200px;
  margin: 80px auto 0;
  padding: 0 20px;
}

/* Section title */
.spec-title {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 28px;
  color: #111;
}

/* Table wrapper */
.spec-table {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Row */
.spec-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Label (left) */
.spec-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8a8a;
  font-weight: 500;
}

/* Value (right) */
.spec-value {
  font-size: 14.5px;
  line-height: 1.6;
  color: #111;
  font-weight: 500;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* Vintage note */
.condition-note {
  font-size: 12px;
  color: #666;
  font-weight: 400;
}

/* 最終行のボーダーを消す */
.spec-row:last-child {
  border-bottom: none;
}

/* =================================================
   Base (PC / 共通)
================================================= */

/* ---------- Trust & Service ---------- */
.trust-service {
  margin-top: 48px;
  padding: 32px 20px 0;
  border-top: 1px solid #e5e5e5;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.trust-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  color: #222;
}

.trust-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.trust-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 22px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.trust-card:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.trust-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #111;
}

/* Read more */
.trust-text {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.trust-text.is-collapsed {
  max-height: 6.8em;
}

.trust-text.is-expanded {
  max-height: 1000px;
}

.trust-toggle {
  margin-top: 12px;
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: #111;
  cursor: pointer;
  text-decoration: underline;
}

/* =================================================
   Mobile (≤768px) – SINGLE MEDIA QUERY
================================================= */
.mobile-sticky-cta {
    display: none;
  }

@media (max-width: 768px) {

  /* ---------- Layout ---------- */
  .product-wrap {
    display: block;
    width: 100%;
    padding: 0;
  }

  .product-images {
    width: 100%;
    padding: 0 12px;
    margin-bottom: 24px;
  }

  .product-info {
    width: 100%;
    padding: 0 16px;
  }

  .description,
  .trust-service,
  .detail-section {
    width: 100%;
    max-width: none;
  }

  /* ---------- Typography (Golden Ratio) ---------- */
  body {
    font-size: 15px;
    line-height: 1.65;
  }

  .product-title {
    font-size: 18px;
    line-height: 1.35;
    margin-bottom: 12px;
  }

  .price-main {
    font-size: 21px;
  }

  /* =========================
   Price Status
========================= */

  .price-reserved {
    color: #b00000;
    /* Chrono24系の落ち着いた赤 */
    font-weight: 700;
    font-size: 28px;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
  }

  .price-sold {
    color: #777;
    font-weight: 700;
    font-size: 28px;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
  }

  .price-meta,
  .price-currency {
    font-size: 12px;
  }

  /* ---------- Trust mini ---------- */
  .trust-mini {
    margin: 12px 0 10px;
  }

  .trust-mini li {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 4px;
  }

  /* ---------- CTA ---------- */
  .cta-block {
    display: none;
  }

  .cta-sub p {
    font-size: 13px;
    margin: 4px 0;
  }

  /* ---------- Trust & Service ---------- */
  .trust-service {
    margin-top: 40px;
    padding: 0 16px;
  }

  .trust-title {
    text-align: center;
    font-size: 16px;
    margin-bottom: 24px;
  }

  .trust-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .trust-card {
    width: 100%;
    max-width: 520px;
    padding: 20px 18px;
  }

  .trust-text {
    max-height: none;
    overflow: visible;
    font-size: 13px;
    line-height: 1.6;
  }

  .trust-toggle {
    display: none;
  }

  /* ---------- Details accordion ---------- */
  .spec-content {
    display: none;
    margin-top: 16px;
  }

  .spec-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    /* 念のため */
    gap: 10px;
    /* 文字と記号の間隔 */
    cursor: pointer;
  }

  .spec-arrow {
    margin-left: 0;
    /* 右端へ飛ばさない */
  }

  .spec-arrow {
    font-size: 20px;
  }

  /* ---------- Thumbnail scroll ---------- */
  .gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .gallery::-webkit-scrollbar {
    display: none;
  }

  .gallery img {
    width: 64px;
    height: 64px;
    border-radius: 4px;
    flex-shrink: 0;
  }

  .thumb-nav {
    display: none;
  }

  /* ---------- Sticky CTA ---------- */
  .mobile-sticky-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #e5e5e5;
    z-index: 1000;
  }

  .mobile-cta-button {
    display: block;
    width: 100%;
    padding: 14px 0;
    background: #111;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    border-radius: 6px;
    text-decoration: none;
  }

  body {
    padding-bottom: 80px;
  }
}

/* モバイル横スクロール完全防止 */
html,
body {
  overflow-x: hidden;
}

/* ===============================
   PRODUCT PAGE MOBILE UX – FINAL (2026-01-25)
   Do not modify without review
=============================== */

/* =========================================
   Related Models
========================================= */

.related-models {
  margin: 80px auto 0;
  padding: 0 20px;
  max-width: 1200px;
}

.related-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}

/* ---------- List ---------- */

.related-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

/* ---------- Card ---------- */

.related-card {
  background: #fff;
  border: 1px solid #eee;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.related-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.related-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* ---------- Image ---------- */

.related-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f8f8f8;
}

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

.related-card:hover .related-image img {
  transform: scale(1.04);
}

/* ---------- Info ---------- */

.related-info {
  padding: 12px 12px 16px;
  text-align: center;
}

.related-model {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.related-ref {
  font-size: 12px;
  color: #777;
  margin-bottom: 8px;
}

.related-price {
  font-size: 14px;
  font-weight: 600;
}

/* =========================================
   Responsive (Tablet)
========================================= */

@media (max-width: 1024px) {
  .related-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================================
   Mobile Horizontal Scroll
========================================= */

@media (max-width: 768px) {

  .related-list {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .related-card {
    flex: 0 0 70%;
    scroll-snap-align: start;
  }

  /* スクロールバー非表示（iOS/Chrome） */
  .related-list::-webkit-scrollbar {
    display: none;
  }
}

/* =========================================
   FORCE Reserved Color (Final Fix)
========================================= */

.product-info .price-block .price-reserved {
  color: var(--status-reserved) !important;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* ===============================
   Condition details (separate)
=============================== */

.spec-row.condition-details {
  align-items: flex-start;
}

.spec-row.condition-details .spec-label {
  font-weight: 600;
  color: #555;
}

.spec-row.condition-details .spec-value {
  line-height: 1.6;
  color: #333;
  max-width: 520px;
}

.spec-divider {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 32px 0 24px;
}

.spec-row.condition-details {
  padding-top: 24px;
}

/* ===============================
   Notice Section (Details tone)
=============================== */

.notice-section {
  max-width: 1200px;
  margin: 80px auto 0;
  padding: 0 20px;
}

.notice-title {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 28px;
  color: #111;

  display: inline-flex;
  /* ← ここが重要 */
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  /* ← 文字と記号の間隔 */
  cursor: pointer;
}

.notice-content {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: none;
}

.notice-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 20px 0;
  align-items: center;
}

.notice-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8a8a;
  font-weight: 500;
}

.notice-value {
  font-size: 14.5px;
  line-height: 1.7;
  color: #111;
}

@media (max-width: 768px) {
  .notice-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.price-original {
  text-decoration: line-through;
  color: #888;
  font-size: 14px;
  margin-bottom: 4px;
}

.price-sale {
  font-size: 26px;
  font-weight: 700;
  color: #b30000;
}

.price-sale-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 10px;
  font-size: 12px;
  letter-spacing: 1px;
  background: #b30000;
  color: #fff;
  border-radius: 3px;
}

.price-discount {
  font-size: 14px;
  font-weight: 600;
  color: #8b0000;
  margin-top: 4px;
}

/* ===============================
   CTA LINKS（商品ページ）
=============================== */

.cta-links {
  margin-top: 14px;
  font-size: 13px;
  text-align: left;
}

.cta-links a {
  color: #111;
  text-decoration: none;
  margin: 0 6px;
  position: relative;
  transition: color 0.2s ease;
}

.cta-links a:hover {
  color: #000;
}

.cta-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: #ccc;
  transition: background 0.2s ease;
}

.cta-links a:hover::after {
  background: #111;
}

/* 少し高級感を足す */
.cta-sub {
  margin-top: 14px;
}

.cta-sub p {
  font-size: 13px;
  color: #444;
}

.cta-response {
  font-size: 12px;
  color: #777;
  margin-top: 6px;
  text-align: left;
}

.product-extra {
  max-width: 1200px;
  margin: 32px auto 0;
  padding: 0 20px;
}

.product-extra .review-trust {
  margin-top: 0;
  margin-bottom: 24px;
  padding-top: 0;
  border-top: none;
}

.product-extra .description {
  margin-bottom: 0;
}

.spec-value,
.notice-value {
  max-width: 720px;
}