@charset "UTF-8";

/* =========================
   商品詳細ページ（product-detail）
   ========================= */

/* --------------------------
   ページ共通設定
   -------------------------- */

.page-product-detail .hero-brands {
  height: auto;
  min-height: 0;
}

.page-product-detail .breadcrumb {
  display: none;
}

.page-product-detail .notice-pill {
  display: none;
}

.page-product-detail .home-news-more {
  margin-top: 80px;
}

.page-product-detail .news-more-circle {
  background-image: url("../../images/return.svg");
}

/* --------------------------
   メインレイアウト（2カラム）
   -------------------------- */

.product-detail-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  gap: 80px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 40px;
  align-items: start;
}

/* --------------------------
   左カラム：画像エリア
   -------------------------- */

.product-images {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-self: start;
  min-width: 0;
}

.image-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #e0e0e0;
}

.product-images-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

/* --------------------------
   右カラム：商品情報エリア
   -------------------------- */

.product-info {
  position: sticky;
  bottom: 40px;
  align-self: end;
  min-width: 0;
}

.product-info p {
  word-break: normal;
  overflow-wrap: break-word;
  text-align: justify;
}

.product-info h1 {
  font-size: 28px;
  margin-bottom: 30px;
}

.product-info .product-material {
  font-size: 13px;
  color: #999;
  margin-top: -20px;
  margin-bottom: 20px;
}

.product-info > p {
  font-size: 15px;
}

.product-info h3 {
  margin-top: 60px;
  margin-bottom: 20px;
}

/* 価格表示 */
.product-price {
  font-size: 24px;
  font-weight: 500;
  color: #333;
  margin-top: 10px;
  margin-bottom: 30px;
}

.product-price .tax-note {
  font-size: 10px;
  margin-left: 8px;
}

/* --------------------------
   仕様テーブル
   -------------------------- */

.product-specs-table {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  font-size: 14px;
}

.spec-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  line-height: 1.8;
  padding: 18px 0;
  border-bottom: 1px solid #ddd;
}

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

.spec-label {
  font-weight: 500;
}

.spec-value .note {
  font-size: 13px;
  color: #999;
}

/* --------------------------
   リスト共通
   -------------------------- */

.product-info ul {
  list-style: none;
  padding-left: 0;
}

.product-info ul li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
}

.product-info ul li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: #333;
}

.product-info .product-specs li {
  padding: 3px 0;
  padding-left: 0;
}

.product-info .product-specs li::before {
  content: none;
}

/* --------------------------
   CTAボタン
   -------------------------- */

.add-to-cart-btn {
  display: block;
  width: 90%;
  padding: 20px;
  margin-top: 60px;
  background-color: #fff;
  color: #333;
  border: 2px solid #333;
  border-radius: 50px;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-family: "TazuganeGothicStdN-Light";
  transition: all 0.3s;
  cursor: pointer;
}

.add-to-cart-btn:hover {
  background-color: #333;
  color: #fff;
}

.product-info .cart-note {
  font-size: 13px;
  color: #999;
  text-align: left;
  margin-top: 20px;
  margin-bottom: 0;
  line-height: 1.6;
}

/* --------------------------
   ブランドページ用（共用）
   -------------------------- */

.page-product-detail .greeting-title {
  margin-top: 180px;
  margin-bottom: 60px;
}

.page-product-detail .brands-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1080px;
  margin: 80px auto 0;
}

.page-product-detail .brand-card {
  text-align: left;
  box-sizing: border-box;
}

.page-product-detail .brand-image {
  width: 100%;
  box-sizing: border-box;
  padding: 18px 40px;
  margin-bottom: 30px;
  border: 1px solid #bbb;
}

.page-product-detail .brand-image img {
  width: 100%;
  height: auto;
  display: block;
}

.page-product-detail .brand-name-icon {
  width: 14px;
  height: auto;
  display: block;
}

.page-product-detail .brands-section {
  margin-bottom: 120px;
}

/* =========================
   関連商品セクション
   ========================= */

.related-products {
  max-width: 1280px;
  margin: 0 auto;
  padding: 100px 40px 120px;
}

.related-product-size {
  font-family: "TazuganeGothicStdN-Light";
  font-size: 12px;
  color: #666;
  margin: 0 0 5px 0;
}

.related-products-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 30px;
}

.related-products-text {
  display: flex;
  flex-direction: column;
}

.related-products-label {
  font-family: "TazuganeGothicStdN-Light";
  font-size: 12px;
  color: #999;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.related-products-title {
  font-family: "I-OTF明朝Pro M";
  font-size: 28px;
  font-weight: 400;
  margin: 0;
}

/* スクロールナビゲーション */
.related-products-nav {
  display: flex;
  gap: 10px;
}

.scroll-btn {
  width: 44px;
  height: 44px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.scroll-btn:hover {
  border-color: #333;
}

.scroll-btn svg {
  width: 16px;
  height: 16px;
}

/* 横スクロールコンテナ */
.related-products-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.related-products-scroll::-webkit-scrollbar {
  display: none;
}

.related-products-grid {
  display: flex;
  gap: 5px;
}

.related-product-card {
  flex: 0 0 380px;
  display: block;
  text-decoration: none;
  color: #333;
  transition: opacity 0.3s ease;
}

.related-product-card:hover {
  opacity: 0.7;
}

.related-product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #e0e0e0;
  margin-bottom: 15px;
}

.related-product-name {
  font-family: "TazuganeGothicStdN-Light";
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 8px 0;
}

.related-product-price {
  font-family: "TazuganeGothicStdN-Light";
  font-size: 14px;
  color: #666;
  margin: 0;
}

/* スクロールバー（プログレス） */
.related-products-scrollbar {
  width: 100%;
  height: 4px;
  background-color: #e5e5e5;
  margin-top: 100px;
  position: relative;
}

.related-products-scrollbar-thumb {
  height: 100%;
  background-color: #999;
  width: 30%;
  position: absolute;
  left: 0;
  transition: left 0.1s ease;
}

/* スマホ用スクロールはPCでは非表示 */
.product-images-scroll {
  display: none;
}


/* 関連商品 レスポンシブ */
@media screen and (max-width: 900px) {
  .related-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================
   レスポンシブ（スマホ）
   ========================= */

@media screen and (max-width: 600px) {

  /* 2カラム → 1カラム（縦積み） */
  .product-detail-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px 20px;
  }

  /* stickyを解除 */
  .product-info {
    position: static;
    align-self: start;
  }
  
  /* 画像エリアの設定 */
  .product-images {
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-right: -20px;
    overflow: visible;
  }

  /* スマホ用：横スクロール画像 */
  .product-images-scroll {
    display: block;
    width: 100%;
    overflow-x: scroll;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
  }
  
  .product-images-scroll::-webkit-scrollbar {
    display: none;
  }
  
  .product-images-track {
    display: flex;
    gap: 5px;
  }
  
  .product-images-track .image-box {
    flex: 0 0 85%;
    width: 85%;
    min-width: 0;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    scroll-snap-align: center;
  }

  .product-images-track .image-box:first-child {
    margin-left: 20px;
  }
  
  /* PC用はスマホで非表示 */
  .product-images-grid,
  .product-images > .image-box-main {
    display: none;
  }

  /* 商品説明の文章を折り返す */
  .product-info p {
    word-break: normal;
    overflow-wrap: break-word;
    text-align: justify;
  }

  .related-products {
    padding: 60px 20px 80px;
  }
  
  .related-products-header {
    margin-bottom: 20px;
  }
  
  .related-products-title {
    font-size: 24px;
  }
  
  .related-products-nav {
    display: none;
  }
  
  .related-product-card {
    flex: 0 0 300px;
  }
  
  .related-product-name {
    font-size: 12px;
  }
  
  .related-product-price {
    font-size: 12px;
  }

    /* スクロールバー（プログレス） */
  .related-products-scrollbar {
    margin-top: 50px;
  }


  /* CTAボタンの横幅調整 */
  .add-to-cart-btn {
    width: 86%;
  }

}