/* ============================================================
   works.css — 制作実績一覧ページ専用スタイル
   ============================================================ */

/* ヘッダーを常に白固定 */
.works-page .header,
.works-page .header.is-scrolled {
  background: rgba(255,255,255,.97) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--color-border);
}
.works-page .header__logo-img { filter: none !important; }
.works-page .header__nav-link { color: var(--color-navy) !important; }
.works-page .header__hamburger-line { background: var(--color-navy) !important; }

/* ===== ヒーロー ===== */
.works-hero {
  background: var(--color-navy);
  padding: calc(var(--header-h) + 56px) 0 56px;
  position: relative;
  overflow: hidden;
}
.works-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(35,96,172,.15) 0%, transparent 60%);
  pointer-events: none;
}
.works-hero .section-label { color: var(--color-teal); }
.works-hero__title {
  font-family: var(--font-sans);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: white;
  margin: 8px 0 16px;
  letter-spacing: -.01em;
}
.works-hero__sub {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  line-height: 1.85;
}

/* ===== フィルター ===== */
.works-filter {
  padding: 32px 0 0;
  background: var(--color-bg);
}
.works-filter__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.works-filter__btn {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  background: white;
  color: var(--color-text-mid);
  cursor: pointer;
  transition: all .2s var(--ease-smooth);
}
.works-filter__btn:hover {
  border-color: var(--color-teal);
  color: var(--color-teal);
}
.works-filter__btn.is-active {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: white;
}

/* ===== グリッド ===== */
.works-grid-section {
  background: var(--color-bg);
  padding: 32px 0 80px;
}
.works-grid-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ===== カード ===== */
.wcard {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s var(--ease-out), box-shadow .3s;
  display: flex;
  flex-direction: column;
}
.wcard:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.wcard.is-hidden {
  display: none;
}

/* 画像エリア */
.wcard__img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-navy);
}
.wcard__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease-smooth);
}
.wcard:hover .wcard__img img { transform: scale(1.04); }

/* 画像なし */
.wcard__img--noimg {
  background: linear-gradient(135deg, #1a2e4a 0%, #223558 100%);
}
.wcard__noimg-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* タグ（画像上） */
.wcard__tag-top {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-sans);
  color: white;
  background: var(--color-teal);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: .04em;
}

/* テキストエリア */
.wcard__body {
  padding: 20px 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wcard__title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.45;
}
.wcard__desc {
  font-size: 13px;
  color: var(--color-text-mid);
  line-height: 1.8;
  flex: 1;
}
.wcard__note {
  font-size: 11px;
  color: var(--color-text-light);
  padding: 5px 10px;
  background: var(--color-bg);
  border-left: 2px solid var(--color-border);
  border-radius: 0 4px 4px 0;
  line-height: 1.6;
}
.wcard__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.wcard__tags span {
  font-size: 11px;
  color: var(--color-teal);
  background: var(--color-teal-bg);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* 空状態 */
.works-empty {
  text-align: center;
  padding: 64px 0;
  color: var(--color-text-light);
  font-size: 14px;
}

/* ===== CTA ===== */
.works-cta {
  background: var(--color-navy);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.works-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 60%, rgba(29,158,117,.12) 0%, transparent 55%);
  pointer-events: none;
}
.works-cta__inner {
  position: relative;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.works-cta__label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--color-teal);
  margin-bottom: 16px;
}
.works-cta__title {
  font-family: var(--font-sans);
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 900;
  color: white;
  line-height: 1.4;
  margin-bottom: 16px;
}
.works-cta__sub {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  line-height: 1.8;
  margin-bottom: 32px;
}
.works-cta__back {
  display: block;
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255,255,255,.45);
  transition: color .2s;
}
.works-cta__back:hover { color: rgba(255,255,255,.8); }

/* ===== レスポンシブ ===== */
@media (max-width: 1024px) {
  .works-grid-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .works-page .header,
  .works-page .header.is-scrolled {
    background: rgba(255,255,255,.97) !important;
  }
  .works-page .header__hamburger-line { background: var(--color-navy) !important; }
  .works-grid-list { grid-template-columns: 1fr; gap: 16px; }
  .works-filter { padding: 24px 0 0; }
  .works-grid-section { padding: 24px 0 56px; }
  .works-cta { padding: 56px 0; }
}
