/* ============================================================
   DESIGN N — GLASS / glassmorphism · vivid gradient fintech
   Everything scoped under .N. Brand/accent colors ALWAYS via
   theme vars so the color switcher re-skins this design too.
   Glass = translucent white + blur + hairline + soft shadow.
   Grays / white / near-black (neutral text) are literal; all
   translucency is rgba(255,255,255,…) / color-mix over vars.
   ============================================================ */

.N {
  --n-radius: 22px;
  --n-glass-bg:   rgba(255, 255, 255, .62);
  --n-glass-line: rgba(255, 255, 255, .55);
  --n-glass-sh:   0 20px 50px rgba(13, 22, 38, .22);
  --n-glass-sh-sm:0 10px 26px rgba(13, 22, 38, .16);
  --n-head-bg:    rgba(255, 255, 255, .12);

  position: relative;
  isolation: isolate;
  color: var(--text);
  font-family: var(--sans-jp);
  /* vivid brand gradient — single-color-safe base first as fallback */
  background: var(--brand);
  background:
    linear-gradient(145deg, var(--brand) 0%, var(--brand-3) 48%, var(--accent) 100%);
}
/* shared LogoMark uses a stroke attribute — keep it white on the glass header */
.N .n-brand .logo-mark path, .N .n-brand .logo-mark circle { stroke: var(--on-brand); }

/* ---- background blobs (soft glowing orbs) ---- */
.N .n-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.N .n-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .8; }
.N .n-blob.b1 { width: 520px; height: 520px; top: -160px; left: -120px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-2) 78%, transparent), transparent 70%); }
.N .n-blob.b2 { width: 460px; height: 460px; top: 12%; right: -140px;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand-2) 85%, transparent), transparent 70%); opacity: .7; }
.N .n-blob.b3 { width: 600px; height: 600px; top: 46%; left: -180px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 60%, transparent), transparent 70%); opacity: .55; }
.N .n-blob.b4 { width: 480px; height: 480px; bottom: -160px; right: -100px;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand-3) 90%, transparent), transparent 70%); opacity: .65; }

/* every direct section sits above the blobs */
.N > .n-head, .N > section, .N > .ft { position: relative; z-index: 1; }

/* ---- reusable glass surface ---- */
.N .n-glass {
  background: var(--n-glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--n-glass-line);
  box-shadow: var(--n-glass-sh);
}

/* ---- glass header ---- */
.N .n-head {
  position: sticky; top: 0; z-index: 30;
  background: var(--n-head-bg);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.N .n-head-in {
  max-width: 1200px; margin: 0 auto; padding: 16px 32px;
  display: flex; align-items: center; gap: 26px;
}
.N .n-brand { display: flex; align-items: center; gap: 12px; }
.N .n-brand .name { font-family: var(--sans-jp); font-weight: 700; font-size: 19px; letter-spacing: .02em; line-height: 1.15; color: var(--on-brand); }
.N .n-brand .name small { display: block; font-family: var(--display); font-size: 9px; letter-spacing: .34em; color: rgba(255, 255, 255, .72); font-weight: 500; margin-top: 3px; }
.N .n-links { display: flex; gap: 28px; margin-left: 14px; }
.N .n-links a { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .88); letter-spacing: .02em; transition: color .2s; }
.N .n-links a:hover { color: var(--on-brand); }
.N .n-head-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.N .n-tel { display: flex; align-items: center; gap: 7px; color: var(--on-brand); font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: .02em; }
.N .n-cta-pill {
  background: rgba(255, 255, 255, .92); color: var(--brand);
  padding: 11px 22px; border-radius: 999px; font-size: 13.5px; font-weight: 700; letter-spacing: .03em;
  box-shadow: 0 8px 22px rgba(13, 22, 38, .2);
  transition: transform .25s, background .25s;
}
.N .n-cta-pill:hover { background: #fff; transform: translateY(-1px); }

/* ---- hero ---- */
.N .n-hero-in {
  max-width: 1200px; margin: 0 auto; padding: 70px 32px 96px;
  display: grid; grid-template-columns: 1.02fr .98fr; gap: 48px; align-items: center;
}
.N .n-hero-copy { border-radius: 28px; padding: 44px 44px 40px; }
.N .n-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .05em; color: var(--brand);
  background: color-mix(in srgb, var(--accent-soft) 70%, white); border: 1px solid rgba(255, 255, 255, .6);
  padding: 7px 15px; border-radius: 999px;
}
.N .n-eyebrow .n-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.N .n-hero h1 {
  font-family: var(--sans-jp); font-weight: 700; font-size: 44px; line-height: 1.42;
  letter-spacing: .01em; color: var(--brand-ink); margin-top: 22px;
}
.N .n-hero h1 .n-hl {
  background: linear-gradient(100deg, var(--brand-2), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.N .n-lead { margin-top: 22px; font-size: 15px; line-height: 2.02; color: var(--text-soft); max-width: 500px; }
.N .n-hero-btns { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 13px; }
.N .n-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 28px; border-radius: 999px; font-size: 15px; font-weight: 700; letter-spacing: .02em;
  transition: transform .25s, box-shadow .25s, background .25s;
}
.N .n-btn-fill { background: linear-gradient(120deg, var(--brand-2), var(--brand-3)); color: var(--on-brand); box-shadow: 0 14px 30px color-mix(in srgb, var(--brand) 40%, transparent); }
.N .n-btn-fill:hover { transform: translateY(-2px); box-shadow: 0 18px 38px color-mix(in srgb, var(--brand) 48%, transparent); }
.N .n-btn-ghost {
  background: rgba(255, 255, 255, .5); color: var(--brand);
  border: 1px solid rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.N .n-btn-ghost:hover { background: rgba(255, 255, 255, .78); transform: translateY(-2px); }
.N .n-hero-note { margin-top: 22px; font-size: 12.5px; color: var(--text-soft); letter-spacing: .03em; }

/* hero art + floating glass cards */
.N .n-hero-art { position: relative; }
.N .n-hero-frame {
  border-radius: 26px; padding: 10px; background: rgba(255, 255, 255, .28);
  border: 1px solid rgba(255, 255, 255, .5); box-shadow: var(--n-glass-sh);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.N .n-hero-frame .ph { width: 100%; height: 420px; border-radius: 18px; }
.N .n-float {
  position: absolute; border-radius: 18px; padding: 16px 20px;
  display: flex; flex-direction: column; box-shadow: var(--n-glass-sh);
}
.N .n-float-a { left: -26px; bottom: 40px; gap: 2px; }
.N .n-float-num { font-family: var(--display); font-weight: 600; font-size: 42px; line-height: 1; color: var(--brand); }
.N .n-float-num small { font-family: var(--sans-jp); font-size: 16px; font-weight: 700; margin-left: 3px; color: var(--brand-2); }
.N .n-float-lab { font-size: 12px; color: var(--text-soft); letter-spacing: .03em; }
.N .n-float-b { right: -18px; top: 32px; flex-direction: row; align-items: center; gap: 12px; padding: 14px 18px; }
.N .n-float-b .n-float-ic { color: var(--brand); display: grid; place-items: center; }
.N .n-float-b .n-float-ic svg { width: 26px; height: 26px; }
.N .n-float-lab2 { font-size: 13px; color: var(--text-soft); }
.N .n-float-lab2 b { font-family: var(--display); font-size: 22px; color: var(--brand); margin-left: 2px; }

/* ---- shared section head ---- */
.N .n-sec-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.N .n-kicker { display: block; font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: .28em; color: var(--accent-2); }
.N .n-sec-head h2 { font-family: var(--sans-jp); font-weight: 700; font-size: 30px; letter-spacing: .02em; color: var(--on-brand); margin-top: 8px; text-shadow: 0 2px 18px rgba(13, 22, 38, .28); }
.N .n-sec-head p { margin-top: 12px; font-size: 15px; line-height: 1.9; color: rgba(255, 255, 255, .82); }

/* ---- services ---- */
.N .n-serv { padding: 60px 32px; }
.N .n-serv-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.N .n-card {
  display: block; border-radius: var(--n-radius); padding: 38px 32px 32px;
  transition: transform .3s, box-shadow .3s, background .3s;
}
.N .n-card:hover { transform: translateY(-8px); background: rgba(255, 255, 255, .74); box-shadow: 0 26px 60px rgba(13, 22, 38, .3); }
.N .n-card-ic {
  width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; color: var(--brand);
  background: linear-gradient(150deg, rgba(255, 255, 255, .9), color-mix(in srgb, var(--accent-soft) 80%, white));
  border: 1px solid rgba(255, 255, 255, .8); box-shadow: inset 0 1px 6px rgba(255, 255, 255, .8);
}
.N .n-card h3 { font-family: var(--sans-jp); font-weight: 700; font-size: 20px; margin-top: 22px; color: var(--brand-ink); letter-spacing: .02em; }
.N .n-card-en { font-family: var(--display); font-size: 11.5px; font-weight: 600; letter-spacing: .16em; color: var(--accent); margin-top: 6px; }
.N .n-card p { margin-top: 15px; font-size: 14px; line-height: 1.95; color: var(--text-soft); }
.N .n-card-more { margin-top: 20px; display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; color: var(--brand); transition: gap .25s; }
.N .n-card:hover .n-card-more { gap: 11px; }

/* ---- why choose us ---- */
.N .n-why { padding: 26px 32px 66px; }
.N .n-why-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.N .n-why-card {
  border-radius: var(--n-radius); padding: 34px 30px 30px; position: relative; overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.N .n-why-card:hover { transform: translateY(-4px); box-shadow: 0 26px 56px rgba(13, 22, 38, .28); }
.N .n-why-num { font-family: var(--display); font-weight: 600; font-size: 44px; line-height: 1; color: var(--accent); }
.N .n-why-card h3 { font-family: var(--sans-jp); font-weight: 700; font-size: 18px; color: var(--brand-ink); margin-top: 12px; }
.N .n-why-card p { margin-top: 10px; font-size: 14px; line-height: 1.9; color: var(--text-soft); }

/* ---- news ---- */
.N .n-news { padding: 0 32px 66px; }
.N .n-news-panel { max-width: 1120px; margin: 0 auto; border-radius: 26px; padding: 40px 40px 28px; }
.N .n-news-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 12px; }
.N .n-news-head .n-kicker { color: var(--accent); }
.N .n-news-head h2 { font-family: var(--sans-jp); font-weight: 700; font-size: 24px; color: var(--brand-ink); margin-top: 4px; }
.N .n-news-all { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--brand); }
.N .n-news-row { display: flex; align-items: center; gap: 22px; padding: 18px 8px; border-top: 1px solid rgba(13, 22, 38, .1); transition: background .2s; border-radius: 10px; }
.N .n-news-row:hover { background: rgba(255, 255, 255, .5); }
.N .n-news-date { font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--text-soft); min-width: 92px; }
.N .n-news-cat { font-size: 11.5px; font-weight: 700; color: var(--brand); background: color-mix(in srgb, var(--accent-soft) 80%, white); border-radius: 999px; padding: 4px 13px; letter-spacing: .04em; }
.N .n-news-ttl { flex: 1; font-size: 14.5px; color: var(--text); }
.N .n-news-chev { color: var(--brand-line); transition: color .2s, transform .2s; }
.N .n-news-row:hover .n-news-chev { color: var(--brand); transform: translateX(4px); }

/* ---- contact ---- */
.N .n-contact { padding: 0 32px 80px; }
.N .n-contact-panel {
  max-width: 1120px; margin: 0 auto; border-radius: 28px; padding: 52px 52px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center;
}
.N .n-contact-copy .n-kicker { color: var(--accent); }
.N .n-contact-copy h2 { font-family: var(--sans-jp); font-weight: 700; font-size: 28px; line-height: 1.5; color: var(--brand-ink); margin-top: 8px; }
.N .n-contact-copy p { margin-top: 14px; font-size: 14.5px; line-height: 1.9; color: var(--text-soft); }
.N .n-contact-tel {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 14px;
  border-radius: 16px; padding: 16px 22px; box-shadow: var(--n-glass-sh-sm);
}
.N .n-contact-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--on-brand); background: linear-gradient(130deg, var(--brand-2), var(--brand-3)); flex: none; }
.N .n-contact-num { display: block; font-family: var(--display); font-weight: 600; font-size: 27px; color: var(--brand); letter-spacing: .02em; }
.N .n-contact-sub { display: block; font-size: 12px; color: var(--text-soft); letter-spacing: .03em; margin-top: 2px; }

.N .n-form { display: flex; flex-direction: column; gap: 14px; }
.N .n-field { display: flex; flex-direction: column; gap: 6px; }
.N .n-field span { font-size: 12.5px; font-weight: 700; color: var(--brand-ink); letter-spacing: .03em; }
.N .n-field input, .N .n-field textarea {
  font-family: var(--sans-jp); font-size: 14px; color: var(--text);
  background: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 12px; padding: 12px 15px; width: 100%; resize: vertical;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.N .n-field input::placeholder, .N .n-field textarea::placeholder { color: color-mix(in srgb, var(--text-soft) 70%, white); }
.N .n-field input:focus, .N .n-field textarea:focus {
  outline: none; background: rgba(255, 255, 255, .92);
  border-color: color-mix(in srgb, var(--brand) 45%, white);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent);
}
.N .n-form-btn { margin-top: 4px; width: 100%; }

/* ---- footer tint (shared .ft) sits over gradient cleanly ---- */
.N .ft { background: color-mix(in srgb, var(--brand-ink) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* ============================================================
   RESPONSIVE — 1280 baseline, ≤1000 stack, ≤720 mobile 1-col
   ============================================================ */
@media (max-width: 1000px) {
  .N .n-hero-in { grid-template-columns: 1fr; gap: 52px; padding: 60px 26px 84px; }
  .N .n-hero-frame .ph { height: 340px; }
  .N .n-serv-grid { grid-template-columns: 1fr; max-width: 540px; }
  .N .n-why-grid { grid-template-columns: 1fr; max-width: 540px; }
  .N .n-contact-panel { grid-template-columns: 1fr; gap: 32px; padding: 44px 40px; }
}

@media (max-width: 820px) {
  .N .n-links { display: none; }
}

@media (max-width: 720px) {
  /* lighter blur on mobile — gradient stays as solid-ish fallback */
  .N .n-glass, .N .n-head { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .N .n-blob { filter: blur(46px); }

  .N .n-head-in { padding: 12px 18px; gap: 14px; }
  .N .n-tel { display: none; }

  .N .n-hero-in { padding: 30px 16px 64px; gap: 60px; }
  .N .n-hero-copy { padding: 30px 24px 28px; border-radius: 22px; }
  .N .n-hero h1 { font-size: 30px; line-height: 1.5; }
  .N .n-lead { font-size: 14px; }
  .N .n-hero-btns { gap: 10px; }
  .N .n-btn { width: 100%; }
  .N .n-hero-frame .ph { height: 240px; }
  .N .n-float-a { left: 10px; bottom: -22px; padding: 13px 17px; }
  .N .n-float-num { font-size: 32px; }
  .N .n-float-b { right: 8px; top: -18px; padding: 11px 15px; }

  .N .n-serv { padding: 44px 16px; }
  .N .n-sec-head { margin-bottom: 32px; }
  .N .n-sec-head h2 { font-size: 25px; }
  .N .n-card { padding: 30px 24px 26px; }

  .N .n-why { padding: 12px 16px 48px; }

  .N .n-news { padding: 0 16px 48px; }
  .N .n-news-panel { padding: 28px 20px 18px; border-radius: 20px; }
  .N .n-news-head { flex-wrap: wrap; gap: 8px; }
  .N .n-news-row { flex-wrap: wrap; gap: 8px 14px; padding: 16px 4px; }
  .N .n-news-date { min-width: 0; font-size: 14px; }
  .N .n-news-ttl { flex: 1 1 100%; font-size: 14px; }
  .N .n-news-chev { display: none; }

  .N .n-contact { padding: 0 16px 56px; }
  .N .n-contact-panel { padding: 34px 22px; border-radius: 22px; }
  .N .n-contact-copy h2 { font-size: 24px; }
}

@media (max-width: 400px) {
  .N .n-brand .name { font-size: 17px; }
  .N .n-hero h1 { font-size: 26px; }
  .N .n-float-num { font-size: 28px; }
  .N .n-contact-num { font-size: 23px; }
}
