/* ==========================================================================
   ZEN TUNNEL ENGINEERING — zentunneling.com
   Design system: ink / warm paper / vermillion, enso brand mark
   ========================================================================== */

:root {
  --ink: #14181d;
  --ink-soft: #1d232b;
  --paper: #f7f5f0;
  --white: #ffffff;
  --verm: #d5442e;
  --verm-dark: #b6301c;
  --verm-soft: #fdf0ed;
  --stone: #6e7681;
  --line: #e7e3da;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(20, 24, 29, .06);
  --shadow-md: 0 14px 40px rgba(20, 24, 29, .12);
  --font-head: "Zen Kaku Gothic New", "Inter", sans-serif;
  --font-body: "Inter", "Zen Kaku Gothic New", sans-serif;
  --font-jp: "Shippori Mincho", serif;
}

/* Slide-in reveal elements (translateX ±40px) must never widen the page on
   mobile — body{overflow-x:hidden} alone is ignored by mobile browsers when
   html stays visible. `clip` forbids horizontal scrolling without creating a
   scroll container (keeps position:sticky working); hidden is the fallback. */
html { scroll-behavior: auto; overflow-x: hidden; overflow-x: clip; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--verm); color: #fff; }

h1, h2, h3, h4, h5, .font-head { font-family: var(--font-head); font-weight: 700; letter-spacing: -.01em; }

img { max-width: 100%; }

a { color: var(--verm); text-decoration: none; }
a:hover { color: var(--verm-dark); }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 2000;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s ease, visibility .6s ease;
}
#preloader.done { opacity: 0; visibility: hidden; }
#preloader .enso-load { width: 84px; height: 84px; }
#preloader .enso-load circle {
  fill: none; stroke: var(--verm); stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 240; stroke-dashoffset: 240;
  transform-origin: center; transform: rotate(-90deg);
  animation: ensoDraw 1.6s ease-in-out infinite;
}
@keyframes ensoDraw {
  0%   { stroke-dashoffset: 240; }
  55%  { stroke-dashoffset: 40; }
  100% { stroke-dashoffset: 240; }
}

/* ---------- Navbar ---------- */
.zen-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1030;
  padding: 18px 0;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}
/* The blur lives on a ::before overlay, NOT on .zen-nav itself — a
   backdrop-filter would make the nav the containing block for its
   position:fixed descendants and trap the mobile offcanvas drawer
   inside the nav bar. */
.zen-nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
}
.zen-nav.scrolled::before,
.zen-nav.solid::before {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.zen-nav.scrolled,
.zen-nav.solid {
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
  padding: 10px 0;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand .enso-mark { width: 46px; height: 46px; flex: 0 0 auto; transition: transform .5s ease; }
.brand .brand-logo { height: 46px; width: auto; max-width: 240px; object-fit: contain; display: block; }
.brand:hover .enso-mark { transform: rotate(18deg); }
.brand-text { line-height: 1.05; }
.brand-text .brand-zen {
  font-family: var(--font-head); font-weight: 900; font-size: 1.45rem;
  letter-spacing: .02em; color: var(--verm); display: block;
}
.brand-text .brand-sub {
  font-size: .58rem; letter-spacing: .34em; font-weight: 600;
  color: var(--ink); text-transform: uppercase; display: block; margin-top: 2px;
}
.zen-nav.on-dark:not(.scrolled) .brand-text .brand-sub { color: #fff; }

.nav-pills-zen { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-head); font-weight: 700; font-size: .86rem;
  padding: 9px 18px; border-radius: 100px;
  background: var(--verm); color: #fff; border: 1.5px solid var(--verm);
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn-pill .arr { transition: transform .25s ease; font-size: .8em; }
.btn-pill:hover { background: var(--verm-dark); border-color: var(--verm-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(213, 68, 46, .32); }
.btn-pill:hover .arr { transform: translate(2px, -2px); }
.btn-pill.is-active { background: #fff; color: var(--verm); }
.btn-pill.is-active:hover { color: var(--verm-dark); }

.zen-toggler {
  border: 1.5px solid var(--verm); border-radius: 100px; padding: 8px 14px;
  background: transparent; color: var(--verm);
}
.zen-toggler:focus { box-shadow: none; }

/* ---------- Mobile nav: right drawer (offcanvas) ---------- */
.zen-drawer { --bs-offcanvas-width: 312px; }
@media (max-width: 991.98px) {
  .zen-drawer { background: var(--paper); overflow: hidden; }
  /* Ghost kanji — same motif as the footer, anchors the drawer to the brand */
  .zen-drawer::after {
    content: "禅"; position: absolute; right: -30px; bottom: -46px; z-index: 0;
    font-family: var(--font-jp); font-size: 15rem; line-height: 1;
    color: rgba(20, 24, 29, .045); pointer-events: none;
  }
  .zen-drawer .offcanvas-header {
    padding: 22px 26px 16px; border-bottom: 1px solid var(--line);
  }
  .zen-drawer-title {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-head); font-weight: 900; font-size: .9rem;
    letter-spacing: .22em; text-transform: uppercase; color: var(--ink);
  }
  .zen-drawer .offcanvas-body {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; padding: 8px 26px 26px;
  }
  .nav-pills-zen { flex-direction: column; align-items: stretch; gap: 0; padding: 0; }

  /* Drawer links: quiet ink typography, hairline rules, vermillion accents */
  .zen-drawer .btn-pill {
    position: relative;
    background: transparent; border: 0; border-radius: 0; box-shadow: none;
    color: var(--ink); justify-content: space-between;
    padding: 16px 2px; font-size: 1.02rem; letter-spacing: .01em;
    border-bottom: 1px solid var(--line);
    transition: color .25s ease, padding-left .25s ease;
  }
  .zen-drawer .btn-pill:hover {
    background: transparent; border-color: var(--line); color: var(--verm);
    transform: none; box-shadow: none;
  }
  .zen-drawer .btn-pill .arr { color: var(--verm); font-size: .85em; }
  .zen-drawer .btn-pill.is-active { background: transparent; color: var(--verm); padding-left: 20px; }
  .zen-drawer .btn-pill.is-active::before {
    content: ""; position: absolute; left: 2px; top: 50%; margin-top: -1px;
    width: 12px; height: 2px; background: var(--verm);
  }

  /* Nested menu-builder children */
  .zen-drawer .nav-drop-menu a {
    color: var(--stone); font-size: .9rem; font-weight: 600;
    padding: 10px 2px 10px 16px; border-radius: 0;
    border-bottom: 1px dashed var(--line);
  }
  .zen-drawer .nav-drop-menu a:hover { background: transparent; color: var(--verm); }

  /* Drawer foot: contact details, mirrors the site footer */
  .zen-drawer-foot {
    margin-top: auto; padding-top: 22px;
    font-size: .82rem; line-height: 1.75; color: var(--stone);
  }
  .zen-drawer-foot-label {
    font-family: var(--font-head); font-weight: 700; font-size: .68rem;
    letter-spacing: .2em; text-transform: uppercase; color: var(--verm);
    margin-bottom: 6px;
  }
  .zen-drawer-foot address { margin: 0 0 6px; font-style: normal; }
  .zen-drawer-foot a { color: var(--ink-soft); font-weight: 600; }
  .zen-drawer-foot a:hover { color: var(--verm); }
  .zen-drawer-foot .social-links a {
    width: 34px; height: 34px; font-size: .85rem;
    background: transparent; color: var(--verm); border: 1px solid var(--line);
  }
  .zen-drawer-foot .social-links a:hover { background: var(--verm); color: #fff; transform: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; color: #fff; text-align: center;
}
.hero-media { position: absolute; inset: -6% 0; z-index: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  animation: kenburns 18s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenburns {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.09) translateY(-1.5%); }
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(16, 19, 24, .55) 0%, rgba(16, 19, 24, .25) 45%, rgba(16, 19, 24, .65) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 140px 20px 90px; max-width: 900px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; font-weight: 600;
  color: rgba(255, 255, 255, .85); margin-bottom: 22px;
}
.hero-kicker::before, .hero-kicker::after { content: ""; width: 34px; height: 1px; background: var(--verm); }
.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 900; line-height: 1.12;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .35);
}
.hero h1 .accent { color: #ff8d75; }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.2rem); color: rgba(255, 255, 255, .85); margin-top: 18px; }
.hero-cta { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  padding: 13px 28px; border-radius: 100px;
  border: 1.5px solid rgba(255, 255, 255, .7); color: #fff;
  transition: all .3s ease;
}
.btn-ghost:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }
.btn-solid {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  padding: 13px 28px; border-radius: 100px;
  background: var(--verm); border: 1.5px solid var(--verm); color: #fff;
  transition: all .3s ease;
}
.btn-solid:hover { background: var(--verm-dark); border-color: var(--verm-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(213, 68, 46, .4); }

.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 2; width: 26px; height: 44px; border: 2px solid rgba(255, 255, 255, .6);
  border-radius: 20px;
}
.scroll-cue::before {
  content: ""; position: absolute; top: 8px; left: 50%; margin-left: -2px;
  width: 4px; height: 8px; border-radius: 4px; background: #fff;
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

.hero-kanji {
  position: absolute; z-index: 1; right: 4vw; bottom: -2vw;
  font-family: var(--font-jp); font-size: clamp(10rem, 24vw, 22rem);
  color: rgba(255, 255, 255, .06); line-height: 1; user-select: none; pointer-events: none;
}

/* ---------- Hero slider (Swiper) ---------- */
.hero-slider::after { content: none; }               /* overlay moves onto each slide */
.hero-slider .hero-slide {
  position: relative; min-height: 92vh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hero-slider .hero-slide::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(16, 19, 24, .55) 0%, rgba(16, 19, 24, .25) 45%, rgba(16, 19, 24, .65) 100%);
}
.hero-slider .hero-media img { animation: none; }
.hero-slider .swiper-slide-active .hero-media img { animation: kenburns 18s ease-in-out infinite alternate; }
.hero-slider .hero-kanji { z-index: 2; }
.hero-slider .scroll-cue { z-index: 3; }
.hero-slider .hero-inner { opacity: 0; transform: translateY(24px); transition: opacity .9s ease .35s, transform .9s ease .35s; }
.hero-slider .swiper-slide-active .hero-inner { opacity: 1; transform: none; }
.hero-slider .swiper-pagination { bottom: 84px; z-index: 3; }
.hero-slider .swiper-pagination-bullet {
  width: 26px; height: 3px; border-radius: 2px;
  background: rgba(255, 255, 255, .45); opacity: 1; transition: all .3s ease;
}
.hero-slider .swiper-pagination-bullet-active { background: var(--verm); width: 44px; }
@media (max-width: 991px) { .hero-slider .hero-slide { min-height: 86vh; } }

/* ---------- Page hero (subpages) ---------- */
.page-head { padding: 160px 0 40px; text-align: center; }
.badge-pill {
  display: inline-block; font-size: .82rem; font-weight: 600; color: var(--verm);
  border: 1.5px solid rgba(213, 68, 46, .45); border-radius: 100px;
  padding: 6px 18px; margin-bottom: 20px; background: var(--verm-soft);
}
.page-head h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; }
.page-head .lead-sub { color: var(--stone); max-width: 680px; margin: 14px auto 0; font-size: 1.02rem; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-tight { padding: 60px 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; }
.section-head p { color: var(--stone); max-width: 640px; margin: 12px auto 0; }

/* ---------- Partner marquee ---------- */
.marquee-wrap { overflow: hidden; position: relative; padding: 10px 0; }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: marquee 32s linear infinite; }
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.logo-chip {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  padding: 14px 26px; font-family: var(--font-head); font-weight: 700;
  color: var(--ink-soft); white-space: nowrap; font-size: .95rem;
  box-shadow: var(--shadow-sm);
}
.logo-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--verm); flex: 0 0 auto; }
.logo-card {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  padding: 14px 24px; box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.logo-card img {
  height: 46px; width: auto; display: block;
  filter: grayscale(1); opacity: .72;
  transition: filter .35s ease, opacity .35s ease;
}
.logo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.logo-card:hover img { filter: none; opacity: 1; }

/* ---------- Stats band ---------- */
.band {
  background: linear-gradient(135deg, var(--verm) 0%, var(--verm-dark) 100%);
  border-radius: var(--radius-lg); color: #fff;
  padding: 64px 40px; position: relative; overflow: hidden;
}
.band .band-kanji {
  position: absolute; right: -20px; top: -40px;
  font-family: var(--font-jp); font-size: 16rem; color: rgba(255, 255, 255, .07);
  line-height: 1; pointer-events: none;
}
.band h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; }
.band .band-sub { color: rgba(255, 255, 255, .82); }
.stat-card {
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius); padding: 28px 22px; text-align: center; height: 100%;
  backdrop-filter: blur(4px);
  transition: transform .3s ease, background .3s ease;
}
.stat-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, .18); }
.stat-card .stat-label { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.stat-card .stat-num { font-family: var(--font-head); font-weight: 900; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.1; margin: 6px 0 4px; }
.stat-card .stat-cap { font-size: .9rem; color: rgba(255, 255, 255, .85); }

/* ---------- Cards: projects ---------- */
.proj-card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff; height: 100%; box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease;
}
.proj-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); }
.proj-thumb { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.proj-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.proj-card:hover .proj-thumb img { transform: scale(1.07); }
.proj-thumb .proj-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(20, 24, 29, .72); color: #fff; font-size: .72rem; font-weight: 600;
  letter-spacing: .06em; padding: 5px 12px; border-radius: 100px; backdrop-filter: blur(4px);
}
.proj-body { padding: 20px 22px 22px; }
.proj-body .proj-client { font-size: .76rem; color: var(--stone); letter-spacing: .04em; }
.proj-body h5 { font-size: 1.02rem; margin: 6px 0 2px; font-weight: 700; }
.proj-body .proj-sub { font-size: .86rem; color: var(--stone); }
.proj-body .proj-date { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--verm); font-weight: 700; margin-top: 12px; }

/* ---------- Project details ---------- */
.proj-card { position: relative; }
.proj-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: .82rem; color: var(--verm);
}
.proj-more .arr { transition: transform .25s ease; }
.proj-card:hover .proj-more .arr { transform: translate(2px, -2px); }

.detail-hero { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.detail-hero img { width: 100%; max-height: 520px; object-fit: cover; display: block; }

.fact-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  padding: 28px 26px; position: sticky; top: 110px;
}
.fact-card h6 {
  font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  font-size: .78rem; color: var(--verm); margin-bottom: 10px;
}
.fact-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.fact-row:last-of-type { border-bottom: 0; }
.fact-row .f-label { color: var(--stone); flex: 0 0 auto; }
.fact-row .f-value { font-weight: 600; text-align: right; }

.detail-body h4 { font-weight: 800; margin-bottom: 14px; }
.detail-body p { color: var(--ink-soft); line-height: 1.85; }
.scope-list { list-style: none; padding: 0; margin: 0; }
.scope-list li {
  position: relative; padding: 10px 0 10px 32px; border-bottom: 1px dashed var(--line);
  color: var(--ink-soft);
}
.scope-list li::before {
  content: "◦"; position: absolute; left: 6px; top: 8px;
  color: var(--verm); font-size: 1.2rem; line-height: 1.4;
}
.scope-list li:last-child { border-bottom: 0; }

.gallery-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.gallery-img:hover img { transform: scale(1.05); }

/* lightbox zoom cue on gallery / hero anchors */
.gallery-img a, .detail-hero a { position: relative; }
.vb-cue {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20, 24, 29, .65); color: #fff; font-size: 1rem;
  backdrop-filter: blur(4px);
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease, background .3s ease;
  pointer-events: none;
}
.gallery-img a:hover .vb-cue, .detail-hero a:hover .vb-cue { opacity: 1; transform: translateY(0); }
.vb-cue:hover { background: var(--verm); }
@media (hover: none) {
  .vb-cue { opacity: .85; transform: none; }
}

.pager { display: flex; gap: 14px; flex-wrap: wrap; justify-content: space-between; }
.pager a {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--line); border-radius: 100px; padding: 12px 24px;
  font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--ink);
  transition: all .3s ease;
}
.pager a:hover { border-color: var(--verm); color: var(--verm); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.pager a .pg-label { font-size: .72rem; color: var(--stone); display: block; font-weight: 500; }
/* Mobile: the pills wrap onto their own rows — give each the full width,
   Previous anchored left, Next anchored right, so they mirror cleanly. */
@media (max-width: 767.98px) {
  .pager { gap: 10px; }
  .pager a { width: 100%; }
  .pager a:last-child { justify-content: flex-end; }
}

/* ---------- Leadership details ---------- */
.leader-profile { padding: 56px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.leader-profile:last-of-type { border-bottom: 0; }
.leader-portrait { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); background: var(--paper); }
.leader-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; display: block; }
.leader-portrait .avatar-fallback {
  width: 100%; aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 900; font-size: 4.6rem; color: var(--verm);
  background: linear-gradient(160deg, var(--paper), #ece8de);
}
.leader-profile .role-tag { color: var(--verm); font-weight: 700; font-size: .9rem; letter-spacing: .04em; }
.leader-profile h2 { font-weight: 800; margin: 6px 0 14px; }
.leader-profile .bio { color: var(--ink-soft); line-height: 1.85; }

.timeline { list-style: none; margin: 18px 0 0; padding: 0 0 0 26px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 22px 14px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -33px; top: 5px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--verm); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--verm);
}
.timeline .tl-period { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--verm); font-weight: 700; }
.timeline .tl-role { font-family: var(--font-head); font-weight: 700; margin: 2px 0; }
.timeline .tl-note { color: var(--stone); font-size: .9rem; }

.exp-chip {
  display: inline-block; margin: 0 8px 8px 0; padding: 7px 14px;
  border: 1px solid var(--line); border-radius: 100px; background: #fff;
  font-size: .8rem; font-weight: 600; color: var(--ink-soft);
}
.exp-chip b { color: var(--verm); font-weight: 700; }
.cert-chip {
  display: inline-flex; align-items: center; gap: 7px; margin: 0 8px 8px 0;
  padding: 8px 16px; border-radius: 100px; background: var(--verm-soft);
  font-size: .8rem; font-weight: 600; color: var(--verm-dark);
}
.mini-head {
  font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  font-size: .78rem; color: var(--verm); margin: 26px 0 12px;
}
.edu-item { padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; margin-bottom: 10px; }

/* leader machine record table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.zen-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .88rem; }
.zen-table thead th {
  font-family: var(--font-head); font-weight: 700; font-size: .76rem;
  letter-spacing: .08em; text-transform: uppercase; color: #fff;
  background: var(--verm); padding: 12px 16px; text-align: left; white-space: nowrap;
}
.zen-table tbody td { padding: 11px 16px; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.zen-table tbody tr:last-child td { border-bottom: 0; }
.zen-table tbody tr:nth-child(even) { background: var(--paper); }
.zen-table tbody tr:hover { background: var(--verm-soft); }

/* compact the timeline indent on small screens */
@media (max-width: 767.98px) {
  .timeline { padding-left: 14px; }
  .timeline li { padding-left: 8px; }
  .timeline li::before { left: -21px; }
}

/* ---------- Values ---------- */
.values-box { background: var(--paper); border-radius: var(--radius-lg); padding: 64px 44px; }
.value-item { display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.value-item:last-child { border-bottom: 0; }
.value-item .v-ico {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line); color: var(--verm);
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
  box-shadow: var(--shadow-sm);
}
.value-item h6 { font-weight: 700; margin-bottom: 3px; }
.value-item p { color: var(--stone); font-size: .92rem; margin: 0; }
.values-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); position: relative; }
.values-img img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }

/* ---------- Services ---------- */
.svc-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  overflow: hidden; height: 100%; text-align: center;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.svc-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: rgba(213, 68, 46, .35); }
.svc-thumb { overflow: hidden; aspect-ratio: 4 / 3; }
.svc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.svc-card:hover .svc-thumb img { transform: scale(1.08); }
.svc-card .svc-name { font-family: var(--font-head); font-weight: 700; color: var(--verm); font-size: .92rem; padding: 16px 12px; line-height: 1.35; }

/* services detail rows */
.svc-row { padding: 44px 0; border-bottom: 1px solid var(--line); }
.svc-row:last-child { border-bottom: 0; }
.svc-row .svc-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.svc-row .svc-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s ease; }
.svc-row .svc-img:hover img { transform: scale(1.05); }
.svc-row h3 { color: var(--verm); font-weight: 800; font-size: 1.55rem; }
.svc-row .svc-tag { font-style: italic; color: var(--stone); margin-bottom: 14px; }
.svc-row ul { color: var(--ink-soft); padding-left: 1.1rem; }
.svc-row ul li { margin-bottom: 6px; }

/* ---------- Careers ---------- */
.careers-grid { border-radius: var(--radius-lg); overflow: hidden; }
.careers-img { min-height: 380px; }
.careers-img img { width: 100%; height: 100%; object-fit: cover; }
.careers-cta {
  background: linear-gradient(135deg, var(--verm), var(--verm-dark));
  color: #fff; display: flex; flex-direction: column; justify-content: center;
  padding: 54px 46px;
}
.careers-cta h3 { font-weight: 800; font-size: clamp(1.4rem, 2.4vw, 2rem); }
.culture-card {
  background: var(--paper); border-radius: var(--radius); padding: 22px;
  height: 100%; font-size: .92rem; color: var(--ink-soft);
  transition: transform .3s ease;
}
.culture-card:hover { transform: translateY(-4px); }
.culture-card .c-ico { font-size: 1.3rem; color: var(--verm); margin-bottom: 10px; display: block; }
.culture-card b { font-family: var(--font-head); }
.job-chip {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 18px 20px; height: 100%;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.job-chip:hover { border-color: rgba(213, 68, 46, .45); transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.job-chip .job-title { font-family: var(--font-head); font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.job-chip .job-title .plus { color: var(--verm); font-size: 1.2rem; line-height: 1; }
.job-chip .job-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.job-chip .meta-tag {
  font-size: .7rem; font-weight: 600; color: var(--verm);
  background: var(--verm-soft); border-radius: 100px; padding: 4px 12px;
}

/* ---------- Clients ---------- */
.client-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 30px 18px; height: 100%; gap: 10px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.client-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(213, 68, 46, .3); }
.client-card .mono {
  width: 62px; height: 62px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 900; font-size: 1.25rem;
  background: var(--paper); color: var(--verm); border: 1px solid var(--line);
}
.client-card .client-name { font-family: var(--font-head); font-weight: 700; font-size: .95rem; line-height: 1.3; }
.client-card .client-note { font-size: .78rem; color: var(--stone); }

.affiliate-card {
  border-radius: var(--radius-lg); padding: 44px 38px; height: 100%;
  background: var(--ink); color: #fff; position: relative; overflow: hidden;
  transition: transform .35s ease;
}
.affiliate-card:hover { transform: translateY(-6px); }
.affiliate-card::after {
  content: "縁"; position: absolute; right: -14px; bottom: -46px;
  font-family: var(--font-jp); font-size: 9rem; color: rgba(255, 255, 255, .06); line-height: 1;
}
.affiliate-card .aff-kicker { color: #ff9d88; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; }
.affiliate-card h4 { font-weight: 800; margin: 10px 0 12px; }
.affiliate-card p { color: rgba(255, 255, 255, .78); font-size: .95rem; margin: 0; }

/* ---------- Newsroom ---------- */
.news-card { height: 100%; display: flex; flex-direction: column; }
.news-thumb { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 11; box-shadow: var(--shadow-sm); }
.news-card h5 a { color: inherit; }
.news-card h5 a:hover { color: var(--verm); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.news-card:hover .news-thumb img { transform: scale(1.06); }
.news-date { font-size: .78rem; color: var(--stone); margin: 16px 0 4px; }
.news-card h5 { font-size: 1.05rem; font-weight: 700; line-height: 1.45; }
.news-card p { color: var(--stone); font-size: .9rem; }
.read-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: auto;
  font-family: var(--font-head); font-weight: 700; font-size: .88rem; color: var(--verm);
  border-bottom: 1.5px solid var(--verm); padding-bottom: 2px; width: fit-content;
  transition: gap .25s ease;
}
.read-more:hover { gap: 10px; }
/* Mobile: cards stack — breathing room between "Read More" and the next card */
@media (max-width: 767.98px) {
  .news-card { padding-bottom: 26px; }
}

/* ---------- Leadership ---------- */
.leader-card {
  position: relative;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  overflow: hidden; height: 100%; text-align: center;
  transition: transform .35s ease, box-shadow .35s ease;
}
.leader-card .proj-more { justify-content: center; width: 100%; }
.leader-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.leader-photo { aspect-ratio: 1 / 1; overflow: hidden; background: var(--paper); }
.leader-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.leader-photo .avatar-fallback {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 900; font-size: 3.4rem; color: var(--verm);
  background: linear-gradient(160deg, var(--paper), #ece8de);
}
.leader-body { padding: 20px 18px 24px; }
.leader-body h5 { font-weight: 800; margin-bottom: 2px; }
.leader-body .role { color: var(--verm); font-size: .84rem; font-weight: 600; }
.leader-body p { color: var(--stone); font-size: .86rem; margin: 10px 0 0; }

/* ---------- Contact ---------- */
.contact-panel { background: var(--paper); border-radius: var(--radius-lg); padding: 46px; }
.form-control-zen {
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  padding: 14px 18px; font-size: .95rem; width: 100%;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.form-control-zen:focus { outline: none; border-color: var(--verm); box-shadow: 0 0 0 4px rgba(213, 68, 46, .12); }
.form-control-zen.is-invalid { border-color: var(--verm-dark); background: #fff7f5; }
textarea.form-control-zen { min-height: 170px; resize: vertical; }
.form-msg { display: none; border-radius: 14px; padding: 14px 18px; font-size: .92rem; margin-top: 16px; }
.form-msg.ok { background: #eaf6ee; color: #1c6b38; border: 1px solid #bfe3cb; }
.form-msg.err { background: #fdeeea; color: #a3260f; border: 1px solid #f3c4ba; }
.info-tile {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 24px; height: 100%; transition: transform .3s ease, box-shadow .3s ease;
}
.info-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.info-tile .i-ico { color: var(--verm); font-size: 1.4rem; margin-bottom: 12px; display: block; }
.info-tile h6 { font-weight: 700; }
.info-tile p { color: var(--stone); font-size: .9rem; margin: 0; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.map-frame iframe { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(.35); }

/* ---------- Footer ---------- */
.footer { background: #0e1114; color: #fff; padding: 0 0 30px; margin-top: 90px; position: relative; overflow: hidden; }
.footer .footer-kanji {
  position: absolute; right: -30px; top: -60px; font-family: var(--font-jp);
  font-size: 20rem; color: rgba(255, 255, 255, .03); line-height: 1; pointer-events: none;
}
.footer-top {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; flex-wrap: wrap; padding: 72px 0 48px;
}
.footer .footer-tag { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.25; max-width: 620px; margin: 0; }
.footer-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-cta-kicker { font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr;
  gap: 40px 32px; padding: 52px 0 8px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.footer .brand-text .brand-sub { color: rgba(255, 255, 255, .75); }
.footer-blurb { color: rgba(255, 255, 255, .55); font-size: .92rem; line-height: 1.8; margin: 18px 0 22px; max-width: 300px; }
.footer-col-label {
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: .78rem;
  letter-spacing: .24em; text-transform: uppercase;
  color: rgba(255, 255, 255, .45); margin-bottom: 20px;
}
.footer-col-label .jp { font-family: var(--font-jp); font-size: .95rem; letter-spacing: .1em; color: var(--verm); }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.footer-links a {
  position: relative; color: rgba(255, 255, 255, .72); font-size: .93rem;
  transition: color .25s ease, padding-left .25s ease;
}
.footer-links a::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 0; height: 1.5px;
  background: var(--verm); transition: width .25s ease;
}
.footer-links a:hover { color: #fff; padding-left: 16px; }
.footer-links a:hover::before { width: 10px; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.footer-contact li { display: flex; gap: 12px; align-items: baseline; color: rgba(255, 255, 255, .72); font-size: .93rem; line-height: 1.6; }
.footer-contact li i { color: var(--verm); font-size: .95rem; flex: 0 0 auto; }
.footer-contact a { color: rgba(255, 255, 255, .85); }
.footer-contact a:hover { color: #ff9d88; }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--verm); color: #fff; transition: transform .3s ease, background .3s ease;
}
.social-links a:hover { transform: translateY(-3px) scale(1.06); background: var(--verm-dark); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 46px; padding-top: 22px; color: rgba(255, 255, 255, .45); font-size: .84rem; }
@media (max-width: 991px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { padding-top: 60px; }
}
@media (max-width: 575px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer .footer-kanji { font-size: 13rem; }
}

/* ---------- Back to top ---------- */
#toTop {
  position: fixed; right: 22px; bottom: 22px; z-index: 1040;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--verm); color: #fff; font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: all .35s ease;
}
#toTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
#toTop:hover { background: var(--verm-dark); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal-left.in { opacity: 1; transform: none; }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal-right.in { opacity: 1; transform: none; }
.reveal-zoom { opacity: 0; transform: scale(.94); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal-zoom.in { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: .12s; }
[data-delay="2"] { transition-delay: .24s; }
[data-delay="3"] { transition-delay: .36s; }
[data-delay="4"] { transition-delay: .48s; }
[data-delay="5"] { transition-delay: .60s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-zoom { opacity: 1; transform: none; transition: none; }
  .hero-media img { animation: none; }
}

@media (max-width: 767.98px) {
  .section { padding: 64px 0; }
  .band { padding: 44px 24px; }
  .values-box { padding: 40px 24px; }
  .careers-cta { padding: 38px 28px; }
  .contact-panel { padding: 30px 22px; }
  .hero { min-height: 86vh; }
}



/* ---------- Header nav dropdown (menu builder sub-items) ---------- */
.nav-drop { position: relative; display: inline-block; }
.nav-drop-menu {
  display: none; position: absolute; top: 100%; left: 0; z-index: 1050;
  min-width: 190px; padding: 8px; margin-top: 6px;
  background: #fff; border: 1px solid rgba(20, 24, 29, .08); border-radius: 14px;
  box-shadow: 0 14px 40px rgba(20, 24, 29, .14);
}
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { display: block; }
.nav-drop-menu a {
  display: block; padding: 8px 12px; border-radius: 9px;
  font-size: .85rem; font-weight: 600; color: #14181d; text-decoration: none;
}
.nav-drop-menu a:hover { background: rgba(213, 68, 46, .08); color: #d5442e; }
@media (max-width: 991.98px) {
  .nav-drop-menu { position: static; display: block; box-shadow: none; border: 0; padding-left: 18px; }
}

/* ---------- Article detail (newsroom) ---------- */
.read-progress {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1040;
  background: transparent; pointer-events: none;
}
/* Mobile/tablet only — same breakpoint as the drawer nav */
@media (max-width: 991.98px) {
  .read-progress { display: block; }
}
.read-progress span { display: block; height: 100%; width: 0; background: var(--verm); transition: width .1s linear; }

.article-eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font-family: var(--font-head); font-weight: 700; font-size: .72rem;
  letter-spacing: .3em; text-transform: uppercase; color: var(--verm);
  margin-bottom: 18px;
}
.article-eyebrow .rule { width: 34px; height: 1.5px; background: var(--verm); opacity: .55; }

.article-meta {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 18px; font-size: .84rem; color: var(--stone);
}
.article-meta i { color: var(--verm); margin-right: 5px; }
.article-meta .dot { opacity: .5; }

.article-body { font-size: 1.04rem; line-height: 1.95; color: var(--ink-soft); }
.article-body p { margin-bottom: 1.5em; }
/* Drop cap — Shippori Mincho, the brand's serif, in vermillion */
.article-body > p:first-of-type::first-letter {
  font-family: var(--font-jp); font-weight: 600; color: var(--verm);
  font-size: 3.55em; line-height: .82; float: left;
  padding: .08em .14em 0 0;
}
.article-body h2, .article-body h3 {
  font-weight: 800; color: var(--ink); margin: 1.8em 0 .7em;
  position: relative; padding-left: 22px;
}
.article-body h2 { font-size: 1.45rem; }
.article-body h3 { font-size: 1.2rem; }
.article-body h2::before, .article-body h3::before {
  content: ""; position: absolute; left: 0; top: .48em; width: 13px; height: 2.5px; background: var(--verm);
}
.article-body a { color: var(--verm); border-bottom: 1px solid rgba(213, 68, 46, .4); }
.article-body a:hover { border-bottom-color: var(--verm); }
.article-body blockquote {
  margin: 1.8em 0; padding: 18px 24px;
  background: var(--paper); border-left: 3px solid var(--verm); border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; color: var(--ink);
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body ul, .article-body ol { margin: 0 0 1.5em; padding-left: 1.3em; }
.article-body li { margin-bottom: .5em; }
.article-body li::marker { color: var(--verm); }
.article-body img { max-width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

.article-share {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
}
.article-share .share-label {
  font-family: var(--font-head); font-weight: 700; font-size: .72rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--stone);
}
.article-share .social-links a {
  width: 36px; height: 36px; font-size: .9rem;
  background: transparent; color: var(--verm); border: 1px solid var(--line);
}
.article-share .social-links a:hover { background: var(--verm); color: #fff; transform: none; }
