/* FunnelWorks — main styles */

@font-face {
  font-family: "Antro Vectra";
  src: url("../fonts/antro-vectra.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--deep); text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.35; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -999px; top: 0; z-index: 1000; }
.skip-link:focus { left: 8px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; }

/* ---------- big English display heading (faint diagonal watermark) ---------- */
.sec-en {
  font-family: "Antro Vectra", "Great Vibes", cursive;   /* self-hosted calligraphy */
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
  line-height: 1;
  font-size: clamp(54px, 11vw, 168px);
  color: rgba(120, 116, 110, 0.42);   /* faint gray watermark */
  transform: rotate(-4deg);
  transform-origin: left center;
  margin: 0 0 4px;
  display: block;
  pointer-events: none;
  user-select: none;
}
.sec-en + .sec-title { margin-top: 18px; }
.sec-en--light { color: rgba(255, 255, 255, 0.6); }

/* randomised placement variants — sprinkle across sections for rhythm */
.sec-en--v2 { transform: rotate(3.5deg); transform-origin: right center; text-align: right; }
.sec-en--v3 { transform: rotate(-6.5deg); margin-left: 14%; }
.sec-en--v4 { transform: rotate(5deg); text-align: right; }
.sec-en--v5 { transform: rotate(-2.5deg); margin-left: 7%; text-align: center; }
.sec-en--v6 { transform: rotate(2deg) translateX(-3%); }

.final-cta .sec-en { color: rgba(14, 36, 31, 0.45); }

/* ---------- eyebrows ---------- */
.eyebrow {
  font-family: var(--label); font-size: 12px; letter-spacing: .14em;
  color: var(--deep); text-transform: uppercase; margin: 0 0 18px;
}
.eyebrow-row { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.eyebrow-num { font-family: var(--label); font-weight: 700; font-size: 15px; color: var(--ink); }
.eyebrow-label { font-family: var(--label); font-size: 12px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.eyebrow-row::after { content: ""; flex: 1; height: 1px; background: rgba(35,38,42,.14); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--sans); font-weight: 700; font-size: 15px; border-radius: 12px; transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease); }
.btn-cta { background: var(--coral); color: #fff; padding: 15px 30px; box-shadow: 0 8px 24px rgba(255,98,71,.28); }
.btn-cta:hover { transform: translateY(-2px); color: #fff; }
.btn-text { color: var(--deep); font-weight: 500; padding: 15px 4px; }
.btn-text:hover { color: var(--coral); }
.cta-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 34px; }
.cta-row-center { justify-content: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,247,241,.82);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid rgba(35,38,42,.08);
}
.header-inner { max-width: var(--wrap); margin-inline: auto; padding: 0 var(--gutter); height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-family: var(--serif); font-weight: 800; font-size: 22px; color: var(--ink); letter-spacing: .01em; display: flex; align-items: center; }
.brand img { display: block; height: 40px; width: auto; }
.primary-nav { display: flex; align-items: center; gap: 30px; }
.nav-menu { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.nav-menu a { color: var(--ink); font-size: 15px; font-weight: 500; }
.nav-menu a:hover { color: var(--deep); }
.header-cta { padding: 10px 20px; font-size: 14px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.nav-toggle:focus { outline: none; }
.nav-toggle:focus-visible { outline: 2px solid var(--deep); outline-offset: 2px; border-radius: 4px; }
.nav-toggle-bars { display: block; width: 24px; }
.nav-toggle-bars span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s var(--ease); }

/* ---------- mobile nav ---------- */
.mobile-nav { position: fixed; inset: 0; z-index: 90; background: linear-gradient(165deg, #0F8770 0%, #0A5647 55%, #063A30 100%); padding: 100px var(--gutter) 36px; display: none; flex-direction: column; overflow-y: auto; }
.mobile-nav.open { display: flex; }
.mobile-nav-en { display: block; font-family: 'Antro Vectra', 'Great Vibes', cursive; font-size: clamp(64px, 24vw, 108px); line-height: .82; color: rgba(255,255,255,.13); margin: 0 0 12px -2px; }
.mobile-nav .mobile-menu, .mobile-nav .nav-menu { list-style: none; padding: 0; margin: 0 0 20px; counter-reset: navnum; }
.mobile-nav .mobile-menu li, .mobile-nav .nav-menu li { border-bottom: 1px solid rgba(255,255,255,.16); }
.mobile-nav .mobile-menu a, .mobile-nav .nav-menu a { font-family: var(--serif); font-weight: 700; font-size: clamp(14px, 5.9vw, 28px); line-height: 1.08; color: #fff; padding: 23px 0; display: flex; align-items: baseline; gap: 15px; }
.mobile-nav .mobile-menu a::before, .mobile-nav .nav-menu a::before { counter-increment: navnum; content: counter(navnum, decimal-leading-zero); font-family: var(--label); font-weight: 500; font-size: 12px; letter-spacing: .05em; color: var(--mint); flex: 0 0 auto; }
.mobile-nav .btn-cta { width: 100%; margin-top: auto; font-size: 12px; padding: 12px 24px; }
/* staggered entrance */
.mobile-nav .mobile-menu li, .mobile-nav .nav-menu li { opacity: 0; transform: translateY(16px); }
.mobile-nav.open .mobile-menu li, .mobile-nav.open .nav-menu li { animation: fw-navin .5s var(--ease) forwards; }
.mobile-nav.open li:nth-child(1) { animation-delay: .04s; }
.mobile-nav.open li:nth-child(2) { animation-delay: .09s; }
.mobile-nav.open li:nth-child(3) { animation-delay: .14s; }
.mobile-nav.open li:nth-child(4) { animation-delay: .19s; }
.mobile-nav.open li:nth-child(5) { animation-delay: .24s; }
.mobile-nav.open li:nth-child(6) { animation-delay: .29s; }
.mobile-nav.open li:nth-child(7) { animation-delay: .34s; }
@keyframes fw-navin { to { opacity: 1; transform: none; } }
/* while the drawer is open, make the header a clean opaque strip (no washed-out green) */
.site-header:has([data-nav-toggle][aria-expanded="true"]) { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 86vh; display: flex; align-items: center; overflow: hidden; padding: 80px 0; }
.hero-mesh { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-mesh img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 60% 40%; animation: fw-kv 26s ease-in-out infinite; will-change: transform; }
/* second copy of the KV, blended + counter-drifting → the mesh appears to slowly flow */
.hero-mesh::after { content: ""; position: absolute; inset: -12%; z-index: 1; background: var(--kv) center / cover no-repeat; mix-blend-mode: soft-light; opacity: .6; filter: blur(8px) saturate(1.1); transform-origin: 40% 60%; animation: fw-kv2 20s ease-in-out infinite; will-change: transform; }
/* mint glow that drifts in from off-left → green flows into the left area */
.hero-mesh::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(66% 92% at -8% 52%, rgba(72,199,175,.62), rgba(72,199,175,0) 62%); mix-blend-mode: screen; animation: fw-kv-green 24s ease-in-out infinite; will-change: transform, opacity; }

/* front-page hero: bright, flowing colour-field mesh (no dark photo / soft-light → never muddy) */
.hero .hero-mesh { background: linear-gradient(150deg, var(--paper) 0%, var(--accent-soft) 52%, #F6EFC5 100%); }
.hero .hero-mesh img { display: none; }
.hero .hero-mesh::before { inset: -25%; z-index: 1; mix-blend-mode: normal; opacity: 1; filter: none;
  background:
    radial-gradient(40% 48% at 20% 30%, rgba(72,199,175,.55), transparent 62%),
    radial-gradient(44% 52% at 84% 24%, rgba(246,239,197,.92), transparent 60%),
    radial-gradient(42% 50% at 72% 88%, rgba(255,98,71,.16), transparent 60%);
  animation: fw-kv-flow 22s ease-in-out infinite; }
.hero .hero-mesh::after { inset: -25%; z-index: 2; mix-blend-mode: normal; opacity: 1; filter: none;
  background:
    radial-gradient(38% 46% at 80% 66%, rgba(72,199,175,.42), transparent 60%),
    radial-gradient(42% 48% at 22% 82%, rgba(246,239,197,.78), transparent 60%);
  animation: fw-kv-flow2 27s ease-in-out infinite; }
.hero-inner { position: relative; z-index: 1; }
.eyebrow-hero { color: var(--deep); }
.hero-title { font-size: clamp(38px, 6vw, 66px); line-height: 1.28; letter-spacing: .01em; margin-bottom: 28px; }
/* KV message slider: crossfade between headlines (grid-stack sizes to the tallest) */
.hero-slider { display: grid; margin-bottom: 20px; }
.hero-slide { grid-area: 1 / 1; white-space: normal; opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; }
.hero-slide.is-active { opacity: 1; transform: none; }
.hero-dots { display: flex; gap: 10px; margin-bottom: 26px; }
.hero-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(14,122,102,.24); cursor: pointer; transition: background .25s var(--ease), transform .25s var(--ease); -webkit-tap-highlight-color: transparent; }
.hero-dots button:hover { background: rgba(14,122,102,.5); }
.hero-dots button.is-active { background: var(--deep); transform: scale(1.25); }
.hero-dots button:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
/* lead text follows the headline slider (grid-stack → height = tallest lead, no jump) */
.hero-lead-slider { display: grid; }
.hero-lead-slide { grid-area: 1 / 1; opacity: 0; transition: opacity .6s var(--ease); pointer-events: none; }
.hero-lead-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-lead { max-width: 720px; font-size: 16px; color: #45474b; }
/* KV: F letterform with script words orbiting it in 3D */
.kv-orbit { position: absolute; right: 1%; top: 48%; transform: translateY(-50%); width: clamp(280px, 30vw, 430px); aspect-ratio: 1 / 1; z-index: 3; pointer-events: none; }
.kv-static { display: none; }
.kv-stage { position: absolute; inset: 0; perspective: 1000px; }
.kv-f { position: absolute; left: 50%; top: 50%; width: 36%; height: auto; transform: translate(-50%, -50%); z-index: 5; filter: drop-shadow(0 10px 26px rgba(40,30,20,.12)); }
.kv-ring { position: absolute; inset: 0; transform-style: preserve-3d; animation: kv-spin 20s linear infinite; }
.kv-word { position: absolute; left: 50%; top: 50%; width: 33%; height: auto; opacity: .95; }
.kv-w1 { transform: translate(-50%, -50%) rotateY(0deg)   translateZ(135px); }
.kv-w2 { transform: translate(-50%, -50%) rotateY(90deg)  translateZ(135px); }
.kv-w3 { transform: translate(-50%, -50%) rotateY(180deg) translateZ(135px); }
.kv-w4 { transform: translate(-50%, -50%) rotateY(270deg) translateZ(135px); }
/* back-to-top (site-wide, appears after scrolling) */
.to-top { position: fixed; right: 26px; bottom: 30px; z-index: 55; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 58px; height: 58px; border-radius: 50%; background: var(--paper); border: 1px solid rgba(35,38,42,.10); box-shadow: 0 8px 24px rgba(35,30,20,.14); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s var(--ease), transform .3s var(--ease), box-shadow .25s var(--ease); -webkit-tap-highlight-color: transparent; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top img { width: 17px; height: auto; display: block; }
.to-top span { font-family: var(--label); font-weight: 700; font-size: 9px; letter-spacing: .08em; color: var(--deep); }
.to-top:hover { border-color: var(--mint); box-shadow: 0 10px 28px rgba(35,30,20,.20); }
.to-top:focus { outline: none; }
.to-top:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
@media (max-width: 768px) { .to-top { right: 16px; bottom: 88px; width: 50px; height: 50px; } }

/* intro splash (brand, once per session) → dissolves into the paper-coloured site */
.intro { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; background: var(--paper); animation: fw-intro-out 5s var(--ease) forwards; }
.intro.is-done { display: none; }
.fw-introseen .intro { display: none; }
.intro-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.intro-logo { width: clamp(190px, 34vw, 300px); height: auto; opacity: 0; transform: translateY(10px) scale(.98); animation: fw-intro-logo .9s var(--ease) .1s forwards; }
.intro-bar { position: relative; width: 132px; height: 2px; border-radius: 2px; background: rgba(14,122,102,.14); overflow: hidden; }
.intro-bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--mint), var(--deep)); transform: scaleX(0); transform-origin: left; animation: fw-intro-bar 3.7s var(--ease) .2s forwards; }
.intro-lock, .intro-lock body { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .intro { display: none; } }
@keyframes fw-intro-out { 0%, 78% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@keyframes fw-intro-logo { to { opacity: 1; transform: none; } }
@keyframes fw-intro-bar { to { transform: scaleX(1); } }

/* ---------- statement (full-bleed photo band) ---------- */
.statement { position: relative; overflow: hidden; padding: 180px 0; }
.statement-bg { position: absolute; inset: 0; z-index: 0; }
.statement-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.statement-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(250,247,241,.82) 0%, rgba(250,247,241,.62) 45%, rgba(250,247,241,.42) 100%); }
.statement .wrap { position: relative; z-index: 1; }
.statement .eyebrow { color: var(--deep); }
.statement-lead { font-family: var(--serif); font-weight: 800; font-size: clamp(32px, 8.4vw, 88px); color: var(--ink); line-height: 1.32; margin: 6px 0 22px; }
.statement-sub { color: #2c2f33; max-width: 620px; }

/* ---------- generic section ---------- */
.sec { padding: 96px 0; }
.sec-title { font-size: clamp(27px, 3.4vw, 40px); margin-bottom: 22px; }
.sec-intro { max-width: 820px; color: #45474b; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }

/* problem — editorial cards */
.sec-problem { background: var(--paper); }
.edit-card { position: relative; padding: 40px 30px 34px; border-top: 2px solid var(--ink); }
.edit-num { font-family: var(--label); font-weight: 700; font-size: 46px; display: block; line-height: 1; color: var(--ink); background: linear-gradient(150deg, var(--mint) 2%, var(--deep) 34%, var(--ink) 82%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.edit-card h3 { font-size: 22px; margin: 16px 0 12px; }
.edit-card p { color: #45474b; font-size: 15px; }
.badge-top { position: absolute; top: 40px; right: 24px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 6px; font-family: var(--sans); letter-spacing: .04em; }

/* answer — soft mint cards */
.sec-answer { background: var(--paper-warm); }
.soft-card { background: linear-gradient(140deg, var(--accent-soft) 42%, #F6EFC5 100%); border-radius: var(--r-lg); padding: 34px 30px; }
.soft-num { font-family: var(--label); font-weight: 700; font-size: 15px; color: var(--deep); }
.soft-card h3 { font-size: 21px; margin: 12px 0 12px; }
.soft-card p { color: #3f4a46; font-size: 15px; }

/* photo bands (philosophy / bloom) */
.band { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.band-photo { position: relative; min-height: 640px; overflow: hidden; }
.band-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band-copy { display: flex; flex-direction: column; justify-content: center; padding: 88px var(--gutter); }
.band-philosophy .band-copy { background: var(--paper); }
.band-bloom { background: var(--accent-soft); }
.philosophy-body { color: #3f4a46; margin-top: 20px; max-width: 560px; }

/* services — photo cards with arrow badge, hover zoom + coral */
.svc-card { display: block; }
.svc-photo { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-warm); }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.svc-card:hover .svc-photo img { transform: scale(1.05); }
.svc-arrow { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; background: var(--mint); color: var(--on-accent); display: grid; place-items: center; font-size: 18px; transition: .25s var(--ease); }
.svc-card:hover .svc-arrow { background: var(--coral); color: #fff; }
.svc-eyebrow { display: block; font-family: var(--label); font-size: 12px; letter-spacing: .1em; color: var(--muted); margin-top: 18px; }
.svc-title { display: block; font-family: var(--serif); font-weight: 700; font-size: 21px; color: var(--ink); margin-top: 6px; transition: color .2s var(--ease); }
.svc-card:hover .svc-title { color: var(--coral); }
.svc-note { margin-top: 40px; display: flex; gap: 16px; align-items: flex-start; max-width: 820px; color: #45474b; font-size: 15px; }
.svc-note-tag { flex: none; background: var(--ink); color: #fff; font-family: var(--label); font-weight: 700; font-size: 13px; padding: 4px 12px; border-radius: var(--r-pill); }

.bloom-body { color: #3f4a46; margin-top: 20px; max-width: 520px; }
.band-bloom .btn-text { margin-top: 20px; padding-left: 0; }

/* cases typographic title */
.cases-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 22px; }
.cases-small { font-size: 22px; }
.cases-big { font-size: clamp(48px, 7vw, 84px); font-weight: 800; }
.cases-mid { font-size: 30px; }

/* ---------- marquee ---------- */
.marquee { padding: 40px 0 96px; overflow: hidden; }
.marquee-track { display: flex; gap: 20px; width: max-content; animation: fw-marquee 34s linear infinite; }
.stat-card { flex: none; width: 320px; background: var(--paper-warm); border-radius: var(--r-lg); padding: 30px 32px; }
.stat-who { font-family: var(--label); font-size: 12px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.stat-num { display: block; font-family: var(--serif); font-weight: 800; font-size: 52px; color: var(--ink); line-height: 1.1; margin: 6px 0 8px; animation: fw-pulse 3s ease-in-out infinite; }
.stat-label { color: #45474b; font-size: 14px; }

/* ---------- final cta ---------- */
.final-cta { background: var(--mint); color: var(--on-accent); text-align: center; padding: 96px 0; }
.final-cta .sec-en { color: var(--on-accent); margin-bottom: 10px; }
.final-cta-title { color: var(--on-accent); font-size: clamp(27px, 3.6vw, 44px); }
.final-cta-sub { margin: 20px auto 0; max-width: 620px; color: #10362e; }
.final-cta .cta-row { margin-top: 32px; }
.final-cta .btn-text { color: #0c2b24; }
.final-cta .btn-text:hover { color: #fff; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink-strong); color: #d8d1c6; position: relative; margin-top: 0; padding: 96px 0 40px; clip-path: polygon(0 56px, 100% 0, 100% 100%, 0 100%); }
.footer-inner { max-width: var(--wrap); margin-inline: auto; padding: 0 var(--gutter); display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-logo { font-family: var(--serif); font-weight: 800; font-size: 24px; color: #fff; }
.footer-logo img { display: block; height: 76px; width: auto; }
.footer-tag { color: #a49c8f; font-size: 14px; margin-top: 10px; }
.footer-social { margin-top: 18px; display: flex; gap: 12px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); color: #cfc7ba; transition: .18s var(--ease); }
.footer-social a:hover { color: #fff; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.06); }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col-head { font-family: var(--label); font-size: 12px; letter-spacing: .1em; color: #8f877a; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: #d8d1c6; font-size: 15px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { max-width: var(--wrap); margin: 56px auto 0; padding: 20px var(--gutter) 0; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #8f877a; font-size: 13px; }
.footer-bottom a { color: #8f877a; }
.footer-bottom a:hover { color: #fff; }

/* ---------- page template (sub pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding: 84px 0 64px; background: var(--paper); border-bottom: 1px solid rgba(35,38,42,.08); }
.page-hero .hero-mesh .blob { opacity: .4; }
.page-hero .wrap { position: relative; z-index: 1; }
.crumb { font-family: var(--label); font-size: 12px; letter-spacing: .06em; color: var(--muted); margin-bottom: 18px; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--deep); }
.crumb span { margin: 0 8px; }
.page-title { font-size: clamp(32px, 5vw, 56px); line-height: 1.3; }
.page-lead { margin-top: 20px; max-width: 720px; color: #45474b; }
.prose { max-width: 820px; }
.prose > * + * { margin-top: 1.2em; }
.prose h2 { font-size: clamp(24px, 3vw, 34px); margin-top: 1.8em; }
.prose h3 { font-size: 21px; margin-top: 1.4em; }
.prose p { color: #3f4247; }
.prose ul, .prose ol { padding-left: 1.4em; color: #3f4247; }
.prose li + li { margin-top: .4em; }
.prose img { border-radius: var(--r); }
.prose a { color: var(--deep); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- sub-page photo hero ---------- */
.page-hero--photo { position: relative; overflow: hidden; padding: 128px 0 76px; border-bottom: 0; background: var(--ink-strong); }
.page-hero--photo .ph-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero--photo .ph-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--photo .ph-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,18,15,.8) 0%, rgba(20,18,15,.5) 48%, rgba(20,18,15,.15) 100%); }
.page-hero--photo .wrap { position: relative; z-index: 1; }
.crumb--light, .crumb--light a { color: rgba(255,255,255,.72); }
.crumb--light a:hover { color: #fff; }
.eyebrow--light { color: rgba(255,255,255,.85); }
.page-title--light { color: #fff; }
.page-lead--light { color: rgba(255,255,255,.9); }

/* ---------- about / generic content bits ---------- */
.sec-body { max-width: 820px; color: #3f4247; margin-top: 28px; }
.sec-body + .sec-intro { margin-top: 24px; }
.quote-list { list-style: none; margin: 32px 0 0; padding: 0; max-width: 780px; }
.quote-list li { position: relative; font-family: var(--serif); font-size: clamp(18px, 2.2vw, 24px); color: var(--ink); padding: 16px 0 16px 30px; border-bottom: 1px solid rgba(35,38,42,.1); }
.quote-list li::before { content: "“"; position: absolute; left: 0; top: 16px; color: var(--mint); font-size: 28px; font-family: var(--serif); }
.promise-tag { margin-top: 40px; font-family: var(--serif); font-weight: 700; font-size: clamp(20px, 2.4vw, 28px); color: var(--deep); text-align: center; }

.message-band { background: var(--ink-strong); color: #e7e1d6; padding: 100px 0; }
.message-quote { margin: 24px 0 0; padding: 0; border: 0; }
.message-quote p { font-family: var(--serif); font-size: clamp(19px, 2.2vw, 26px); line-height: 1.9; color: #f4efe6; }
.message-quote p + p { margin-top: 1em; }
.message-sign { margin-top: 28px; font-family: var(--label); letter-spacing: .06em; color: var(--mint); }

.company-table { margin: 44px 0 0; max-width: 900px; }
.company-row { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid rgba(35,38,42,.1); }
.company-row dt { font-weight: 700; color: var(--ink); margin: 0; }
.company-row dd { margin: 0; color: #3f4247; }

/* ---------- timeline (flow) ---------- */
.timeline { list-style: none; margin: 52px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 26px; left: 12%; right: 12%; height: 2px; background: var(--mint); z-index: 0; }
.timeline li { position: relative; text-align: center; z-index: 1; }
.tl-num { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 50%; background: var(--deep); color: #fff; font-family: var(--label); font-weight: 700; font-size: 16px; }
.timeline h3 { font-size: 18px; margin-bottom: 8px; }
.timeline p { font-size: 14px; color: #3f4a46; }
.tl-note { margin-top: 40px; text-align: center; }

/* ---------- price ---------- */
.price-band { margin-top: 32px; background: var(--accent-soft); border-radius: var(--r-lg); padding: 44px; }
.price-num { display: block; font-family: var(--serif); font-weight: 800; font-size: clamp(44px, 6vw, 72px); color: var(--ink); line-height: 1; }
.price-unit { display: block; margin-top: 12px; font-family: var(--label); color: var(--muted); }
.cadence { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.cadence-plan { background: rgba(255,255,255,.4); border-radius: var(--r); padding: 26px 28px; }
.cadence-tag { display: inline-block; font-family: var(--label); font-size: 12px; letter-spacing: .06em; color: var(--deep); background: var(--paper); border-radius: var(--r-pill); padding: 5px 14px; margin-bottom: 14px; }
.cadence .price-num { font-size: clamp(34px, 4.4vw, 50px); }
.cadence .price-unit { font-size: 12px; }
.cadence-plan > p:last-child { color: #3f4a46; font-size: 14px; margin-top: 12px; }
.cadence-flow { margin: 28px 0 0; font-family: var(--label); font-size: 13px; color: var(--ink); background: var(--paper); border-radius: var(--r); padding: 14px 20px; text-align: center; letter-spacing: .02em; }
.price-notes { list-style: none; margin: 26px 0 0; padding: 0; }
.price-notes strong { color: var(--deep); }
.price-notes li { position: relative; padding-left: 22px; color: #3f4247; }
.price-notes li + li { margin-top: 12px; }
.price-notes li::before { content: "—"; position: absolute; left: 0; color: var(--deep); }

/* ---------- FAQ accordion ---------- */
.faq { margin-top: 36px; max-width: 900px; }
.faq-item { border-bottom: 1px solid rgba(35,38,42,.12); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 18px; padding: 24px 2px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-num { font-family: var(--label); font-weight: 700; color: var(--deep); font-size: 14px; }
.faq-q { font-family: var(--serif); font-weight: 700; font-size: clamp(17px, 2vw, 20px); color: var(--ink); flex: 1; }
.faq-mark { color: var(--deep); transition: transform .25s var(--ease); }
.faq-item[open] .faq-mark { transform: rotate(90deg); color: var(--coral); }
.faq-a { padding: 0 0 26px 52px; }
.faq-a p { color: #3f4247; }

/* ---------- x-list (pain /課題) ---------- */
.x-list { list-style: none; margin: 36px 0 0; padding: 0; max-width: 820px; }
.x-item { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(35,38,42,.1); font-size: clamp(16px, 2vw, 19px); color: var(--ink); }
.x-badge { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #f2d9d3; color: #c0492f; display: grid; place-items: center; font-size: 13px; font-weight: 700; }

/* ---------- proof band ---------- */
.proof-band { background: var(--paper-warm); padding: 96px 0; text-align: center; }
.proof-body { max-width: 720px; margin: 20px auto 0; color: #3f4247; }

/* ---------- mini works chips + mint note ---------- */
.mini-works { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: 36px 0 20px; padding: 0; }
.mini-works li { background: var(--paper-warm); border-radius: var(--r-pill); padding: 10px 22px; font-size: 14px; color: var(--ink); }
.note-mint { margin-top: 44px; background: var(--accent-soft); border-radius: var(--r); padding: 24px 28px; color: #2c4a42; max-width: 820px; }
.note-mint strong { color: var(--deep); }

/* ---------- case studies ---------- */
.case { background: var(--paper-warm); border-radius: var(--r-lg); padding: 44px; margin-top: 32px; }
.case-tag { font-family: var(--label); font-size: 13px; letter-spacing: .08em; color: var(--deep); }
.case-title { font-size: clamp(22px, 2.6vw, 30px); margin: 12px 0 8px; }
.case-lead { color: #3f4247; margin-bottom: 20px; }
.case-rows { margin: 0; }
.case-rows > div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(35,38,42,.1); }
.case-rows dt { font-weight: 700; color: var(--deep); margin: 0; font-size: 14px; }
.case-rows dd { margin: 0; color: var(--ink); }
.case-note { margin-top: 18px; color: #5a5750; font-size: 14px; }

/* ---------- works gallery ---------- */
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.work-photo { display: block; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper); }
.work-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.work-card:hover .work-photo img { transform: scale(1.04); }
.work-cat { display: block; font-family: var(--label); font-size: 12px; letter-spacing: .08em; color: var(--muted); margin-top: 16px; }
.work-name { font-size: 19px; margin: 6px 0 8px; }
.work-desc { font-size: 14px; color: #3f4247; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
a.work-card { display: block; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.work-more { display: inline-block; margin-top: 10px; font-family: var(--label); font-size: 13px; color: var(--deep); opacity: 0; transform: translateX(-4px); transition: .25s var(--ease); }
a.work-card:hover .work-more, a.work-card:focus-visible .work-more { opacity: 1; transform: translateX(0); }

/* works filter bar */
.works-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.works-filter-btn { font-family: var(--label); font-size: 13px; letter-spacing: .04em; color: var(--muted); background: var(--paper); border: 1px solid rgba(35,38,42,.1); border-radius: var(--r-pill); padding: 8px 18px; cursor: pointer; transition: .18s var(--ease); }
.works-filter-btn:hover { border-color: var(--mint); color: var(--deep); }
.works-filter-btn.is-active { background: var(--mint); color: var(--on-accent); border-color: var(--mint); }
.work-card[hidden] { display: none; }
.works-price-link { margin-top: 44px; text-align: center; }
.works-price-link a { font-family: var(--label); font-size: 14px; color: var(--deep); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.works-price-link a:hover { color: var(--ink); }

/* ---------- work single (detail) ---------- */
.work-single { padding: clamp(28px, 6vw, 64px) 0 0; }
.work-single-head { max-width: 900px; }
.work-single-title { font-size: clamp(28px, 4.4vw, 46px); line-height: 1.3; margin: 12px 0 6px; }
.work-single-client { color: var(--muted); font-size: 15px; }
.work-single-hero { margin-top: 28px; }
/* device mockups (laptop + optional tablet/phone) */
.device-showcase { position: relative; display: flex; align-items: flex-end; justify-content: center; padding: 12px 0 6px; }
.device { flex: 0 0 auto; }
.device .scr { background: #14181b; }
.device .scr img { display: block; width: 100%; object-fit: cover; object-position: top center; background: #fff; }
.dv-laptop { width: min(680px, 80%); z-index: 2; }
.dv-laptop .scr { border: 3px solid #16191c; border-bottom: 0; border-radius: 16px 16px 0 0; padding: 12px 12px 0; }
.dv-laptop .scr img { aspect-ratio: 16 / 10; border-radius: 5px; }
.dv-laptop .deck { height: 18px; background: linear-gradient(#d2d6da, #a9afb5); border-radius: 0 0 15px 15px; box-shadow: inset 0 2px 3px rgba(255,255,255,.55); position: relative; }
.dv-laptop .deck::after { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 16%; height: 7px; background: #9aa0a6; border-radius: 0 0 8px 8px; }
.dv-phone { width: 130px; margin-left: -48px; margin-bottom: 8px; z-index: 3; }
.dv-phone .scr { border: 4px solid #16191c; border-radius: 22px; padding: 5px; box-shadow: 0 14px 30px rgba(30,25,20,.20); }
.dv-phone .scr img { aspect-ratio: 9 / 19; border-radius: 15px; }
.dv-tablet { width: 188px; margin-right: -46px; margin-bottom: 4px; z-index: 1; }
.dv-tablet .scr { border: 5px solid #16191c; border-radius: 16px; padding: 6px; box-shadow: 0 16px 30px rgba(30,25,20,.16); }
.dv-tablet .scr img { aspect-ratio: 3 / 4; border-radius: 7px; }
.device-showcase.solo .dv-laptop { width: min(760px, 100%); }
@media (max-width: 640px) { .dv-tablet { display: none; } .dv-phone { width: 100px; margin-left: -34px; } .dv-laptop { width: min(680px, 86%); } }
.work-single-body { display: grid; grid-template-columns: 1fr 300px; gap: 48px; margin-top: 48px; align-items: start; }
.work-single-main .prose { max-width: none; }
.work-flow { margin-top: 36px; display: grid; gap: 0; }
.work-flow-row { display: grid; grid-template-columns: 92px 1fr; gap: 20px; padding: 20px 0; border-top: 1px solid rgba(35,38,42,.1); }
.work-flow-row:last-child { border-bottom: 1px solid rgba(35,38,42,.1); }
.work-flow-row dt { font-family: var(--label); font-size: 13px; letter-spacing: .08em; color: var(--deep); padding-top: 2px; }
.work-flow-row dd { color: #3f4247; font-size: 15px; line-height: 1.9; }
.work-single-meta { position: sticky; top: 96px; background: var(--paper-warm); border-radius: var(--r-lg); padding: 28px; }
.work-single-meta dl > div { padding: 12px 0; border-bottom: 1px solid rgba(35,38,42,.08); }
.work-single-meta dl > div:last-child { border-bottom: 0; }
.work-single-meta dt { font-family: var(--label); font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.work-single-meta dd { font-size: 15px; margin-top: 4px; color: var(--ink); }
.work-live { width: 100%; text-align: center; margin-top: 20px; }
.work-lead { font-size: 17px; line-height: 1.95; color: #3f4247; }
.work-gallery { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 32px; }
.work-gallery figure { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--paper); border: 1px solid rgba(35,38,42,.06); }
.work-gallery img { width: 100%; height: auto; display: block; }
.work-related { margin-top: 72px; }

/* ---------- blog grid ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.blog-card { display: block; -webkit-tap-highlight-color: transparent; outline: none; border-radius: var(--r); }
.blog-card:focus, .work-card:focus, .news-item:focus { outline: none; }
.blog-card:focus-visible, .work-card:focus-visible, .news-item:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.photo-credit { margin-top: 10px; font-family: var(--label); font-size: 11px; letter-spacing: .03em; color: var(--muted); }
.photo-credit a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.photo-credit a:hover { color: var(--deep); }
.blog-thumb { position: relative; display: block; border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 2; background: var(--paper-warm); }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
/* brand gradient overlay layered on real thumbnails: beige side transparent → mint tint */
.blog-thumb:not(.blog-thumb--soon)::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, rgba(233,226,212,0) 0%, rgba(228,240,235,0) 42%, rgba(72,199,175,.45) 100%); }
.blog-thumb--soon { display: grid; place-items: center; background: linear-gradient(135deg, #e9e2d4, #e4f0eb); }
.blog-thumb--soon span { font-family: var(--label); font-size: 13px; letter-spacing: .15em; color: var(--muted); }
.blog-cat { display: inline-block; margin-top: 14px; font-family: var(--label); font-size: 12px; color: var(--deep); background: var(--accent-soft); padding: 4px 12px; border-radius: var(--r-pill); }
.blog-title { font-size: 18px; margin-top: 12px; line-height: 1.5; color: var(--ink); }

/* pager */
.fw-pager { margin-top: 52px; }
.fw-pager .page-numbers { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 0; }
.fw-pager .page-numbers li { margin: 0; }
.fw-pager a.page-numbers, .fw-pager span.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: var(--r-pill); font-family: var(--label); font-size: 14px; color: var(--ink); background: var(--paper-warm); border: 1px solid transparent; text-decoration: none; transition: .18s var(--ease); }
.fw-pager a.page-numbers:hover { border-color: var(--mint); color: var(--deep); }
.fw-pager span.current { background: var(--mint); color: var(--on-accent); }
.fw-pager span.dots { background: transparent; min-width: 24px; }
.fw-pager .prev, .fw-pager .next { font-size: 13px; }

/* ---------- forms ---------- */
.fw-form { background: var(--paper-warm); border-radius: var(--r-lg); padding: 44px; max-width: 760px; margin-top: 40px; }
.field { margin-bottom: 24px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field > label, .field-legend { display: block; font-weight: 700; font-size: 14px; margin-bottom: 10px; color: var(--ink); }
.field input[type=text], .field input[type=email], .field textarea { width: 100%; border: 1px solid transparent; background: var(--paper); border-radius: 12px; padding: 14px 16px; font-family: var(--sans); font-size: 15px; color: var(--ink); box-sizing: border-box; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--mint); }
.field textarea { min-height: 120px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips label { display: inline-flex; align-items: center; background: var(--paper); border-radius: var(--r-pill); padding: 10px 20px; font-size: 14px; cursor: pointer; border: 1px solid rgba(35,38,42,.08); transition: .15s var(--ease); }
.chips label:has(input:checked) { background: var(--mint); color: var(--on-accent); border-color: var(--mint); }
.chips input { position: absolute; opacity: 0; width: 0; height: 0; }
.fw-submit { background: var(--coral); color: #fff; border: 0; border-radius: var(--r-pill); padding: 15px 40px; font-weight: 700; font-size: 15px; cursor: pointer; font-family: var(--sans); box-shadow: 0 8px 24px rgba(255,98,71,.28); transition: transform .2s var(--ease); }
.fw-submit:hover { transform: translateY(-2px); }
.fw-note { margin-top: 16px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.fw-success { background: var(--accent-soft); border-radius: var(--r-lg); padding: 26px 30px; margin-top: 36px; color: #1c4a3f; }
.fw-success strong { color: var(--deep); }

/* form: step indicator + confirm step + completion screen */
.form-steps { list-style: none; display: flex; gap: 0; margin: 34px 0 8px; padding: 0; max-width: 760px; }
.form-steps li { flex: 1; display: flex; align-items: center; gap: 11px; font-family: var(--label); font-size: 14px; color: var(--muted); }
.form-steps li span { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--paper-warm); color: var(--muted); font-weight: 700; font-size: 17px; flex: 0 0 auto; }
.form-steps li.is-active { color: var(--deep); }
.form-steps li.is-active span { background: var(--mint); color: var(--on-accent); }
.form-steps li:not(:last-child)::after { content: ""; flex: 1; height: 1px; background: rgba(35,38,42,.12); margin-left: 8px; }
.form-step[hidden] { display: none; }
.confirm-summary { background: var(--paper); border-radius: var(--r); padding: 4px 28px; margin: 20px 0 26px; }
.confirm-summary dt { font-family: var(--label); font-size: 12px; letter-spacing: .04em; color: var(--muted); padding-top: 18px; }
.confirm-summary dd { margin: 5px 0 0; padding: 0 0 18px; font-size: 16px; color: var(--ink); border-bottom: 1px solid rgba(35,38,42,.08); white-space: pre-wrap; }
.confirm-summary dd:last-of-type { border-bottom: 0; }
.confirm-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.form-done { text-align: center; padding: 48px 0; max-width: 640px; margin: 0 auto; }
.form-done .sec-en { text-align: center; }
.form-done-check { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background: var(--mint); color: var(--on-accent); font-size: 34px; font-weight: 700; margin-bottom: 20px; }
.form-done-lead { color: #3f4247; font-size: 16px; margin: 14px auto 32px; line-height: 1.95; max-width: 520px; }
.fw-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note-mint a { color: var(--deep); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* 4-col grid (diagnosis points) */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }

/* two tracks (伴走 / tool) */
.track-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 44px; }
.track-card { display: flex; flex-direction: column; background: var(--paper-warm); border-radius: var(--r-lg); overflow: hidden; padding-bottom: 32px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.track-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(40,30,20,.1); }
.track-photo { display: block; aspect-ratio: 16 / 7; overflow: hidden; }
.track-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.track-card:hover .track-photo img { transform: scale(1.05); }
.track-eyebrow { font-family: var(--label); font-size: 12px; letter-spacing: .08em; color: var(--deep); margin: 24px 32px 0; }
.track-card h3 { font-size: clamp(22px, 2.6vw, 28px); margin: 8px 32px 0; }
.track-card p { color: #3f4247; font-size: 14.5px; margin: 12px 32px 0; }
.track-price { font-family: var(--serif); font-weight: 800; font-size: 26px; color: var(--ink); margin: 20px 32px 0; }
.track-price small { font-family: var(--label); font-weight: 400; font-size: 12px; color: var(--muted); margin-left: 4px; }
.track-link { margin: 18px 32px 0; font-weight: 700; font-size: 14px; color: var(--coral); }
.track-card:hover .track-link { text-decoration: underline; }
.price-quote { font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--ink); }

/* pricing: base platform + modules */
.plan-base { background: var(--accent-soft); border-radius: var(--r-lg); padding: 36px 40px; margin-top: 44px; }
.plan-badge { display: inline-block; background: var(--mint); color: var(--on-accent); font-family: var(--label); font-weight: 700; font-size: 12px; letter-spacing: .05em; padding: 6px 14px; border-radius: var(--r-pill); margin-bottom: 16px; }
.plan-base h3 { font-size: clamp(20px, 2.6vw, 28px); margin-bottom: 12px; }
.plan-base p { color: #2c4a42; max-width: 780px; }
.plan-base strong { color: var(--deep); }
.plan-base-price { display: flex; align-items: baseline; gap: 4px; margin: 2px 0 18px; }
.plan-base-price b { font-family: var(--serif); font-weight: 800; font-size: clamp(26px, 3vw, 34px); color: var(--ink); }

.plan-heading { display: flex; align-items: baseline; gap: 14px; margin: 52px 0 4px; font-size: 20px; font-family: var(--serif); }
.plan-heading span { font-family: var(--label); font-size: 12px; letter-spacing: .08em; color: var(--muted); font-weight: 400; }
.plan-heading .plan-heading-main { font: inherit; letter-spacing: normal; color: inherit; }

.plan { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding: 28px 0; border-top: 1px solid rgba(35,38,42,.14); }
.plan:last-child { border-bottom: 1px solid rgba(35,38,42,.14); }
.plan-body h4 { font-size: clamp(17px, 2vw, 21px); margin-bottom: 8px; }
.plan-body p { color: #3f4247; font-size: 14.5px; max-width: 560px; }
.plan-price { text-align: right; white-space: nowrap; min-width: 210px; }
.plan-price > b { font-family: var(--serif); font-weight: 800; font-size: clamp(24px, 2.8vw, 32px); color: var(--ink); }
.plan-price small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 6px; white-space: normal; max-width: 240px; margin-left: auto; }
.plan-tag { display: inline-block; font-family: var(--label); font-size: 11px; letter-spacing: .04em; color: var(--deep); background: var(--accent-soft); border-radius: var(--r-pill); padding: 3px 10px; margin-left: 8px; vertical-align: middle; }
.plan-per { font-family: var(--label); font-size: 12px; color: var(--muted); margin-left: 5px; }
.tier { border-collapse: collapse; margin-left: auto; }
.tier th { text-align: left; font-weight: 500; color: var(--muted); font-size: 13px; padding: 3px 16px 3px 0; }
.tier td { text-align: right; font-family: var(--serif); font-weight: 700; color: var(--ink); font-size: 17px; }
.plan-price--multi { display: flex; flex-direction: column; gap: 14px; }
.plan-opt { display: inline-block; font-family: var(--label); font-size: 11px; letter-spacing: .05em; color: var(--deep); background: var(--paper); border-radius: var(--r-pill); padding: 3px 10px; margin-right: 8px; }
.plan-price--multi b { font-family: var(--serif); font-weight: 800; font-size: 22px; color: var(--ink); }
.plan-price--multi small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 5px; white-space: normal; max-width: 260px; margin-left: auto; }
.plan-demo { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-family: var(--sans); font-weight: 700; font-size: 13px; color: var(--deep); border: 1px solid rgba(14,122,102,.3); border-radius: var(--r-pill); padding: 8px 16px; transition: .18s var(--ease); }
.plan-demo:hover { background: var(--deep); color: #fff; border-color: var(--deep); }
/* 一旦非表示：各ツールのデモアカウント／デモ画面が用意でき次第、この1行を削除して復帰 */
.plan-demo { display: none; }

.plan-notes { margin-top: 40px; }
.plan-notes p { color: #3f4247; font-size: 14px; }
.plan-notes p + p { margin-top: 8px; }
.plan-notes strong { color: var(--deep); }
.plan-flow { margin-top: 22px !important; font-family: var(--label); font-size: 13px; color: var(--ink); background: var(--paper); border-radius: var(--r); padding: 16px 20px; line-height: 1.9; }

/* ---------- news (お知らせ) ---------- */
.news-list { list-style: none; margin: 24px 0 0; padding: 0; }
.news-item { border-bottom: 1px solid rgba(35,38,42,.12); }
.news-item:first-child { border-top: 1px solid rgba(35,38,42,.12); }
.news-item a { display: flex; align-items: baseline; gap: 20px; padding: 18px 4px; color: var(--ink); }
.news-date { font-family: var(--label); font-size: 13px; color: var(--deep); flex: none; width: 92px; }
.news-title { flex: 1; font-size: 15px; }
.news-arrow { color: var(--muted); transition: transform .2s var(--ease); }
.news-item a:hover .news-title { color: var(--deep); }
.news-item a:hover .news-arrow { transform: translateX(3px); color: var(--coral); }
.news-more { margin-top: 22px; padding-left: 0; }

/* ---------- single article ---------- */
.article { padding-bottom: 80px; }
.article-head { padding-top: 104px; }
.article-title { font-size: clamp(28px, 4vw, 46px); line-height: 1.42; margin: 14px 0 10px; max-width: 900px; }
.article-meta { font-family: var(--label); font-size: 13px; color: var(--muted); }
.article-thumb { margin: 36px 0 8px; border-radius: var(--r-lg); overflow: hidden; }
.article-thumb img { width: 100%; height: auto; display: block; }
.article-body { margin-top: 40px; }
.article-body h2 { font-size: clamp(22px, 2.8vw, 30px); margin-top: 1.8em; }
.article-body h3 { font-size: 20px; margin-top: 1.5em; }
.article-body mark { border-radius: 2px; }
.article-related { margin-top: 80px; padding-top: 48px; border-top: 1px solid rgba(35,38,42,.1); }
.article-related .sec-title { margin-bottom: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .band { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .timeline::before { display: none; }
  .price-band { padding: 32px 24px; }
  .cadence { grid-template-columns: 1fr; gap: 16px; }
  .works-grid, .blog-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .work-single-body { grid-template-columns: 1fr; gap: 32px; }
  .work-single-meta { position: static; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .fw-form { padding: 32px 24px; }
  .track-grid { grid-template-columns: 1fr; }
  .news-wrap { grid-template-columns: 1fr; gap: 20px; }
  .plan { grid-template-columns: 1fr; gap: 14px; }
  .plan-price { text-align: left; min-width: 0; }
  .tier { margin-left: 0; }
  .plan-price--multi small { margin-left: 0; }
  .plan-base { padding: 28px 24px; }
  .case { padding: 32px 24px; }
  .case-rows > div { grid-template-columns: 120px 1fr; gap: 10px; }
  .band-photo { min-height: 260px; order: -1; }
  .band-bloom .band-photo { order: 0; }
  .band-copy { padding: 56px var(--gutter); }
  .primary-nav { display: none; }
  .nav-toggle { display: block; }
  .kv-orbit { display: none; }
}
@media (max-width: 768px) {
  .sec, .statement, .final-cta, .site-footer, .message-band { padding-top: 64px; padding-bottom: 64px; }
  .cta-row { gap: 14px; }
  .btn-cta, .fw-submit { width: 100%; }
  .footer-inner { flex-direction: column; }
  .footer-cols { gap: 40px; }
  .footer-bottom { flex-direction: column; }
  .page-hero--photo { padding: 104px 0 56px; }
  .company-row { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
  /* neutralize desktop line-breaks in headings so mobile wraps naturally */
  .sec-title br, .final-cta-title br, .statement-lead br, .cases-title br, .page-title br, .plan-heading br { display: none; }
  /* ただし .br-sp はスマホでのみ改行させる（上の非表示より優先） */
  .sec-title br.br-sp, .page-title br.br-sp, .statement-lead br.br-sp, .plan-heading br.br-sp, .plan-base h3 br.br-sp, .case-title br.br-sp { display: inline; }
  /* headings that keep their intentional break on mobile */
  .keep-br br { display: inline; }
  .keep-br { text-wrap: initial; }
  /* KV: keep the desktop break (社内に、「わかる人」は / いますか？); shrink so line 1 fits */
  .hero-title { font-size: clamp(24px, 7.2vw, 40px); white-space: nowrap; }
}
@media (max-width: 480px) {
  /* narrow 2-col cards: drop the cramped description, keep image + title */
  .work-desc { display: none; }
  .work-more { display: none; }
}

/* Japanese headings: balance lines so the last line isn't a lone character (泣き別れ回避) */
.hero-title, .sec-title, .final-cta-title, .final-cta-sub, .cases-title, .page-title,
.statement-lead, .work-single-title, .article-title, .plan-base h3, .plan-heading,
.track-card h3, .case-title, .blog-title, .work-name { text-wrap: balance; word-break: auto-phrase; }

/* SP専用改行（.br-sp）: PCでは非表示・スマホでのみ改行させる */
br.br-sp { display: none; }

/* Japanese body copy: phrase-based wrapping so lines don't break mid-word/mid-phrase (文節折り返し) */
.sec-intro, .sec-body, .hero-lead, .hero-lead-slide, .statement-sub, .philosophy-body, .bloom-body,
.edit-card p, .soft-card p, .plan-base p, .plan-base-price, .plan-body p, .track-card p, .track-price small,
.svc-note, .plan-price small, .plan-price--multi small, .price-notes li, .cadence, .promise-tag,
.prose p, .prose li, .quote-list li, .company-row, .news-title {
  word-break: auto-phrase; text-wrap: pretty;
}

/* mobile sticky CTA bar (Figma: 下部固定・スクロール中は隠す) */
.mobile-cta { display: none; }
@media (max-width: 768px) {
  .mobile-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--paper); border-top: 1px solid rgba(35,38,42,.1); box-shadow: 0 -6px 18px rgba(35,30,20,.12); padding: 12px 16px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); transform: translateY(0); transition: transform .3s var(--ease); will-change: transform; }
  .mobile-cta.is-hidden { transform: translateY(140%); }
  .mobile-cta .btn { width: 100%; }
  .hero-inner .cta-row { display: none; }
  .site-footer { padding-bottom: 96px; }
}

/* scroll reveal + hero parallax (movement, JS-driven) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .75s var(--ease); will-change: opacity, transform; }
.reveal.is-in { opacity: 1; transform: none; }
.page-hero--photo .ph-bg { overflow: hidden; }
.page-hero--photo .ph-bg img, .statement-bg img, .band-photo img { will-change: transform; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
  .kv-stage { display: none; }
  .kv-static { display: block; width: 100%; height: 100%; object-fit: contain; }
}

/* ---------- keyframes ---------- */
@keyframes fw-kv { 0%,100% { transform: scale(1.1) translate(-3%, -1.8%) rotate(-.9deg); } 50% { transform: scale(1.2) translate(3.4%, 2.4%) rotate(1.1deg); } }
@keyframes fw-kv2 { 0%,100% { transform: scale(1.16) translate(3.4%, 2.2%) rotate(1.1deg); } 50% { transform: scale(1.26) translate(-4%, -2.8%) rotate(-1.3deg); } }
@keyframes fw-kv-green { 0%,100% { transform: translate(-7%, 1%) scale(1); opacity: .4; } 50% { transform: translate(10%, -2%) scale(1.16); opacity: .82; } }
@keyframes fw-kv-flow { 0%,100% { transform: translate(-4%, -2%) scale(1.06); } 50% { transform: translate(5%, 3%) scale(1.16); } }
@keyframes fw-kv-flow2 { 0%,100% { transform: translate(4%, 2%) scale(1.12); } 50% { transform: translate(-5%, -3%) scale(1.02); } }
@keyframes kv-spin { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
@keyframes fw-float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-24px,22px) scale(1.06); } }
@keyframes fw-float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(28px,-18px) scale(1.05); } }
@keyframes fw-spin { to { transform: rotate(360deg); } }
@keyframes fw-marquee { to { transform: translateX(-50%); } }
@keyframes fw-pulse { 0%,100% { opacity: 1; } 50% { opacity: .72; } }
