:root {
  --ink: #18212b;
  --muted: #5d6977;
  --line: #dbe3ea;
  --paper: #f8faf9;
  --white: #ffffff;
  --teal: #007c89;
  --teal-dark: #005661;
  --green: #3f8f58;
  --yellow: #f2b705;
  --coral: #d9553f;
  --shadow: 0 18px 50px rgba(24, 33, 43, 0.13);
  --header-height: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 0 5vw;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(219, 227, 234, 0.9);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  position: relative;
  width: 38px;
  height: 38px;
  border: 2px solid var(--teal);
  border-radius: 8px;
  background: linear-gradient(90deg, transparent 48%, var(--teal) 48%, var(--teal) 54%, transparent 54%);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  top: 8px;
  bottom: 8px;
  width: 8px;
  content: "";
  border-top: 2px solid var(--yellow);
  border-bottom: 2px solid var(--yellow);
}

.brand-mark::before {
  left: 7px;
}

.brand-mark::after {
  right: 7px;
}

.brand-name,
.brand-sub {
  display: block;
  line-height: 1.2;
}

.brand-name {
  font-size: 0.98rem;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #24313e;
  font-size: 0.92rem;
  font-weight: 700;
}

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

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

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.nav-toggle span[aria-hidden="true"],
.nav-toggle span[aria-hidden="true"]::before,
.nav-toggle span[aria-hidden="true"]::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  content: "";
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle span[aria-hidden="true"]::before {
  transform: translateY(-7px);
}

.nav-toggle span[aria-hidden="true"]::after {
  transform: translateY(5px);
}

.nav-toggle[aria-expanded="true"] span[aria-hidden="true"] {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span[aria-hidden="true"]::before {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span[aria-hidden="true"]::after {
  transform: translateY(-2px) rotate(90deg);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(760px, 78svh);
  overflow: hidden;
  isolation: isolate;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center right;
  z-index: -2;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(248, 250, 249, 0.98) 0%, rgba(248, 250, 249, 0.91) 34%, rgba(248, 250, 249, 0.32) 62%, rgba(248, 250, 249, 0.05) 100%),
    linear-gradient(0deg, rgba(24, 33, 43, 0.05), rgba(24, 33, 43, 0.05));
}

.hero-content {
  width: min(620px, 88vw);
  margin-left: 5vw;
  padding: 56px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.contact-section h2 {
  margin: 0;
  line-height: 1.22;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 12em;
  font-size: clamp(2rem, 3.8vw, 3rem);
}

.hero h1 span {
  display: block;
}

.hero-lead {
  max-width: 36rem;
  margin: 24px 0 0;
  color: #384554;
  font-size: 1.05rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.2;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(24, 33, 43, 0.16);
}

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

.button.secondary {
  color: var(--ink);
  border-color: rgba(0, 124, 137, 0.28);
  background: rgba(255, 255, 255, 0.82);
}

.button.secondary.dark {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.34);
  background: transparent;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip div {
  padding: 20px 5vw;
  background: var(--white);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  color: var(--green);
  font-size: 0.8rem;
}

.trust-strip span {
  margin-top: 4px;
  font-weight: 800;
}

.section {
  scroll-margin-top: calc(var(--header-height) + 18px);
  padding: 86px 5vw;
  background: var(--paper);
}

.contact-section {
  scroll-margin-top: calc(var(--header-height) + 18px);
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.section-heading {
  display: grid;
  gap: 18px;
  align-items: start;
  max-width: 760px;
  margin-bottom: 38px;
}

#services .section-heading {
  display: block;
}

#services-title {
  max-width: 760px;
  margin-bottom: 18px;
  text-align: left;
}

.section-heading.compact {
  display: block;
  max-width: 720px;
}

.section h2,
.contact-section h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.section-heading p:last-child {
  margin: 0;
  color: var(--muted);
}

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

.service-card {
  min-height: 280px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(24, 33, 43, 0.06);
}

.service-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--teal);
  border-radius: 8px;
  background: #e7f5f4;
}

.service-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.service-card h3,
.flow-list h3 {
  margin: 22px 0 10px;
  font-size: 1.25rem;
  line-height: 1.3;
}

.service-card p,
.flow-list p {
  margin: 0;
  color: var(--muted);
}

.dealer-band {
  background: var(--white);
}

.dealer-list {
  display: grid;
  gap: 12px;
}

.dealer-list p {
  position: relative;
  min-height: 64px;
  padding: 18px 18px 18px 48px;
  margin: 0;
  border: 1px solid rgba(0, 124, 137, 0.18);
  border-radius: 8px;
  background: #f7fbfb;
  color: var(--ink);
  font-weight: 800;
}

.dealer-list p::before {
  position: absolute;
  top: 50%;
  left: 20px;
  width: 13px;
  height: 13px;
  content: "";
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(0, 124, 137, 0.14);
  transform: translateY(-50%);
}

.works-section {
  background: #f2f7f8;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.works-grid p {
  display: grid;
  min-height: 72px;
  place-items: center;
  padding: 16px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: #24313e;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 10px 28px rgba(24, 33, 43, 0.05);
}

.works-note {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.split-band {
  background: #edf5f2;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 56px;
  align-items: center;
}

.split-layout p:not(.eyebrow) {
  margin-bottom: 0;
  color: #4d5b68;
}

.area-panel {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(0, 124, 137, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.area-group {
  padding: 18px 20px;
  border-left: 4px solid var(--yellow);
  background: var(--white);
}

.area-group h3 {
  margin: 0 0 8px;
  color: #19324a;
  font-size: 1.14rem;
  font-weight: 800;
}

.area-group p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  margin: 32px 0 0;
  list-style: none;
}

.flow-list li {
  display: flex;
  gap: 18px;
  min-height: 176px;
  padding: 24px;
  border-top: 4px solid var(--teal);
  background: var(--white);
}

.flow-list li > span {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--white);
  border-radius: 50%;
  background: var(--coral);
  font-weight: 900;
}

.flow-list h3 {
  margin-top: 3px;
}

.faq-band {
  background: var(--white);
}

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

.check-grid p {
  min-height: 66px;
  padding: 18px 18px 18px 44px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(242, 183, 5, 0.18), rgba(255, 255, 255, 0));
  font-weight: 800;
  position: relative;
}

.check-grid p::before {
  position: absolute;
  top: 21px;
  left: 18px;
  width: 14px;
  height: 14px;
  content: "";
  border: 3px solid var(--green);
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
}

.contact-section {
  padding: 78px 5vw;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal-dark), #1e3e49 55%, #263238);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 38px;
  align-items: center;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.contact-section .eyebrow {
  color: #9fe1dc;
}

.contact-section p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
}

.contact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 5vw;
  color: #65717f;
  background: #111820;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 10px 5vw 16px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 180ms ease, opacity 180ms ease;
  }

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

  .site-nav a {
    padding: 14px 0;
  }

  .hero {
    min-height: 76svh;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(248, 250, 249, 0.98) 0%, rgba(248, 250, 249, 0.88) 48%, rgba(248, 250, 249, 0.24) 100%),
      linear-gradient(0deg, rgba(248, 250, 249, 0.44), rgba(248, 250, 249, 0.03));
  }

  .section-heading,
  .split-layout,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .split-layout {
    gap: 30px;
  }

  .service-grid,
  .flow-list,
  .check-grid,
  .works-grid {
    grid-template-columns: 1fr;
  }

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

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 1080px) {
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    padding: 0 18px;
  }

  .brand-name {
    font-size: 0.86rem;
  }

  .brand-sub {
    display: none;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .hero {
    min-height: auto;
  }

  .hero-image {
    position: relative;
    height: 42svh;
    min-height: 250px;
    object-position: 72% center;
  }

  .hero-overlay {
    display: none;
  }

  .hero-content {
    width: auto;
    margin: 0;
    padding: 36px 20px 42px;
    background: var(--paper);
  }

  .hero h1 {
    max-width: none;
    font-size: 2rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .trust-strip div {
    padding: 16px 20px;
  }

  .section,
  .contact-section {
    padding: 58px 20px;
  }

  .section-heading {
    gap: 18px;
    margin-bottom: 28px;
  }

  .area-panel {
    padding: 16px;
  }

  .flow-list li {
    min-height: 0;
  }

  .site-footer {
    display: block;
    padding: 22px 20px;
  }

  .site-footer p + p {
    margin-top: 6px;
  }
}
