/* Shared foundation for Gen Site static pages. Page-specific CSS lives in top.css or lower.css. */
:root {
  --navy: #00135f;
  --deep: #000b39;
  --blue: #116dff;
  --cyan: #28e5ff;
  --light: #f5faff;
  --line: #c8dcff;
  --text: #001b5e;
  --muted: #405681;
  --shadow: 0 24px 70px rgba(0, 30, 120, 0.12);
  --font: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.7;
  background: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(90deg, #1268ff 0%, #2fe6ff 100%);
  background-size: 300% 100%;
  background-position: 50% 0;
  box-shadow: 0 11px 24px rgba(8, 83, 255, 0.22);
}

.button-outline {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.04);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0, 11, 50, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(100% - 48px, 1170px);
  min-height: 72px;
  margin: 0 auto;
}

.brand img {
  width: 105px;
  height: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer {
  color: #ffffff;
  background: #062486;
  padding: 54px 0 36px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  width: min(100% - 48px, 1170px);
  margin: 0 auto;
}

.footer-brand img {
  width: 210px;
}

.footer-marks {
  margin-top: 18px;
}

.footer-marks img {
  width: 178px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.copyright {
  margin: 0;
  font-size: 12px;
  text-align: right;
}

@media (max-width: 960px) {
  .header-inner {
    width: min(100% - 32px, 1170px);
  }

  .site-nav {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links,
  .copyright {
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: sticky;
  }

  .header-inner {
    min-height: 67px;
    width: calc(100% - 24px);
  }

  .brand img {
    width: 96px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-actions .button-outline {
    display: none;
  }

  .button {
    min-height: 42px;
    padding: 0 20px;
    font-size: 13px;
  }

  .site-footer {
    padding: 42px 0 30px;
  }

  .footer-inner {
    width: calc(100% - 32px);
  }

  .footer-brand img {
    width: 190px;
  }

  .footer-links {
    gap: 16px;
  }
}