/* =========================================================
   next-k corporate site
   ========================================================= */

:root {
  --color-primary: #0A2540;
  --color-primary-dark: #061a30;
  --color-accent: #1f6feb;
  --color-accent-dark: #1a5fcc;
  --color-text: #0A2540;
  --color-text-muted: #4F5B66;
  --color-text-soft: #6B7785;
  --color-bg: #ffffff;
  --color-surface: #F7F9FC;
  --color-surface-2: #EEF2F7;
  --color-border: #E2E8F0;
  --color-border-strong: #CBD5E1;
  --color-success: #16a34a;
  --color-warning: #d97706;

  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, -apple-system, sans-serif;
  --font-en: "Inter", "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.04), 0 1px 3px rgba(10, 37, 64, 0.06);
  --shadow-md: 0 4px 12px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 12px 32px rgba(10, 37, 64, 0.12);

  --container: 1180px;
  --container-narrow: 880px;
}

/* Reset */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 16px;
  line-height: 1.75;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--color-accent-dark); }
ul, ol { margin: 0; padding-left: 1.4em; }
h1, h2, h3, h4 { color: var(--color-primary); line-height: 1.4; font-weight: 700; }

/* Layout helpers */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--surface { background: var(--color-surface); }
.section--dark { background: var(--color-primary); color: #fff; }
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.3;
  margin: 0 0 16px;
  letter-spacing: .01em;
}
.section-lead {
  font-size: 16px;
  color: var(--color-text-muted);
  max-width: 720px;
  margin: 0 0 56px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: .04em;
}
.brand:hover { color: var(--color-primary); }
.brand__mark {
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: var(--color-primary);
  color: #fff;
  border-radius: 8px;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -.02em;
}
.brand__name { font-family: var(--font-en); font-size: 18px; }

.site-nav { display: flex; gap: 28px; align-items: center; }
.site-nav a {
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
}
.site-nav a:hover { color: var(--color-accent); }
.site-nav .btn { margin-left: 8px; }

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn--primary {
  background: var(--color-primary);
  color: #fff;
}
.btn--primary:hover {
  background: #11355c;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border-strong);
}
.btn--ghost:hover {
  background: var(--color-surface);
  color: var(--color-primary);
}
.btn--accent {
  background: var(--color-accent);
  color: #fff;
}
.btn--accent:hover {
  background: var(--color-accent-dark);
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  padding: 120px 0 96px;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(31, 111, 235, .14), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(10, 37, 64, .08), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--color-surface) 100%);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
  align-items: center;
}
.hero__title {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.25;
  letter-spacing: .005em;
  margin: 0 0 24px;
  color: var(--color-primary);
}
.hero__title em {
  font-style: normal;
  color: var(--color-accent);
  background: linear-gradient(180deg, transparent 60%, rgba(31, 111, 235, .12) 60%);
  padding: 0 .1em;
}
.hero__lead {
  font-size: 17px;
  color: var(--color-text-muted);
  margin: 0 0 32px;
  max-width: 560px;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__panel {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px;
}
.hero__panel-title {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero__panel-title::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, .15);
}
.hero__metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px 0 20px;
}
.hero__metric {
  padding: 14px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
.hero__metric-label {
  font-size: 11px;
  color: var(--color-text-soft);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.hero__metric-value {
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
}
.hero__metric-value small { font-size: 13px; color: var(--color-text-muted); font-weight: 500; margin-left: 4px; }
.hero__chart {
  height: 80px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(31, 111, 235, .14), rgba(31, 111, 235, 0));
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.hero__chart svg { width: 100%; height: 100%; display: block; }

.hero__service {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-top: 1px solid var(--color-border);
}
.hero__service:first-of-type { border-top: 0; padding-top: 0; }
.hero__service:last-of-type { padding-bottom: 0; }
.hero__service-num {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: .04em;
  padding-top: 2px;
}
.hero__service-name {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
}
.hero__service-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* Services grid */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  border-color: var(--color-border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card__icon {
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  color: var(--color-accent);
}
.card__icon svg { width: 24px; height: 24px; }
.card__title { font-size: 20px; margin: 0 0 8px; }
.card__lead { color: var(--color-text-muted); margin: 0 0 16px; font-size: 15px; }
.card__list { list-style: none; padding: 0; margin: 0; }
.card__list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 11px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* Feature highlight */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature__visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-primary);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.feature__visual::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(500px 280px at 20% 80%, rgba(31, 111, 235, .35), transparent 60%),
    radial-gradient(400px 200px at 90% 20%, rgba(255, 255, 255, .12), transparent 60%);
}
.feature__visual-content {
  position: relative;
  text-align: left;
  padding: 32px;
  width: 100%;
}
.feature__visual h4 {
  color: #fff;
  font-size: 22px;
  margin: 0 0 16px;
}
.feature__bars { display: grid; gap: 10px; }
.feature__bar {
  display: grid;
  grid-template-columns: 100px 1fr 60px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, .85);
}
.feature__bar-track {
  height: 6px;
  background: rgba(255, 255, 255, .12);
  border-radius: 999px;
  overflow: hidden;
}
.feature__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #4d8eff, #1f6feb);
}
.feature__bar-value {
  font-family: var(--font-en);
  text-align: right;
  color: #fff;
  font-weight: 600;
}

.feature__title { font-size: clamp(24px, 2.6vw, 32px); margin: 0 0 16px; }
.feature__list { list-style: none; padding: 0; margin: 24px 0 0; }
.feature__list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--color-text-muted);
  font-size: 15px;
}
.feature__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 16px; height: 8px;
  border-left: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  transform: rotate(-45deg);
}

/* Tables / info */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.info-table th,
.info-table td {
  padding: 18px 24px;
  text-align: left;
  vertical-align: top;
  font-size: 15px;
  border-bottom: 1px solid var(--color-border);
}
.info-table th {
  width: 220px;
  background: var(--color-surface);
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: .03em;
}
.info-table tr:last-child th,
.info-table tr:last-child td { border-bottom: 0; }

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, #122e54 100%);
  border-radius: var(--radius-lg);
  padding: 64px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(400px 220px at 20% 20%, rgba(31, 111, 235, .35), transparent 60%),
    radial-gradient(400px 220px at 80% 80%, rgba(31, 111, 235, .25), transparent 60%);
}
.cta__inner { position: relative; }
.cta__title { color: #fff; font-size: clamp(24px, 3vw, 34px); margin: 0 0 12px; }
.cta__lead { color: rgba(255, 255, 255, .82); margin: 0 0 28px; }

/* Footer */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, .76);
  padding: 64px 0 32px;
  font-size: 14px;
}
.site-footer a { color: rgba(255, 255, 255, .85); }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .brand { color: #fff; }
.footer-brand .brand:hover { color: #fff; }
.footer-brand p { color: rgba(255, 255, 255, .65); margin: 16px 0 0; max-width: 320px; }
.footer-col h5 {
  color: #fff;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 16px;
  font-family: var(--font-en);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, .55);
  font-size: 12px;
  letter-spacing: .03em;
}

/* Generic page (legal/about) */
.page-header {
  padding: 96px 0 48px;
  background:
    radial-gradient(800px 300px at 80% 0%, rgba(31, 111, 235, .1), transparent 60%),
    linear-gradient(180deg, var(--color-surface) 0%, #fff 100%);
  border-bottom: 1px solid var(--color-border);
}
.page-header h1 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin: 8px 0 12px;
}
.page-header p { color: var(--color-text-muted); margin: 0; }

.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--color-text);
}
.prose h2 {
  font-size: 22px;
  margin: 48px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}
.prose h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.prose h3 { font-size: 17px; margin: 32px 0 12px; }
.prose p { margin: 0 0 16px; color: var(--color-text-muted); }
.prose ul, .prose ol { margin: 0 0 16px; color: var(--color-text-muted); }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--color-primary); }
.prose a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }

/* Two-column legal */
.legal-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 32px;
}
.legal-meta dt { font-size: 12px; color: var(--color-text-soft); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 4px; }
.legal-meta dd { margin: 0; font-size: 15px; color: var(--color-primary); font-weight: 600; }

/* Contact specifics */
.contact-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  background: #fff;
}
.contact-card h3 { margin-top: 0; }
.contact-card .email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-accent);
}

/* Responsive */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .feature { grid-template-columns: 1fr; gap: 40px; }
  .cards,
  .cards--3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section { padding: 72px 0; }
  .cta { padding: 40px 24px; }
}

@media (max-width: 640px) {
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav.is-open {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 20px;
    gap: 12px;
  }
  .site-nav.is-open .btn { margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .hero { padding: 80px 0 64px; }
  .info-table th { width: 130px; padding: 14px 16px; font-size: 13px; }
  .info-table td { padding: 14px 16px; }
  .legal-meta { grid-template-columns: 1fr; }
}
