/* ============================================================
   works.css — 工事実績ページ専用スタイル
   ============================================================ */

/* ---------- HERO ---------- */
.wk-hero {
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: var(--header-h);
}
.wk-hero-bg {
  position: absolute;
  inset: 0;
}
.wk-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.wk-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,31,53,0.82) 0%, rgba(26,95,168,0.55) 100%);
}
.wk-hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
}
.wk-hero-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
}
.wk-hero-title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 12px;
}
.wk-hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
}

/* ---------- BREADCRUMB ---------- */
.breadcrumb {
  background: var(--gray);
  padding: 12px 0;
  font-size: 0.82rem;
  color: var(--text-light);
}
.breadcrumb a {
  color: var(--primary);
  transition: opacity 0.2s;
}
.breadcrumb a:hover { opacity: 0.7; }
.bc-sep {
  margin: 0 8px;
  font-size: 0.7rem;
  color: var(--gray2);
}

/* ---------- SECTION ---------- */
.wk-section { padding: 80px 0; }
.wk-section-header {
  text-align: center;
  margin-bottom: 52px;
}
.wk-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--primary);
  margin-bottom: 8px;
}
.wk-title {
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 14px;
}
.wk-line {
  width: 48px;
  height: 3px;
  background: var(--primary);
  margin: 0 auto 20px;
  border-radius: 2px;
}
.wk-desc {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* ---------- GRID ---------- */
.wk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ---------- CARD ---------- */
.wk-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.wk-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(26,95,168,0.15);
}
.wk-card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.wk-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.wk-card:hover .wk-card-img img {
  transform: scale(1.06);
}
.wk-card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}
.wk-card-body {
  padding: 20px 22px 24px;
}
.wk-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.5;
}
.wk-card-body p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ---------- CTA ---------- */
.wk-cta { padding: 80px 0; }
.wk-cta-inner {
  text-align: center;
}
.wk-cta-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--primary);
  margin-bottom: 12px;
}
.wk-cta-title {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 10px;
}
.wk-cta-sub {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 28px;
}

/* ---------- REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .wk-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .wk-grid { grid-template-columns: 1fr; }
  .wk-hero { height: 240px; }
}
