/* =====================================================
   SalesVance — Warm Editorial Redesign (2026-06)
   Direction: warm white + 朱 vermillion, modern gothic,
   voice-&-proof-led. Signature: the 朱印 (hanko seal).
   Tokens are shared across all pages; homepage components
   are rebuilt here. Other pages inherit the light baseline.
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@400;500;700;900&family=Noto+Sans+JP:wght@400;500;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ---- Tokens ---- */
:root {
  /* Warm, light, paper-like surfaces */
  --clr-bg:        #FAF8F4;   /* warm white (page) */
  --clr-surface:   #F1ECE2;   /* paper (alt sections, cards) */
  --clr-raised:    #E9E2D5;   /* deeper paper */
  --clr-border:    #E4DDCF;   /* hairline */
  --clr-border-lg: #D4CABA;   /* stronger hairline */

  /* 朱 vermillion — the single accent (= hanko ink) */
  --clr-primary:   #C8442A;
  --clr-primary-d: #A6361F;
  --clr-accent:    #C8442A;

  /* Sumi-ink text */
  --clr-text:      #1F1B17;
  --clr-text-2:    #5A544B;
  --clr-text-3:    #7A7363;

  --clr-footer:    #17140F;

  /* Typography */
  --ff-display: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  --ff-sans:    'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  --ff-body:    'Noto Sans JP', 'Zen Kaku Gothic New', sans-serif;
  --ff-mono:    'JetBrains Mono', ui-monospace, monospace;

  --fs-hero:  clamp(2.6rem, 5.2vw, 4.6rem);
  --fs-h1:    clamp(2rem, 4vw, 3.2rem);
  --fs-h2:    clamp(1.5rem, 2.8vw, 2.3rem);
  --fs-h3:    clamp(1.1rem, 1.8vw, 1.35rem);
  --fs-body:  1rem;
  --fs-sm:    0.875rem;
  --fs-xs:    0.75rem;

  /* Spacing (8px grid) */
  --sp-1:  0.5rem;
  --sp-2:  1rem;
  --sp-3:  1.5rem;
  --sp-4:  2rem;
  --sp-5:  2.5rem;
  --sp-6:  3rem;
  --sp-8:  4rem;
  --sp-10: 5rem;
  --sp-12: 6rem;
  --sp-16: 8rem;

  --r-sm:  4px;
  --r-md:  8px;
  --r-lg:  14px;

  --nav-h: 70px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur:  0.22s;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.85;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

:focus-visible {
  outline: 2px solid var(--clr-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---- Layout ---- */
.container { width: min(1180px, 100% - 3rem); margin-inline: auto; }
.nowrap { white-space: nowrap; }
.section-eyebrow,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: var(--sp-3);
}

/* =====================================================
   SEAL — the signature (hanko / 朱印)
   ===================================================== */
.seal {
  --seal-size: 34px;
  width: var(--seal-size);
  height: var(--seal-size);
  display: inline-grid;
  place-items: center;
  background: var(--clr-primary);
  color: #fff;
  border-radius: 7px;
  font-family: var(--ff-sans);
  font-weight: 900;
  font-size: calc(var(--seal-size) * 0.4);
  letter-spacing: 0.01em;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.28);
  flex-shrink: 0;
  user-select: none;
}
.seal--lg { --seal-size: 96px; border-radius: 18px; }
.seal--ghost {
  background: transparent;
  color: var(--clr-primary);
  box-shadow: inset 0 0 0 2px var(--clr-primary);
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: var(--sp-2) 0;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(250, 248, 244, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--clr-border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.nav__logo {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: var(--ff-sans); font-weight: 800; font-size: 1.05rem; letter-spacing: 0.01em;
  color: var(--clr-text);
}
.nav__logo-mark { /* legacy hook -> seal */
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--clr-primary); color: #fff;
  border-radius: 7px; font-size: 0.8rem; font-weight: 900;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.28);
}
.nav__links { display: flex; align-items: center; gap: clamp(1.75rem, 3vw, 3rem); }
.nav__links a {
  font-family: var(--ff-sans);
  font-size: var(--fs-sm); font-weight: 500; color: var(--clr-text-2);
  transition: color var(--dur) var(--ease);
}
.nav__links a:hover, .nav__links a.active { color: var(--clr-text); }
.nav__cta { display: flex; align-items: center; gap: var(--sp-2); }

.nav__hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.nav__hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--clr-text); border-radius: 1px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none; flex-direction: column; gap: var(--sp-2);
  padding: var(--sp-3) 0 var(--sp-4);
  border-top: 1px solid var(--clr-border); margin-top: var(--sp-2);
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-family: var(--ff-sans); font-size: 1rem; font-weight: 500;
  color: var(--clr-text-2); padding: var(--sp-1) 0;
  transition: color var(--dur) var(--ease);
}
.nav__mobile a:hover { color: var(--clr-text); }

/* =====================================================
   BUTTONS — flat, decisive
   ===================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--r-sm);
  font-family: var(--ff-sans); font-size: var(--fs-sm); font-weight: 700;
  letter-spacing: 0.01em; cursor: pointer; border: 1px solid transparent;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--clr-primary); color: #fff; }
.btn--primary:hover { background: var(--clr-primary-d); }
.btn--outline { background: transparent; color: var(--clr-text); border-color: var(--clr-border-lg); }
.btn--outline:hover { border-color: var(--clr-text); }
.btn--ghost { background: transparent; color: var(--clr-primary); padding-inline: 0; }
.btn--ghost:hover { color: var(--clr-primary-d); }
.btn--lg { padding: 0.9rem 1.7rem; font-size: 0.95rem; }
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }

/* Text link with underline */
.link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--ff-sans); font-weight: 700; font-size: var(--fs-sm);
  color: var(--clr-primary);
  border-bottom: 1px solid currentColor; padding-bottom: 1px;
  transition: gap var(--dur) var(--ease), color var(--dur) var(--ease);
}
.link:hover { gap: 0.65rem; color: var(--clr-primary-d); }
.link svg { width: 14px; height: 14px; }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  min-height: calc(100svh - 0px);
  display: flex; align-items: center;
  padding-top: calc(var(--nav-h) + var(--sp-8));
  padding-bottom: var(--sp-12);
  position: relative;
}
.hero__layout {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: var(--sp-10); align-items: center; width: 100%;
}
.hero__lead { max-width: 34ch; }
.hero__en {
  font-family: var(--ff-mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--clr-text-3);
  margin-top: var(--sp-2);
}
.hero__h1 {
  font-family: var(--ff-display);
  font-size: var(--fs-hero); font-weight: 900;
  line-height: 1.16; letter-spacing: 0.01em; color: var(--clr-text);
  margin-bottom: var(--sp-3);
}
.hero__h1 .em { color: var(--clr-primary); }
.hero__sub {
  font-size: 1.02rem; color: var(--clr-text-2);
  line-height: 1.95; max-width: 30ch; margin-bottom: var(--sp-5);
}
.hero__actions { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }

/* Right: honest photo slot carrying the seal watermark */
.hero__visual { position: relative; aspect-ratio: 4 / 5; }
.photo-slot {
  position: relative; width: 100%; height: 100%;
  border: 1.5px dashed var(--clr-border-lg);
  border-radius: var(--r-lg);
  background:
    repeating-linear-gradient(45deg, #F4F0E8, #F4F0E8 11px, #EFEAE0 11px, #EFEAE0 22px);
  display: flex; align-items: flex-end; padding: var(--sp-3);
  overflow: hidden;
}
.photo-slot__label {
  font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.04em;
  color: var(--clr-text-3); line-height: 1.7;
}
.photo-slot .seal {
  position: absolute; top: var(--sp-3); right: var(--sp-3); opacity: 0.9;
  transform: rotate(-6deg);
}

/* =====================================================
   CASE / PROOF — trust anchor
   ===================================================== */
.case {
  padding: var(--sp-12) 0;
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}
.case__inner { display: grid; grid-template-columns: 1.5fr 0.8fr; gap: var(--sp-10); align-items: center; }
.case__quote {
  font-family: var(--ff-display);
  font-size: clamp(1.2rem, 2.1vw, 1.6rem); font-weight: 500;
  line-height: 1.75; color: var(--clr-text); margin: 0;
}
.case__cite {
  display: flex; align-items: center; gap: var(--sp-2);
  margin-top: var(--sp-4);
}
.case__logo {
  width: 46px; height: 46px; flex-shrink: 0;
  border: 1px dashed var(--clr-border-lg);
  border-radius: 6px;
  background: repeating-linear-gradient(45deg, #F4F0E8, #F4F0E8 8px, #EFEAE0 8px, #EFEAE0 16px);
}
.case__cite-name { font-family: var(--ff-sans); font-weight: 700; font-size: 0.92rem; color: var(--clr-text); }
.case__cite-role { font-size: 0.78rem; color: var(--clr-text-3); }
.case__result {
  border-left: 2px solid var(--clr-primary);
  padding-left: var(--sp-3);
}
.case__result-label {
  font-family: var(--ff-mono); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--clr-primary); margin-bottom: var(--sp-2);
}
.case__result p { font-size: 1rem; line-height: 1.8; color: var(--clr-text); margin-bottom: var(--sp-3); }
.case__result p b { font-weight: 700; }

/* =====================================================
   SERVICES — editorial numbered list
   ===================================================== */
.services { padding: var(--sp-16) 0; }
.section-header {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8);
  align-items: end; margin-bottom: var(--sp-8);
}
.section-header h2 {
  font-family: var(--ff-display); font-size: var(--fs-h2); font-weight: 900;
  line-height: 1.3; letter-spacing: 0.01em;
}
.section-header p { color: var(--clr-text-2); font-size: 0.98rem; line-height: 1.95; }

.svc-list { border-top: 1px solid var(--clr-border); }
.svc-row {
  display: grid; grid-template-columns: 4rem 1fr auto; gap: var(--sp-5);
  align-items: center; padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--clr-border);
  transition: padding-left var(--dur) var(--ease);
}
.svc-row:hover { padding-left: var(--sp-2); }
.svc-row__num { font-family: var(--ff-mono); font-size: 0.95rem; font-weight: 500; color: var(--clr-primary); }
.svc-row__title { font-family: var(--ff-sans); font-size: 1.2rem; font-weight: 700; color: var(--clr-text); }
.svc-row__desc { color: var(--clr-text-2); font-size: 0.9rem; line-height: 1.8; margin-top: 0.25rem; }
.svc-row__link { justify-self: end; }

/* =====================================================
   VOICE — 代表メッセージ (human trust, faceless-honest)
   ===================================================== */
.voice { padding: var(--sp-16) 0; background: var(--clr-surface); border-top: 1px solid var(--clr-border); }
.voice__inner { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: var(--sp-10); align-items: start; }
.voice__statement {
  font-family: var(--ff-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700;
  line-height: 1.6; color: var(--clr-text); margin: var(--sp-1) 0 var(--sp-4);
}
.voice__body { color: var(--clr-text-2); font-size: 1rem; line-height: 1.95; max-width: 46ch; }
.voice__sign {
  display: flex; align-items: center; gap: var(--sp-2);
  margin-top: var(--sp-5); padding-top: var(--sp-4);
  border-top: 1px solid var(--clr-border);
}
.voice__sign-name { font-family: var(--ff-sans); font-weight: 700; font-size: 1rem; color: var(--clr-text); }
.voice__sign-role { font-size: 0.76rem; color: var(--clr-text-3); }
.voice__photo { display: flex; }
.voice__photo .photo-slot { aspect-ratio: 3 / 4; }

/* =====================================================
   UPDATES — news rows
   ===================================================== */
.updates { padding: var(--sp-16) 0; }
.updates__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--sp-4); margin-bottom: var(--sp-6);
}
.updates__head h2 { font-family: var(--ff-display); font-size: var(--fs-h2); font-weight: 900; }
.update-row {
  display: grid; grid-template-columns: 7rem 7rem 1fr auto; gap: var(--sp-4);
  align-items: center; padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--clr-border);
  transition: opacity var(--dur) var(--ease);
}
.update-row:first-child { border-top: 1px solid var(--clr-border); }
.update-row:hover { opacity: 0.72; }
.update-row__date { font-family: var(--ff-mono); font-size: 0.82rem; color: var(--clr-text-3); }
.update-row__cat {
  justify-self: start;
  font-family: var(--ff-sans); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--clr-primary); border: 1px solid var(--clr-primary);
  border-radius: 3px; padding: 0.15rem 0.55rem;
}
.update-row__title { font-family: var(--ff-sans); font-size: 0.98rem; font-weight: 500; color: var(--clr-text); }
.update-row__arrow { color: var(--clr-primary); }

/* =====================================================
   CTA banner — flat vermillion
   ===================================================== */
.cta-banner {
  margin: 0; background: var(--clr-primary); color: #fff;
  padding: var(--sp-12) 0;
}
.cta-banner__inner {
  display: grid; grid-template-columns: 1fr auto; gap: var(--sp-8); align-items: center;
}
.cta-banner h2 {
  font-family: var(--ff-display); font-size: var(--fs-h1); font-weight: 900;
  line-height: 1.3; color: #fff; margin-bottom: var(--sp-2);
}
.cta-banner h2 em { font-style: normal; }
.cta-banner p { color: rgba(255,255,255,0.85); font-size: 1rem; line-height: 1.85; max-width: 46ch; }
.cta-banner .btn--invert { background: #fff; color: var(--clr-primary); }
.cta-banner .btn--invert:hover { background: #F4ECE4; }
.cta-banner__actions { display: flex; align-items: center; gap: var(--sp-2); flex-shrink: 0; }

/* =====================================================
   FOOTER
   ===================================================== */
.footer { background: var(--clr-footer); color: #CFC8BB; padding: var(--sp-10) 0 var(--sp-5); }
.footer .nav__logo { color: #fff; }
.footer__top {
  display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--sp-8);
  padding-bottom: var(--sp-8); border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__brand p { color: #948D80; font-size: 0.88rem; line-height: 1.85; max-width: 260px; margin-top: var(--sp-3); }
.footer__col h4 {
  font-family: var(--ff-mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: #7E776B; margin-bottom: var(--sp-3);
}
.footer__col ul { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer__col a { font-size: 0.88rem; color: #CFC8BB; transition: color var(--dur) var(--ease); }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--sp-3); flex-wrap: wrap; gap: var(--sp-2);
}
.footer__copy { font-size: 0.78rem; color: #7E776B; }
.footer__legal { display: flex; gap: var(--sp-4); }
.footer__legal a { font-size: 0.78rem; color: #7E776B; transition: color var(--dur) var(--ease); }
.footer__legal a:hover { color: #CFC8BB; }

/* =====================================================
   PAGE HEADER (shared, sub-pages) — light baseline
   ===================================================== */
.page-header {
  padding: calc(var(--nav-h) + var(--sp-10)) 0 var(--sp-8);
  border-bottom: 1px solid var(--clr-border); background: var(--clr-surface);
}
.page-header__title {
  font-family: var(--ff-display); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900;
  line-height: 1.25; color: var(--clr-text); margin-bottom: var(--sp-3);
}
.page-header__sub { font-size: 1rem; color: var(--clr-text-2); line-height: 1.8; max-width: 54ch; }

/* =====================================================
   SCROLL REVEAL — one quiet, orchestrated entrance
   ===================================================== */
/* Progressive enhancement: content is visible by default; only hidden
   for the entrance animation when JS is active (.js set by main.js). */
.reveal { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.07s; }
.reveal-delay-2 { transition-delay: 0.14s; }
.reveal-delay-3 { transition-delay: 0.21s; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 980px) {
  .hero__layout { grid-template-columns: 1fr; gap: var(--sp-8); }
  .hero__visual { aspect-ratio: 16 / 10; max-width: 520px; }
  .case__inner { grid-template-columns: 1fr; gap: var(--sp-6); }
  .section-header { grid-template-columns: 1fr; gap: var(--sp-3); align-items: start; }
  .voice__inner { grid-template-columns: 1fr; gap: var(--sp-6); }
  .voice__photo .photo-slot { aspect-ratio: 16 / 9; max-width: 360px; }
  .cta-banner__inner { grid-template-columns: 1fr; gap: var(--sp-4); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .svc-row { grid-template-columns: 2.5rem 1fr; gap: var(--sp-2) var(--sp-3); }
  .svc-row__link { grid-column: 2; justify-self: start; margin-top: var(--sp-1); }
  .update-row { grid-template-columns: auto 1fr; row-gap: 0.35rem; }
  .update-row__date { grid-column: 1; }
  .update-row__cat { grid-column: 2; justify-self: start; }
  .update-row__title { grid-column: 1 / -1; }
  .update-row__arrow { display: none; }
  .footer__top { grid-template-columns: 1fr; }
}
