:root {
  --primary: #1e63d8;
  --primary-dark: #184faa;
  --primary-light: #e9f1ff;
  --accent: #0f1f3d;
  --text: #1a2840;
  --muted: #6f7a94;
  --bg: #f6f8fc;
  --font-body: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: #fff;
  line-height: 1.8;
  letter-spacing: 0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.navbar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--primary);
}

.logo img {
  height: 36px;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--primary);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  margin: 3px 0;
}

.hamburger:hover {
  transform: translateY(-2px);
}

.mobile-menu {
  position: absolute;
  top: 72px;
  right: 24px;
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 20px 24px;
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(30, 99, 216, 0.12);
  box-shadow: 0 26px 48px rgba(15, 31, 61, 0.18);
  min-width: 220px;
  z-index: 60;
}

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

.mobile-menu.show {
  display: flex;
}

.btn-primary {
  background: linear-gradient(135deg, #1f6ae2, #3d8cff);
  color: #fff;
  box-shadow: 0 14px 28px rgba(30, 99, 216, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1b5bc2, #3375d8);
  transform: translateY(-3px);
  box-shadow: 0 22px 38px rgba(30, 99, 216, 0.32);
}

.btn-outline {
  border: 1px solid rgba(30, 99, 216, 0.4);
  color: var(--primary);
  background: #fff;
}

.btn-outline:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

main {
  padding: clamp(60px, 8vw, 90px) 24px clamp(120px, 12vw, 140px);
  background: var(--bg);
  min-height: 70vh;
}

.page-container {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  padding: clamp(32px, 5vw, 48px);
  border-radius: 24px;
  box-shadow: 0 28px 48px rgba(15, 31, 61, 0.1);
}

footer {
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  padding: 36px 24px;
  border-top: 1px solid rgba(30, 99, 216, 0.08);
}

footer .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.85rem;
  color: inherit;
}

.footer-logo {
  width: 140px;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.footer-links-row {
  display: flex;
  gap: 18px;
  flex-wrap: nowrap;
}

.footer-links a {
  color: var(--muted);
}

.footer-links-row a {
  white-space: nowrap;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-note {
  white-space: nowrap;
}

@media (max-width: 720px) {
  footer .footer-inner {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    text-align: left;
  }

  .footer-logo {
    margin: 0;
    width: 110px;
  }

  .footer-links {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.72rem;
    margin-left: 0;
  }

  .footer-links-row {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .footer-note {
    width: 100%;
    font-size: 0.75rem;
    margin-top: 12px;
    text-align: center;
  }

  .navbar {
    justify-content: space-between;
  }

  .header-actions {
    display: none;
  }

  .hamburger {
    display: inline-flex;
  }
}
