/* ========================================================================
   NaviA Landing Page – Design System
   Base: Navy #002f7b / Accent: Orange #ed6c00 / Surface: #F5F7FA
   ======================================================================== */

:root {
  --navy-900: #0A1E38;
  --navy-800: #122a4d;
  --navy-700: #1A3A5C;
  --navy-600: #002f7b;
  --navy-500: #1E4D7B;
  --navy-400: #1E6FA5;
  --navy-300: #4a78b4;
  --navy-100: #e7eef7;
  --orange: #ed6c00;
  --orange-light: #ff8a2b;
  --orange-soft: #ffe4c8;
  --gray-50: #fafbfc;
  --gray-100: #F5F7FA;
  --gray-200: #e6ebf2;
  --gray-300: #cdd5e0;
  --gray-500: #6b7889;
  --gray-700: #3b4659;
  --ink: #14213d;
  --white: #ffffff;

  --maxw: 1180px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(10, 30, 56, .06), 0 2px 6px rgba(10, 30, 56, .04);
  --shadow: 0 4px 14px rgba(10, 30, 56, .08), 0 10px 30px rgba(10, 30, 56, .06);
  --shadow-lg: 0 20px 50px rgba(10, 30, 56, .18);

  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --font-num: "Inter", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 24px; }

body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--ink);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.7;
  font-feature-settings: "palt";
  position: relative;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 6px 24px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  font-feature-settings: "palt";
}
.eyebrow.on-navy {
  background: var(--orange-soft);
  color: var(--orange);
  border: none;
}

.section-title {
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: .01em;
  margin: 36px 0 36px;
  color: var(--ink);
}
.section-title em { font-style: normal; color: var(--orange); }
.on-navy .section-title,
.section.navy .section-title,
.problems .section-title,
.closing .section-title { color: #fff; }
.section.navy .section-title em,
.problems .section-title em,
.closing .section-title em { color: var(--orange-light); }

.section-sub {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--gray-500);
  margin: 0 0 36px;
  line-height: 1.85;
}
.on-navy .section-sub,
.section.navy .section-sub,
.problems .section-sub,
.closing .section-sub { color: rgba(255, 255, 255, .82); }

/* ---------- Section base ---------- */
section { position: relative; }
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section.gray { background: var(--gray-100); }
.section.navy {
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: #fff;
}
.section .head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section .head.left { text-align: left; margin: 0 0 56px; }
@media (min-width: 881px){
  /* On PC, allow the section title to span the full container width so long
     titles stay on a single line, while keeping the sub text narrow for readability. */
  .section .head { max-width: var(--maxw); }
  .section .head .section-sub { max-width: 760px; margin-left: auto; margin-right: auto; }
}

/* ---------- Page logo (top-left of content) ---------- */
.page-logo {
  position: absolute;
  top: 28px;
  left: max(24px, calc((100vw - var(--maxw)) / 2 + 24px));
  z-index: 30;
  display: inline-block;
  line-height: 0;
}
.page-logo img {
  height: 56px;
  width: auto;
  display: block;
}
@media (max-width: 880px) {
  .page-logo { top: 16px; left: 20px; }
  .page-logo img { height: 44px; }
}

/* ---------- Nav (legacy — hidden, kept for safety) ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: 72px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(10, 30, 56, .06);
  z-index: 50;
  transition: box-shadow .2s ease;
}
.nav.scrolled { box-shadow: 0 2px 14px rgba(10, 30, 56, .08); }
.nav .row {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav .logo-wrap { display: flex; align-items: center; gap: 12px; }
.nav ul.menu {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
}
.nav ul.menu a {
  position: relative;
  color: var(--gray-700);
  padding: 6px 0;
  transition: color .15s;
}
.nav ul.menu a:hover { color: var(--navy-600); }
.nav ul.menu a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s;
}
.nav ul.menu a:hover::after { transform: scaleX(1); }
.nav .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--orange);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: transform .15s, box-shadow .15s, background .15s;
  box-shadow: 0 4px 14px rgba(237, 108, 0, .28);
}
.nav .nav-cta:hover { background: var(--orange-light); transform: translateY(-1px); }

.hamburger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform .25s, opacity .15s;
}
.hamburger span::before, .hamburger span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--ink);
  transition: transform .25s;
}
.hamburger span::before { top: -7px; }
.hamburger span::after  { top: 7px; }
.hamburger.is-open span { background: transparent; }
.hamburger.is-open span::before { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span::after  { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  padding: 24px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .3s, opacity .3s;
  z-index: 49;
  box-shadow: 0 12px 30px rgba(10, 30, 56, .12);
}
.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li { border-bottom: 1px solid var(--gray-100); }
.mobile-menu li:last-child { border-bottom: none; }
.mobile-menu a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 4px;
  font-weight: 600;
  color: var(--gray-700);
}
.mobile-menu a::after { content: "›"; color: var(--gray-300); font-size: 22px; }
.mobile-menu .mobile-cta {
  display: block;
  text-align: center;
  margin-top: 18px;
  padding: 16px;
  background: var(--orange);
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
}

/* ---------- Logo (image-based) ---------- */
.logo-img {
  display: inline-block;
  user-select: none;
  vertical-align: middle;
  line-height: 0;
}
.logo-img img {
  display: block !important;
  width: auto !important;
  max-width: none !important;
}
.logo-img.nav img { height: 38px !important; }
.logo-img.hero img {
  height: clamp(120px, 14vw, 180px) !important;
  /* Clean white backdrop behind the logo so the hero bg image doesn't show through its transparent areas */
  background: rgba(255, 255, 255, .92);
  padding: 14px 26px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 47, 123, .08);
}
.logo-img.xl img { height: clamp(80px, 10vw, 120px) !important; }
.logo-img.inline {
  height: 40px;
  vertical-align: middle;
  background: #fff;
  padding: 6px 14px;
  border-radius: 8px;
  margin: 0 8px;
}
.logo-img.on-dark {
  background: #fff;
  padding: 14px 28px;
  border-radius: 12px;
  display: inline-block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.logo-img.on-dark img { background: none; padding: 0; border-radius: 0; }
.logo .mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--navy-600) 0%, var(--navy-400) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.logo .mark::before {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
  background: var(--orange);
  border-radius: 50%;
  top: 6px; right: 6px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .15);
}
.logo .word {
  font-size: 22px;
  line-height: 1;
  background: linear-gradient(90deg, var(--navy-600) 0%, var(--navy-400) 60%, var(--orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo .by {
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-500);
  letter-spacing: .04em;
  margin-left: 4px;
}
.logo.on-dark .word {
  background: linear-gradient(90deg, #ffffff 0%, #ffd6a8 70%, var(--orange-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo.on-dark .by { color: rgba(255, 255, 255, .65); }
.logo.on-light .word {
  background: linear-gradient(90deg, var(--navy-600) 0%, var(--navy-400) 55%, var(--orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo.lg .mark { width: 44px; height: 44px; font-size: 20px; }
.logo.lg .word { font-size: 30px; }
.logo.xl .mark { width: 60px; height: 60px; font-size: 26px; border-radius: 12px; }
.logo.xl .mark::before { width: 16px; height: 16px; top: 10px; right: 10px; }
.logo.xl .word { font-size: 44px; }
.logo.xl .by { font-size: 12px; }

/* ---------- Buttons / CTAs ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  transition: transform .15s, box-shadow .2s, background .15s, color .15s, border-color .15s;
  white-space: nowrap;
  text-align: center;
}
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 22px rgba(237, 108, 0, .35);
}
.btn-primary:hover { background: var(--orange-light); box-shadow: 0 12px 28px rgba(237, 108, 0, .42); transform: translateY(-2px); }
.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .35);
}
.btn-secondary:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }
.btn-secondary-light {
  background: #fff;
  color: var(--navy-600);
  border: 2px solid var(--navy-100);
}
.btn-secondary-light:hover { border-color: var(--navy-600); }
.btn-ghost {
  color: var(--navy-600);
  background: transparent;
}
.btn-ghost:hover { background: var(--navy-100); }
.btn-lg { padding: 22px 34px; font-size: 17px; }

/* ---------- Mid CTA band ---------- */
.cta-band {
  border-top: 4px solid var(--orange);
  border-bottom: 4px solid var(--orange);
  background: linear-gradient(180deg, var(--navy-700) 0%, var(--navy-800) 100%);
  padding: clamp(40px, 6vw, 56px) 0;
  color: #fff;
  text-align: center;
}
.cta-band .lead {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  margin-bottom: 22px;
}
.cta-band .lead em { color: var(--orange-light); font-style: normal; }
.cta-band .btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 100%;
}
.cta-band .btns .btn{
  max-width: 100%;
  white-space: normal;
  text-align: center;
  word-break: keep-all;
  line-height: 1.4;
}
@media (max-width: 640px){
  .cta-band .btns .btn{
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    font-size: 14px;
  }
}
.cta-band .note {
  margin-top: 18px;
  font-size: 12px;
  color: rgba(255, 255, 255, .55);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

/* ---------- Footer ---------- */
.footer {
  background: #06142a;
  color: rgba(255, 255, 255, .65);
  padding: 0;
  font-size: 13px;
  text-align: center;
}
.footer > .container{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.footer .copyright {
  font-size: 12px;
  color: rgba(255, 255, 255, .55);
  letter-spacing: .04em;
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav ul.menu { display: none; }
  .nav .nav-cta { display: none; }
  .hamburger { display: inline-flex; }
}
