:root {
  --primary: #45b5ad;
  --primary-dark: #24827d;
  --bg: #f7fbfb;
  --card: #ffffff;
  --text: #222;
  --muted: #666;
  --border: #d9e8e6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "M PLUS Rounded 1c", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
}

.container {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.logo {
  display: flex;
  align-items: center;
  line-height: 1;
}

.logo a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  line-height: 1;
}

.logo picture {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  display: block;
  height: 40px;
  width: auto;
}

.logo-text-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
}

.logo-mark {
  color: var(--primary);
}

.logo-text {
  color: var(--text);
}

.menu-toggle {
  display: none;
  border: none;
  background: none;
  color: var(--text);
  cursor: pointer;
  width: 40px;
  height: 40px;
  padding: 0;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.menu-toggle svg {
  width: 30px;
  height: 30px;
  overflow: visible;
  display: block;
}

.menu-toggle svg path {
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-box: view-box;
  transform-origin: 50% 50%;
}

.menu-toggle[aria-expanded="true"] .line1,
.menu-toggle.is-open .line1 {
  transform: rotate(45deg) translateY(5px);
}

.menu-toggle[aria-expanded="true"] .line2,
.menu-toggle.is-open .line2 {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .line3,
.menu-toggle.is-open .line3 {
  transform: rotate(-45deg) translateY(-5px);
}

nav {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}

nav .btn {
  padding: 8px 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-outline {
  border: 1px solid var(--border);
  background: white;
  color: var(--text);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 20px;
  align-items: center;
  color: var(--muted);
}

.footer-inner p {
  margin: 0;
  font-size: 0.875rem;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
}

.footer-menu a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

@media (max-width: 860px) {
  .header-inner {
    position: relative;
  }

  .menu-toggle {
    display: inline-flex;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    width: max-content;
    max-width: calc(100% - 16px);
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px 14px;
    border-top: 1px solid rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.98);
    box-shadow: 0 16px 32px rgba(0,0,0,0.08);
    z-index: 9;
  }

  nav a {
    white-space: nowrap;
    text-align: center;
  }

  .header-inner.menu-open nav,
  header.menu-open nav {
    display: flex;
  }

  nav a.btn-primary {
    border-radius: 0;
    width: 100%;
    color: white;
  }

  footer {
    padding: 16px 0 20px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
  }

  .footer-menu {
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }

  .footer-menu a {
    font-size: 0.875rem;
    line-height: 1.5;
  }

  .footer-inner p {
    font-size: 0.8rem;
    line-height: 1.4;
  }
}
