/* ==========================================================================
   Executive Consulting — Shared Stylesheet
   ========================================================================== */

:root {
  --bg: oklch(98.8% 0.003 240);
  --bg-alt: oklch(97% 0.005 240);
  --surface: #ffffff;
  --border: oklch(92% 0.006 240);
  --border-strong: oklch(85% 0.01 240);
  --text: #0A1A3D;
  --text-muted: oklch(45% 0.03 260);
  --text-faint: oklch(60% 0.02 260);
  --brand-navy: #0A1A3D;
  --brand-blue: #0EA5FF;
  --brand-gradient: linear-gradient(135deg, #0A1A3D 0%, #0EA5FF 100%);
  --accent: #0EA5FF;
  --accent-hover: #0A1A3D;
  --accent-soft: oklch(96% 0.04 235);
  --accent-fg: #ffffff;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow: 0 4px 14px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 20px 50px rgba(16, 24, 40, 0.10);

  --container: 1200px;
  --header-h: 80px;

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

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ================ Header ================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.site-header .inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-shrink: 0;
}
.brand-logo {
  height: 40px;
  width: auto;
  max-height: 40px;
  display: block;
  object-fit: contain;
}
.site-header .brand-logo { height: 40px; max-height: 40px; }
.footer-brand .brand-logo { height: 48px; max-height: 48px; }
.brand-logo-dark { filter: brightness(0) invert(1); }
.brand-mark {
  width: 48px;
  height: 36px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-mark svg,
.brand-mark img { width: 100%; height: 100%; display: block; object-fit: contain; }
.brand-name {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--brand-navy);
  white-space: nowrap;
}
.brand-name small {
  display: block;
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: 10.5px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-top: 2px;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s;
  position: relative;
  padding: 6px 0;
}
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--text); }
.nav a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-jp);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand-gradient);
  color: var(--accent-fg);
  background-size: 150% 150%;
  background-position: 0% 0%;
}
.btn-primary:hover {
  background-position: 100% 100%;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(14, 165, 255, 0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--bg-alt);
  border-color: var(--text-muted);
}
.btn-lg { padding: 16px 28px; font-size: 15px; }
.btn .arrow { transition: transform 0.18s; }
.btn:hover .arrow { transform: translateX(3px); }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-strong);
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
}
.menu-toggle span {
  width: 18px;
  height: 1.5px;
  background: var(--text);
  display: block;
}

/* ================ Hero ================ */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: var(--text);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.75) 35%,
    rgba(255, 255, 255, 0.1) 65%,
    rgba(255, 255, 255, 0) 100%);
}
.hero-network {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
}
.hero .container { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 80px; }
.hero-eyebrow {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.15em;
  margin-bottom: 24px;
  display: inline-block;
}
.hero-title {
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
  max-width: 640px;
  text-wrap: pretty;
}
.hero-lead {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 0 40px;
  line-height: 1.9;
  max-width: 480px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Page header (sub-pages) */
.page-hero {
  position: relative;
  padding: 100px 0 80px;
  background: linear-gradient(135deg, oklch(96% 0.02 250) 0%, oklch(98% 0.008 250) 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(29, 95, 217, 0.08), transparent 70%);
  z-index: 0;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.18em;
  margin-bottom: 16px;
  display: block;
}
.page-hero h1 {
  font-size: clamp(32px, 4.5vw, 46px);
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.page-hero p {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
  max-width: 640px;
}
.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 28px;
  font-family: var(--font-en);
  letter-spacing: 0.04em;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: 0.5; }

/* ================ Section common ================ */
.section { padding: 120px 0; }
.section-sm { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { margin-bottom: 64px; }
.section-head .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
}
.eyebrow {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.18em;
  margin-bottom: 16px;
  display: block;
}
.section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}
.section-lead {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.9;
  margin: 0;
}

/* ================ Service cards ================ */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--brand-navy);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.service-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 0;
}
.service-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  flex: 1;
}
.service-link {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: gap 0.2s;
}
.service-card:hover .service-link { gap: 12px; }

/* ================ Philosophy / stats ================ */
.philosophy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.philosophy-visual {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, oklch(96% 0.02 235), oklch(88% 0.06 235));
  position: relative;
  overflow: hidden;
}
.philosophy-visual svg { width: 100%; height: 100%; display: block; }
.philosophy-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 20px;
}
.philosophy-list li {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s;
}
.philosophy-list li:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.philosophy-list .num {
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  width: 36px;
}
.philosophy-list h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
}
.philosophy-list p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat {
  padding: 32px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  text-align: left;
}
.stat-value {
  font-family: var(--font-en);
  font-size: 44px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-value sub {
  font-size: 18px;
  font-weight: 500;
  vertical-align: baseline;
  margin-left: 2px;
  color: var(--text-muted);
}
.stat-label {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ================ Process ================ */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-step {
  padding: 32px 24px;
  border-left: 1px solid var(--border);
  position: relative;
}
.process-step:first-child { border-left: none; }
.process-num {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.process-step h4 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 12px;
}
.process-step p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ================ CTA band ================ */
.cta-band {
  background: var(--brand-gradient);
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.12), transparent 60%);
}
.cta-band .container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.cta-band h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.4;
}
.cta-band p {
  margin: 0;
  opacity: 0.85;
  font-size: 14.5px;
}
.cta-band .btn-primary {
  background: #fff;
  color: var(--brand-navy);
}
.cta-band .btn-primary:hover {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* ================ Footer ================ */
.site-footer {
  background: var(--brand-navy);
  color: oklch(80% 0.03 240);
  padding: 72px 0 32px;
  font-size: 13px;
}
.site-footer a { transition: color 0.15s; }
.site-footer a:hover { color: #fff; }
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid oklch(25% 0.015 250);
}
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-name small { color: oklch(70% 0.03 240); }
.footer-brand .brand-mark img { filter: brightness(0) invert(1); }
.footer-brand p {
  margin: 20px 0 0;
  line-height: 1.9;
  color: oklch(70% 0.01 250);
  font-size: 13px;
}
.footer-col h5 {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin: 0 0 18px;
  font-family: var(--font-en);
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: oklch(60% 0.01 250);
}

/* ================ Article / legal ================ */
.prose {
  max-width: 820px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.95;
  color: var(--text);
}
.prose h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 56px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.prose h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 32px 0 12px;
}
.prose p { margin: 0 0 18px; color: var(--text-muted); }
.prose ul, .prose ol { padding-left: 20px; color: var(--text-muted); }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); font-weight: 600; }

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.info-table th, .info-table td {
  padding: 20px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }
.info-table th {
  background: var(--bg-alt);
  font-weight: 600;
  width: 30%;
  vertical-align: top;
  color: var(--text);
}
.info-table td { color: var(--text-muted); vertical-align: top; }

/* ================ Forms ================ */
.form-grid {
  display: grid;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
.field label .req {
  color: var(--accent);
  margin-left: 4px;
  font-size: 11px;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
  color: var(--text);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(29, 95, 217, 0.12);
}
.field textarea { resize: vertical; min-height: 140px; }
.field .help { font-size: 12px; color: var(--text-faint); margin-top: 6px; }
.field.error input, .field.error textarea { border-color: #d92d20; }
.field .err-msg { font-size: 12px; color: #d92d20; margin-top: 6px; display: none; }
.field.error .err-msg { display: block; }

.form-submit { display: flex; justify-content: center; margin-top: 16px; }
.form-success {
  display: none;
  background: oklch(95% 0.04 150);
  border: 1px solid oklch(75% 0.1 150);
  color: oklch(30% 0.1 150);
  padding: 20px 24px;
  border-radius: var(--radius);
  text-align: center;
  font-size: 14px;
}
.form-success.show { display: block; }

/* ================ About visual block ================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.message-card {
  padding: 48px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.message-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 20px;
  line-height: 1.5;
}
.message-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.95;
  margin: 0 0 16px;
}
.message-signature {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-faint);
}
.message-signature strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  margin-top: 4px;
}

/* ================ Reveal animation ================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ================ Responsive ================ */
@media (max-width: 960px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .nav.open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav.open a { padding: 12px 0; width: 100%; }
  .header-cta { display: none; }

  .section { padding: 80px 0; }
  .section-head .row { grid-template-columns: 1fr; gap: 24px; }
  .services, .stats { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .process-step:nth-child(3) { border-left: none; }
  .philosophy, .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .cta-band .container { grid-template-columns: 1fr; text-align: left; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .site-header .inner { padding: 0 20px; }
  .services, .stats, .process { grid-template-columns: 1fr; }
  .process-step { border-left: none; border-top: 1px solid var(--border); padding: 24px 0; }
  .process-step:first-child { border-top: none; padding-top: 0; }
  .hero { min-height: 560px; }
  .message-card { padding: 32px 24px; }
  .footer-top { grid-template-columns: 1fr; }
}
