:root {
  color: #111111;
  background: #ffffff;
  font-family: Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

.site-header {
  max-width: 1000px;
  margin: 0 auto;
  padding: 88px 28px 76px;
  text-align: center;
}

.site-header h1 {
  margin: 0;
}

.site-header h1 img {
  width: min(100%, 640px);
  height: clamp(100px, 34vw, 220px);
  margin: 0 auto;
  object-fit: cover;
}

.site-main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 28px 96px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 56px;
}

.work-image-link {
  display: block;
}

.work-image-link img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.work-card h2 {
  margin: 14px 0 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.work-medium {
  margin: 3px 0 0;
  color: #555555;
  font-size: 0.875rem;
  line-height: 1.5;
}

.contact {
  padding-top: 112px;
  text-align: center;
}

.contact p {
  margin: 0 0 24px;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.7;
}

.contact-link {
  display: inline-block;
  min-width: 180px;
  padding: 13px 24px;
  border: 1px solid #111111;
  background: #111111;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
}

.contact-link:hover {
  background: #ffffff;
  color: #111111;
}

.lightbox {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 64px 24px 24px;
  background: rgb(0 0 0 / 88%);
}

.lightbox:target {
  display: flex;
}

.lightbox img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 88px);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 20px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  text-decoration: none;
}

@media (max-width: 600px) {
  .site-header {
    padding: 56px 16px 48px;
  }

  .site-main {
    padding: 0 16px 72px;
  }

  .work-grid {
    column-gap: 14px;
    row-gap: 32px;
  }

  .work-card h2 {
    margin-top: 9px;
    font-size: 0.875rem;
  }

  .contact {
    padding-top: 80px;
  }

  .contact p {
    font-size: 1rem;
  }
}
