.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 80px 0;
}

.section--cream {
  background-color: var(--color-primary);
}

.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background-color: var(--color-base);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header__logo {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: 700;
}

.header__logo img {
  height: 48px;
  width: auto;
}

.header__nav {
  display: flex;
}

.header__nav ul {
  display: flex;
  gap: 32px;
}

.header__nav a {
  font-size: 16px;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-button);
  transition: width var(--transition-base);
}

.header__nav a:hover::after,
.header__nav a:focus-visible::after,
.header__nav a.is-active::after {
  width: 100%;
}

.header__nav a:hover,
.header__nav a:focus-visible {
  opacity: 1;
}

.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: var(--z-drawer);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  margin: 4px auto;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

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

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.footer {
  background-color: var(--color-primary-light);
  padding: 48px 0 24px;
  border-top: 1px solid var(--color-accent);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer__logo {
  font-size: 18px;
  font-weight: 700;
}

.footer__logo img {
  height: 40px;
  width: auto;
}

.footer__nav ul {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__nav a {
  font-size: 14px;
}

.footer__copyright {
  font-size: 12px;
  color: var(--color-text-sub);
  margin-top: 16px;
}

@media (max-width: 1023px) {
  .container { padding: 0 32px; }
}

@media (max-width: 767px) {
  .container { padding: 0 20px; }
  .section { padding: 48px 0; }
  .header__inner { height: 60px; }
  .header__logo img { height: 36px; }
  .hamburger { display: block; }
  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--color-base);
    padding: 80px 32px 32px;
    box-shadow: var(--shadow-nav);
    transition: right var(--transition-base);
  }
  .header__nav.is-open { right: 0; }
  .header__nav ul {
    flex-direction: column;
    gap: 24px;
  }
  .header__nav a {
    font-size: 16px;
    display: block;
    padding: 8px 0;
  }
  body.is-menu-open { overflow: hidden; }
}
