:root {
  --ink: #222222;
  --muted: #565656;
  --line: #eeeeee;
  --panel: #f2f2f2;
  --blue: #304ffe;
  --header: rgba(0, 0, 0, 0.66);
  --max: 1000px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family:
    "Open Sans",
    "Noto Sans JP",
    "Helvetica Neue",
    Arial,
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    Meiryo,
    sans-serif;
  line-height: 1.8;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 70px;
  padding: 0 max(20px, calc((100vw - var(--max)) / 2));
  background: var(--header);
}

.brand {
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  color: #ffffff;
  font-size: 14px;
  padding: 10px;
  text-decoration: none;
}

.nav a:hover {
  color: rgba(255, 255, 255, 0.75);
}

.hero {
  display: flex;
  align-items: center;
  min-height: 800px;
  padding: 160px max(20px, calc((100vw - var(--max)) / 2)) 80px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.48)),
    url("./assets/hero.jpg") center/cover no-repeat;
}

.hero__content {
  width: min(100%, var(--max));
}

.hero h1 {
  margin: 0 0 22px;
  color: #ffffff;
  font-size: clamp(44px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0;
}

.hero p {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
}

.section {
  padding: 96px 20px 78px;
}

.section__inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.heading {
  margin-bottom: 38px;
}

.heading h2 {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin: 0;
  font-size: clamp(24px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.2;
}

.heading h2 span {
  font-size: clamp(32px, 5vw, 40px);
}

.heading::after {
  display: block;
  width: 50px;
  height: 4px;
  margin-top: 26px;
  background: var(--blue);
  content: "";
}

.prose {
  max-width: 860px;
  color: #424242;
  font-size: 18px;
}

.prose--wide {
  max-width: 100%;
}

.prose p {
  margin: 0 0 28px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.service-card img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.service-card h3 {
  margin: 24px 0 10px;
  font-size: 20px;
  line-height: 1.3;
}

.service-card p {
  margin: 0;
  color: #616161;
  line-height: 1.8;
}

.company-table {
  margin: 0;
}

.company-table div {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 0;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.company-table dt,
.company-table dd {
  min-height: 70px;
  margin: 0;
  padding: 22px 30px;
  display: flex;
  align-items: center;
}

.company-table dt {
  justify-content: center;
  background: var(--panel);
  font-weight: 400;
}

.company-table dd {
  background: #ffffff;
}

.company-table ul {
  margin: 0;
  padding-left: 1.1em;
}

.contact-section {
  padding: 100px 20px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url("./assets/contact.jpg") center/cover no-repeat;
}

.contact-section__inner {
  width: min(100%, 760px);
  margin: 0 auto;
  color: #ffffff;
  text-align: center;
}

.contact-section h2 {
  margin: 0 0 20px;
  color: #ffffff;
  font-size: clamp(30px, 5vw, 40px);
  line-height: 1.25;
}

.contact-section p {
  margin: 0 0 34px;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.5;
}

.contact-card {
  display: grid;
  gap: 18px;
  justify-items: center;
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  text-align: center;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  border: 0;
  border-radius: 26px;
  background: var(--blue);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.contact-button:hover {
  filter: brightness(0.94);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 120px;
  padding: 28px max(20px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
  background: #ffffff;
  color: #333333;
}

.site-footer small {
  font-size: 14px;
}

@media (max-width: 860px) {
  .site-header {
    justify-content: center;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: 700px;
    padding-top: 150px;
  }

  .service-grid,
  .company-table div {
    grid-template-columns: 1fr;
  }

  .company-table dt {
    justify-content: flex-start;
    min-height: 50px;
  }

  .company-table dd {
    min-height: auto;
  }

  .site-footer {
    justify-content: flex-start;
    min-height: 110px;
  }
}

@media (max-width: 520px) {
  .brand {
    width: 100%;
    font-size: 21px;
    text-align: left;
  }

  .hero {
    min-height: 620px;
  }

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

  .hero p,
  .prose {
    font-size: 16px;
  }

  .heading h2 {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .service-card img {
    height: 230px;
  }

  .contact-card {
    padding: 0;
    border: 0;
    background: transparent;
  }
}
