@charset "UTF-8";

.projects-page {
  background-color: #f7f7f3;
  font-family:
    "Yu Gothic",
    "YuGothic",
    "Hiragino Kaku Gothic ProN",
    Meiryo,
    sans-serif;
  font-weight: 400;
}

.projects-header {
  position: relative;
  left: auto;
  width: min(100% - 9vw, var(--page));
  min-height: 126px;
  margin: 0 auto;
  color: var(--ink);
  text-shadow: none;
  transform: none;
}

.projects-header .global-nav a[aria-current="page"]::after {
  width: 100%;
}

.projects-main {
  width: min(100% - 10vw, 1180px);
  margin: 0 auto;
  padding: 10px 0 180px;
}

.projects-title,
.projects-section-title {
  position: relative;
}

.projects-title {
  margin: 0 0 52px 42px;
}

.projects-title h1,
.projects-section-title h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(29px, 3vw, 42px);
  font-weight: 200;
  letter-spacing: -0.025em;
}

.projects-title h1::before,
.projects-section-title h2::before {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: -28px;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--pale);
  background-color: #dfe5dd;
  content: "";
  transform: translateY(-50%);
}

.project-feature,
.wide-project {
  margin-bottom: 92px;
}

.project-feature__heading,
.wide-project header {
  display: flex;
  gap: 28px;
  align-items: baseline;
  margin: 0 0 8px;
   font-family:
    "Yu Gothic",
    "YuGothic",
    "Hiragino Kaku Gothic ProN",
    Meiryo,
    sans-serif;
  font-weight: 400;
}

.project-feature__heading h2,
.wide-project h2 {
  margin: 0;
  font-family: "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  font-size: clamp(20px, 2.1vw, 28px);
  font-weight: 600;
  line-height: 1.5;
}

.project-feature__heading p,
.wide-project header p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(13px, 1.35vw, 18px);
  font-family:
    "Yu Gothic",
    "YuGothic",
    "Hiragino Kaku Gothic ProN",
    Meiryo,
    sans-serif;
  font-weight: 400;
}


.project-feature__cover,
.wide-project > a {
  display: block;
  overflow: hidden;
}

.project-feature__cover img,
.wide-project > a img {
  width: 100%;
  aspect-ratio: 4.32 / 1;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-feature__cover:hover img,
.wide-project > a:hover img,
.listing-card:hover img,
.archive-card:hover img {
  transform: scale(1.018);
}

.kusatsu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 96px;
  width: 92%;
  margin: 62px auto 0;
}

.kusatsu-card,
.listing-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(125px, 0.85fr);
  gap: 12px;
  align-items: start;
}

.kusatsu-card img,
.listing-card img {
  width: 100%;
  aspect-ratio: 1.55 / 1;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-caption {
  margin: 2px 0 0;
  color: #555e64;
  font-family: "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
}

.project-caption span {
  display: block;
  font-weight: 400;
}

.wide-project__meta {
  width: max-content;
  max-width: 100%;
  margin: 18px 0 0 auto;
  color: #626a70;
  font-size: clamp(14px, 1.5vw, 19px);
  line-height: 2.15;
  font-family:
    "Yu Gothic",
    "YuGothic",
    "Hiragino Kaku Gothic ProN",
    Meiryo,
    sans-serif;
  font-weight: 400;
}

.wide-project__meta a {
  color: inherit;
  text-decoration: none;
}

.wide-project__meta a:hover,
.wide-project__meta a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.projects-page h2 {
  font-weight: 600;
}

.projects-category {
  margin-top: 150px;
}

.projects-section-title {
  margin: 0 0 62px 28px;
}

.projects-section-title h2 {
  font-size: clamp(27px, 2.5vw, 36px);
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 96px;
  width: 96%;
  margin: 0 auto;
}

/* 住宅は一覧性を優先し、4列の小さなカードで表示 */
.housing-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 46px 28px;
  width: 100%;
}

.housing-grid .listing-card {
  display: block;
}

.housing-grid .listing-card img {
  aspect-ratio: 1.2 / 1;
}

.housing-grid .project-caption {
  margin-top: 9px;
  font-size: 12px;
  line-height: 1.45;
}

.projects-archive {
  margin-top: 170px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 58px 36px;
  width: 92%;
  margin: 0 auto;
}

.archive-card {
  min-width: 0;
  text-align: center;
}

.archive-card img {
  width: 100%;
  aspect-ratio: 1.35 / 1;
  border: 1px solid #c7c8c7;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-feature__cover img,
.wide-project > a img {
  border-radius: 3px;
}

.kusatsu-card img,
.listing-card img,
.archive-card img {
  border-radius: 5px;
}

.archive-card .project-caption {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.45;
   font-family:
    "Yu Gothic",
    "YuGothic",
    "Hiragino Kaku Gothic ProN",
    Meiryo,
    sans-serif;
  font-weight: 400;
}

@media (max-width: 800px) {
  .projects-header {
    width: calc(100% - 40px);
    min-height: 100px;
    padding-top: 24px;
  }

  .projects-header .menu-button span:not(.visually-hidden) {
    background: var(--ink);
  }

  .projects-header .menu-button.is-open span:not(.visually-hidden) {
    background: #fff;
  }

  .projects-main {
    width: calc(100% - 48px);
    padding-top: 0;
  }

  .projects-title {
    margin: 8px 0 42px 20px;
  }

  .project-feature,
  .wide-project {
    margin-bottom: 72px;
  }

  .project-feature__heading,
  .wide-project header {
    display: block;
  }

  .project-feature__heading p,
  .wide-project header p {
    margin-top: 2px;
  }

  .project-feature__cover img,
  .wide-project > a img {
    aspect-ratio: 2.2 / 1;
  }

  .kusatsu-grid,
  .listing-grid {
    gap: 24px 28px;
    width: 100%;
  }

  .kusatsu-card,
  .listing-card {
    grid-template-columns: 1fr;
  }

  .housing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 22px;
  }

  .wide-project__meta {
    margin-left: 0;
  }

  .projects-category,
  .projects-archive {
    margin-top: 110px;
  }

  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 46px 24px;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .projects-main {
    width: calc(100% - 32px);
    padding-bottom: 100px;
  }

  .projects-title h1::before,
  .projects-section-title h2::before {
    left: -16px;
    width: 48px;
    height: 48px;
  }

  .housing-grid {
    gap: 28px 16px;
  }

  .housing-grid .project-caption,
  .archive-card .project-caption {
    font-size: 11px;
  }

  .project-feature__heading h2,
  .wide-project h2 {
    font-size: 18px;
  }

  .project-feature__cover img,
  .wide-project > a img {
    aspect-ratio: 1.7 / 1;
  }

  .kusatsu-grid,
  .listing-grid {
    grid-template-columns: 1fr;
  }

  .kusatsu-grid {
    margin-top: 36px;
  }

  .kusatsu-card,
  .listing-card {
    grid-template-columns: 1fr 0.8fr;
  }

  .projects-section-title {
    margin: 0 0 42px 16px;
  }

  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 14px;
  }

  .archive-card .project-caption {
    font-size: 11px;
  }
}
