@charset "utf-8";

/* ==============================
一覧ページ
============================== */
section.case-works-archive__section {
    padding: 160px 0 240px;
    min-height: 700px;
}

.case-works-archive {
  padding: 80px 0px 0 0;
  background: #fff;
}

.case-works-archive__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.case-works-archive__lead {
  margin: 0;
  font-size: 16px;
  line-height: 2;
  color: #555;
}

.case-works-archive__empty {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: #666;
}

.case-works-archive__filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.case-works-archive__filterBtn {
  padding: 8px 20px;
  border: 1px solid #ccc;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  line-height: 1.4;
  color: #444;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.case-works-archive__filterBtn:hover {
  border-color: #222;
}

.case-works-archive__filterBtn.is-active {
  background: #222;
  border-color: #222;
  color: #fff;
}

.case-works-archive__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.case-works-archive__gridItem {
  height: 100%;
}

.case-works-archive__empty--filtered {
  margin-top: 32px;
}

/* カード */
.case-works-card {
  /* display: flex; */
  /* flex-direction: column; */
  /* height: 100%; */
  /* border: 1px solid var(--orange-line); */
}

.case-works-card__link {
  /* display: flex; */
  /* flex-direction: column; */
  /* flex: 1; */
  /* min-height: 0; */
  /* color: inherit; */
  /* text-decoration: none; */
}

.case-works-card__image {
  margin-bottom: 10px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f3f3f3;
}

.case-works-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.case-works-card__link:hover .case-works-card__image img {
  transform: scale(1.05);
}

.case-works-card__body {
  /* display: flex; */
  /* flex-direction: column; */
  /* gap: 8px; */
  /* height: auto; */
}

.case-works-card__category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 5px 14px;
  margin: 0;
  border: 1px solid #222;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.4;
  color: #222;
}

.case-works-card__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 700;
  color: #222;
}

.case-works-card__place {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #666;
}

@media (max-width: 991px) {
  .case-works-archive {
    padding: 64px 0px;
  }

  .case-works-archive__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .case-works-card__title {
    font-size: 20px;
  }

  .case-works-archive__filter {
    margin-bottom: 24px;
  }
}

@media (max-width: 767px) {
  .case-works-archive {
    padding: 56px 0px 0 0;
  }

  .case-works-archive__lead {
    font-size: 15px;
    line-height: 1.9;
  }

  .case-works-archive__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .case-works-card__title {
    font-size: 18px;
  }

  .case-works-archive__filter {
    gap: 8px;
    margin-bottom: 20px;
  }

  .case-works-archive__filterBtn {
    padding: 6px 14px;
    font-size: 13px;
  }
}

/* ==============================
個別ページ
============================== */

.case-works-single {
  padding: 56px 20px 100px;
  background: #fff;
}

.case-works-single__inner {
  max-width: 1000px;
  margin: 0 auto;
}

.case-works-single__category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 6px 16px;
  margin: 0 0 12px;
  border: 1px solid var(--cta);
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--cta);
}

/* ヒーローエリア：画像＋情報の2カラム */
.case-works-single__hero {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 56px;
}

.case-works-single__heroImage {
  flex: 0 0 45%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f3f3f3;
}

.case-works-single__heroImage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.case-works-single__heroInfo {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.case-works-single__title {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.5;
  font-weight: 700;
  color: #222;
}

.case-works-single__detailText {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: #444;
}

.case-works-single__metaLine {
  margin: 8px 0 0;
  padding-top: 14px;
  border-top: 1px solid #e5e5e5;
  font-size: 14px;
  line-height: 1.8;
  color: #666;
}

.case-works-single__sectionTitle {
  margin: 0 0 24px;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  color: #222;
}

.case-works-single__gallerySection {
  margin-top: 56px;
}

.case-works-single__gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.case-works-single__galleryItem {
  display: block;
  width: 100%;
  padding: 0;
  border: 4px solid transparent;
  overflow: hidden;
  /* background: #f3f3f3; */
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.case-works-single__galleryItem img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.case-works-single__galleryItem:hover img {
  transform: scale(1.05);
}

.case-works-single__galleryItem.is-active {
  border-color: var(--cta);
}

/* 一覧にもどる ボタン */
.case-works-single__backLink {
  margin-top: 72px;
  text-align: center;
}

.case-works-single__backLink a {
  display: inline-block;
  padding: 14px 40px;
  border: 1px solid #222;
  border-radius: 999px;
  font-size: 15px;
  color: #222;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.case-works-single__backLink a:hover {
  background: #222;
  color: #fff;
}

@media (max-width: 991px) {
  .case-works-single {
    padding: 48px 20px 80px;
  }

  .case-works-single__hero {
    flex-direction: column;
    gap: 24px;
  }

  .case-works-single__heroImage {
    flex-basis: auto;
    width: 100%;
  }

  .case-works-single__gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

@media (max-width: 767px) {
  .case-works-single {
    padding: 40px 16px 64px;
  }

  .case-works-single__gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .case-works-single__backLink a {
    padding: 12px 32px;
    font-size: 14px;
  }
}




:root {
  --brand-orange: #ed6900; /* ロゴ・ヘッダーCTAと共通のブランドカラー */
  --orange-hover-bg: color-mix(in srgb, var(--brand-orange) 6%, var(--renew-white));
  --renew-charcoal: #252827;
  --overlay-black: #000000;
  --renew-base: #ffffff;
  --renew-ink: #303434;
  --renew-line: #d8d7d1;
  --renew-accent: var(--brand-orange);
  --renew-white: #ffffff;
  --renew-heading: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --orange: var(--brand-orange); /* キーカラー（斜めライン等の装飾） */
  --orange-btn: var(--brand-orange); /* ボタン・白文字をのせる面 */
  --orange-text: var(--brand-orange); /* 小さいオレンジ文字 */
  --orange-pale: #f5f1e9; /* 薄いオレンジ面 */
  --orange-line: #f3d3b6; /* 薄いオレンジ線 */
  --navy: #001b44;
  --skyblue: #1e6adb;
  --blue: #24a6fd;
  --ink: #1f2326;
  --body: #3a3f44;
  --sub: #5a6168;
  --beige: #f4f2ef;
  --surface: #fff;
  --ph: #3b4147;
  --ph-light: #d9d6d1;
  --font-jp:
    "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-display: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --font-display: "Noto Sans JP", sans-serif;
  --font-en: "Story Script", cursive;
  --font-number: "Roboto", "Arial Narrow", sans-serif;
  --header-h: 88px;
  --side: 120px;
}

.subpage-hero {
  position: relative;
  display: grid; /* grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); */ /* min-height: 420px; */
  border-bottom: 1px solid var(--renew-line);
  background: var(--beige);
}
.subpage-hero__inner {
  padding: 40px 0 40px max(40px, calc((100vw - 1120px) / 2));
}
.subpage-eyebrow {
  font-family: var(--font-en);
  font-size: clamp(14px, 2vw,20px);
  font-weight: 400;
  color: var(--brand-orange);
  letter-spacing: 0.08em;
  margin-bottom: clamp(5px,1vw,16px);
  font-synthesis: none;
}
.subpage h1 {
  font-family: var(--renew-heading);
  font-size: clamp(20px, 3.2vw, 40px);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}

/* 施工事例の掲載日と下層ページの余白。 */
.case-works-card__photo,
.case-works-single__heroImage {
  position: relative;
}
.case-works-single__section {
  padding: 160px 0 240px;
}

@media (max-width: 960px) {
  section.case-works-archive__section,
  .case-works-single__section {
    padding-block: 96px 144px;
  }
  .post-type-archive-works .subpage-hero__inner {
    padding: 56px 20px 72px;
  }

}

.case-works-single__category.tag--kind { border: 1px solid var(--brand-orange); border-radius: 0; background: var(--orange-pale); color: var(--renew-ink); font-weight: 700; }
