:root {
  --bg: #f4efe6;
  --bg-soft: #eee6d9;
  --surface: #f8f3ea;
  --text: #111111;
  --muted: #5f5a53;
  --line: #25221f;
  --accent: #f06423;
  --accent-dark: #111111;
  --accent-soft: #e1eee8;
  --green: #476f66;
  --warm: #eee4d4;
  --shadow: 8px 8px 0 rgba(17, 17, 17, 0.14);
  --shadow-soft: 4px 4px 0 rgba(17, 17, 17, 0.12);
  --radius: 3px;
  --max: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
  background: var(--bg);
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(17, 17, 17, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.018) 1px, transparent 1px),
    radial-gradient(circle at 82% 10%, rgba(240, 100, 35, 0.11), transparent 24rem),
    radial-gradient(circle at 4% 40%, rgba(71, 111, 102, 0.12), transparent 20rem);
  background-size: 32px 32px, 32px 32px, auto, auto;
  z-index: -2;
}

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

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 0 clamp(20px, 5vw, 64px);
  background: rgba(244, 239, 230, 0.9);
  border-bottom: 1px solid rgba(17, 17, 17, 0.22);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.brand small {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 3vw, 44px);
  font-size: 15px;
  font-weight: 700;
}

.nav a {
  color: #202322;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  color: #fff !important;
  background: #050505;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(470px, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  max-width: var(--max);
  min-height: 610px;
  margin: 0 auto;
  padding: clamp(58px, 8vw, 90px) clamp(20px, 5vw, 40px) 70px;
}

.sample-note {
  width: fit-content;
  margin: 0 0 28px;
  padding-bottom: 4px;
  color: var(--text);
  border-bottom: 3px solid var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.hero h1 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Yu Gothic", serif;
  font-size: clamp(48px, 6.2vw, 92px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
}

@media (min-width: 641px) {
  .hero h1 span {
    white-space: nowrap;
  }
}

.hero-lead {
  max-width: 620px;
  margin: 30px 0 0;
  color: #28231f;
  font-size: 17px;
  line-height: 2;
  font-weight: 800;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  padding: 0 34px;
  border: 1px solid #111;
  border-radius: var(--radius);
  font-size: 17px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button.primary {
  color: #fff;
  background: #050505;
  box-shadow: var(--shadow);
}

.button.secondary {
  color: #111;
  background: transparent;
}

.button:hover,
.nav-cta:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.hero-showcase {
  position: relative;
  min-height: 500px;
}

.hero-collage {
  position: absolute;
  top: 4px;
  left: 50%;
  width: min(520px, 92%);
  transform: translateX(-50%);
  filter: drop-shadow(18px 24px 0 rgba(17, 17, 17, 0.08));
}

.hero-orange {
  position: absolute;
  top: 60px;
  right: 12px;
  width: 210px;
  transform: rotate(-2deg);
}

.hero-side-text {
  position: absolute;
  right: -22px;
  top: 170px;
  margin: 0;
  color: #111;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  writing-mode: vertical-rl;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 38px clamp(20px, 5vw, 40px) 18px;
}

.section-heading {
  max-width: 620px;
  margin: 0 auto 32px;
  text-align: center;
}

.section-heading h2,
.consult-content h2 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Yu Gothic", serif;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.35;
  font-weight: 900;
}

.section-heading h2::after,
.consult-content h2::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin: 14px auto 0;
  background: #111;
  border-radius: 0;
}

.section-heading p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.work-card,
.service-card {
  background: rgba(248, 243, 234, 0.92);
  border: 1px solid #111;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.work-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.work-image {
  display: block;
  height: 220px;
  overflow: hidden;
  background: var(--warm);
  border-bottom: 1px solid #111;
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 260ms ease;
}

.work-card:hover .work-image img {
  transform: scale(1.025);
}

.work-card:nth-child(3) .work-image img {
  max-width: none;
  width: 122%;
  object-position: left top;
}

.work-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 24px;
}

.work-type {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.work-card h3,
.service-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.45;
  font-weight: 900;
}

.work-card p:not(.work-type),
.service-card p,
.contact-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.work-card p:not(.work-type) {
  margin: 16px 0 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  position: relative;
  padding-left: 20px;
  color: #35433b;
  font-size: 13px;
  font-weight: 800;
}

.tag-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 12px;
  background: var(--green);
  border-radius: 50%;
  transform: translateY(-50%);
}

.tag-list li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: calc(50% - 4px);
  width: 3px;
  height: 6px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.text-link {
  align-self: flex-start;
  color: #111;
  font-size: 14px;
  font-weight: 900;
  transition: transform 160ms ease;
}

.text-link::after {
  content: "->";
  margin-left: 8px;
}

.work-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: auto;
  padding-top: 22px;
}

.case-section {
  padding-top: 70px;
}

.case-list {
  display: grid;
  gap: 34px;
}

.case-card {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(390px, 1.04fr);
  gap: clamp(26px, 4vw, 48px);
  align-items: center;
  padding: clamp(22px, 4vw, 38px);
  background: rgba(248, 243, 234, 0.92);
  border: 1px solid #111;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  scroll-margin-top: 92px;
}

.case-card:nth-child(even) .case-media {
  order: 2;
}

.case-media {
  position: relative;
  min-height: 360px;
}

.case-media img {
  border: 1px solid #111;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.case-desktop {
  width: 88%;
  height: 310px;
  object-fit: cover;
  object-position: top center;
}

.case-mobile {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 132px;
  height: 250px;
  object-fit: cover;
  object-position: top center;
}

#case-estimate .case-desktop {
  max-width: none;
  width: 104%;
  object-position: left top;
}

#case-estimate .case-mobile {
  object-position: top center;
}

.case-content h3 {
  margin: 0;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.4;
  font-weight: 900;
}

.case-summary {
  margin: 18px 0 0;
  color: #2d2924;
  font-size: 15px;
  line-height: 1.9;
  font-weight: 700;
}

.case-points {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
}

.case-points div {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(17, 17, 17, 0.28);
}

.case-points dt {
  color: #111;
  font-size: 13px;
  font-weight: 900;
}

.case-points dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.scope-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.scope-list li {
  padding: 7px 11px;
  color: #111;
  background: #fff7ed;
  border: 1px solid #111;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 900;
}

.case-note {
  margin: 20px 0 0;
  padding: 12px 14px;
  color: #111;
  background: rgba(240, 100, 35, 0.11);
  border: 1px solid rgba(17, 17, 17, 0.34);
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.7;
  font-weight: 800;
}

.services-section {
  padding-top: 70px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  min-height: 205px;
  padding: 28px 22px 24px;
  text-align: center;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  color: #111;
  background: #e5efe8;
  border: 1px solid #111;
  border-radius: var(--radius);
}

.service-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card p {
  margin: 12px 0 0;
}

.process-section {
  padding-top: 68px;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
}

.process-list li {
  min-height: 190px;
  padding: 24px 20px;
  background: rgba(248, 243, 234, 0.92);
  border: 1px solid #111;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.process-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--accent);
  background: transparent;
  border-radius: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 900;
}

.process-list h3 {
  margin: 18px 0 0;
  font-size: 19px;
  line-height: 1.45;
  font-weight: 900;
}

.process-list p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.consult-section {
  position: relative;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 150px;
  align-items: center;
  gap: 24px;
  max-width: var(--max);
  margin: 58px auto 54px;
  padding: 34px clamp(20px, 5vw, 46px);
  background: #0c0c0b;
  border: 1px solid #0c0c0b;
  border-radius: var(--radius);
  box-shadow: none;
}

.consult-illustration,
.plant-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
}

.consult-illustration img,
.plant-illustration img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.24));
}

.consult-illustration {
  transform: rotate(-4deg);
}

.plant-illustration {
  transform: rotate(4deg);
}

.plant-illustration img {
  width: 132px;
}

.consult-content {
  text-align: center;
}

.consult-content h2 {
  color: #f8f3ea;
}

.consult-content h2::after {
  background: var(--accent);
}

.choice-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 28px 0 22px;
}

.choice-list button {
  min-height: 46px;
  padding: 0 20px;
  color: #f8f3ea;
  background: transparent;
  border: 1px solid rgba(248, 243, 234, 0.72);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 800;
}

.choice-list button.is-selected {
  color: #111;
  background: #f8f3ea;
  box-shadow: none;
}

.button.wide {
  min-width: 270px;
}

.contact-note {
  margin: 14px 0 0;
  color: rgba(248, 243, 234, 0.74);
}

.consult-section .button.primary {
  color: #111;
  background: #f8f3ea;
  border-color: #f8f3ea;
  box-shadow: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 5vw, 64px);
  color: #2c2925;
  background: #eee6d9;
  border-top: 1px solid #111;
  font-size: 13px;
  line-height: 1.7;
}

.site-footer p {
  margin: 0;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

@media (max-width: 980px) {
  .site-header {
    min-height: auto;
    padding-top: 16px;
    padding-bottom: 16px;
    align-items: flex-start;
  }

  .brand {
    font-size: 20px;
  }

  .nav {
    gap: 14px;
    font-size: 13px;
  }

  .nav-cta {
    min-height: 38px;
    padding: 0 16px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 50px;
  }

  .hero-showcase {
    min-height: 360px;
    max-width: 650px;
    width: 100%;
    margin: 0 auto;
  }

  .hero-collage {
    width: min(430px, 86%);
  }

  .hero-orange {
    right: 8%;
    width: 170px;
  }

  .hero-side-text {
    right: 0;
  }

  .work-grid,
  .service-grid,
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .case-card:nth-child(even) .case-media {
    order: 0;
  }

  .consult-section {
    grid-template-columns: 1fr;
  }

  .consult-illustration,
  .plant-illustration {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    flex-direction: column;
    gap: 14px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .nav a:not(.nav-cta) {
    display: none;
  }

  .nav-cta {
    width: 100%;
  }

  .hero {
    padding-top: 36px;
    padding-bottom: 38px;
  }

  .sample-note {
    margin-bottom: 18px;
  }

  .hero h1 {
    font-size: 40px;
    line-height: 1.22;
  }

  .hero-lead {
    margin-top: 20px;
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    margin-top: 28px;
  }

  .button {
    width: 100%;
    min-height: 56px;
    font-size: 15px;
  }

  .hero-showcase {
    min-height: 300px;
  }

  .hero-collage {
    top: 12px;
    width: min(330px, 92%);
  }

  .hero-orange {
    top: 28px;
    right: 2px;
    width: 128px;
  }

  .hero-side-text {
    display: none;
  }

  .section {
    padding-top: 28px;
  }

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

  .work-grid,
  .service-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .work-image {
    height: 205px;
  }

  .work-card h3,
  .service-card h3 {
    font-size: 20px;
  }

  .service-card {
    min-height: auto;
  }

  .case-section,
  .services-section,
  .process-section {
    padding-top: 44px;
  }

  .case-card {
    padding: 18px;
    gap: 20px;
    scroll-margin-top: 18px;
  }

  .case-media {
    min-height: 255px;
  }

  .case-desktop {
    width: 100%;
    height: 210px;
  }

  .case-mobile {
    width: 82px;
    height: 158px;
    right: 10px;
    bottom: 0;
  }

  #case-estimate .case-desktop {
    width: 122%;
  }

  .case-content h3 {
    font-size: 22px;
  }

  .case-points div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .process-list li {
    min-height: auto;
  }

  .consult-section {
    margin: 36px 20px 42px;
    padding: 28px 18px;
  }

  .choice-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: block;
  }

  .site-footer p + p {
    margin-top: 10px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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