/* NEXLO 静的情報ページ用スタイル（JS不要で閲覧可能） */
/* Inter Variable の @font-face は /fonts/inter-variable.css（HTML から link） */

:root {
  --nexlo-bg: #ffffff;
  --nexlo-surface: #f3f3f3;
  --nexlo-border: #e2e2e2;
  --nexlo-text: #1a1a1a;
  --nexlo-text-muted: #5c5c5c;
  --nexlo-primary: #1a1a1a;
  --nexlo-primary-text: #ffffff;
  --nexlo-accent-bg: #eda541;
  --nexlo-accent-link: #1558b0;
  --nexlo-radius: 35px;
  --nexlo-font: 'Inter Variable', Inter, system-ui, 'Segoe UI', sans-serif;
  --nexlo-page-max: 760px;
  /* React AppShell と同一寸法（desktop基準） */
  --nexlo-header-h: 80px;
  --nexlo-board-max: 1440px;
  --nexlo-header-pad-x: 80px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: var(--nexlo-header-h);
}

body {
  margin: 0;
  font-family: var(--nexlo-font);
  color: var(--nexlo-text);
  background: var(--nexlo-bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a {
  color: inherit;
}

/* --- 共通 Header（React AppShell と寸法・見た目を揃える） --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nexlo-header-h);
  display: flex;
  align-items: stretch;
  background: #ffffff;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--nexlo-border);
}

.site-header__inner {
  width: 100%;
  max-width: var(--nexlo-board-max);
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--nexlo-header-pad-x);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  /* React .headerInner と同様：コンテナは weight を固定せず継承（nav 明示 400 をやめる） */
  font-weight: inherit;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--nexlo-text);
  line-height: 0;
}

/* React .brandLogo と同寸。viewBox 比率維持・高さのみ指定 */
.brand__logo {
  display: block;
  height: 28px;
  width: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  font-size: 0.85rem;
  color: var(--nexlo-text-muted);
}

.site-nav a {
  text-decoration: none;
  /* React .nav と同様、明示 weight を付けず継承で揃える */
  border: none;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--nexlo-text);
}

/* --- Info page --- */
.page {
  max-width: var(--nexlo-page-max);
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.page h1 {
  margin: 0 0 24px;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.page h2 {
  margin: 28px 0 10px;
  font-size: 1.1rem;
  font-weight: 700;
}

.page h3 {
  margin: 20px 0 8px;
  font-size: 1rem;
  font-weight: 600;
}

.page p {
  margin: 0 0 16px;
  color: var(--nexlo-text);
}

.page ol,
.page ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.page li {
  margin-bottom: 8px;
}

.page .lede {
  color: var(--nexlo-text-muted);
  font-size: 0.95rem;
}

.page .note {
  color: var(--nexlo-text-muted);
  font-size: 0.9rem;
}

.faq-item {
  margin-bottom: 16px;
}

.faq-item h3 {
  margin: 0 0 4px;
}

.faq-item p {
  margin: 0;
  color: var(--nexlo-text-muted);
  font-size: 0.95rem;
}

.cta {
  display: inline-block;
  margin-top: 16px;
  border-radius: var(--nexlo-radius);
  background: var(--nexlo-primary);
  color: var(--nexlo-primary-text);
  text-decoration: none;
  padding: 12px 24px;
  font-weight: 600;
}

.cta--footer {
  margin-top: 0;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--nexlo-border);
  padding: 28px 24px 40px;
  color: var(--nexlo-text-muted);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  justify-content: center;
}

.site-footer__nav {
  max-width: 1120px;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: center;
  flex: 1 1 auto;
}

.site-footer__lang {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.site-footer__lang a {
  text-decoration: none;
}

.site-footer__lang a[aria-current='page'] {
  color: var(--nexlo-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer__nav a {
  text-decoration: none;
}

.site-footer__nav a:hover,
.site-footer__nav a[aria-current='page'] {
  color: var(--nexlo-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer__cta {
  margin: 0;
  text-align: center;
}

/* --- Interaction feedback --- */
a,
button,
.cta {
  transition: color 150ms ease, background-color 150ms ease, opacity 150ms ease,
    border-color 150ms ease, text-decoration-color 150ms ease, transform 150ms ease,
    filter 150ms ease;
}

@media (hover: hover) {
  a:hover {
    opacity: 0.82;
  }

  .site-nav a:hover,
  .site-footer__nav a:hover {
    opacity: 1;
    color: var(--nexlo-text);
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .cta:hover {
    opacity: 1;
    filter: brightness(1.08);
  }

  button:not(:disabled):hover {
    filter: brightness(0.97);
  }
}

.cta:active,
.contact-submit:active {
  transform: translateY(1px) scale(0.985);
  opacity: 0.9;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  filter: none;
  transform: none;
}

:focus-visible {
  outline: 2px solid var(--nexlo-text);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 900px) {
  :root {
    --nexlo-header-h: 132px;
    --nexlo-header-pad-x: 20px;
  }

  .site-header__inner {
    padding: 12px var(--nexlo-header-pad-x);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
  }

  .site-nav {
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .brand__logo {
    height: 24px;
    width: auto;
  }

  .page {
    padding: 28px 16px 48px;
  }

  .page h1 {
    font-size: 1.4rem;
  }
}
