:root {
  --ink: #16211f;
  --muted: #5b6764;
  --line: #dbe3dd;
  --paper: #f7f5ee;
  --white: #ffffff;
  --green: #1f6f58;
  --green-dark: #12493f;
  --red: #c84537;
  --gold: #d9a441;
  --blue: #2f6f9f;
  --shadow: 0 24px 70px rgba(22, 33, 31, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(247, 245, 238, 0.9);
  border-bottom: 1px solid rgba(219, 227, 221, 0.8);
  backdrop-filter: blur(16px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(247, 245, 238, 0.96);
  box-shadow: 0 12px 34px rgba(22, 33, 31, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--white);
  background: var(--green);
  border-radius: 8px;
  font-family: "Noto Sans JP", sans-serif;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--green-dark);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 40;
  padding: 10px 14px;
  color: var(--white);
  background: var(--green-dark);
  border-radius: 8px;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
}

.lang-select {
  min-height: 40px;
  padding: 0 34px 0 14px;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  appearance: none;
}

.hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding: clamp(70px, 9vw, 120px) clamp(18px, 5vw, 72px);
  overflow: hidden;
  color: var(--white);
  background: #1f3f3c;
}

.hero-media {
  position: absolute;
  inset: 0;
  opacity: 0.96;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(16, 31, 30, 0.84), rgba(16, 31, 30, 0.34) 52%, rgba(16, 31, 30, 0.2)),
    linear-gradient(180deg, rgba(17, 42, 39, 0.06), rgba(17, 42, 39, 0.4));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-width: 0;
  width: min(100%, 980px);
  max-width: 980px;
}

.eyebrow,
.category {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f7d26a;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-family: "Noto Sans JP", Inter, sans-serif;
  font-size: clamp(4rem, 8vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  max-width: 900px;
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.24rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 610px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.62;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: var(--white);
  background: var(--green);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.54);
}

.button.light {
  color: var(--green-dark);
  background: var(--white);
}

.section {
  padding: clamp(64px, 9vw, 120px) clamp(18px, 5vw, 72px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 36px;
  align-items: end;
  background: var(--white);
}

.image-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--ink);
}

.image-strip figure {
  position: relative;
  min-height: 280px;
  margin: 0;
  overflow: hidden;
  background: #dbe3dd;
}

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

.image-strip figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 10px;
  color: var(--white);
  background: rgba(18, 73, 63, 0.82);
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 800;
}

.intro p:last-child,
.section-heading + p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.section-heading.compact {
  display: block;
}

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

.feature-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(22, 33, 31, 0.08);
}

.card-image {
  min-height: 220px;
  overflow: hidden;
  background: #dbe3dd;
}

.card-image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 260ms ease;
}

.feature-card:hover .card-image img {
  transform: scale(1.035);
}

.card-content {
  padding: 24px;
}

.card-content p:last-child,
.industry-item p,
.process-list p,
.site-footer p {
  color: var(--muted);
  line-height: 1.65;
}

.industries-section {
  color: var(--white);
  background: #203835;
}

.industries-section .eyebrow {
  color: #f7d26a;
}

.industries-section h2 {
  color: var(--white);
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
}

.industry-item {
  min-height: 250px;
  padding: 28px;
  background: #203835;
}

.industry-photo {
  width: 100%;
  height: 132px;
  margin-bottom: 22px;
  object-fit: cover;
  border-radius: 8px;
  opacity: 0.86;
}

.industry-item.highlight {
  background: var(--green);
}

.industry-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: #f7d26a;
  border: 1px solid rgba(247, 210, 106, 0.65);
  border-radius: 50%;
  font-size: 0.84rem;
  font-weight: 800;
}

.industry-item p {
  color: rgba(255, 255, 255, 0.74);
}

.process-section {
  background: var(--white);
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 34px;
}

.process-layout .section-heading {
  display: block;
  margin-bottom: 0;
}

.process-photo {
  width: 100%;
  aspect-ratio: 1.45;
  object-fit: cover;
  border-radius: 8px;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  overflow: hidden;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.process-list li {
  min-height: 210px;
  padding: 26px;
  background: var(--white);
}

.process-list span {
  display: block;
  margin-bottom: 42px;
  color: var(--green-dark);
  font-size: 1.2rem;
  font-weight: 800;
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(46px, 7vw, 78px) clamp(18px, 5vw, 72px);
  color: var(--white);
  background: var(--red);
}

.contact-band .eyebrow {
  color: #ffe7a0;
}

.contact-band h2 {
  max-width: 760px;
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 5vw, 72px);
  background: #101918;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 920px) {
  .site-header,
  .intro,
  .section-heading,
  .process-layout,
  .contact-band,
  .site-footer {
    display: block;
  }

  .site-nav {
    margin-top: 16px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .focus-grid,
  .image-strip,
  .industry-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 650px;
    align-items: center;
  }

  .hero-media img {
    object-position: center;
  }

  .hero-content {
    max-width: 620px;
  }

  .contact-band .button {
    margin-top: 28px;
  }

  .process-photo {
    margin-top: 24px;
  }
}

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

  .hero {
    min-height: 610px;
    padding: 56px 16px 46px;
  }

  .hero-media::after {
    background:
      linear-gradient(90deg, rgba(16, 31, 30, 0.88), rgba(16, 31, 30, 0.7)),
      linear-gradient(180deg, rgba(17, 42, 39, 0.16), rgba(17, 42, 39, 0.68));
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 22px;
  }

  .hero-copy {
    max-width: 32ch;
    font-size: 1rem;
    line-height: 1.55;
  }

  h1 {
    font-size: clamp(2rem, 8.9vw, 2.35rem);
    line-height: 1;
    overflow-wrap: anywhere;
  }

  h2 {
    max-width: 15ch;
    font-size: 1.72rem;
    line-height: 1.12;
  }

  .section {
    padding: 58px 16px;
  }

  .site-nav {
    gap: 14px;
    font-size: 0.9rem;
  }

  .brand {
    font-size: 1.05rem;
  }

  .image-strip figure,
  .image-strip img {
    min-height: 220px;
  }

  .industry-item {
    min-height: 0;
  }
}

/* ---- category child pages + shared footer nav ---- */
.page-hero {
  min-height: 56vh;
}

.page-hero h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.96;
}

.card-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--green-dark);
  font-weight: 800;
  font-size: 0.92rem;
}

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

.industry-item .card-link {
  color: #f7d26a;
}

.industry-item .card-link:hover {
  color: var(--white);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: flex-end;
  max-width: 60%;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: #f7d26a;
}

@media (max-width: 920px) {
  .footer-links {
    margin-top: 16px;
    max-width: none;
    justify-content: flex-start;
  }
}
