/* =========================================================
   Shannon LLC — shared stylesheet
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --bg-muted: #f5f6f8;
  --ink: #111318;
  --ink-2: #1a1d23;
  --ink-3: #2e323a;
  --muted: #555a63;
  --muted-2: #6b7280;
  --line: #e7e8ec;
  --line-2: #eff0f3;

  --cyan: #00D4E4;
  --blue: #5B6CFF;
  --magenta: #FF3D9A;

  --grad: linear-gradient(90deg, #00D4E4 0%, #5B6CFF 50%, #FF3D9A 100%);
  --grad-soft: linear-gradient(90deg, rgba(0,212,228,.12) 0%, rgba(91,108,255,.12) 50%, rgba(255,61,154,.12) 100%);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --shadow-sm: 0 1px 2px rgba(17,19,24,.04), 0 1px 1px rgba(17,19,24,.02);
  --shadow: 0 4px 24px rgba(17,19,24,.06);
  --shadow-lg: 0 24px 60px -20px rgba(17,19,24,.18);

  --max: 1200px;
  --pad: clamp(20px, 4vw, 40px);

  --font-ui: 'Inter', 'Noto Sans JP', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-jp: 'Noto Sans JP', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-jp);
  font-weight: 450;
  color: var(--ink-2);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "palt" 1;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

::selection { background: rgba(255, 61, 154, .18); }

/* ----------------- Layout ----------------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ----------------- Sections ----------------- */
.section {
  padding: clamp(72px, 10vw, 128px) 0;
  position: relative;
}
.section--tight { padding: clamp(56px, 8vw, 96px) 0; }
.section--alt { background: var(--bg-alt); }

/* ===================================================================
   CONTACT CTA (full-width dark band)
   Renders as a full-viewport band even when nested in a .container.
   =================================================================== */
.contact-cta {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: clamp(56px, 9vw, 96px) clamp(24px, 6vw, 80px);
  background:
    radial-gradient(60% 120% at 15% 0%, rgba(0,212,228,.22), transparent 60%),
    radial-gradient(50% 100% at 100% 100%, rgba(255,61,154,.18), transparent 55%),
    linear-gradient(135deg, #0E1230 0%, #181A3A 55%, #1E1438 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.contact-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px;
  mask-image: radial-gradient(80% 100% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(80% 100% at 50% 50%, #000 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}
.contact-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.contact-cta__inner--single {
  grid-template-columns: 1fr;
  max-width: 720px;
  text-align: center;
}
.contact-cta__inner--single > div { display: flex; flex-direction: column; align-items: center; }
.contact-cta__inner--single p { margin-inline: auto; }
.contact-cta__inner--single .contact-cta__btns { justify-content: center; }
.contact-cta h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 0 0 16px;
  color: #fff;
  text-wrap: balance;
}
.contact-cta p {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255,255,255,.7);
  margin: 0 0 28px;
  max-width: 540px;
}
.contact-cta__btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.contact-cta__side {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.contact-cta__side .k {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 6px;
}
.contact-cta__side .v {
  font-size: 15px;
  color: #fff;
  font-weight: 500;
  word-break: break-all;
}
@media (max-width: 820px) {
  .contact-cta__inner { grid-template-columns: 1fr; }
}

/* The CTA always sits inside a .container — neutralize the horizontal pad
   so the band reaches edge-to-edge. The section wrapping it keeps its
   vertical rhythm. */
.section--tight > .container:has(> .contact-cta:only-child) {
  padding-left: 0;
  padding-right: 0;
  max-width: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--ink-2);
  display: inline-block;
}
.eyebrow--grad::before {
  background: var(--grad);
  height: 2px;
}

.section-title {
  font-family: var(--font-jp);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.3;
  letter-spacing: -.01em;
  margin: 0 0 20px;
  color: var(--ink);
  text-wrap: balance;
}
.section-lead {
  color: var(--muted);
  font-size: 16px;
  max-width: 640px;
  margin: 0 0 56px;
  text-wrap: pretty;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ----------------- Header (flat at top → floating pill on scroll) ----------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0;
  pointer-events: none;
  transition: top .3s ease, padding .3s ease;
}
.site-header .container {
  pointer-events: auto;
  max-width: none;
  margin: 0;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid transparent;
  border-bottom: 1px solid rgba(17,19,24,.05);
  border-radius: 0;
  box-shadow: none;
  padding: 0 32px;
  transition:
    max-width .35s cubic-bezier(.4,0,.2,1),
    margin .35s cubic-bezier(.4,0,.2,1),
    padding .35s cubic-bezier(.4,0,.2,1),
    border-radius .35s cubic-bezier(.4,0,.2,1),
    background .25s ease,
    box-shadow .35s ease,
    border-color .35s ease;
}
/* On scroll, collapse into floating pill */
.site-header.is-scrolled {
  top: 16px;
  padding: 0 20px;
}
.site-header.is-scrolled .container {
  max-width: 1160px;
  margin: 0 auto;
  background: rgba(255,255,255,.9);
  border-color: rgba(17,19,24,.06);
  border-bottom-color: rgba(17,19,24,.06);
  border-radius: 999px;
  padding: 0 8px 0 24px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.7) inset,
    0 14px 32px -14px rgba(17,19,24,.2),
    0 4px 12px -6px rgba(17,19,24,.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 112px;
  gap: 24px;
}
@media (max-width: 720px) {
  .nav { height: 64px; gap: 12px; }
  /* Disable the floating pill on mobile — keep the header flat
     and full-width whether scrolled or not. */
  .site-header.is-scrolled { top: 0; padding: 0; }
  .site-header.is-scrolled .container {
    max-width: none;
    margin: 0;
    border-radius: 0;
    padding: 0 16px;
    box-shadow: none;
    background: rgba(255,255,255,.92);
  }
  .site-header .container { padding: 0 16px; }
}
/* Make the left (brand) and right (cta) columns symmetrical
   so the centered nav stays visually centered. */
.nav > .brand,
.nav > .nav__cta {
  flex: 1 1 0;
  min-width: 0;
}
.nav > .brand { justify-content: flex-start; }
.nav > .nav__cta { justify-content: flex-end; display: flex; padding-right: 48px; }
.nav > nav {
  flex: 0 1 auto;
  display: flex;
  justify-content: center;
}
.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: var(--font-ui);
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
  padding: 2px 6px;
}
.brand__mark {
  /* Transparent PNG of the official logo (wordmark included). 3:2 aspect.
     Lines are now thicker / higher contrast, so it can sit at a moderate height
     and still read clearly. */
  width: auto;
  height: 96px;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
}
/* Footer logo: prominent brand mark. */
.site-footer .brand__mark { height: 220px; }
.brand__word {
  display: inline-flex;
  font-family: 'Outfit', 'Inter', system-ui, sans-serif;
  font-weight: 200;
  font-size: 13px;
  letter-spacing: .42em;
  text-indent: .42em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0; padding: 0;
  font-family: var(--font-ui);
  color: var(--ink);
  white-space: nowrap;
}
.nav__item { position: relative; }
.nav__link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--ink);
  font-family: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  line-height: 1.1;
  transition: color .15s ease, background .15s ease;
  position: relative;
}
.nav__link-en {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.005em;
}
.nav__link-ja {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .05em;
  transition: color .15s ease;
}
.nav__chev {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  opacity: .5;
  transition: transform .2s ease, opacity .15s ease;
}
.nav__item--has-sub .nav__link { padding-right: 22px; }

/* Right-to-left underline sweep on hover */
.nav__link::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
}
.nav__item--has-sub .nav__link::before { right: 22px; }
.nav__link:hover::before,
.nav__link:focus-visible::before,
.nav__item.is-open > .nav__link::before {
  transform: scaleX(1);
  transform-origin: left center; /* sweep: enters right→left, exits left→right */
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--ink);
  outline: none;
}
.nav__link:hover .nav__link-ja { color: var(--ink-3); }
.nav__item.is-open > .nav__link,
.nav__item.is-open > .nav__link .nav__chev { opacity: 1; }
.nav__item.is-open .nav__chev { transform: translateY(-50%) rotate(180deg); }

.nav__item.is-active > .nav__link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
  opacity: .35;
}
.nav__item--has-sub.is-active > .nav__link::after { right: 22px; }

/* ----- Dropdown submenu ----- */
.nav-sub {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 6px);
  min-width: 280px;
  padding-top: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 60;
}
.nav-sub--grid { min-width: 640px; }
.nav__item.is-open > .nav-sub {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.nav-sub__inner {
  background: #fff;
  border: 1px solid rgba(17,19,24,.08);
  border-radius: 14px;
  padding: 8px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 20px 40px -20px rgba(17,19,24,.25),
    0 8px 16px -8px rgba(17,19,24,.12);
  display: grid;
  gap: 2px;
}
.nav-sub--grid .nav-sub__inner {
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  padding: 12px;
}
.nav-sub--grid .nav-sub__item {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 2px;
  padding: 10px 12px;
}
.nav-sub--grid .nav-sub__label {
  font-size: 13px;
}
.nav-sub--grid .nav-sub__ja {
  font-size: 11px;
}
.nav-sub--grid .nav-sub__desc {
  display: none;
}
.nav-sub__item {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: baseline;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--ink);
  transition: background .15s ease;
}
.nav-sub__item:hover { background: var(--bg-alt); }
.nav-sub__item.is-active { background: rgba(91,108,255,.06); }
.nav-sub__label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.005em;
  color: var(--ink);
}
.nav-sub__ja {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
}
.nav-sub__desc {
  grid-column: 1 / -1;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 2px;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.menu-btn {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 8px;
}
.menu-btn:hover { background: var(--bg-muted); }
.menu-btn span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--ink);
  position: relative;
}
.menu-btn span::before,
.menu-btn span::after {
  content: ""; position: absolute; left: 0;
  width: 18px; height: 1.5px;
  background: var(--ink);
}
.menu-btn span::before { top: -6px; }
.menu-btn span::after  { top:  6px; }

/* ----------------- Buttons ----------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn--primary {
  color: #fff;
  font-weight: 600;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .12);
  background: var(--grad);
  background-size: 180% 100%;
  background-position: 30% 50%;
  box-shadow: 0 8px 24px -8px rgba(255, 61, 154, .35), 0 4px 10px -4px rgba(91, 108, 255, .25);
}
.btn--primary:hover { background-position: 100% 50%; transform: translateY(-1px); }
.btn--ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: #fff;
}
.btn--ghost:hover {
  border-color: rgba(17,19,24,.18);
  background: var(--bg-alt, #f7f7f8);
}
.btn--sm { height: 38px; padding: 0 16px; font-size: 13px; }
.btn--lg { height: 56px; padding: 0 28px; font-size: 15px; }

.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ----------------- Back-to-top button ----------------- */
.back-to-top {
  position: fixed;
  right: 32px;
  bottom: 32px;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, border-color .2s ease, background .2s ease, color .2s ease;
  box-shadow: 0 12px 32px -12px rgba(17,19,24,.2);
  z-index: 60;
}
.back-to-top svg { width: 22px; height: 22px; }
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  border-color: transparent;
  color: #fff;
  background: var(--grad);
}
@media (max-width: 640px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
  .back-to-top svg { width: 20px; height: 20px; }
}

/* ----------------- Legal documents (privacy / security / ai-policy) ----------------- */
.legal-doc {
  max-width: 760px;
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink-2);
}
.legal-doc > p,
.legal-doc > ul,
.legal-doc > ol {
  margin: 0 0 18px;
}
.legal-doc h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 36px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.legal-doc ul,
.legal-doc ol {
  padding-left: 1.4em;
}
.legal-doc li {
  margin-bottom: 6px;
}
.legal-doc__meta {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
  text-align: right;
}

/* text link with arrow */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--ink);
  transition: gap .2s ease, opacity .2s;
}
.tlink:hover { gap: 12px; }
.tlink--grad {
  border-bottom-color: transparent;
  background-image: var(--grad);
  background-size: 100% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
}

/* ----------------- Generic card ----------------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #dadce2;
}

/* ----------------- Footer ----------------- */
.site-footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--bg-alt, #f5f6f8);
  color: var(--ink-3);
  font-family: var(--font-ui);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 56px;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
.footer-col ul {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  gap: 10px;
  font-size: 14px;
}
.footer-col a:hover { color: var(--ink); }
.footer-intro p {
  font-size: 13px;
  color: var(--muted);
  max-width: 300px;
  line-height: 1.7;
  margin: 14px 0 0;
}
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }

/* ----------------- Floating mobile CTA ----------------- */
.float-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: none;
  box-shadow: 0 14px 32px -8px rgba(255, 61, 154, .45);
}

/* ----------------- Responsive ----------------- */
@media (max-width: 860px) {
  .nav__links,
  .nav__cta { display: none; }
  .menu-btn { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .float-cta { display: inline-flex; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ----------------- Mobile drawer ----------------- */
.drawer {
  position: fixed;
  inset: 0;
  background: rgba(17,19,24,.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 60;
}
.drawer.is-open { opacity: 1; pointer-events: auto; }
.drawer__panel {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: min(360px, 90vw);
  background: #fff;
  padding: 16px 24px 24px;
  transform: translateX(100%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__close {
  align-self: flex-end;
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px;
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  margin-bottom: 8px;
}
.drawer__nav {
  flex: 1 1 auto;
  font-family: var(--font-ui);
}
.drawer__section {
  padding: 14px 0;
}
.drawer__section:first-of-type { padding-top: 4px; }
.drawer__heading {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink);
  margin: 0 0 8px;
}
.drawer__sub {
  list-style: none;
  padding: 0;
  margin: 0;
}
.drawer__sub a {
  display: block;
  padding: 9px 0;
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
}
.drawer__top {
  list-style: none;
  padding: 14px 0 0;
  margin: 0;
}
.drawer__top a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.drawer__cta {
  flex: 0 0 auto;
  padding-top: 20px;
  margin-top: 20px;
}
.drawer__cta .btn { width: 100%; }

/* Hide the floating bottom-right CTA on mobile (drawer covers that need) */
@media (max-width: 720px) {
  .float-cta { display: none !important; }
}
