/* =========================================
   BRIJCS 導入事例ページ — cases.css
   ========================================= */

/* =========================================
   SITE HEADER
   ========================================= */

.l-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13, 13, 11, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(184, 146, 42, 0.18);
  transition: background 0.3s;
}

.l-header__inner {
  max-width: calc(var(--max-w) + var(--side-pad) * 2);
  margin: 0 auto;
  padding: 0 var(--side-pad);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.l-header__logo img {
  height: 36px;
  width: auto;
}

.l-header__nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.l-header__nav a {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--text-dk-sub);
  letter-spacing: 0.1em;
  transition: color 0.25s;
  position: relative;
}

.l-header__nav a:hover { color: var(--gold); }

.l-header__nav a.is-current {
  color: var(--gold);
}

.l-header__nav a.is-current::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
}

.l-header__cta-link {
  background: var(--gold) !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 9px 22px;
  font-size: 13px !important;
  letter-spacing: 0.1em !important;
  transition: background 0.25s !important;
}

.l-header__cta-link:hover {
  background: var(--gold-bright) !important;
  color: #fff !important;
}

.l-header__cta-link::after { display: none !important; }


/* =========================================
   PAGE HERO
   ========================================= */

.p-hero {
  position: relative;
  padding-top: 70px; /* header分 */
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(160deg,
      rgba(13,13,11,0.55) 0%,
      rgba(13,13,11,0.80) 100%),
    url('../images/section_bg.jpg') center / cover no-repeat;
  overflow: hidden;
}

.p-hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,13,11,0.3) 0%,
    rgba(13,13,11,0.75) 100%
  );
}

.p-hero__inner {
  position: relative;
  z-index: 2;
  padding: 60px var(--side-pad) 60px;
  max-width: calc(var(--max-w) + var(--side-pad) * 2);
  width: 100%;
}

.p-hero__inner .u-title-dk {
  margin-bottom: 12px;
}


/* =========================================
   GALLERY
   ========================================= */

.s-gallery {
  background: var(--bg-light);
}

.s-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 0;
}

.s-gallery__item {
  background: var(--bg-light-card);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(.22,.61,.36,1),
              box-shadow 0.35s;
}

.s-gallery__item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

/* 画像エリア */
.s-gallery__img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-light-card);
}

.s-gallery__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  position: relative;
  z-index: 1;
}

.s-gallery__item:hover .s-gallery__img-wrap img {
  transform: scale(1.06);
}

/* 画像なし時のプレースホルダー */
.s-gallery__img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-lt-muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  background: var(--bg-light-card2);
  z-index: 0;
}

/* 画像が読み込めた場合はプレースホルダーを隠す */
.s-gallery__img-wrap img + .s-gallery__img-placeholder {
  display: none;
}

.s-gallery__img-wrap.no-img img { display: none; }
.s-gallery__img-wrap.no-img .s-gallery__img-placeholder { z-index: 2; }

/* ホバー時の浮き上がりのみ残す */

/* テキストエリア */
.s-gallery__body {
  padding: 24px 24px 28px;
  border-top: 2px solid var(--gold-line-lt);
}

.s-gallery__tag {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 3px 12px;
  margin-bottom: 12px;
}

.s-gallery__title {
  font-family: var(--font-serif);
  font-size: clamp(16px, 1.6vw, 18px);
  font-weight: 600;
  color: var(--text-lt-main);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.s-gallery__meta {
  font-size: 12px;
  color: var(--gold-dim);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  font-family: var(--font-serif);
}

.s-gallery__text {
  font-size: clamp(13px, 1.3vw, 14px);
  line-height: 1.9;
  color: var(--text-lt-sub);
  letter-spacing: 0.05em;
}


/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 860px) {
  .s-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .l-header__nav a:not(.l-header__cta-link):not(.is-current + a) {
    display: none;
  }
}

@media (max-width: 540px) {
  .s-gallery__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .p-hero {
    min-height: 240px;
  }

  .p-hero__inner {
    padding: 40px 20px 40px;
  }

  .l-header__inner {
    padding: 0 20px;
  }

  .l-header__nav {
    gap: 16px;
  }

  .l-header__nav a:not(.l-header__cta-link) {
    display: none;
  }

  .s-gallery__body {
    padding: 18px 18px 22px;
  }
}
