:root {
  --bg: #f7f4ef;
  --surface: #ffffff;
  --soft: #ece7df;
  --ink: #1f2421;
  --muted: #676b64;
  --line: rgba(31, 36, 33, 0.12);
  --brand: #8fc31f;
  --brand-deep: #617f18;
  --accent: #b78354;
  --shadow: 0 24px 60px rgba(24, 28, 24, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: 0;
  line-height: 1.75;
}

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

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

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  background: rgba(247, 244, 239, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 220ms ease, background 220ms ease;
}

.site-header.scrolled {
  border-color: var(--line);
  background: rgba(247, 244, 239, 0.94);
}

.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  width: 166px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
}

.site-nav a {
  position: relative;
  color: var(--muted);
  transition: color 180ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: min(62vh, 680px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 18, 15, 0.45), rgba(15, 18, 15, 0.12)),
    url("../assets/images/hero-home-v2.jpg") center / cover no-repeat;
  transform: scale(1.03);
  animation: drift 18s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(180deg, transparent, rgba(247, 244, 239, 0.98));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 190px 0 72px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.74);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1.1;
  font-weight: 700;
}

.hero-copy {
  max-width: 560px;
  margin: 22px 0 0;
  font-size: 1.06rem;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 8px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--brand);
  color: #162000;
}

.button-ghost {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.button-dark {
  background: var(--ink);
  color: #fff;
}

.section-shell {
  padding: 96px 0;
}

.section-shell.compact {
  padding-top: 42px;
}

.section-shell.soft {
  background: var(--soft);
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading h2,
.feature-copy h2,
.page-hero h1,
.two-column h2,
.note-panel h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.6vw, 2.5rem);
  line-height: 1.25;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.entry-card {
  min-height: 220px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.entry-card:hover {
  transform: translateY(-6px);
  border-color: rgba(143, 195, 31, 0.55);
  box-shadow: var(--shadow);
}

.entry-card span,
.service-item span {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.entry-card h3,
.value-card h3,
.project-card h2,
.contact-card h2 {
  margin: 0;
}

.entry-card p,
.value-card p,
.project-card p,
.contact-card p,
.body-copy p,
.service-item p,
.note-panel p {
  margin: 0;
  color: var(--muted);
}

.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: stretch;
}

.feature-split.alt {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.feature-image img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
}

.feature-copy {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px min(8vw, 110px);
  background: var(--surface);
}

.feature-copy p {
  max-width: 460px;
  margin: 22px 0 0;
  color: var(--muted);
}

.text-link {
  margin-top: 26px;
  width: fit-content;
  border-bottom: 1px solid var(--brand-deep);
  color: var(--brand-deep);
  font-weight: 700;
}

.cta-band {
  min-height: 160px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.page-hero {
  padding: 170px 0 72px;
  background:
    linear-gradient(135deg, rgba(143, 195, 31, 0.16), transparent 44%),
    linear-gradient(180deg, #f9f7f3, #f2eee7);
}

.page-hero p:last-child {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
}

.body-copy {
  display: grid;
  gap: 18px;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.value-card,
.note-panel,
.contact-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quote-panel {
  min-height: 180px;
  display: grid;
  place-items: center;
  background: var(--ink);
  border-radius: 8px;
}

.quote-panel p {
  margin: 0;
  color: #fff;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 700;
}

.service-list {
  display: grid;
  gap: 18px;
}

.service-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-item h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.process-list {
  margin: 24px 0 0;
  padding-left: 1.2em;
}

.process-list li + li {
  margin-top: 10px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.project-card div {
  padding: 22px;
}

.project-card .eyebrow {
  margin-bottom: 8px;
}

.profile-wrap {
  max-width: 860px;
}

.profile-list {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.profile-list div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 28px;
}

.profile-list div + div {
  border-top: 1px solid var(--line);
}

.profile-list dt {
  color: var(--muted);
}

.profile-list dd {
  margin: 0;
  font-weight: 700;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.contact-card h2 {
  font-size: clamp(1.7rem, 2.4vw, 2.3rem);
}

.site-footer {
  margin-top: 24px;
  padding: 44px 0 26px;
  background: #20231f;
  color: rgba(255, 255, 255, 0.82);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 24px;
}

.footer-logo {
  width: 150px;
  filter: brightness(0) invert(1);
  opacity: 0.92;
  margin-bottom: 12px;
}

.footer-grid p,
.copyright {
  margin: 0;
}

.copyright {
  width: min(1180px, calc(100% - 48px));
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.82rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@keyframes drift {
  from {
    transform: scale(1.03) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

@media (max-width: 960px) {
  .container {
    width: min(100% - 32px, 1180px);
  }

  .nav-wrap {
    min-height: 76px;
  }

  .brand img {
    width: 148px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 88px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 12px;
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    min-height: 560px;
  }

  .hero-content {
    padding: 160px 0 52px;
  }

  .entry-grid,
  .value-grid,
  .project-grid,
  .footer-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .feature-split,
  .feature-split.alt,
  .two-column {
    grid-template-columns: 1fr;
  }

  .feature-image img {
    min-height: 320px;
  }

  .feature-copy {
    min-height: auto;
    padding: 42px 24px;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

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

@media (max-width: 640px) {
  .section-shell {
    padding: 72px 0;
  }

  .hero {
    min-height: 520px;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .hero-copy br,
  .feature-copy h2 br {
    display: none;
  }

  .entry-card {
    min-height: 0;
  }

  .service-item {
    grid-template-columns: 1fr;
  }

  .quote-panel {
    min-height: 140px;
    text-align: center;
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
