:root {
  --ink: #1f2933;
  --muted: #64707d;
  --line: #d9e0e7;
  --paper: #fbfcfd;
  --soft: #eef3f6;
  --brand: #0f766e;
  --brand-dark: #124e48;
  --accent: #d97706;
  --white: #ffffff;
  --shadow: 0 22px 55px rgba(22, 35, 46, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  color: var(--white);
  transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(18, 30, 42, 0.08);
  backdrop-filter: blur(14px);
}

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

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  opacity: 0.92;
}

.site-nav a:hover {
  opacity: 1;
}

.nav-cta {
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--white);
  background: var(--brand);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: inherit;
  background: transparent;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 31, 38, 0.86), rgba(12, 31, 38, 0.35)),
    url("https://images.unsplash.com/photo-1497366811353-6870744d04b2?auto=format&fit=crop&w=1800&q=80") center / cover;
  transform: scale(1.02);
}

.hero-inner {
  position: relative;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 150px 0 104px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.case-copy h2,
.contact-copy h2 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(42px, 7vw, 82px);
}

.hero-copy {
  max-width: 660px;
  margin: 24px 0 0;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

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

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

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

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr);
  gap: 48px;
  align-items: start;
  margin-bottom: 42px;
}

.section-heading h2,
.case-copy h2,
.contact-copy h2 {
  font-size: clamp(28px, 4vw, 46px);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  color: var(--muted);
  font-size: 16px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 42px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--line);
  border: 1px solid var(--line);
}

.stats div {
  padding: 30px;
  background: var(--white);
}

.stats strong {
  display: block;
  color: var(--brand-dark);
  font-size: 42px;
  line-height: 1.1;
}

.stats span {
  color: var(--muted);
  font-weight: 700;
}

.services {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100vw - 1120px) / 2));
  padding-left: max(20px, calc((100vw - 1120px) / 2));
  background: var(--soft);
}

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

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

.card-number {
  color: var(--brand);
  font-weight: 900;
}

.service-card h3 {
  margin: 46px 0 14px;
  font-size: 21px;
  line-height: 1.4;
}

.service-card p,
.case-copy p,
.case-panel p,
.contact-copy p {
  color: var(--muted);
}

.cases {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 48px;
  align-items: center;
}

.case-panel {
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.case-panel img {
  width: 100%;
  height: 330px;
  object-fit: cover;
}

.case-panel div {
  padding: 28px;
}

.case-panel span {
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.case-panel h3 {
  margin: 8px 0 10px;
  font-size: 25px;
  line-height: 1.4;
}

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

.news-list a {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.news-list time {
  color: var(--muted);
  font-weight: 800;
}

.news-list span {
  font-weight: 700;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 52px;
  align-items: start;
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100vw - 1120px) / 2));
  padding-left: max(20px, calc((100vw - 1120px) / 2));
  background: var(--brand-dark);
  color: var(--white);
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 30px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(15, 118, 110, 0.18);
  border-color: var(--brand);
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--brand-dark);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(20px, 5vw, 72px);
  color: var(--muted);
  background: var(--white);
}

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

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 74px;
    right: 20px;
    left: 20px;
    display: none;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
    gap: 12px;
  }

  .nav-cta {
    text-align: center;
  }

  .section-heading,
  .intro-grid,
  .cases,
  .contact {
    grid-template-columns: 1fr;
  }

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

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

  .brand {
    font-size: 14px;
  }

  .hero {
    min-height: 86vh;
  }

  .hero-inner {
    padding-bottom: 72px;
  }

  .section {
    padding: 72px 0;
  }

  .services,
  .contact {
    padding-top: 72px;
    padding-bottom: 72px;
  }

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

  .news-list a {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .site-footer {
    display: grid;
  }
}
