/* =========================================================
   Corelytics Solutions — corporate site
   Palette: #FFFFFF / #1A1A1A / #D42B2B (vermilion)
   Mobile-first
   ========================================================= */

:root {
  --ink: #1A1A1A;
  --paper: #FFFFFF;
  --accent: #D42B2B;
  --gray: #555555;
  --gray-light: #E8E6E3;
  --bg-tint: #FAF9F7;
  --max-width: 1080px;
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }
a { color: inherit; }

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

.pc-only { display: none; }
@media (min-width: 768px) { .pc-only { display: inline; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-light);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  font-size: 17px;
  border-radius: 4px;
  flex-shrink: 0;
}

.global-nav {
  display: none;
  align-items: center;
  gap: 28px;
}

.global-nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.global-nav a:hover { color: var(--accent); }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 3px;
  font-weight: 700 !important;
}
.nav-cta:hover { opacity: 0.85; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 768px) {
  .global-nav { display: flex; }
  .nav-toggle { display: none; }
}

/* mobile nav open state */
@media (max-width: 767px) {
  .global-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--gray-light);
    padding: 20px 24px 28px;
    gap: 20px;
    align-items: flex-start;
  }
  .global-nav.open .nav-cta { align-self: stretch; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 88px;
  border-bottom: 1px solid var(--gray-light);
}

.hero-eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(38px, 9vw, 72px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.01em;
  margin-bottom: 28px;
}

.hero-lead {
  font-size: 16px;
  color: var(--gray);
  max-width: 640px;
  margin-bottom: 48px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 640px;
  margin-bottom: 48px;
}

.stat {
  border-top: 3px solid var(--accent);
  padding-top: 14px;
}

.stat-number {
  display: block;
  font-size: clamp(26px, 6vw, 44px);
  font-weight: 900;
  line-height: 1.1;
}

.stat-unit { font-size: 0.55em; font-weight: 700; margin-left: 2px; }

.stat-label {
  display: block;
  font-size: 13px;
  color: var(--gray);
  margin-top: 6px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 15px 30px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 3px;
  transition: opacity 0.2s, background 0.2s;
  text-align: center;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { opacity: 0.85; }

.btn-ghost {
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; }

.btn-large { padding: 18px 42px; font-size: 16px; }

@media (max-width: 480px) {
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Sections (common) ---------- */
.section { padding: 88px 0; }

.section-eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(26px, 5.5vw, 40px);
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 22px;
}

.section-lead {
  color: var(--gray);
  max-width: 720px;
  margin-bottom: 52px;
}

.section-lead strong { color: var(--ink); }

/* ---------- Problems ---------- */
.problems { background: var(--bg-tint); }

.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .problem-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

.problem-card {
  background: var(--paper);
  border: 1px solid var(--gray-light);
  border-radius: 6px;
  padding: 30px 28px;
}

.problem-num {
  font-size: 13px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.problem-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 8px 0 12px;
}

.problem-card p {
  font-size: 14.5px;
  color: var(--gray);
  line-height: 1.85;
}

/* ---------- Services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 680px) { .service-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .service-grid { grid-template-columns: 1fr 1fr 1fr; } }

.service-card {
  border: 1px solid var(--gray-light);
  border-top: 3px solid var(--accent);
  border-radius: 6px;
  padding: 30px 26px;
  background: var(--paper);
  transition: box-shadow 0.25s, transform 0.25s;
}
.service-card:hover {
  box-shadow: 0 8px 28px rgba(26, 26, 26, 0.08);
  transform: translateY(-2px);
}

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.85;
}

/* ---------- Approach ---------- */
.approach { background: var(--bg-tint); }

.approach-figure {
  background: var(--paper);
  border: 1px solid var(--gray-light);
  border-radius: 6px;
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 32px;
}

.approach-figure svg { min-width: 700px; display: block; }

.approach-note {
  border-left: 4px solid var(--accent);
  padding: 6px 0 6px 22px;
  max-width: 760px;
}

.approach-note p { font-size: 15px; color: var(--gray); }
.approach-note strong { color: var(--ink); display: block; margin-bottom: 6px; font-size: 16.5px; }

/* ---------- Profile ---------- */
.profile-body { max-width: 780px; }

.profile-name {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 26px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.profile-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  padding: 3px 12px;
  border-radius: 3px;
  letter-spacing: 0.05em;
}

.profile-career {
  list-style: none;
  margin-bottom: 32px;
}

.profile-career li {
  position: relative;
  padding: 0 0 22px 28px;
  font-size: 15px;
  color: var(--gray);
  border-left: 2px solid var(--gray-light);
  margin-left: 7px;
}
.profile-career li:last-child { padding-bottom: 0; }

.profile-career li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--accent);
}

.profile-career strong { color: var(--ink); display: block; margin-bottom: 4px; }

.profile-message {
  background: var(--bg-tint);
  border-radius: 6px;
  padding: 26px 28px;
  font-size: 15px;
  color: var(--ink);
}

/* ---------- Contact ---------- */
.contact {
  background: var(--ink);
  color: #fff;
  text-align: center;
}

.section-eyebrow-inverse { color: #E88C8C; }
.section-title-inverse { color: #fff; }
.section-lead-inverse {
  color: #BBBBBB;
  margin-left: auto;
  margin-right: auto;
}

.contact-actions { display: flex; flex-direction: column; align-items: center; gap: 22px; }

.contact-alt { font-size: 14px; color: #BBBBBB; }
.contact-alt a { color: #fff; font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer {
  background: #111111;
  color: #999999;
  padding: 40px 0;
}

.footer-inner { text-align: center; }

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
}

.footer-meta { font-size: 13px; margin-bottom: 8px; }
.footer-copy { font-size: 12px; color: #666666; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
