/* ========================================
   実績ページ
======================================== */
.works-page {
  padding: 100px 0 80px;
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-beige-light) 100%);
  min-height: 100vh;
}

.works-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.works-page-intro {
  text-align: center;
  margin: 0 auto 30px;
}

.works-page-intro p {
  font-size: 15px;
  font-weight: 300;
  line-height: 2.2;
  letter-spacing: 0.08em;
  color: var(--color-text-gray);
}

/* ========================================
   スライダー全体
======================================== */
.pf-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
}

/* 矢印ボタン */
.pf-arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: none;
  border: none;
  font-size: 36px;
  line-height: 1;
  color: var(--color-text-gray);
  cursor: pointer;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  user-select: none;
}

.pf-arrow:hover {
  color: var(--color-text-dark);
}

/* スライドコンテナ */
.pf-slider {
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* 各スライド */
.pf-slide {
  display: none;
  text-align: center;
  animation: pfFadeIn 0.4s ease both;
}

.pf-slide.active {
  display: block;
}

@keyframes pfFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pf-slide .pf-image-wrap {
  display: inline-block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  max-height: calc(100vh - 320px);
  position: relative;
  line-height: 0;
}

.pf-slide .pf-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0);
  transition: background-color 0.3s ease;
  pointer-events: none;
}

.pf-slide .pf-image-wrap:hover::after {
  background-color: rgba(255, 255, 255, 0.9);
}

.pf-image {
  max-width: 100%;
  max-height: calc(100vh - 320px);
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

/* ホバーテキスト */
.pf-hover-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
  padding: 20px;
  text-align: center;
}

.pf-slide .pf-image-wrap:hover .pf-hover-text {
  opacity: 1;
}

.pf-hover-category {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--color-text-gray);
}

.pf-hover-title {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.8;
  color: var(--color-text-dark);
}

/* ドットナビ */
.pf-dots {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.pf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-beige);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.pf-dot.active {
  background-color: var(--color-text-gray);
}

/* 戻るボタン */
.works-page-back {
  text-align: center;
  margin-top: 80px;
}

/* ========================================
   レスポンシブ
======================================== */
@media (max-width: 768px) {
  .works-page {
    padding: 80px 0 60px;
  }

  .works-page-container {
    padding: 0 20px;
  }

  .pf-arrow {
    width: 32px;
    font-size: 28px;
  }

  .pf-slide .pf-image-wrap,
  .pf-image {
    max-height: calc(100vh - 280px);
  }
}
