*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
::selection { background: #111; color: #fff; }

.skip-link {
  position: absolute;
  top: -100%;
  left: 24px;
  z-index: 100;
  padding: 8px 14px;
  background: #111;
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  border-radius: 0 0 6px 6px;
}

.skip-link:focus {
  top: 0;
}

body {
  font-family: 'LINE Seed JP', system-ui, sans-serif;
  background-color: #f9f9f9;
  color: #111;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

#dot-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}

#page-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(to right, transparent 5%, rgba(249,249,249,0.7) 30%, rgba(249,249,249,0.7) 70%, transparent 95%);
}

/* ── Page layout ── */
.page {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Site header / nav ── */
.page > header nav,
.page > nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0;
}

.nav-logo {
  font-size: 14px;
  font-weight: 500;
  color: #111;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a,
.footer-links a {
  font-size: 13px;
  color: #888;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 5px;
  position: relative;
  transition: color 0.15s, backdrop-filter 0.15s;
}

.nav-links a::after,
.footer-links a::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 1px;
  height: 1px;
  background: #111;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.17s ease;
}

.nav-links a:hover,
.footer-links a:hover {
  color: #111;
}

.nav-links a:hover::after,
.footer-links a:hover::after {
  transform: scaleX(1);
}

.nav-links a[aria-current]::after {
  transform: scaleX(1);
  opacity: 0.35;
}

/* ── Page header (about + contact) ── */
.page-header {
  padding: 80px 0 60px;
}

.page-header h1 {
  font-family: 'Shippori Mincho', serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #111;
  margin-bottom: 16px;
}

.page-header p {
  font-size: 16px;
  line-height: 1.75;
  color: #666;
}

/* ── Footer ── */
footer {
  border-top: 1px solid #e0e0e0;
  padding: 24px 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

footer p { font-size: 12px; color: #aaa; }
.footer-links { display: flex; gap: 18px; list-style: none; }
.footer-links a { font-size: 12px; }

@media (max-width: 560px) {
  nav { padding: 24px 0; }
  footer { flex-direction: column; align-items: flex-start; }
}
