:root {
  color-scheme: light;
  --ink: #252522;
  --muted: #777772;
  --paper: #fdfdfb;
  --line: #deded8;
  --gutter: clamp(24px, 5vw, 88px);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "Helvetica Neue", Arial, "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--muted);
}
button,
input,
select,
textarea {
  font: inherit;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid #56685d;
  outline-offset: 5px;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 24px;
  padding: 12px;
  background: var(--paper);
  z-index: 10;
}
.skip-link:focus {
  top: 12px;
}
.header {
  padding: 20px 40px;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  gap: 24px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  display: block;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.3px;
}
.nav-links a[aria-current] {
  color: var(--muted);
}
.nav-links svg {
  display: block;
}
.hamburger {
  display: none;
}

/* Galleryの画像配置はgallery-grid.cssで維持する。 */
body {
  background-color: #fff;
  background-image:
    linear-gradient(rgba(240, 240, 240, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 240, 240, 0.3) 1px, transparent 1px);
  background-size: 30px 30px;
  min-height: 100vh;
}
.main-content {
  margin-top: 20px;
}
@media (max-width: 600px) {
  .header {
    padding: 24px;
  }
  .nav {
    flex-wrap: wrap;
    gap: 0;
  }
  .hamburger {
    display: flex;
    width: 30px;
    height: 30px;
    padding: 5px 2px;
    border: 0;
    background: transparent;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
  }
  .hamburger span {
    width: 100%;
    height: 1px;
    background: var(--ink);
  }
  .nav-links {
    display: none;
    flex-basis: 100%;
    justify-content: space-between;
    gap: 16px;
    padding: 28px 0 8px;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links a {
    font-size: 14px;
  }
}
