/* =============================================
   施工実績ページ (works-custom.css)
   ============================================= */

/* ph-img（画像フィル共通） */
.ph-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* en-tag（セクション小見出しラベル） */
.en-tag {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #853257;
  margin-bottom: 12px;
}

/* ======================
   イントロ + スタッツ
   ====================== */
.works-intro {
  background: #faf5f7;
  padding: 60px 0;
}
.works-intro__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.works-intro__body {
  font-size: 1.5rem;
  line-height: 2.1;
  color: #333;
  margin: 0;
  max-width: 720px;
}
.works-intro__stats {
  display: flex;
  gap: 36px;
}
.works-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 80px;
}
.works-stat small {
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.25em;
  color: #853257;
  font-weight: 500;
  text-transform: uppercase;
}
.works-stat strong {
  font-family: "Inter", sans-serif;
  font-size: 3.2rem;
  font-weight: 600;
  color: #853257;
  letter-spacing: 0.02em;
  line-height: 1;
}
.works-stat span {
  font-size: 1.1rem;
  color: #888;
}

/* ======================
   カテゴリーセクション共通
   ====================== */
.cat-section {
  padding: 100px 0;
}
.cat-section + .cat-section {
  padding-top: 30px;
}
.cat-section--alt {
  background: #faf5f7;
}
.cat-section .sect-head {
  display: grid;
  grid-template-columns: 1fr auto;
  margin-bottom: 56px;
  align-items: end;
  gap: 24px;
}
.cat-section .sect-head > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 99px;
  background: #853257;
  color: #fff;
  letter-spacing: 0.1em;
  align-self: flex-start;
}
.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #E5F0A5;
  border-radius: 50%;
  flex-shrink: 0;
}
.sect-head__en {
  font-family: "Inter", sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: #853257;
  text-transform: uppercase;
}
.sect-head__jp {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #2d1a24;
  margin: 4px 0 8px;
  line-height: 1.3;
}
.sect-head__jp em {
  color: #853257;
  font-style: normal;
}
.sect-head__lead {
  font-size: 1.5rem;
  line-height: 1.9;
  color: #555;
  max-width: 1000px;
  margin: 0;
}

/* ======================
   ギャラリーグリッド（12カラム）
   ====================== */
.works-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.works-gallery .item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f0f2;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.works-gallery .item:hover {
  transform: translateY(-4px);
}
.works-gallery .item__photo {
  width: 100%;
  height: 100%;
  aspect-ratio: var(--ar, 4/3);
}
.works-gallery .item__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 20px;
  background: linear-gradient(180deg, transparent 0%, rgba(27, 22, 32, 0.78) 70%);
  color: #fff;
}
.works-gallery .item__cat {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: #E5F0A5;
  font-weight: 500;
}
.works-gallery .item__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 4px 0 0;
  line-height: 1.6;
}
.works-gallery .item__meta {
  font-size: 1.1rem;
  opacity: 0.8;
  margin-top: 2px;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.1em;
}
/* 12カラム スパン定義 */
.works-gallery .a { grid-column: span 6; --ar: 4/3; }
.works-gallery .b { grid-column: span 6; --ar: 4/3; }
.works-gallery .c { grid-column: span 4; --ar: 4/5; }
.works-gallery .d { grid-column: span 4; --ar: 4/5; }
.works-gallery .e { grid-column: span 4; --ar: 4/5; }
.works-gallery .f { grid-column: span 8; --ar: 16/9; }
.works-gallery .g { grid-column: span 4; --ar: 1/1; }

/* ======================
   フィーチャードケース
   ====================== */
.case-feature {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(133, 50, 87, 0.12);
  margin-bottom: 36px;
}
.case-feature__hero {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #f5f0f2;
}
.case-feature__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.case-feature__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27, 22, 32, 0) 40%, rgba(27, 22, 32, 0.55) 100%);
}
.case-feature__hero-label {
  position: absolute;
  left: 0;
  top: 32px;
  background: #853257;
  color: #fff;
  padding: 10px 20px 10px 32px;
  font-family: "Inter", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  font-weight: 600;
  z-index: 2;
}
.case-feature__hero-title {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 28px;
  color: #fff;
  z-index: 2;
}
.case-feature__hero-title small {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  color: #E5F0A5;
  margin-bottom: 6px;
}
.case-feature__hero-title h3 {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.4;
}
.case-feature__body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}
.case-feature__text {
  padding: 40px 44px;
  border-right: 1px solid #e8d5e0;
}
.case-feature__text h4 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #2d1a24;
}
.case-feature__text h4::before {
  content: "";
  width: 24px;
  height: 2px;
  background: #853257;
  flex-shrink: 0;
}
.case-feature__text p {
  font-size: 1.4rem;
  line-height: 2;
  color: #333;
  margin: 0 0 16px;
}
.case-feature__meta {
  padding: 40px 44px;
  background: #faf5f7;
}
.case-feature__meta dl {
  margin: 0;
  display: grid;
  grid-template-columns: 88px 1fr;
  row-gap: 14px;
}
.case-feature__meta dt {
  color: #853257;
  font-weight: 600;
  letter-spacing: 0.05em;
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}
.case-feature__meta dd {
  margin: 0;
  font-weight: 500;
  color: #333;
  font-size: 1.3rem;
}
.case-feature__tags {
  margin-top: 24px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.case-feature__tags span {
  font-size: 1.1rem;
  padding: 5px 10px;
  background: rgba(133, 50, 87, 0.08);
  color: #853257;
  border-radius: 99px;
  font-weight: 500;
}

/* ======================
   ケースグリッド（案件写真群）
   ====================== */
.case-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.case-grid .ph {
  position: relative;
  overflow: hidden;
  background: #f5f0f2;
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: 4px;
}
.case-grid .ph:hover {
  transform: scale(1.01);
}
.case-grid .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.case-grid .ph .tag {
  position: absolute;
  left: 10px;
  top: 10px;
  background: rgba(27, 22, 32, 0.7);
  color: #fff;
  padding: 4px 10px;
  font-size: 1rem;
  letter-spacing: 0.15em;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  border-radius: 3px;
}
.case-grid .x1 { grid-column: span 6; aspect-ratio: 4/3; }
.case-grid .x2 { grid-column: span 6; aspect-ratio: 4/3; }
.case-grid .x3 { grid-column: span 3; aspect-ratio: 1/1; }
.case-grid .x4 { grid-column: span 3; aspect-ratio: 1/1; }
.case-grid .x5 { grid-column: span 3; aspect-ratio: 1/1; }
.case-grid .x6 { grid-column: span 3; aspect-ratio: 1/1; }
.case-grid .x7 { grid-column: span 4; aspect-ratio: 3/4; }
.case-grid .x8 { grid-column: span 4; aspect-ratio: 3/4; }
.case-grid .x9 { grid-column: span 4; aspect-ratio: 3/4; }

/* ======================
   区切りディバイダー
   ====================== */
.case-divider {
  text-align: center;
  margin: 64px auto 36px;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}
.case-divider span {
  font-family: "Inter", sans-serif;
  font-size: 1.2rem;
  color: #853257;
  letter-spacing: 0.3em;
  font-weight: 500;
}
.case-divider::before,
.case-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  max-width: 100px;
  background: #e8d5e0;
}

/* ======================
   ストック画像ノート
   ====================== */
.coming-note {
  margin-top: 40px;
  padding: 24px 28px;
  background: #fff;
  border: 1px dashed #e8d5e0;
  border-radius: 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
}
.coming-note .ic {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #E5F0A5;
  color: #853257;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.coming-note small {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  color: #853257;
  letter-spacing: 0.2em;
  font-weight: 500;
  margin-bottom: 4px;
}
.coming-note p {
  margin: 0;
  font-size: 1.3rem;
  color: #888;
  line-height: 1.8;
}

/* ======================
   CTAセクション
   ====================== */
.wks-cta {
  background: #f0f7e0;
  padding: 100px 0;
  text-align: center;
}
.wks-cta .sect-head__jp {
  font-size: 3rem;
  margin: 12px 0 16px;
}
.wks-cta > .container > p {
  color: #333;
  font-size: 1.5rem;
  line-height: 1.9;
  margin: 0 0 32px;
}
.wks-cta__btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.wks-cta__btns .btn {
  max-width: 300px;
  padding: 16px 28px;
}

/* ======================
   レスポンシブ
   ====================== */
@media (max-width: 960px) {
  .works-intro {
    padding: 40px 0;
  }
  .works-intro__inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .works-intro__stats {
    gap: 16px;
    justify-content: space-around;
  }
  .works-stat strong {
    font-size: 2.6rem;
  }
  .cat-section {
    padding: 64px 0;
  }
  .cat-section .sect-head {
    grid-template-columns: 1fr;
  }
  .sect-head__jp {
    font-size: 2.4rem;
  }
  /* gallery */
  .works-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .works-gallery .a,
  .works-gallery .b,
  .works-gallery .c,
  .works-gallery .d,
  .works-gallery .e,
  .works-gallery .f,
  .works-gallery .g {
    grid-column: span 1;
    --ar: 4/3;
  }
  .works-gallery .a,
  .works-gallery .f { grid-column: span 2; }
  /* case-feature */
  .case-feature__hero { aspect-ratio: 4/3; }
  .case-feature__hero-label { top: 16px; padding: 8px 14px 8px 18px; font-size: 1rem; }
  .case-feature__hero-title { left: 18px; right: 18px; bottom: 18px; }
  .case-feature__hero-title h3 { font-size: 1.8rem; }
  .case-feature__body { grid-template-columns: 1fr; }
  .case-feature__text { padding: 28px 22px; border-right: none; border-bottom: 1px solid #e8d5e0; }
  .case-feature__meta { padding: 28px 22px; }
  .case-feature__meta dl { grid-template-columns: 80px 1fr; }
  /* case-grid */
  .case-grid { grid-template-columns: repeat(6, 1fr); }
  .case-grid .x1, .case-grid .x2 { grid-column: span 6; aspect-ratio: 4/3; }
  .case-grid .x3, .case-grid .x4, .case-grid .x5, .case-grid .x6 { grid-column: span 3; aspect-ratio: 1/1; }
  .case-grid .x7, .case-grid .x8, .case-grid .x9 { grid-column: span 2; aspect-ratio: 3/4; }
  /* CTA */
  .wks-cta { padding: 64px 0; }
  .wks-cta .sect-head__jp { font-size: 2.4rem; }
}

@media (max-width: 639px) {
  .works-gallery {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .works-gallery .a,
  .works-gallery .b,
  .works-gallery .c,
  .works-gallery .d,
  .works-gallery .e,
  .works-gallery .f,
  .works-gallery .g { grid-column: span 1; --ar: 4/3; }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid .x1, .case-grid .x2 { grid-column: span 2; aspect-ratio: 4/3; }
  .case-grid .x3, .case-grid .x4, .case-grid .x5, .case-grid .x6 { grid-column: span 1; aspect-ratio: 1/1; }
  .case-grid .x7, .case-grid .x8, .case-grid .x9 { grid-column: span 1; aspect-ratio: 4/3; }
}
