

:root {
  --common-bg-primary: #ffffff;
  --common-text-primary: #0a0a0a;
  --common-text-secondary: #4b5563;
  --common-text-muted: #71717a;
  --common-border-subtle: #e4e4e7;
  --common-border-medium: #d4d4d8;
  --common-black-solid: #000000;
  --common-black-hover: #1f2937;
  --common-white-solid: #ffffff;
  --common-radius-full: 9999px;
  --common-font-en: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --common-font-jp: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', sans-serif;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease, padding 0.25s ease, background 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.35rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: padding 0.25s ease;
  box-sizing: border-box;
}

.site-header.is-scrolled .nav-container {
  padding: 1rem 2rem;
}

.nav-brand-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.35rem;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.nav-brand:hover {
  opacity: 0.85;
}

.nav-brand-logo {
  height: 25px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  line-height: 1;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #4b5563;
  text-decoration: none;
  position: relative;
  padding: 0.1rem 0;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  transition: color 0.18s ease;
  font-family: inherit;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #000000;
  border-radius: 1px;
  transition: width 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
  color: #0a0a0a;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-auth-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-actions.is-hidden,
.nav-auth-group.is-hidden {
  display: none !important;
}

.btn-use-mansuke {
  background-color: var(--common-black-solid);
  color: var(--common-white-solid) !important;
}

.footer-action-column {
  display: flex;
  align-items: flex-start;
  margin-left: auto;
}

@media (max-width: 900px) {
  .footer-action-column {
    margin-left: 0;
    width: 100%;
  }
}

.site-header .btn-primary,
.site-header .btn-outline {
  font-family: inherit;
  font-weight: 700;
  border-radius: 9999px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.16s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  line-height: 1;
  box-sizing: border-box;
}

.site-header .btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.85rem;
  min-height: 38px;
}

.site-header .btn-primary {
  background: #000000;
  color: #ffffff;
  border: 1px solid #000000;
}

.site-header .btn-primary:hover {
  background: #1f2937;
  border-color: #1f2937;
  transform: translateY(-1px);
}

.site-header .btn-outline {
  background: transparent;
  color: #0a0a0a;
  border: 1px solid #d4d4d8;
}

.site-header .btn-outline:hover {
  background: #f4f4f5;
  border-color: #a1a1aa;
}

.site-footer {
  background: #ffffff;
  border-top: 1px solid #e4e4e7;
  padding: 3.5rem 2rem 2.5rem;
  width: 100%;
  box-sizing: border-box;
}

.site-footer .footer-container {
  max-width: 1120px;
  margin: 0 auto;
  text-align: left;
  box-sizing: border-box;
}

.site-footer .footer-main-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3.5rem;
  box-sizing: border-box;
}

.site-footer .footer-brand-column {
  flex: 1 1 0;
  max-width: 680px;
  text-align: left;
}

.site-footer .footer-logos-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.site-footer .footer-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.site-footer .footer-logo-link:hover {
  opacity: 0.8;
}

.site-footer .footer-logo-mansuke {
  height: 28px;
  width: auto;
  display: block;
}

.site-footer .footer-divider-line {
  width: 1px;
  height: 24px;
  background: #d4d4d8;
  display: block;
}

.site-footer .footer-logo-box {
  display: inline-flex;
  align-items: center;
}

.site-footer .footer-logo-cerinal {
  height: 28px;
  width: auto;
  display: block;
}

.site-footer .footer-copyright {
  font-size: 0.84rem;
  color: #71717a;
  font-family: var(--common-font-en), var(--common-font-jp), sans-serif;
  margin: 0 0 0.85rem 0;
  text-align: left;
}

.site-footer .footer-disclaimer {
  font-size: 0.78rem;
  color: #71717a;
  line-height: 1.6;
  max-width: 640px;
  margin: 0;
  text-align: left;
}

.footer-nav-group {
  display: flex;
  align-items: flex-start;
  gap: 3.5rem;
  flex-shrink: 0;
}

.footer-nav-column {
  min-width: 140px;
  text-align: left;
}

.footer-nav-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #0a0a0a;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--common-font-en), sans-serif;
  margin: 0 0 1rem 0;
}

.footer-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-nav-link {
  font-size: 0.84rem;
  color: #4b5563;
  text-decoration: none;
  transition: color 0.16s ease;
  line-height: 1.4;
  display: inline-block;
  text-align: left;
}

.footer-nav-link:hover {
  color: #000000;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .site-header {
    background: rgba(255, 255, 255, 0.78);
  }

  .site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.86);
  }

  .nav-container {
    padding: 0.65rem 1rem 0.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 0.75rem;
  }

  .site-header.is-scrolled .nav-container {
    padding: 0.55rem 1rem 0.45rem;
  }

  .nav-brand-group {
    display: contents;
  }

  .nav-brand {
    order: 1;
    display: inline-flex;
    align-items: center;
  }

  .nav-brand-logo {
    height: 22px;
    width: auto;
  }

  .nav-actions {
    order: 2;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-left: auto;
  }

  .site-header .nav-actions .btn-sm {
    min-height: 34px;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
  }

  .nav-links {
    order: 3;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.35rem 0 0.15rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    font-size: 0.76rem;
    white-space: nowrap;
    padding: 0.25rem 0.7rem;
    background: #f4f4f5;
    border-radius: 9999px;
    color: #4b5563;
    border: 1px solid rgba(0, 0, 0, 0.04);
    line-height: 1.3;
    flex-shrink: 0;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover,
  .nav-link:active {
    background: #e4e4e7;
    color: #0a0a0a;
  }

  .site-footer {
    padding: 3rem 1.25rem 3rem;
  }

  .footer-main-layout {
    flex-direction: column;
    gap: 2.25rem;
  }

  .footer-nav-group {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 3rem;
    width: 100%;
  }

  .footer-nav-column {
    min-width: auto;
  }

  .footer-logos-row {
    gap: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .footer-logo-mansuke {
    height: 24px;
  }

  .footer-logo-cerinal {
    height: 24px;
  }

  .footer-divider-line {
    height: 20px;
  }

  .footer-copyright {
    font-size: 0.78rem;
  }

  .footer-disclaimer {
    font-size: 0.72rem;
    line-height: 1.55;
    margin-top: 0.75rem;
  }
}
