:root {
  --ink: #17251e;
  --muted: #647067;
  --line: #dfe8df;
  --paper: #fbfbf6;
  --white: #ffffff;
  --green: #1f7a4d;
  --green-dark: #0e5034;
  --mint: #e5f5ec;
  --yellow: #f3c747;
  --blue: #2f6f9f;
  --shadow: 0 24px 70px rgba(23, 37, 30, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(251, 251, 246, .92);
  border-bottom: 1px solid rgba(31, 122, 77, .12);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: var(--white);
  background: var(--green);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.desktop-nav a,
.header-call {
  text-decoration: none;
}

.header-call {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--white);
  background: var(--green-dark);
  font-weight: 800;
}

.menu-button,
.mobile-nav {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, .78fr);
  gap: clamp(28px, 5vw, 72px);
  min-height: calc(100vh - 74px);
  padding: clamp(42px, 7vw, 92px) clamp(16px, 5vw, 72px) 48px;
  overflow: hidden;
}

.hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(38px, 6vw, 82px);
  line-height: 1.06;
  letter-spacing: 0;
}

.lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: #35443b;
  font-size: clamp(16px, 1.8vw, 20px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 900;
}

.button.primary {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 14px 30px rgba(31, 122, 77, .28);
}

.button.secondary {
  color: var(--green-dark);
  background: var(--mint);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 42px 0 0;
}

.hero-stats div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
}

.hero-stats dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.hero-stats dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.hero-panel {
  position: relative;
  align-self: center;
}

.hero-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  background: #eef6f1;
  box-shadow: var(--shadow);
}

.quick-card {
  position: absolute;
  right: -18px;
  bottom: 28px;
  width: min(330px, 86%);
  padding: 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
}

.quick-card ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.quick-card button {
  border: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.quick-card button:hover {
  color: var(--green);
}

.section {
  padding: clamp(54px, 8vw, 104px) clamp(16px, 5vw, 72px);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 30px;
}

.section-heading.compact {
  max-width: none;
}

.section-heading h2,
.contact h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.16;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.contact p {
  color: var(--muted);
}

.finder {
  padding-top: clamp(34px, 5vw, 72px);
  background: #eef6f1;
}

.finder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .55fr);
  gap: 16px;
}

.finder-panel,
.scenario-card,
.estimator {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 12px 36px rgba(23, 37, 30, .08);
}

.finder-panel {
  padding: 24px;
}

.finder-panel p,
.scenario-card p,
.estimator p {
  color: var(--muted);
}

.finder-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.finder-button {
  min-height: 62px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.finder-button:hover,
.finder-button.active {
  transform: translateY(-2px);
  border-color: var(--green);
  background: var(--mint);
}

.scenario-card {
  padding: 26px;
}

.scenario-card span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--mint);
  font-size: 12px;
  font-weight: 900;
}

.scenario-card h3 {
  margin: 16px 0 8px;
  font-size: 26px;
}

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

.service-card {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition: transform .2s ease, box-shadow .2s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.service-card h3 {
  margin: 18px 0 10px;
  font-size: 22px;
}

.service-photo {
  width: calc(100% + 48px);
  max-width: none;
  height: clamp(280px, 22vw, 390px);
  margin: -24px -24px 20px;
  object-fit: contain;
  object-position: center;
  background: #eef6f1;
}

.service-card p {
  color: var(--muted);
}

.service-card a {
  color: var(--green);
  font-weight: 900;
  text-decoration: none;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  color: var(--green-dark);
  background: var(--mint);
  font-weight: 900;
}

.flow {
  background: #173726;
  color: var(--white);
}

.flow .eyebrow,
.flow p {
  color: #b9e2c8;
}

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

.flow-row div {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
}

.flow-row span {
  color: var(--yellow);
  font-weight: 900;
}

.flow-row strong {
  display: block;
  margin-top: 18px;
  font-size: 18px;
}

.prices {
  background: var(--white);
}

.estimator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, .35fr) minmax(180px, .25fr) minmax(170px, .25fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
  padding: 22px;
}

.estimator h3 {
  margin: 0;
  font-size: 28px;
}

.estimator label span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.estimator select,
.estimator input[type="range"] {
  width: 100%;
}

.estimator select {
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font: inherit;
}

.estimator input[type="range"] {
  accent-color: var(--green);
}

#estimateQtyText {
  display: inline-block;
  margin-top: 4px;
}

#estimateTotal {
  display: grid;
  place-items: center;
  min-height: 62px;
  border-radius: 8px;
  color: var(--white);
  background: var(--green-dark);
  font-size: 24px;
  font-weight: 900;
}

.price-tools {
  position: sticky;
  top: 71px;
  z-index: 10;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(18px);
}

.search-box span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.search-box input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--paper);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.tab.active {
  color: var(--white);
  border-color: var(--green);
  background: var(--green);
}

.price-section {
  margin-top: 28px;
}

.price-section h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  font-size: 26px;
}

.price-section h3::before {
  content: "";
  width: 12px;
  height: 34px;
  border-radius: 999px;
  background: var(--green);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: var(--white);
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--green-dark);
  background: var(--mint);
  font-size: 13px;
}

td.price {
  white-space: nowrap;
  color: var(--green-dark);
  font-weight: 900;
}

tr.hidden,
.price-section.hidden {
  display: none;
}

.notice {
  margin-top: 28px;
  color: var(--muted);
  font-size: 13px;
}

.works {
  background: #eef6f1;
}

.work-slider {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 12px;
  align-items: center;
}

.work-track {
  overflow: hidden;
}

.work-card {
  display: none;
  padding: clamp(16px, 3vw, 28px);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.work-card.active {
  display: block;
  animation: fadeIn .25s ease;
}

.before-after {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink);
  touch-action: pan-y;
}

.compare > img,
.after-layer img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.after-layer {
  position: absolute;
  inset: 0;
  width: var(--split);
  overflow: hidden;
  border-right: 3px solid var(--white);
}

.after-layer img {
  width: calc(100% / (var(--split-num, .5)));
  max-width: none;
}

.compare::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 38px;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--white) 0 5px, transparent 6px);
  pointer-events: none;
}

.before-label,
.after-label {
  position: absolute;
  top: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(23, 37, 30, .72);
  font-size: 12px;
  font-weight: 900;
  z-index: 2;
}

.before-label {
  right: 10px;
}

.after-label {
  left: 10px;
}

.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
}

.work-card h3 {
  margin: 18px 0 0;
}

.slider-control {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--green);
  font-size: 30px;
  cursor: pointer;
}

.company-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.company-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.company-card.wide {
  grid-column: 1 / -1;
}

.company-card h3 {
  margin-top: 0;
}

.company-card dl {
  margin: 0;
}

.company-card dl div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.company-card dt {
  color: var(--muted);
  font-weight: 700;
}

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

address {
  padding: 16px;
  border-radius: 8px;
  background: var(--paper);
  font-style: normal;
}

address strong {
  display: block;
  margin-bottom: 8px;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: clamp(40px, 7vw, 84px) clamp(16px, 5vw, 72px);
  padding: clamp(28px, 5vw, 54px);
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, #0e5034, #277857 58%, #2f6f9f);
}

.contact .eyebrow,
.contact p {
  color: #d8f3e2;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(16px, 5vw, 72px) 92px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.sticky-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
}

.sticky-cta a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--white);
  background: var(--green-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 1;
  transform: translateY(16px);
  transition: transform .55s ease, box-shadow .55s ease;
}

.reveal.in-view {
  transform: translateY(0);
}

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

  .service-card,
  .finder-button,
  .reveal {
    transition: none;
  }
}

@media (max-width: 980px) {
  .desktop-nav,
  .header-call {
    display: none;
  }

  .menu-button {
    display: inline-flex;
    margin-left: auto;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    font: inherit;
    font-weight: 900;
  }

  .mobile-nav.open {
    position: fixed;
    inset: 70px 16px auto;
    z-index: 25;
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .mobile-nav a {
    padding: 12px;
    border-radius: 8px;
    background: var(--paper);
    text-decoration: none;
    font-weight: 900;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-panel img {
    aspect-ratio: 4 / 3;
  }

  .service-grid,
  .flow-row,
  .office-grid,
  .finder-layout,
  .estimator {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .estimator > div {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .site-header {
    padding: 12px 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-stats,
  .service-grid,
  .flow-row,
  .company-grid,
  .office-grid,
  .finder-layout,
  .finder-buttons,
  .estimator {
    grid-template-columns: 1fr;
  }

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

  .service-photo {
    height: clamp(340px, 72vw, 540px);
  }

  .quick-card {
    position: static;
    width: 100%;
    margin-top: 12px;
  }

  .price-tools {
    top: 64px;
  }

  .work-slider {
    grid-template-columns: 1fr;
  }

  .slider-control {
    display: none;
  }

  .company-card dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .contact {
    display: block;
  }

  .site-footer {
    display: block;
  }

  .sticky-cta {
    left: 12px;
    right: 12px;
    bottom: 12px;
    justify-content: center;
  }

  .sticky-cta a {
    flex: 1;
    text-align: center;
  }
}
