:root {
  --bg: #f7f7f2;
  --surface: #ffffff;
  --ink: #152520;
  --text: #4b5652;
  --muted: #76817c;
  --line: #dfe5df;
  --green: #16362c;
  --green-soft: #dfeade;
  --blue: #2c86b8;
  --sky: #e5f6fb;
  --orange: #c98652;
  --shadow: 0 22px 54px rgba(18, 37, 32, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.85;
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.35; }
h1 { font-size: clamp(2.7rem, 5.5vw, 5.45rem); letter-spacing: 0; }
h2 { font-size: clamp(1.8rem, 4vw, 3.35rem); }
h3 { font-size: 1.22rem; }

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 18px max(20px, calc((100vw - 1120px) / 2));
  color: #fff;
  transition: padding .35s ease, background-color .35s ease, color .35s ease, box-shadow .35s ease;
}

.logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .03em;
}

.header-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 6px;
  background: rgba(8, 28, 23, .22);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  font-size: .82rem;
  font-weight: 800;
  transition: background-color .35s ease, border-color .35s ease;
}
.header-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 10px;
  color: rgba(255,255,255,.88);
  white-space: nowrap;
}
.header-nav a:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 50%;
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,.22);
  transform: translateY(-50%);
}
.header-nav a:hover {
  color: #fff;
}
.header-nav a:last-child {
  min-height: 42px;
  padding: 0 22px;
  background: #fff;
  border-radius: 999px;
  color: var(--green);
  box-shadow: 0 12px 26px rgba(0,0,0,.12);
}

.menu-toggle {
  display: none;
}

.site-header.is-scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(251, 250, 245, .92);
  box-shadow: 0 10px 30px rgba(15, 34, 28, .08);
  color: var(--ink);
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled .header-nav {
  background: rgba(255,255,255,.76);
  border-color: var(--line);
}

.site-header.is-scrolled .header-nav a {
  color: var(--ink);
}

.site-header.is-scrolled .header-nav a:not(:last-child)::after {
  background: var(--line);
}

.site-header.is-scrolled .header-nav a:last-child {
  background: var(--green);
  color: #fff;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("assets/hero-inspection-photo.jpg") center / cover no-repeat;
  background-position: 56% center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 58% 38% at 21% 66%, rgba(9,27,22,.76) 0%, rgba(9,27,22,.56) 28%, rgba(9,27,22,.22) 56%, rgba(9,27,22,0) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 110px;
  animation: hero-copy-in .9s cubic-bezier(.22,.8,.2,1) both;
}

@keyframes hero-copy-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-content h1 {
  max-width: 920px;
  margin-bottom: 22px;
  color: #fff;
  text-shadow: 0 3px 22px rgba(0,0,0,.22);
}
.hero-content p {
  max-width: 680px;
  color: rgba(255,255,255,.88);
  font-weight: 700;
  text-shadow: 0 2px 18px rgba(0,0,0,.18);
}
.eyebrow {
  margin-bottom: 14px;
  color: var(--orange);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
}
.hero .eyebrow { color: #fff2b0; }
.hero-content .eyebrow {
  width: fit-content;
  padding: 4px 10px;
  background: rgba(11, 37, 30, .32);
  border-radius: 999px;
  text-shadow: 0 2px 12px rgba(0,0,0,.24);
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 900;
}
.button-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 16px 30px rgba(0,0,0,.18);
}

.section { padding: 96px 0; }
.section-soft { background: #eef4ee; }
.section-heading {
  max-width: 720px;
  margin-bottom: 38px;
}
.section-heading p { color: var(--muted); }
.split-heading {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(280px, 1fr);
  gap: 42px;
  align-items: end;
}

.intro {
  background: #fbfaf5;
}

.intro-layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1fr);
  min-height: 640px;
  align-items: stretch;
}

.intro-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(560px, calc(100% - 40px));
  margin-left: max(20px, calc((100vw - 1120px) / 2));
  padding: 96px 0;
  font-size: 1.08rem;
}

.intro-copy h2 {
  margin-bottom: 32px;
}

.intro-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.intro-summary p {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 18px 20px;
  background: #fbfaf5;
}

.intro-summary strong {
  color: var(--ink);
  font-size: 1rem;
}

.intro-summary span {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.6;
}

.mobile-break {
  display: none;
}

.intro-points {
  display: grid;
  gap: 12px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}
.intro-points li {
  padding: 16px 20px;
  background: #fff;
  border-left: 4px solid var(--blue);
  font-weight: 800;
}

.intro-photo {
  position: relative;
  min-height: 640px;
  margin: 0;
  overflow: hidden;
}

.intro-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-photo figcaption {
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: min(320px, calc(100% - 56px));
  padding: 18px 20px;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  box-shadow: 0 18px 42px rgba(15, 34, 28, .14);
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.65;
  backdrop-filter: blur(10px);
}

.intro-photo figcaption span {
  display: block;
  margin-bottom: 4px;
  color: var(--orange);
  font-size: .7rem;
  letter-spacing: .14em;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.service-grid article,
.reason-list article,
.work-card,
.company-table {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.service-grid article {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 390px;
  padding: 0 24px 24px;
  box-shadow: 0 14px 34px rgba(20, 42, 34, .05);
}
.service-grid article::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), rgba(44,134,184,0));
  border-radius: 999px 999px 0 0;
}
.service-grid img {
  width: calc(100% + 48px);
  height: 150px;
  margin: 0 -24px 24px;
  object-fit: cover;
}
.service-grid span,
.reason-list span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--blue);
  font-weight: 900;
}

.service-grid h3 {
  margin-bottom: 14px;
}

.service-grid p {
  margin-bottom: 0;
}

.service-tag {
  width: fit-content;
  margin-bottom: 18px;
  padding: 5px 10px;
  background: #eef6f4;
  border-radius: 999px;
  color: var(--green);
  font-size: .78rem;
  font-weight: 900;
}

.works {
  background: #fff;
}
.works-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
}
.work-card {
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .4s ease, box-shadow .4s ease;
}
.work-card.large {
  grid-row: span 2;
}
.work-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.22,.8,.2,1);
}
.work-card.large img { aspect-ratio: 16 / 13; }
.work-card div {
  padding: 22px;
}
.work-card p {
  margin-bottom: 8px;
  color: var(--blue);
  font-size: .82rem;
  font-weight: 900;
}
.work-card h3 { margin-bottom: 0; }
.work-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.work-meta div {
  padding: 0;
}
.work-meta dt {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 800;
}
.work-meta dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 800;
}

@media (hover: hover) {
  .work-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 66px rgba(18, 37, 32, .16);
  }
  .work-card:hover img {
    transform: scale(1.035);
  }
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity .75s ease var(--reveal-delay, 0ms),
    transform .85s cubic-bezier(.22,.8,.2,1) var(--reveal-delay, 0ms);
}

.js [data-reveal="left"] {
  transform: translateX(-34px);
}

.js [data-reveal="image"] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity .75s ease var(--reveal-delay, 0ms),
    transform .85s cubic-bezier(.22,.8,.2,1) var(--reveal-delay, 0ms);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

.js [data-reveal="image"].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reason {
  background: var(--green);
  color: rgba(255,255,255,.82);
}
.reason h2,
.reason h3 { color: #fff; }
.reason-layout {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(280px, 1fr);
  gap: 44px;
  align-items: start;
}
.reason-panel {
  position: sticky;
  top: 96px;
}
.reason-list {
  display: grid;
  gap: 14px;
}
.reason-list article {
  padding: 26px;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.16);
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.flow-list li {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.flow-list span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  background: var(--green);
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
}
.flow-list strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}
.flow-list p {
  margin: 0;
  font-size: .92rem;
}

.company-layout {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(280px, 1fr);
  gap: 42px;
}
.company-table {
  margin: 0;
}
.company-table div {
  display: grid;
  grid-template-columns: 150px 1fr;
  border-bottom: 1px solid var(--line);
}
.company-table div:last-child { border-bottom: 0; }
.company-table dt,
.company-table dd {
  margin: 0;
  padding: 18px 20px;
}
.company-table dt {
  background: #f4f6f0;
  color: var(--ink);
  font-weight: 900;
}

.contact {
  padding: 0;
  background: #eef3ed;
  color: var(--text);
}
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  min-height: 520px;
}
.contact-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(540px, calc(100% - 40px));
  margin-left: max(20px, calc((100vw - 1120px) / 2));
  padding: 82px 54px 82px 0;
}
.contact h2 {
  margin-bottom: 24px;
  color: var(--ink);
}
.contact p {
  margin-bottom: 0;
}
.contact .button {
  width: fit-content;
  margin-top: 30px;
  background: var(--green);
  color: #fff;
  box-shadow: 0 16px 34px rgba(22, 54, 44, .16);
}
.contact small {
  margin-top: 14px;
  color: var(--muted);
  font-size: .76rem;
}
.contact-photo {
  min-height: 520px;
  margin: 0;
  overflow: hidden;
}
.contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-footer {
  padding: 28px 0;
  background: #101a17;
  color: rgba(255,255,255,.74);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.footer-inner p { margin: 0; font-weight: 900; }

@media (max-width: 900px) {
  .site-header {
    position: absolute;
  }
  .site-header.is-scrolled {
    position: fixed;
  }
  .menu-toggle {
    position: relative;
    z-index: 12;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 999px;
    background: rgba(8, 28, 23, .2);
    color: #fff;
    font: inherit;
    cursor: pointer;
    backdrop-filter: blur(12px);
  }
  .site-header.menu-open .logo {
    position: relative;
    z-index: 12;
    color: var(--ink);
  }
  .menu-toggle-label {
    font-size: .67rem;
    font-weight: 900;
    letter-spacing: .08em;
  }
  .menu-toggle-icon {
    position: relative;
    display: block;
    width: 18px;
    height: 12px;
  }
  .menu-toggle-icon i {
    position: absolute;
    left: 0;
    width: 18px;
    height: 1px;
    background: currentColor;
    transition: top .25s ease, transform .25s ease;
  }
  .menu-toggle-icon i:first-child { top: 2px; }
  .menu-toggle-icon i:last-child { top: 9px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-icon i:first-child {
    top: 5px;
    transform: rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] .menu-toggle-icon i:last-child {
    top: 5px;
    transform: rotate(-45deg);
  }
  .site-header.is-scrolled .menu-toggle,
  .site-header.menu-open .menu-toggle {
    border-color: var(--line);
    background: #fff;
    color: var(--ink);
  }
  .header-nav {
    position: fixed;
    inset: 0;
    z-index: 11;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: 120px 28px 40px;
    background: rgba(247, 247, 242, .98);
    border: 0;
    border-radius: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .28s ease, visibility .28s ease, transform .28s ease;
  }
  .site-header.menu-open .header-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .header-nav a {
    min-height: 62px;
    padding: 0 4px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 1rem;
  }
  .header-nav a:not(:last-child)::after {
    content: none;
  }
  .header-nav a:last-child {
    justify-content: center;
    min-height: 54px;
    margin-top: 28px;
    padding: 0 22px;
    background: var(--green);
    color: #fff;
  }
  body.menu-open {
    overflow: hidden;
  }
  .hero-content { margin-bottom: 90px; }
  .intro-layout,
  .contact-layout,
  .split-heading,
  .service-grid,
  .works-grid,
  .reason-layout,
  .flow-list,
  .company-layout {
    grid-template-columns: 1fr;
  }
  .intro-copy {
    width: min(100% - 40px, 1120px);
    margin-inline: auto;
    padding: 72px 0 46px;
  }
  .intro-photo {
    min-height: 360px;
  }
  .contact-copy {
    width: min(100% - 40px, 1120px);
    margin-inline: auto;
    padding: 72px 0 54px;
  }
  .contact-photo {
    min-height: 360px;
  }
  .reason-panel { position: static; }
  .work-card.large { grid-row: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-content {
    animation: none;
  }
  .js [data-reveal],
  .js [data-reveal="image"] {
    opacity: 1;
    transform: none;
    clip-path: none;
    transition: none;
  }
  .work-card,
  .work-card img,
  .site-header,
  .header-nav {
    transition: none;
  }
}

@media (max-width: 560px) {
  .container,
  .hero-content {
    width: min(100% - 28px, 1120px);
  }
  .site-header {
    padding: 16px 14px;
  }
  .section { padding: 68px 0; }
  .intro-copy {
    width: min(100% - 28px, 1120px);
    padding: 52px 0 30px;
    font-size: 1rem;
  }
  .intro-copy .eyebrow {
    margin-bottom: 10px;
  }
  .intro-copy h2 {
    margin-bottom: 22px;
    font-size: 1.72rem;
    line-height: 1.5;
  }
  .mobile-break {
    display: inline;
  }
  .intro-copy > p:not(.eyebrow) {
    margin-bottom: 0;
    color: #5e6863;
    font-size: .96rem;
    line-height: 1.95;
  }
  .intro-summary {
    margin-top: 22px;
  }
  .intro-summary p {
    padding: 14px 12px;
  }
  .intro-summary strong {
    font-size: .9rem;
  }
  .intro-summary span {
    font-size: .7rem;
  }
  .intro-points {
    gap: 8px;
    margin-top: 26px;
  }
  .intro-points li {
    min-height: 0;
    padding: 13px 14px;
    border-left-width: 3px;
    font-size: .9rem;
    line-height: 1.65;
  }
  .intro-photo {
    min-height: 0;
    width: min(100% - 28px, 1120px);
    margin: 0 auto 46px;
    aspect-ratio: 4 / 3;
    border-radius: 4px;
  }
  .intro-photo figcaption {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    padding: 12px 14px;
    font-size: .78rem;
  }
  .hero {
    min-height: 760px;
  }
  .hero-bg {
    background-position: 61% center;
  }
  .hero-overlay {
    background:
      radial-gradient(ellipse 90% 44% at 22% 64%, rgba(9,27,22,.8) 0%, rgba(9,27,22,.62) 34%, rgba(9,27,22,.26) 64%, rgba(9,27,22,0) 100%);
  }
  h1 {
    max-width: none;
    font-size: clamp(2rem, 8.2vw, 2.5rem);
    line-height: 1.45;
    white-space: nowrap;
  }
  .button { width: 100%; }
  .contact-copy {
    width: min(100% - 28px, 1120px);
    padding: 58px 0 42px;
  }
  .contact-copy h2 {
    font-size: 1.85rem;
  }
  .contact-copy br {
    display: none;
  }
  .contact .button {
    width: 100%;
  }
  .contact-photo {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .service-grid article {
    min-height: auto;
    padding: 0 0 18px;
    border-radius: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .service-grid article::after {
    left: 0;
    right: 0;
    top: 0;
    bottom: auto;
    height: 1px;
    background: var(--line);
    border-radius: 0;
  }
  .service-grid img {
    width: 100%;
    height: 104px;
    margin: 18px 0 12px;
    border-radius: 0;
  }
  .service-grid span {
    margin: 0 8px 0 0;
    font-size: .9rem;
  }
  .service-grid h3 {
    display: inline;
    font-size: .98rem;
    line-height: 1.5;
  }
  .service-grid .service-tag,
  .service-grid article > p:not(.service-tag) {
    display: none;
  }
  .service-grid article,
  .flow-list li,
  .reason-list article {
    padding: 22px;
  }
  .company-table div {
    grid-template-columns: 1fr;
  }
  .company-table dd {
    padding-top: 0;
  }
  .footer-inner {
    display: block;
  }
}
