/* =============================================================
   PROMISE — Jewelry Page Stylesheet
   jewelry.css  |  v2.0.0
============================================================= */

/*
  PC レイアウト：
  メイン 580px + gap 12px + サムネ (136×4 + 12×3 = 580px) = 合計 1172px
*/
.jewelry-slider {
  display: grid;
  grid-template-columns: 500px 500px;  /* 480px 480px → 500px 500px */
  gap: 8px;                             /* 12px → 8px */
  align-items: start;
  width: 1008px;
  margin: 0 auto;
}

/* メイン画像エリア */
.jewelry-slider__main {
  position: relative;
  width: 500px;   /* 480px → 500px */
  height: 500px;  /* 480px → 500px */
  overflow: hidden;
  grid-column: 1;
  grid-row: 1;
  flex-shrink: 0;
}

/* フェード時に黒を挟む */
.jewelry-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2.0s cubic-bezier(.4,0,.2,1);
  background-size: cover;
  background-position: center;
}

.jewelry-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.jewelry-slider__slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 1;
  transition: opacity 2.0s cubic-bezier(.4,0,.2,1);
  z-index: 1;
}

.jewelry-slider__slide.is-active::before {
  opacity: 0;
}

.jewelry-slider__slide.is-active {
  opacity: 1;
}

/* カウンター */
.jewelry-slider__counter {
  position: absolute;
  bottom: 16px; left: 20px;
  font-family: 'Cinzel', serif;
  font-size: .6rem;
  letter-spacing: .2em;
  color: rgba(255,255,255,.4);
  display: none;
  z-index: 2;
}

/*
  サムネイル：4列 × 4行 = 16枠
  各サムネ 136px × 136px、gap 12px
  幅 = 136×4 + 12×3 = 580px（メインと同じ高さ）
*/
.jewelry-slider__thumbs {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(4, 119px);  /* 111px → 119px */
  grid-template-rows: repeat(4, 119px);     /* 111px → 119px */
  gap: 8px;                                  /* 12px → 8px */
  width: 500px;   /* 480px → 500px */
  height: 500px;  /* 480px → 500px */
  flex-shrink: 0;
}

.jewelry-slider__thumb {
  width: 119px;   /* 111px → 119px */
  height: 119px;  /* 111px → 119px */
  cursor: pointer;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  border: 1px solid transparent;
  transition: border-color .3s, opacity .3s;
  opacity: .4;
}

.jewelry-slider__thumb.is-active {
  border-color: var(--gold);
  opacity: 1;
}

.jewelry-slider__thumb:not(.is-active):hover {
  opacity: .7;
}

.jewelry-slider__thumb--01 { background: url(../image/jewelry/image_01.jpg) center center no-repeat; background-size: cover; }
.jewelry-slider__thumb--02 { background: url(../image/jewelry/image_02.jpg) center center no-repeat; background-size: cover; }
.jewelry-slider__thumb--03 { background: url(../image/jewelry/image_03.jpg) center center no-repeat; background-size: cover; }
.jewelry-slider__thumb--04 { background: url(../image/jewelry/image_04.jpg) center center no-repeat; background-size: cover; }
.jewelry-slider__thumb--05 { background: url(../image/jewelry/image_05.jpg) center center no-repeat; background-size: cover; }
.jewelry-slider__thumb--06 { background: url(../image/jewelry/image_06.jpg) center center no-repeat; background-size: cover; }
.jewelry-slider__thumb--07 { background: url(../image/jewelry/image_07.jpg) center center no-repeat; background-size: cover; }
.jewelry-slider__thumb--08 { background: url(../image/jewelry/image_08.jpg) center center no-repeat; background-size: cover; }
.jewelry-slider__thumb--09 { background: url(../image/jewelry/image_09.jpg) center center no-repeat; background-size: cover; }
.jewelry-slider__thumb--10 { background: url(../image/jewelry/image_10.jpg) center center no-repeat; background-size: cover; }
.jewelry-slider__thumb--11 { background: url(../image/jewelry/image_11.jpg) center center no-repeat; background-size: cover; }
.jewelry-slider__thumb--12 { background: url(../image/jewelry/image_12.jpg) center center no-repeat; background-size: cover; }
.jewelry-slider__thumb--13 { background: url(../image/jewelry/image_13.jpg) center center no-repeat; background-size: cover; }
.jewelry-slider__thumb--14 { background: url(../image/jewelry/image_14.jpg) center center no-repeat; background-size: cover; }
.jewelry-slider__thumb--15 { background: url(../image/jewelry/image_15.jpg) center center no-repeat; background-size: cover; }

/* ---- Section: 制作フロー --------------------------------- */
#jewelry-flow { margin-top:80px;}

.jewelry-flow__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: 40px;
}



.jewelry-flow__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  counter-reset: flow-step;
  margin-top: -40px;
}

.jewelry-flow__item {
  counter-increment: flow-step;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  align-items: start;
  padding: 48px 0;
  border-bottom: 1px solid #333;
  position: relative;
}

.jewelry-flow__item:first-child {
  border-top: 1px solid #333;
}
.jewelry-flow__item:last-child {
  border-bottom: none;
}

.jewelry-flow__step-num {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
}

.jewelry-flow__step-num__circle {
  width: 100px; height: 100px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-align: center;
}

.jewelry-flow__step-num__circle span {
  font-family: 'Cinzel', serif;
  font-size: var(--fs-base);
  letter-spacing: .12em;
  color: var(--gold);
}

.jewelry-flow__item:not(:last-child) .jewelry-flow__step-num::after {
  content: '';
  display: block;
  width: 1px;
  flex: 1;
  min-height: 40px;
  background: linear-gradient(to bottom, rgba(201,169,110,.3), transparent);
  margin-top: 4px;
}

.jewelry-flow__body {}

.jewelry-flow__title {
  font-weight: 400;
  letter-spacing: .14em;
  margin-bottom: 16px;
  line-height: 1.6;
}

.jewelry-flow__desc {
  color: #ccc;
  line-height: 1.8;
  letter-spacing: .07em;
}

/* ============================================================
   Responsive
============================================================ */
@media (max-width: 1024px) {
  .jewelry-flow__inner { padding-inline: 24px; }
}

@media (max-width: 768px) {
  .category-title { margin-top: 60px; }

  /* モバイル：縦並びに戻す */
  .jewelry-slider {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0 5vw;
    margin-top: 5vw;
  }

  .jewelry-slider__main {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
  }

  /* サムネ：8列+7列の2行、左寄せ */
  .jewelry-slider__thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: auto;
    gap: 4px;
    width: 100%;
    height: auto;
  }

  .jewelry-slider__thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  #jewelry-flow { padding: 0 5vw; }
  .jewelry-flow__inner  { padding-inline:0; }
  .jewelry-flow__lead   { margin-bottom:0; }
  .jewelry-flow__item {
    grid-template-columns: 72px 1fr;
    gap: 24px;
    padding: 20px 0;
  }
  .jewelry-flow__step-num__circle { width: 80px; height: 80px; }


  .jewelry-flow__list { margin-top: 20px;}
}
