:root {
  --paper: #f8f5ed;
  --paper-soft: #fffdf8;
  --ink: #24211d;
  --muted: #746d62;
  --line: rgba(58, 49, 39, 0.16);
  --wood: #8a5632;
  --cedar: #b7895d;
  --moss: #42563a;
  --persimmon: #d46b2c;
  --shadow: 0 18px 50px rgba(42, 34, 26, 0.12);
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Times New Roman", serif;
  --sans: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.8;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 clamp(20px, 4vw, 64px);
  background: rgba(255, 253, 248, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  transition: height 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  height: 64px;
  box-shadow: 0 10px 28px rgba(42, 34, 26, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--paper-soft);
  background: var(--moss);
  font-family: var(--serif);
}

.brand-text {
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 42px);
  font-size: 15px;
}

.site-nav a {
  position: relative;
  padding: 24px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 14px;
  left: 0;
  height: 2px;
  background: var(--persimmon);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
  content: "";
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  background: #e8dfcf;
}

.hero-image {
  width: 100%;
  height: min(760px, calc(100vh - 128px));
  min-height: 540px;
  object-fit: cover;
  object-position: center;
}

.hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(248, 245, 237, 0.82) 0%, rgba(248, 245, 237, 0.46) 34%, rgba(248, 245, 237, 0.02) 62%);
  pointer-events: none;
  content: "";
}

.hero-copy {
  position: absolute;
  top: 25%;
  left: clamp(24px, 8vw, 140px);
  z-index: 2;
  max-width: min(760px, calc(100vw - 48px));
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--persimmon);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.renovation h2,
.contact h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0;
}

.hero h1 {
  font-size: clamp(42px, 4.2vw, 64px);
  line-height: 1.35;
  white-space: nowrap;
}

.hero-copy p:not(.eyebrow) {
  max-width: 520px;
  margin: 24px 0 0;
  color: #403a32;
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 34px;
}

.text-link,
.quiet-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--ink);
  font-weight: 700;
}

.text-link::after,
.quiet-link::after {
  width: 42px;
  height: 1px;
  margin-left: 13px;
  background: currentColor;
  content: "";
}

.quiet-link {
  color: var(--muted);
}

.section {
  padding: clamp(72px, 9vw, 128px) clamp(22px, 5vw, 76px);
}

.section-heading {
  max-width: 1120px;
  margin: 0 auto 38px;
}

.section-heading.centered {
  text-align: center;
}

.section-heading h2,
.renovation h2,
.contact h2 {
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.45;
}

.section-heading.centered h2::after {
  display: block;
  width: 54px;
  height: 2px;
  margin: 18px auto 0;
  background: var(--persimmon);
  content: "";
}

.intro {
  background: var(--paper-soft);
  padding-top: clamp(38px, 5vw, 72px);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(36px, 7vw, 96px);
  max-width: 1120px;
  margin: 0 auto;
  align-items: start;
}

.lead {
  margin: 0;
  color: #3d3831;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 2;
}

.stats {
  display: grid;
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.stats div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  padding: 24px;
  background: var(--paper-soft);
}

.stats dt {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
}

.stats dd {
  margin: 0;
  color: var(--muted);
}

.works {
  background: linear-gradient(180deg, var(--paper) 0%, #efe8da 100%);
}

.case-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: -10px auto 34px;
}

.filter-button {
  min-height: 38px;
  padding: 0 17px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.56);
  font: inherit;
  cursor: pointer;
}

.filter-button.is-selected {
  color: var(--paper-soft);
  border-color: var(--moss);
  background: var(--moss);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  max-width: 1380px;
  margin: 0 auto;
}

.case-card {
  overflow: hidden;
  background: var(--paper-soft);
  border: 1px solid rgba(58, 49, 39, 0.1);
  box-shadow: 0 10px 24px rgba(42, 34, 26, 0.08);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.case-card.is-hidden {
  display: none;
}

.case-card:hover {
  transform: translateY(-4px);
}

.case-card img {
  width: 100%;
  aspect-ratio: 1.08 / 1;
  object-fit: cover;
}

.case-card div {
  padding: 16px 16px 18px;
}

.case-card p {
  margin: 0 0 3px;
  color: var(--persimmon);
  font-size: 12px;
  font-weight: 700;
}

.case-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.5;
}

.renovation {
  background:
    linear-gradient(rgba(36, 33, 29, 0.74), rgba(36, 33, 29, 0.74)),
    url("./assets/case-joinery.png") center / cover;
  color: var(--paper-soft);
}

.renovation-inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(300px, 1fr) auto;
  gap: clamp(28px, 5vw, 72px);
  max-width: 1160px;
  margin: 0 auto;
  align-items: center;
}

.renovation p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 253, 248, 0.82);
}

.renovation .text-link {
  color: var(--paper-soft);
  white-space: nowrap;
}

.news {
  background: var(--paper-soft);
}

.news-list {
  max-width: 940px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.news-list a {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.news-list time {
  color: var(--muted);
  font-size: 14px;
}

.contact {
  padding: clamp(82px, 10vw, 142px) 22px;
  color: var(--paper-soft);
  background: var(--moss);
}

.contact-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.contact .eyebrow {
  color: #e5b081;
}

.contact p:not(.eyebrow) {
  margin: 20px auto 32px;
  color: rgba(255, 253, 248, 0.82);
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 48px;
  padding: 0 28px;
  color: var(--ink);
  background: var(--paper-soft);
  font-weight: 700;
}

.footer {
  padding: 24px;
  color: var(--muted);
  background: #201d19;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .case-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .renovation-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .site-header {
    height: 64px;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 64px;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 8px 22px 18px;
    background: rgba(255, 253, 248, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    transition: transform 0.25s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
  }

  .site-nav a {
    padding: 13px 0;
  }

  .site-nav a::after {
    bottom: 8px;
    width: 42px;
  }

  .hero,
  .hero-image {
    min-height: 620px;
    height: calc(100vh - 72px);
  }

  .hero-image {
    object-position: 60% center;
  }

  .hero-copy {
    top: 18%;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(248, 245, 237, 0.9) 0%, rgba(248, 245, 237, 0.6) 42%, rgba(248, 245, 237, 0.08) 78%);
  }

  .intro-grid,
  .news-list a {
    grid-template-columns: 1fr;
  }

  .stats div {
    grid-template-columns: 82px 1fr;
  }

  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .brand-text {
    font-size: 14px;
  }

  .hero h1 {
    max-width: 8em;
    white-space: normal;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 15px;
  }

  .hero-actions {
    gap: 10px 20px;
  }

  .case-grid {
    grid-template-columns: 1fr;
  }

  .case-card img {
    aspect-ratio: 1.35 / 1;
  }

  .stats div {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
