/* ============================================================
   LOM — Common Styles
   ============================================================ */
:root {
  --bg: #fafafa;
  --bg-white: #ffffff;
  --bg-warm: #f5f3f0;
  --bg-dark: #141418;
  --border: #e5e2dd;
  --border-light: #eceae6;
  --text: #1a1a1f;
  --text-sub: #555560;
  --text-muted: #8e8e99;
  --accent: #3553f0;
  --accent-hover: #2a42c8;
  --accent-soft: #eef0ff;
  --warm: #e8735a;
  --warm-soft: #fef0ed;
  --teal: #1a9a8a;
  --teal-soft: #edf8f6;
  --font: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.08), 0 12px 32px rgba(0,0,0,0.04);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.8; font-weight: 400; font-size: 15px; overflow-x: hidden;
}
::selection { background: var(--accent-soft); color: var(--accent); }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(250,250,250,0.88); backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.nav.scrolled { border-bottom-color: var(--border-light); }
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 2rem;
  height: 60px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-size: 1.2rem; font-weight: 800; letter-spacing: 0.06em; color: var(--text);
}
.nav-links { display: flex; align-items: center; gap: 0.5rem; }
.nav-links a {
  font-size: 0.85rem; font-weight: 500; color: var(--text-sub);
  padding: 6px 14px; border-radius: 8px; transition: all 0.2s;
}
.nav-links a:hover { background: rgba(0,0,0,0.04); color: var(--text); }
.nav-cta {
  background: var(--text) !important; color: var(--bg) !important;
  padding: 7px 18px !important; border-radius: 8px !important; font-weight: 500 !important;
  transition: opacity 0.2s !important;
}
.nav-cta:hover { opacity: 0.85 !important; }
.nav-menu-btn {
  display: none; width: 36px; height: 36px; background: none; border: none;
  cursor: pointer; border-radius: 8px; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px; transition: background 0.2s;
}
.nav-menu-btn:hover { background: rgba(0,0,0,0.04); }
.nav-menu-btn span {
  display: block; width: 20px; height: 1.5px; background: var(--text);
  transition: all 0.3s var(--ease);
}
.nav-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.nav-menu-btn.active span:nth-child(2) { opacity: 0; }
.nav-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

@media (max-width: 768px) {
  .nav-inner { padding: 0 1.25rem; }
  .nav-menu-btn { display: flex; }
  .nav-links {
    position: fixed; top: 60px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border-light);
    flex-direction: column; padding: 1rem 1.25rem;
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(-20px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    z-index: 999;
  }
  .nav-links.open {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateY(0);
  }
  .nav-links a { width: 100%; padding: 10px 14px; }
}

/* ── Footer ── */
.footer {
  background: var(--bg); border-top: 1px solid var(--border-light); padding: 2.5rem 2rem;
}
.footer-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-logo { font-size: 1rem; font-weight: 800; letter-spacing: 0.06em; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.78rem; color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 0.72rem; color: var(--text-muted); }
@media (max-width: 768px) {
  .footer-inner { flex-direction: column; gap: 1.25rem; text-align: center; }
}

/* ── Reveal ── */
.rv {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.rv.vis { opacity: 1; transform: translateY(0); }
.rv-d1 { transition-delay: 0.06s; }
.rv-d2 { transition-delay: 0.12s; }
.rv-d3 { transition-delay: 0.18s; }
.rv-d4 { transition-delay: 0.24s; }
.rv-d5 { transition-delay: 0.30s; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-size: 0.88rem; font-weight: 600;
  padding: 10px 22px; border-radius: 10px; border: none; cursor: pointer;
  transition: all 0.25s var(--ease);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text-sub); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }
.btn svg { width: 16px; height: 16px; }

/* ── Section ── */
.section { padding: 6rem 2rem; }
@media (max-width: 768px) { .section { padding: 4rem 1.25rem; } }
.sec-inner { max-width: 1120px; margin: 0 auto; }
.sec-header { margin-bottom: 3rem; }
.sec-label {
  font-size: 0.75rem; font-weight: 600; color: var(--accent);
  letter-spacing: 0.04em; margin-bottom: 0.5rem;
}
.sec-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700;
  line-height: 1.35; letter-spacing: -0.02em;
}
.sec-desc { font-size: 0.92rem; color: var(--text-sub); margin-top: 0.6rem; max-width: 520px; }

/* ── Page header (for subpages) ── */
.page-hero {
  padding: 8rem 2rem 3rem;
  background: var(--bg);
}
.page-hero-inner {
  max-width: 1120px; margin: 0 auto;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.3;
}
.page-hero p {
  font-size: 0.92rem; color: var(--text-sub); margin-top: 0.6rem;
}

/* ── Shared nav JS ── */