/* =============================================
   Works Single Page — 専用スタイル
   （競合回避のため style.css から独立）
   ============================================= */

/* メインコンテナ：ヘッダー高さ120px分オフセット */
#works-single {
  padding-top: 120px;
  padding-bottom: 120px;
  background: #E8E4E2;
  min-height: 100vh;
}

.works-single-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 6vw;
}

/* ---- タイトルブロック ---- */
.works-single-header {
  margin-bottom: 2rem;
}

.works-single-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.03em;
  margin: 0 0 1rem;
  color: #1a1a1a;
}

.works-single-subtitle {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: #1a1a1a;
  margin: 0 0 1.5rem;
  line-height: 1.7;
  font-weight: 400;
}

.works-single-client {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 0.5rem;
}

.works-single-client-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888;
}

.works-single-client-name {
  font-size: 0.95rem;
  color: #1a1a1a;
  font-weight: 500;
}

/* ---- カテゴリータグ ---- */
.works-single-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px; /* タグ→画像の余白 */
}

.works-single-tag {
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid rgba(26, 26, 26, 0.35);
  border-radius: 9999px;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #1a1a1a;
  background: transparent;
}

.works-single-tag.is-active {
  border-color: #D97706;
  color: #D97706;
}

/* ---- メイン画像 ---- */
.works-single-thumbnail {
  width: 100%;
  margin-bottom: 60px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.06);
  aspect-ratio: 16 / 9;
}

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

.works-single-thumbnail-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: #888;
}

/* ---- セクションラベル共通 ---- */
.works-single-section-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 1.5rem;
}

/* ---- INTRODUCTION ---- */
.works-single-intro {
  margin-bottom: 5rem;
}

.works-single-intro-heading {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  line-height: 1.5;
  margin: 0 0 1.5rem;
  color: #1a1a1a;
}

.works-single-intro-lead {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  line-height: 2;
  color: #1a1a1a;
}

/* ---- RESULT ---- */
.works-single-result {
  margin-bottom: 5rem;
}

.works-single-result-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.works-single-result-card {
  padding: 2rem;
  border: 1px solid rgba(26, 26, 26, 0.15);
}

.works-single-result-card-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.75rem;
}

.works-single-result-card-value {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  color: #1a1a1a;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.works-single-result-card-indicator {
  font-size: 0.75rem;
  color: #D97706;
  font-weight: 500;
}

.works-single-result-quote {
  border-left: 2px solid #D97706;
  padding-left: 1.5rem;
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
  color: #1a1a1a;
  font-style: normal;
}

/* ---- 本文 ---- */
.works-single-content {
  margin-bottom: 5rem;
}

.works-single-content-inner p {
  line-height: 2;
  margin-bottom: 1.5rem;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  color: #1a1a1a;
}

.works-single-content-inner img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem 0;
}

/* ---- 戻るリンク ---- */
.works-single-nav {
  padding-top: 3rem;
  border-top: 1px solid rgba(26, 26, 26, 0.15);
}

.works-single-nav-back {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.3s ease;
}

.works-single-nav-back:hover {
  color: #D97706;
}

/* =============================================
   レスポンシブ（SP: 〜768px）
   ============================================= */
@media (max-width: 768px) {
  #works-single {
    padding-top: 100px; /* SP用ヘッダー高さ */
    padding-bottom: 80px;
  }

  .works-single-inner {
    padding: 0 24px;
  }

  .works-single-title {
    font-size: clamp(1.25rem, 5.5vw, 1.75rem);
  }

  .works-single-tags {
    margin-bottom: 28px;
  }

  .works-single-thumbnail {
    margin-bottom: 40px;
  }

  .works-single-result-cards {
    grid-template-columns: 1fr;
  }
}
