:root {
  --navy: #062c67;
  --navy-dark: #002051;
  --blue: #0f58a8;
  --soft: #f3f7fc;
  --line: #c7d5e8;
  --text: #102a4f;
  --muted: #51657f;
  --white: #fff;
  --shadow: 0 14px 35px rgba(0, 31, 84, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 68px;
  padding: 0 44px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #111;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  border: 2px solid var(--navy);
  transform: rotate(45deg);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  content: "";
  border-top: 2px solid var(--blue);
  border-left: 2px solid var(--blue);
}

.brand-mark::before {
  inset: 6px;
}

.brand-mark::after {
  inset: 13px -8px -8px 13px;
  border-color: var(--navy);
}

.global-nav {
  justify-self: center;
  display: flex;
  gap: 27px;
  font-size: 13px;
  font-weight: 900;
}

.global-nav a {
  position: relative;
  padding: 23px 0;
}

.global-nav a::after {
  position: absolute;
  right: 0;
  bottom: 15px;
  left: 0;
  height: 2px;
  content: "";
  background: transparent;
}

.global-nav a:hover::after {
  background: var(--navy);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 900;
  line-height: 1.2;
}

.header-cta,
.button.primary {
  color: var(--white);
  background: var(--navy);
  border: 1px solid var(--navy);
  box-shadow: 0 8px 18px rgba(0,31,84,.18);
}

.button.secondary {
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--navy);
}

.button::after {
  margin-left: 14px;
  content: "›";
  font-size: 24px;
  line-height: .65;
}

.menu-button {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(430px, 44%) minmax(0, 56%);
  min-height: 430px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  padding: 54px 42px 54px 56px;
  background:
    linear-gradient(90deg, #fff 0%, #fff 76%, rgba(255,255,255,.78) 92%, rgba(255,255,255,.2) 100%);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.hero h1 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: clamp(38px, 4vw, 50px);
  line-height: 1.22;
  font-weight: 900;
}

.hero p:not(.eyebrow) {
  max-width: 550px;
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}

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

.hero-photo {
  position: relative;
  min-height: 430px;
  margin-left: -76px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.74), rgba(255,255,255,0) 22%),
    url("assets/hero.jpg") center / cover no-repeat;
}

.hero-panel {
  position: absolute;
  right: 36px;
  bottom: 34px;
  width: min(330px, calc(100% - 72px));
  padding: 18px 20px;
  color: #fff;
  background: rgba(0, 32, 81, .9);
  border-left: 5px solid #5eb2ff;
}

.hero-panel strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.hero-panel span {
  font-size: 14px;
  font-weight: 800;
}

.proof-bar {
  max-width: 1080px;
  margin: -34px auto 0;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}

.proof-bar dl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.proof-bar div {
  padding: 18px 22px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.proof-bar div:last-child {
  border-right: 0;
}

.proof-bar dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.proof-bar dd {
  margin: 2px 0 0;
  color: var(--navy);
  font-weight: 900;
}

.proof-bar strong {
  font-size: 32px;
  line-height: 1;
}

.section {
  max-width: 1080px;
  margin: 72px auto 0;
  padding: 0 28px;
}

.section-heading {
  display: grid;
  justify-items: center;
  margin-bottom: 24px;
  text-align: center;
}

.section-heading p {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.section-heading h2,
.coverage-copy h2,
.company-card h2,
.contact h2 {
  margin: 0;
  color: var(--navy);
  font-size: 32px;
  line-height: 1.35;
  font-weight: 900;
}

.section-heading span,
.coverage-copy p,
.contact-copy p {
  max-width: 680px;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

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

.service-grid article {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .18s ease, box-shadow .18s ease;
}

.service-grid article:hover,
.work-card:hover,
.quality-grid article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.service-grid img {
  width: 100%;
  height: 96px;
  object-fit: cover;
}

.service-grid div {
  padding: 16px;
}

.service-grid h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 17px;
}

.service-grid p,
.quality-grid p,
.works-cta p,
.map-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.wide-heading {
  margin-bottom: 18px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
}

.filter-row span {
  min-height: 30px;
  padding: 5px 14px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.filter-row .active {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

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

.work-card {
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .18s ease, box-shadow .18s ease;
}

.work-card.featured {
  grid-column: span 2;
}

.work-card img {
  width: 100%;
  height: 154px;
  object-fit: cover;
}

.work-card.featured img {
  height: 214px;
}

.work-body {
  padding: 16px;
}

.work-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.work-meta span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 2px 10px;
  color: #fff;
  background: var(--navy);
}

.work-card h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.4;
}

.work-card dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.work-card dl div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
}

.work-card dt {
  color: var(--blue);
}

.work-card dd {
  margin: 0;
}

.works-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 22px;
  padding: 20px 24px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.coverage,
.company-contact,
.contact {
  display: grid;
  grid-template-columns: minmax(310px, .85fr) minmax(0, 1.15fr);
  gap: 36px;
  max-width: 1080px;
  margin: 76px auto 0;
  padding: 0 28px;
}

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

.coverage-list article,
.quality-grid article,
.company-card,
.map-card,
.contact-form {
  background: #fff;
  border: 1px solid var(--line);
}

.coverage-list article {
  padding: 24px;
}

.coverage-list h3,
.quality-grid h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 19px;
}

.coverage-list ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.coverage-list li {
  padding: 8px 10px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
  background: var(--soft);
}

.quality {
  max-width: 1080px;
  margin: 76px auto 0;
  padding: 46px 28px;
  background: linear-gradient(180deg, #f7fbff, #fff);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.quality-grid article {
  padding: 26px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.quality-grid strong {
  color: var(--blue);
  font-size: 13px;
  letter-spacing: .08em;
}

.company-contact {
  align-items: start;
}

.company-card,
.map-card {
  padding: 24px;
}

table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  width: 110px;
  color: var(--navy);
  background: var(--soft);
}

.map-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 14px;
}

.contact {
  margin-bottom: 72px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 26px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}

.wide,
.contact-form button {
  grid-column: 1 / -1;
}

input,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--text);
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 0;
}

textarea {
  min-height: 94px;
  resize: vertical;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  padding: 28px 54px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-dark), var(--blue));
}

.footer-brand {
  color: #fff;
}

.footer-brand .brand-mark {
  border-color: #fff;
}

.footer-brand .brand-mark::before,
.footer-brand .brand-mark::after {
  border-color: #fff;
}

.site-footer p,
.site-footer small {
  margin: 0;
  font-size: 12px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
    padding: 0 22px;
  }

  .menu-button {
    justify-self: end;
    display: grid;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 1px solid var(--line);
    background: #fff;
  }

  .menu-button span {
    height: 2px;
    background: var(--navy);
  }

  .global-nav,
  .header-cta {
    display: none;
  }

  .site-header.is-open .global-nav {
    position: absolute;
    top: 68px;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .global-nav a {
    padding: 14px 24px;
    border-top: 1px solid var(--line);
  }

  .global-nav a::after {
    display: none;
  }

  .hero,
  .coverage,
  .company-contact,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    order: -1;
    margin-left: 0;
  }

  .hero-copy {
    padding: 36px 24px 46px;
  }

  .proof-bar dl,
  .service-grid,
  .works-grid,
  .quality-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-card.featured {
    grid-column: span 2;
  }

  .works-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }
}

@media (max-width: 620px) {
  .brand {
    font-size: 22px;
  }

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

  .hero h1 {
    font-size: 35px;
  }

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

  .proof-bar {
    margin-top: 18px;
  }

  .proof-bar dl,
  .service-grid,
  .works-grid,
  .coverage-list,
  .quality-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .work-card.featured {
    grid-column: span 1;
  }

  .work-card img,
  .work-card.featured img {
    height: 170px;
  }

  .section,
  .coverage,
  .quality,
  .company-contact,
  .contact {
    padding-right: 18px;
    padding-left: 18px;
  }

  .section-heading h2,
  .coverage-copy h2,
  .company-card h2,
  .contact h2 {
    font-size: 27px;
  }
}
