*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans", sans-serif;
  background-color: aliceblue;
}

p {
  font-size: 20px;
}

button:hover {
  cursor: pointer;
  background-color: #E21B23;
  color: #fff;
}

.page-content {
  margin-left: 9%;
  margin-right: 9%;
}

.home-map {
  display: block;
  max-width: 100%;
  height: auto;
  margin-right: 0;
  margin-left: auto;
  float: right;
  height: 200px;
}

.manufacturer-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  width: min(82%, 1200px);
  margin: 2rem auto;
}

.manufacturer-grid__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 0.5rem;
  border: 1px solid #dbe2ea;
  background-color: #fff;
  transition: box-shadow 150ms ease;
}

.manufacturer-grid__item:hover {
  box-shadow: 0 3px 10px rgb(23 32 51 / 28%);
}

.manufacturer-grid__image {
  display: block;
  max-width: 95%;
  max-height: 120px;
  object-fit: contain;
}

.manufacturer-area-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1rem;
  width: min(96%, 1600px);
  margin: 2rem auto;
  text-align: center;
}

.manufacturer-area-grid__item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid #000;
  background-color: #fff;
  box-shadow: 0 3px 8px rgb(0 0 0 / 25%);
  transition: box-shadow 150ms ease;
}

.manufacturer-area-grid__item:hover {
  box-shadow: 0 8px 20px rgb(0 0 0 / 40%);
}

.manufacturer-area-grid__logo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 95px;
  margin: 0 auto;
  object-fit: contain;
}

.manufacturer-area-grid__action {
  margin-top: auto;
}

.product-page__brands {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.product-page__brand-image {
  display: block;
  width: auto;
  height: 150px;
  object-fit: contain;
}

.product-page__back-button {
  font-size: 20px;
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 1rem;
  width: min(96%, 1600px);
  margin: 2rem auto;
}

.product-grid__item {
  display: flex;
  flex-direction: column;
  flex: 0 1 calc((100% - 3rem) / 4);
  min-width: 0;
  padding: 0.75rem;
  border: 2px solid #000;
  background-color: #fff;
  transition: box-shadow 150ms ease;
  text-align: center;
}

.product-grid__item p {
  font-size: 20px;
}

.product-grid__item .product-grid__description {
  font-size: 18px;
}

.product-grid__action {
  margin-top: auto;
}

.product-grid__action button {
  font-size: 20px;
}

.product-grid__item:hover {
  box-shadow: 0 8px 20px rgb(0 0 0 / 40%);
}

.product-grid__image {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: contain;
}

.manufacturer-map {
  display: block;
  margin: 0 auto;
}

.staff-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: min(100% - 2rem, 900px);
  margin: 0 auto;
}

.staff-member {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  min-width: 0;
  margin: 1rem 0;
}

.staff-member__photo-column,
.staff-member__details-column {
  text-align: left;
}

.staff-member__photo-column {
  display: flex;
  justify-content: flex-end;
}

.staff-member__photo {
  display: block;
  height: 80px;
  width: auto;
  margin: 0;
}

.staff-member__details {
  margin: 0;
  font-size: 16px;
  text-align: left;
}

.site-footer {
  padding: 1rem;
  background-color: #E21B23;
  color: #fff;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 14px;
}

.site-footer__link {
  color: inherit;
  font-size: 14px;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 1.25rem 1rem 0;
  background: #fff;
  color: #172033;
  box-shadow: 0 8px 28px rgb(0 0 0 / 55%);
}

.site-header__brand {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  color: inherit;
  text-decoration: none;
}

.site-header__logo {
  display: block;
  width: min(250px, 52vw);
  height: auto;
}

.site-header__toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.site-header__menu-button {
  display: none;
  min-height: 44px;
  padding: 0.65rem 1rem;
  border: 1px solid #dbe2ea;
  border-radius: 0.5rem;
  background: #fff;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 20px;
  font-weight: 600;
}

.site-header__toggle:focus-visible + .site-header__menu-button {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}

.site-header__nav {
  border-top: 1px solid #e5eaf0;
}

.site-header__list {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  background-color: #3A3D40;
  color: white;
}

.site-header__link {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 0.65rem 1rem;
  border-radius: 0.5rem;
  color: inherit;
  font-size: 0.95rem;
  text-decoration: none;
  font-weight: bold;
}

.site-header__link:hover,
.site-header__link:focus-visible {
  background: #eff6ff;
  color: #1d4ed8;
}

@media (max-width: 768px) {
  .manufacturer-area-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: calc(100% - 2rem);
  }

  .product-grid {
    width: calc(100% - 2rem);
  }

  .product-grid__item {
    flex-basis: calc((100% - 1rem) / 2);
  }
}

@media (max-width: 640px) {
  html {
    font-size: 80%;
  }

  p {
    font-size: 16px;
  }

  .manufacturer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: calc(100% - 2rem);
    margin-right: auto;
    margin-left: auto;
  }

  .staff-list {
    grid-template-columns: 1fr;
  }

  .site-header {
    padding: calc(0.75rem + env(safe-area-inset-top)) calc(1rem + env(safe-area-inset-right)) 1rem calc(1rem + env(safe-area-inset-left));
  }

  .site-header__top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
  }

  .site-header__brand {
    justify-content: flex-start;
    margin-bottom: 0;
  }

  .site-header__menu-button {
    display: block;
  }

  .site-header__nav {
    display: none;
    flex-basis: 100%;
    margin-top: 0.5rem;
    border-top: 1px solid #e5eaf0;
  }

  .site-header__toggle:checked ~ .site-header__nav {
    display: block;
  }

  .site-header__list {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 0;
  }

  .site-header__link {
    padding: 0.65rem 0.75rem;
  }
}
