/* Header */
body {
  margin-top: 88px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: rgba(247, 242, 235, 0.95);
  backdrop-filter: blur(8px);
}

.site-nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  font-family: "Zen Kaku Gothic New", sans-serif;
}

.site-nav-logo {
  flex-shrink: 0;
}

.site-nav-logo img {
  height: 56px;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin-left: auto;
}

.site-nav-links li {
  text-align: center;
}

.site-nav-links a {
  display: block;
  color: var(--color-text);
  text-decoration: none;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.03em;
  transition: opacity 0.6s ease-out;
}

.site-nav-links a:hover {
  opacity: 0.7;
}

.site-nav-links a.active {
  color: var(--color-accent);
  font-weight: 500;
}

.site-nav-links .inline-block {
  display: block;
}

.site-nav-links .nav-button {
  background-color: var(--color-accent);
  color: var(--color-background);
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background-color 0.6s ease-out;
}

.site-nav-links .nav-button:hover {
  background-color: var(--color-secondary);
  opacity: 1;
}

/* SNS Icons */
.sns-fixed {
  position: fixed;
  left: calc((100vw - 1280px) / 2 + 40px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 40;
}

.sns-fixed a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  color: var(--color-muted);
  background-color: var(--color-background);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: color 0.6s ease-out, box-shadow 0.6s ease-out;
}

.sns-fixed a:hover {
  color: var(--color-accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sns-fixed svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: 100;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  transition: all 0.3s ease-out;
}

.hamburger span:nth-child(1) {
  margin-bottom: 6px;
}

.hamburger span:nth-child(2) {
  margin-bottom: 6px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-background);
  z-index: 40;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-links {
  list-style: none;
  text-align: center;
}

.mobile-menu-links li {
  margin-bottom: 32px;
}

.mobile-menu-links a {
  font-family: "Zen Old Mincho", serif;
  font-size: 24px;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: opacity 0.6s ease-out;
}

.mobile-menu-links a:hover {
  opacity: 0.7;
}

.mobile-menu-links a.active {
  color: var(--color-accent);
  font-weight: 500;
}

@media (max-width: 1280px) {
  .sns-fixed {
    left: 24px;
  }
}

@media (max-width: 940px) {
  body {
    margin-top: 76px;
  }

  .site-nav {
    padding: 16px 20px;
  }

  .site-nav-logo img {
    height: 44px;
  }

  .site-nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .sns-fixed {
    left: 16px;
    top: auto;
    bottom: 40px;
    transform: none;
    gap: 16px;
  }

  .sns-fixed a {
    width: 36px;
    height: 36px;
    padding: 8px;
  }
}
