:root {
  --ink: #14212a;
  --muted: #5a6872;
  --line: #d9e1e5;
  --paper: #ffffff;
  --mist: #eef5f4;
  --deep: #083d47;
  --teal: #007f86;
  --amber: #c9872c;
  --coral: #d8644a;
  --shadow: 0 18px 50px rgba(20, 33, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px clamp(20px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(217, 225, 229, 0.7);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--teal), var(--amber));
  border-radius: 8px;
}

.brand strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #30424e;
  font-size: 0.92rem;
  font-weight: 600;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav .nav-contact {
  padding: 9px 16px;
  color: #fff;
  background: var(--deep);
  border-radius: 8px;
}

.site-nav .nav-contact::after {
  content: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: clamp(540px, 78vh, 760px);
  overflow: hidden;
  isolation: isolate;
}

.hero picture,
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero img {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 23, 31, 0.72), rgba(7, 23, 31, 0.38) 42%, rgba(7, 23, 31, 0.03) 78%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 40px));
  padding: clamp(72px, 10vw, 128px) 0 64px;
  margin-left: clamp(20px, 8vw, 110px);
  color: #fff;
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy {
  margin: 20px 0 12px;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 700;
}

.hero-lead {
  max-width: 610px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.button.primary {
  color: #fff;
  background: var(--teal);
}

.button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.46);
}

section {
  scroll-margin-top: 90px;
}

.section-band {
  background: var(--mist);
}

.intro {
  padding: 48px 0;
}

.intro-grid,
.company-grid,
.contact-grid,
.flow-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.25;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.24rem;
  line-height: 1.45;
}

.intro p:last-child,
.section-heading p,
.flow-copy p,
.contact p {
  margin-top: 0;
  color: var(--muted);
}

.services,
.flow,
.contact {
  padding: clamp(76px, 10vw, 116px) 0;
}

.strengths,
.company {
  padding: clamp(70px, 9vw, 104px) 0;
}

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

.section-heading.split > p {
  max-width: 460px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(20, 33, 42, 0.06);
}

.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-body {
  padding: 24px;
}

.service-number,
.strength-list span,
.flow-list span {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
}

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

.service-body ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.service-body li {
  padding: 5px 10px;
  color: #315059;
  font-size: 0.82rem;
  font-weight: 700;
  background: #eaf5f2;
  border-radius: 999px;
}

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

.strength-list article {
  min-height: 220px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.strength-list p {
  color: var(--muted);
}

.flow-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: flow;
}

.flow-list li {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: 8px;
}

.flow-list strong {
  display: block;
  margin-top: 4px;
  font-size: 1.08rem;
}

.flow-list p {
  margin: 6px 0 0;
  color: var(--muted);
}

.company-table {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.company-table div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.company-table div:last-child {
  border-bottom: 0;
}

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

.company-table dd {
  margin: 0;
  font-weight: 600;
}

.mail-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--teal);
  font-size: 1.2rem;
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: #2e414c;
  font-size: 0.9rem;
  font-weight: 700;
}

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

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 127, 134, 0.14);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer {
  padding: 26px 0;
  color: #d8e2e5;
  background: var(--ink);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: #fff;
  font-weight: 700;
}

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

  .site-nav {
    position: fixed;
    top: 76px;
    right: 16px;
    left: 16px;
    display: grid;
    gap: 6px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a,
  .site-nav .nav-contact {
    padding: 12px;
  }

  .hero {
    min-height: 72svh;
  }

  .hero-content {
    padding-top: 72px;
    margin-left: 20px;
  }

  .intro-grid,
  .company-grid,
  .contact-grid,
  .flow-grid,
  .section-heading,
  .section-heading.split {
    grid-template-columns: 1fr;
    display: grid;
  }

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

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    min-height: 68px;
    padding: 10px 14px;
  }

  .site-nav {
    top: 68px;
  }

  .hero {
    min-height: 76svh;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(7, 23, 31, 0.78), rgba(7, 23, 31, 0.38));
  }

  .hero h1 {
    font-size: 2.55rem;
  }

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

  .company-table div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer-inner {
    display: grid;
  }
}
