/* ============================================
   JCS 株式会社 - Global Styles
   Zen Kaku Gothic New + IBM Plex Sans
   ============================================ */

:root {
  /* Ink / neutrals */
  --ink-900: #0E0F12;
  --ink-800: #1A1C21;
  --ink-600: #4A4D55;
  --ink-400: #8A8D95;
  --ink-300: #B8B4AC;
  --ink-200: #D8D6D1;
  --ink-100: #EDEAE4;
  --paper:   #F7F4EE;
  --paper-2: #EFEBE2;
  --dark-bg: #121317;
  --dark-ink: #E8E5DD;

  /* Orange (tweakable via edit mode) */
  --orange-600: #E05A1A;
  --orange-500: #F26A20;
  --orange-200: #F4D4B8;
  --orange-50:  #FBF1E8;

  /* Navy */
  --navy-900: #0F1B2D;

  /* Type */
  --font-jp: "Zen Kaku Gothic New", "Noto Sans JP", -apple-system, "Hiragino Kaku Gothic ProN", sans-serif;
  --font-en: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", monospace;

  /* Layout */
  --maxw: 1240px;
  --pad-x: clamp(20px, 5vw, 48px);
  --section-y: clamp(80px, 12vw, 160px);

  /* Ease */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-jp);
  color: var(--ink-900);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt" 1;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Selection */
::selection { background: var(--orange-600); color: #fff; }

/* Reusable ---------- */

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.eyebrow {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-600);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--orange-600);
  display: inline-block;
}

.display-xl {
  font-size: clamp(40px, 5.4vw, 84px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 900;
  margin: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.display-l {
  font-size: clamp(34px, 4.2vw, 64px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 0;
}
.h2 {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}
.body-l {
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.9;
  color: var(--ink-800);
  font-weight: 400;
}

/* Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.04em;
  border-radius: 2px;
  transition: all 300ms var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange-600);
  color: #fff;
}
.btn-primary:hover {
  background: var(--ink-900);
  transform: translateY(-1px);
}
.btn-ghost {
  border: 1px solid var(--ink-300);
  color: var(--ink-900);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--ink-900);
  background: var(--ink-900);
  color: var(--paper);
}
.btn-dark-ghost {
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  background: transparent;
}
.btn-dark-ghost:hover {
  border-color: #fff;
  background: #fff;
  color: var(--ink-900);
}
.btn .arrow {
  width: 18px; height: 10px; position: relative;
  transition: transform 300ms var(--ease);
}
.btn .arrow::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 50%;
  height: 1px; background: currentColor;
}
.btn .arrow::after {
  content: "";
  position: absolute; right: 0; top: 50%;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.btn:hover .arrow { transform: translateX(4px); }

/* Section ---------- */
section { position: relative; }
.section-pad { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section-pad-sm { padding-top: calc(var(--section-y) * 0.6); padding-bottom: calc(var(--section-y) * 0.6); }

.section-head { margin-bottom: clamp(48px, 6vw, 96px); }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head .title { margin-bottom: 16px; }
.section-head .lede {
  max-width: 620px;
  color: var(--ink-600);
  font-size: 17px;
  line-height: 1.9;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }

/* Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all 300ms var(--ease);
  mix-blend-mode: normal;
}
.site-header.scrolled {
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid var(--ink-200);
  padding: 12px 0;
}
.site-header .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: inline-flex;
  align-items: center;
  height: 32px;
  color: var(--ink-900);
  flex-shrink: 0;
}
.logo img {
  height: 28px;
  width: auto;
  max-width: 180px;
  display: block;
  object-fit: contain;
}
.logo.logo-white img { display: none; }
.site-header:not(.scrolled) .logo img.logo-dark { display: none; }
.site-header:not(.scrolled) .logo img.logo-light { display: block; }
.logo .sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-400);
  letter-spacing: 0.15em;
}
.site-header:not(.scrolled) .logo { color: #fff; }

.nav { display: flex; align-items: center; gap: 20px; flex-wrap: nowrap; flex-shrink: 0; white-space: nowrap; }
.nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-900);
  position: relative;
  transition: color 200ms;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-header:not(.scrolled) .nav a { color: rgba(255,255,255,0.9); }
.nav a:hover { color: var(--orange-600); }
.nav .nav-cta {
  background: var(--orange-600);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 2px;
  font-size: 13px;
}
.nav .nav-cta:hover { background: var(--ink-900); color: #fff !important; }

.hamburger { display: none; }

@media (max-width: 900px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 32px var(--pad-x);
    gap: 22px;
    border-bottom: 1px solid var(--ink-200);
    align-items: flex-start;
  }
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
  }
  .hamburger span {
    width: 22px; height: 1.5px;
    background: var(--ink-900);
    transition: all 200ms;
  }
  .site-header:not(.scrolled) .hamburger span { background: #fff; }
}

/* Footer ---------- */
.site-footer {
  background: var(--ink-900);
  color: var(--dark-ink);
  padding: 80px 0 40px;
}
.site-footer .cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.site-footer h5 {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin: 0 0 20px;
  font-weight: 500;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 12px; font-size: 14px; }
.site-footer a:hover { color: var(--orange-500); }
.site-footer .brand-block .mono {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-400);
  line-height: 1.7;
  margin-top: 16px;
}
.site-footer .logo { height: 40px; }
.site-footer .logo img { height: 36px; max-width: 220px; }
.site-footer .bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--ink-400);
}
@media (max-width: 760px) {
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .site-footer .bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* Utility dividers */
.hr-thin { border: 0; border-top: 1px solid var(--ink-200); margin: 0; }
.hr-dark { border: 0; border-top: 1px solid rgba(255,255,255,0.08); }

/* Placeholder image (striped, with monospaced label) */
.placeholder {
  position: relative;
  width: 100%;
  background-color: var(--ink-100);
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0 14px,
    rgba(0,0,0,0.04) 14px 15px
  );
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
}
.placeholder .label {
  position: absolute;
  top: 16px; left: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-600);
  background: rgba(247,244,238,0.85);
  padding: 6px 10px;
  text-transform: uppercase;
}
.placeholder.dark {
  background-color: #1f1f24;
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0 14px,
    rgba(255,255,255,0.04) 14px 15px
  );
}
.placeholder.dark .label {
  color: var(--ink-300);
  background: rgba(0,0,0,0.4);
}
