/* =====================================================================
   HIRAKE Inc. — Corporate site
   Design system + common shell (header / footer) + hero
   Session 1 / 2026-06-25
   Palette + type tokens are the single source of truth for later sessions.
   ===================================================================== */

/* ------------------------------------------------------------------ *
 * 1. Design tokens
 * ------------------------------------------------------------------ */
:root {
  /* — Brand color — accent is the Figma-picked lime (#89FF00) — */
  --ink:          #0A0A0A;   /* near-black, primary text + dark surfaces  */
  --paper:        #FFFFFF;   /* pure white                                */
  --bg:           #FAFAFA;   /* off-white page base                       */
  --accent:       #89FF00;   /* lime — accent ONLY (picked from Figma)    */
  --accent-press: #74DB00;   /* lime, pressed / hover                     */
  --accent-ink:   #0A0A0A;   /* text that sits on the lime                */
  --muted:        #6B6B6B;   /* secondary text                            */

  /* — Derived neutrals — */
  --line:         #E8E8E8;            /* hairline on light                 */
  --line-dark:    rgba(255,255,255,.14);
  --ink-72:       rgba(10,10,10,.72);
  --ink-56:       rgba(10,10,10,.56);
  --paper-72:     rgba(255,255,255,.72);
  --paper-52:     rgba(255,255,255,.52);

  /* — Dark surface depth (hero / footer) — */
  --dark-1:       #141414;
  --dark-2:       #0d0d0d;

  /* — Typography — */
  --font-display: "Spectral", "Noto Serif JP", ui-serif, Georgia, serif;
  --font-jp-serif:"Noto Serif JP", serif;
  --font-jp-sans: "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-body:    var(--font-jp-sans);

  /* fluid scale (min → max across viewport) */
  --fs-hero:    clamp(2.7rem, 1.30rem + 5.9vw, 5.75rem);
  --fs-h2:      clamp(1.9rem, 1.30rem + 2.5vw, 3.0rem);
  --fs-h3:      clamp(1.3rem, 1.05rem + 1.0vw, 1.75rem);
  --fs-lead:    clamp(1.0rem, 0.93rem + 0.45vw, 1.22rem);
  --fs-body:    1rem;
  --fs-small:   0.8125rem;
  --fs-eyebrow: 0.75rem;

  --lh-tight:   1.06;
  --lh-snug:    1.3;
  --lh-body:    1.85;

  /* — Layout — */
  --container:  1200px;
  --gutter:     clamp(20px, 5vw, 48px);
  --header-h:   76px;
  --section-y:  clamp(72px, 9vw, 140px);

  /* — Radii — */
  --r-pill:     999px;
  --r-sm:       8px;
  --r-md:       14px;

  /* — Elevation — */
  --shadow-sm:  0 1px 2px rgba(10,10,10,.05);
  --shadow-md:  0 18px 50px -24px rgba(10,10,10,.35);

  /* — Motion — */
  --ease:       cubic-bezier(.22,.61,.36,1);
  --dur:        .45s;

  /* — Stacking — */
  --z-header:   100;
  --z-menu:     90;
}

/* ------------------------------------------------------------------ *
 * 2. Reset / base
 * ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }

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

/* skip link */
.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: var(--r-sm);
  font-size: var(--fs-small);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ------------------------------------------------------------------ *
 * 3. Layout primitives
 * ------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ------------------------------------------------------------------ *
 * 4. Typography helpers
 * ------------------------------------------------------------------ */
.display { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }
.eyebrow {
  font-size: var(--fs-eyebrow);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}

/* ------------------------------------------------------------------ *
 * 5. Buttons
 * ------------------------------------------------------------------ */
.btn {
  --_pad-y: .85em;
  --_pad-x: 1.6em;
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: var(--_pad-y) var(--_pad-x);
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: var(--font-jp-sans);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.btn__arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--accent {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn--accent:hover { background: var(--accent-press); transform: translateY(-1px); }
.btn--accent:active { transform: translateY(0); }

/* outline button on dark — kept here for later sessions */
.btn--ghost-dark {
  background: transparent;
  color: var(--paper);
  border-color: var(--line-dark);
}
.btn--ghost-dark:hover { border-color: var(--paper); }

/* compact pill used in the header nav */
.btn--sm { font-size: .875rem; --_pad-y: .7em; --_pad-x: 1.25em; }

/* ------------------------------------------------------------------ *
 * 6. Header / navigation
 *    Default state = solid light (for light sub-pages).
 *    .header--over-hero = transparent overlay on the dark hero (home top).
 * ------------------------------------------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--paper-72);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
          backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-header__logo { display: inline-flex; align-items: center; position: relative; z-index: 2; }
.site-header__logo img { height: 26px; width: auto; }
.logo--on-dark  { display: none; }   /* white wordmark — shown over dark   */
.logo--on-light { display: block; }  /* black wordmark — shown on light    */

/* nav */
.site-nav__list { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 40px); }
.site-nav__link {
  position: relative;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--ink-72);
  padding-block: 6px;
  transition: color var(--dur) var(--ease);
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.site-nav__link:hover { color: var(--ink); }
.site-nav__link:hover::after { transform: scaleX(1); }
.site-nav__cta { margin-left: 4px; }

/* — transparent-over-hero modifier — */
.site-header.header--over-hero {
  background: transparent;
  border-color: transparent;
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
}
.header--over-hero .logo--on-dark  { display: block; }
.header--over-hero .logo--on-light { display: none; }
.header--over-hero .site-nav__link { color: var(--paper-72); }
.header--over-hero .site-nav__link:hover { color: var(--paper); }

/* hamburger */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-right: -10px;
  border: 0; background: transparent;
  position: relative;
  z-index: 2;            /* stay above the full-screen mobile nav panel */
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 22px; height: 1.6px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease), opacity .2s var(--ease), background-color var(--dur) var(--ease);
}
.nav-toggle span::before { transform: translate(-50%, -7px); }
.nav-toggle span::after  { transform: translate(-50%,  7px); }
.header--over-hero .nav-toggle span,
.header--over-hero .nav-toggle span::before,
.header--over-hero .nav-toggle span::after { background: var(--paper); }

body.is-locked .nav-toggle span { background: transparent; }
body.is-locked .nav-toggle span::before { transform: translate(-50%, 0) rotate(45deg); background: var(--paper); }
body.is-locked .nav-toggle span::after  { transform: translate(-50%, 0) rotate(-45deg); background: var(--paper); }

/* When the full-screen menu is open the header must blend into it and never
   trap the fixed panel (backdrop-filter would become its containing block).
   Force the white wordmark so it stays visible on the dark panel. */
body.is-locked .site-header {
  background: transparent;
  border-color: transparent;
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
}
body.is-locked .logo--on-dark  { display: block; }
body.is-locked .logo--on-light { display: none; }

/* ------------------------------------------------------------------ *
 * 7. Hero (dark)
 * ------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: clamp(620px, 92vh, 940px);
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + clamp(40px, 8vh, 96px));
  padding-bottom: clamp(64px, 10vh, 120px);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(115% 80% at 88% 8%, rgba(137,255,0,.13), transparent 52%),
    radial-gradient(120% 120% at 18% 115%, var(--dark-1), var(--dark-2) 62%);
}
/* faint structural hairlines — subtle, not decorative noise */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: calc((100% - var(--gutter) * 2) / 12) 100%;
  background-position: var(--gutter) 0;
  opacity: .5;
  mask-image: linear-gradient(to bottom, transparent, #000 35%, #000 80%, transparent);
}
.hero__inner { position: relative; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  font-size: var(--fs-eyebrow);
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--paper-72);
  margin-bottom: clamp(22px, 3vh, 34px);
}
.hero__eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(137,255,0,.18);
  flex: none;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
  letter-spacing: -0.015em;
  max-width: 16ch;
  margin-bottom: clamp(26px, 3.4vh, 40px);
}
.hero__title em { font-style: italic; font-weight: 500; }

.hero__lead {
  font-family: var(--font-jp-sans);
  font-size: var(--fs-lead);
  line-height: 1.95;
  font-weight: 400;
  color: var(--paper-72);
  max-width: 30em;
  margin-bottom: clamp(34px, 4.4vh, 48px);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* scroll cue */
.hero__scroll {
  position: absolute;
  left: var(--gutter); bottom: clamp(22px, 4vh, 38px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .68rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--paper-52);
}
.hero__scroll .line {
  width: 46px; height: 1px;
  background: var(--paper-52);
  position: relative;
  overflow: hidden;
}
.hero__scroll .line::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: var(--accent);
  animation: scrollcue 2.6s var(--ease) infinite;
}
@keyframes scrollcue {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(250%); }
  100% { transform: translateX(250%); }
}

/* ------------------------------------------------------------------ *
 * 8. Footer (dark)
 * ------------------------------------------------------------------ */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-top: clamp(64px, 8vw, 104px);
  padding-bottom: 40px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  padding-bottom: clamp(48px, 6vw, 72px);
  border-bottom: 1px solid var(--line-dark);
}
.footer__brand img { height: 28px; width: auto; margin-bottom: 22px; }
.footer__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--paper-72);
  letter-spacing: .01em;
}

.footer__contact { display: flex; flex-direction: column; gap: 26px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.footer__nav a {
  font-size: .9rem;
  color: var(--paper-72);
  transition: color var(--dur) var(--ease);
}
.footer__nav a:hover { color: var(--accent); }

.footer__addr { font-size: var(--fs-small); line-height: 1.9; color: var(--paper-52); font-style: normal; }
.footer__mail {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem);
  letter-spacing: .01em;
  width: fit-content;
  color: var(--paper);
  transition: color var(--dur) var(--ease);
}
.footer__mail:hover { color: var(--accent); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 30px;
}
.footer__bottom small { font-size: var(--fs-small); color: var(--paper-52); letter-spacing: .01em; }

/* ------------------------------------------------------------------ *
 * 9. Responsive — mobile nav + layout shifts
 * ------------------------------------------------------------------ */
@media (max-width: 900px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;          /* header (z:100) already lifts this above the page;
                            keep it below the logo/toggle (z:2) so they stay clickable */
    background: var(--ink);
    padding: calc(var(--header-h) + 28px) var(--gutter) 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s linear .35s;
  }
  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity .35s var(--ease), transform .35s var(--ease);
  }
  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
  }
  .site-nav__item { width: 100%; }
  .site-nav__link {
    display: block;
    width: 100%;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    color: var(--paper) !important;
    padding-block: 14px;
    border-bottom: 1px solid var(--line-dark);
  }
  .site-nav__link::after { display: none; }
  .site-nav__cta { margin: 28px 0 0; }
  .site-nav__cta .btn { width: 100%; justify-content: center; font-size: 1rem; --_pad-y: 1.05em; }
}

@media (max-width: 720px) {
  .footer__top { grid-template-columns: 1fr; }
  .hero__scroll { display: none; }
}

@media (min-width: 901px) {
  /* ensure the menu panel never lingers hidden on desktop */
  .site-nav { opacity: 1 !important; visibility: visible !important; transform: none !important; }
}

/* ====================================================================
   SESSION 2 — top-page content sections
   (services / works + logo wall / company / contact band)
   Built on the Session 1 tokens above; no new palette or fonts.
   ==================================================================== */

/* ------------------------------------------------------------------ *
 * 10. Section primitives
 * ------------------------------------------------------------------ */
.section { padding-block: var(--section-y); }
.section--bg    { background: var(--bg); }
.section--paper { background: var(--paper); }

.section__head { max-width: 820px; margin-bottom: clamp(40px, 5vw, 68px); }
.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  letter-spacing: -0.01em;
  color: var(--ink);
}
/* JP-heavy titles read better with the serif gothic + a touch more leading */
.section__title:lang(ja) { font-family: var(--font-jp-serif); font-weight: 600; letter-spacing: .01em; }
.section__lead {
  margin-top: clamp(18px, 2vw, 26px);
  max-width: 56ch;
  font-size: var(--fs-lead);
  line-height: 1.95;
  color: var(--ink-72);
}

/* the eyebrow already exists (§4); make it a flex row with an optional dot */
.eyebrow { display: inline-flex; align-items: center; gap: .7em; }
.eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(137,255,0,.16);
  flex: none;
}

/* small label that introduces a sub-block (e.g. the service grid) */
.section__label {
  display: flex; align-items: center; gap: .8em;
  margin-bottom: clamp(20px, 2.4vw, 32px);
  font-family: var(--font-jp-serif);
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .02em;
}
.section__label span { color: var(--accent); }

/* ------------------------------------------------------------------ *
 * 11. Services grid
 * ------------------------------------------------------------------ */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.5vw, 22px);
}
.svc-card {
  position: relative;
  display: flex;
  gap: clamp(16px, 1.8vw, 28px);
  padding: clamp(26px, 3vw, 44px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
/* lime hairline that grows in on hover */
.svc-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.svc-card:hover {
  border-color: rgba(10,10,10,.16);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.svc-card:hover::before { transform: scaleX(1); }

.svc-card__no {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 500;
  line-height: 1;
  color: var(--muted);
  flex: none;
  transition: color var(--dur) var(--ease);
}
.svc-card:hover .svc-card__no { color: var(--accent-press); }

.svc-card__en {
  font-size: var(--fs-eyebrow);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: .7em;
}
.svc-card__title {
  font-family: var(--font-jp-serif);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .01em;
  color: var(--ink);
  margin-bottom: .85em;
}
.svc-card__desc {
  font-size: .94rem;
  line-height: 1.92;
  color: var(--ink-72);
}

/* ------------------------------------------------------------------ *
 * 12. Logo wall
 * ------------------------------------------------------------------ */
.logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.2vw, 16px);
  margin-bottom: clamp(48px, 6vw, 84px);
}
.logos__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(116px, 10vw, 146px);
  padding: clamp(14px, 1.6vw, 22px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.logos__cell img {
  width: auto;
  max-width: 90%;
  max-height: 76px;
  object-fit: contain;
  /* unify wildly different logos: desaturate + dim, blend the baked-in
     light backgrounds (e.g. Spready's cream plate) into the white card */
  filter: grayscale(1);
  opacity: .68;
  mix-blend-mode: multiply;
  transition: filter var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.logos__cell:hover { border-color: rgba(10,10,10,.16); box-shadow: var(--shadow-sm); }
.logos__cell:hover img { filter: grayscale(0); opacity: 1; }

/* ------------------------------------------------------------------ *
 * 13. Selected-work case (dark plate — the mid-page dark beat)
 * ------------------------------------------------------------------ */
.workcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-md);
  overflow: hidden;
}
.workcase__meta {
  padding: clamp(32px, 4vw, 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.eyebrow--on-dark { color: var(--paper-72); margin-bottom: 18px; }
.workcase__title {
  font-family: var(--font-jp-serif);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: .55em;
}
.workcase__role {
  font-size: var(--fs-small);
  letter-spacing: .04em;
  color: var(--paper-52);
  margin-bottom: 1.4em;
}
.workcase__desc {
  font-size: .94rem;
  line-height: 1.9;
  color: var(--paper-72);
  margin-bottom: 1.8em;
}
.workcase__link {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  align-self: flex-start;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-dark);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.workcase__link:hover { color: var(--accent); border-color: var(--accent); }
.workcase__link .btn__arrow { display: inline-block; }
.workcase__link:hover .btn__arrow { transform: translate(2px, -2px); }

/* right plate — a typographic brand plate, not a screenshot */
.workcase__plate {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 4vw, 60px);
  background:
    radial-gradient(120% 90% at 85% 12%, rgba(137,255,0,.10), transparent 55%),
    linear-gradient(180deg, var(--dark-1), var(--dark-2));
  border-left: 1px solid var(--line-dark);
  overflow: hidden;
}
.workcase__logo {
  width: min(300px, 70%);
  height: auto;
  margin-bottom: clamp(18px, 2.6vw, 30px);
}
.workcase__plate-rule {
  width: 64px; height: 3px;
  margin-top: clamp(18px, 2.4vw, 28px);
  background: var(--accent);
  border-radius: 2px;
}

/* ------------------------------------------------------------------ *
 * 14. Company table
 * ------------------------------------------------------------------ */
.company {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
}
.company__head { margin: 0; }

.company-table { width: 100%; border-collapse: collapse; }
.company-table th,
.company-table td {
  text-align: left;
  vertical-align: top;
  padding: clamp(16px, 1.7vw, 22px) 0;
  border-top: 1px solid var(--line);
  font-size: var(--fs-body);
  line-height: 1.85;
}
.company-table tr:last-child th,
.company-table tr:last-child td { border-bottom: 1px solid var(--line); }
.company-table th {
  width: clamp(92px, 24%, 148px);
  padding-right: 24px;
  font-family: var(--font-jp-serif);
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.company-table td { color: var(--ink); }
.company-table__link {
  border-bottom: 1px solid var(--line);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.company-table__link:hover { border-color: var(--accent); }

/* ------------------------------------------------------------------ *
 * 15. Contact band (lime — the bright beat before the dark footer)
 * ------------------------------------------------------------------ */
.contact-band {
  background: var(--accent);
  color: var(--ink);
  padding-block: clamp(64px, 9vw, 128px);
}
.contact-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(32px, 5vw, 64px);
}
.eyebrow--on-lime { color: var(--ink-72); margin-bottom: 20px; }
.eyebrow--on-lime .eyebrow__dot { background: var(--ink); box-shadow: 0 0 0 4px rgba(10,10,10,.10); }
.contact-band__text { max-width: 30ch; }
.contact-band__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 1.4rem + 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.015em;
}
.contact-band__sub {
  font-family: var(--font-jp-serif);
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: .5em;
}
.contact-band__lead {
  margin-top: 1.2em;
  font-size: var(--fs-lead);
  line-height: 1.9;
  color: var(--ink-72);
}
.contact-band__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding-bottom: 6px;
}
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { transform: translateY(-1px); }
.contact-band__mail {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + .7vw, 1.55rem);
  letter-spacing: .01em;
  border-bottom: 1px solid rgba(10,10,10,.28);
  padding-bottom: 2px;
  transition: border-color var(--dur) var(--ease);
}
.contact-band__mail:hover { border-color: var(--ink); }
/* keyboard focus must stay visible on the lime surface (lime-on-lime = invisible) */
.contact-band :focus-visible { outline-color: var(--ink); }

/* ------------------------------------------------------------------ *
 * 16. Scroll reveal (progressive enhancement — off unless JS opts in)
 * ------------------------------------------------------------------ */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ------------------------------------------------------------------ *
 * 17. Section responsive shifts
 * ------------------------------------------------------------------ */
@media (max-width: 900px) {
  .company {
    grid-template-columns: 1fr;
    gap: clamp(24px, 5vw, 40px);
  }
}
@media (max-width: 720px) {
  .svc-grid { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .workcase { grid-template-columns: 1fr; }
  .workcase__plate { order: -1; min-height: 220px; border-left: 0; border-bottom: 1px solid var(--line-dark); }
  .contact-band__inner { align-items: flex-start; }
  .contact-band__actions { width: 100%; }
  .contact-band__actions .btn { width: 100%; justify-content: center; --_pad-y: 1.05em; }
}
@media (max-width: 560px) {
  .company-table tr { display: block; padding: 16px 0; border-top: 1px solid var(--line); }
  .company-table tr:last-child { border-bottom: 1px solid var(--line); }
  .company-table th,
  .company-table td { display: block; width: auto; padding: 0; border: 0; white-space: normal; }
  .company-table th { color: var(--muted); font-size: var(--fs-small); margin-bottom: 5px; }
  .svc-card { gap: 14px; }
}

/* ====================================================================
   SESSION 3 — sub-pages (contact form / privacy policy)
   No dark hero here: the header keeps its default SOLID state, and
   content clears the fixed header with extra top padding.
   Built on the Session 1/2 tokens above; no new palette or fonts.
   ==================================================================== */

/* ------------------------------------------------------------------ *
 * 18. Sub-page head (shared by contact + privacy)
 * ------------------------------------------------------------------ */
.subpage { background: var(--bg); }

.page-head {
  padding-top: calc(var(--header-h) + clamp(56px, 9vw, 116px));
  padding-bottom: clamp(10px, 2vw, 22px);
}
.page-head__inner { max-width: 880px; }
.page-head .eyebrow { margin-bottom: clamp(18px, 2.4vw, 26px); }

.page-head__title {
  display: flex;
  flex-direction: column;
  gap: .2em;
  color: var(--ink);
}
.page-head__en {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.1rem);
  line-height: var(--lh-tight);
  letter-spacing: -0.015em;
}
.page-head__ja {
  font-family: var(--font-jp-serif);
  font-weight: 600;
  font-size: clamp(1.05rem, .9rem + .6vw, 1.4rem);
  letter-spacing: .05em;
  color: var(--muted);
}
.page-head__lead {
  margin-top: clamp(22px, 3vw, 32px);
  max-width: 52ch;
  font-size: var(--fs-lead);
  line-height: 1.95;
  color: var(--ink-72);
}

/* lime button on a light surface needs an ink focus ring (lime-on-lime
   is invisible) — applies to the submit button + any accent CTA */
.btn--accent:focus-visible { outline-color: var(--ink); }

/* ------------------------------------------------------------------ *
 * 19. Contact form
 * ------------------------------------------------------------------ */
.contact-section {
  padding-top: clamp(20px, 3vw, 38px);
  padding-bottom: var(--section-y);
}
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, .85fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}

.field {
  display: grid;
  gap: 9px;
  margin-bottom: clamp(18px, 2.2vw, 26px);
}
.field__label {
  display: inline-flex;
  align-items: center;
  gap: .65em;
  font-family: var(--font-jp-serif);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink);
}
.field__req,
.field__opt {
  font-family: var(--font-jp-sans);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1;
  padding: .32em .62em;
  border-radius: var(--r-pill);
}
.field__req { background: var(--accent); color: var(--accent-ink); }
.field__opt { color: var(--muted); border: 1px solid var(--line); }

.field__input {
  width: 100%;
  font-family: var(--font-jp-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: .85em 1em;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field__input::placeholder { color: rgba(10,10,10,.34); }
.field__input:hover { border-color: rgba(10,10,10,.26); }
.field__input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(137,255,0,.45);
}
/* the custom ring above already covers keyboard focus — avoid a double ring */
.field__input:focus-visible { outline: none; }
/* …but box-shadow is dropped in forced-colors mode — restore a real outline
   so keyboard focus stays visible in Windows High Contrast (WCAG 2.4.7) */
@media (forced-colors: active) {
  .field__input:focus { outline: 2px solid; outline-offset: 2px; }
}
.field__textarea { resize: vertical; min-height: 168px; }

/* spam honeypot — visually + a11y hidden, still submitted */
.field__hp {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 24px;
  margin-top: clamp(22px, 3vw, 34px);
}
.form-consent { font-size: var(--fs-small); color: var(--muted); }
.form-consent a,
.form-thanks__text a,
.contact-aside__note a {
  border-bottom: 1px solid var(--line);
  transition: border-color var(--dur) var(--ease);
}
.form-consent a:hover,
.form-thanks__text a:hover,
.contact-aside__note a:hover { border-color: var(--ink); }
.contact-form__submit { --_pad-y: 1em; --_pad-x: 2em; }

/* live region is always present in the DOM (empty = zero-height, no box)
   so role="alert" fires reliably when a message is injected — it is never
   gated behind [hidden]/display:none, which would drop it from the a11y tree */
.form-status:not(:empty) {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: rgba(10,10,10,.04);
  border: 1px solid var(--line);
  font-size: .9rem;
  line-height: 1.7;
  color: var(--ink-72);
}

/* success panel (revealed after AJAX submit) */
.form-thanks { max-width: 640px; padding: clamp(24px, 3vw, 40px) 0; }
.form-thanks .eyebrow { margin-bottom: 18px; }
.form-thanks__title {
  font-family: var(--font-jp-serif);
  font-weight: 600;
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  color: var(--ink);
  margin-bottom: .5em;
}
.form-thanks__text { font-size: var(--fs-lead); line-height: 1.95; color: var(--ink-72); }

/* aside — direct contact */
.contact-aside {
  padding: clamp(26px, 3vw, 36px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.contact-aside .eyebrow { margin-bottom: 16px; }
.contact-aside__intro { font-size: .92rem; color: var(--ink-72); margin-bottom: .8em; }
.contact-aside__mail {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1rem + .55vw, 1.45rem);
  letter-spacing: .01em;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  word-break: break-all;
  transition: border-color var(--dur) var(--ease);
}
.contact-aside__mail:hover { border-color: var(--ink); }
.contact-aside__note {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: .88rem;
  line-height: 1.9;
  color: var(--ink-72);
}

/* ------------------------------------------------------------------ *
 * 20. Privacy policy (legal prose)
 * ------------------------------------------------------------------ */
.legal-section {
  padding-top: clamp(20px, 3vw, 38px);
  padding-bottom: var(--section-y);
}
.legal { max-width: 780px; }
.legal__intro {
  font-size: var(--fs-lead);
  line-height: 1.95;
  color: var(--ink-72);
  padding-bottom: clamp(28px, 4vw, 40px);
  margin-bottom: clamp(28px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
}
.legal__block { margin-top: clamp(34px, 4.5vw, 52px); }
.legal__block:first-of-type { margin-top: 0; }
.legal__h {
  display: flex;
  align-items: baseline;
  gap: .6em;
  font-family: var(--font-jp-serif);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: .9em;
}
.legal__h .num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: .92em;
  color: var(--muted);
  flex: none;
}
.legal__block p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-72);
}
.legal__block p + p { margin-top: 1em; }
.legal__block a { color: var(--ink); border-bottom: 1px solid var(--line); transition: border-color var(--dur) var(--ease); }
.legal__block a:hover { border-color: var(--ink); }

.legal__list { margin-top: .8em; }
.legal__list li {
  position: relative;
  padding-left: 1.4em;
  font-size: var(--fs-body);
  line-height: 1.85;
  color: var(--ink-72);
}
.legal__list li + li { margin-top: .45em; }
.legal__list li::before {
  content: "";
  position: absolute;
  left: .2em; top: .82em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.legal__list--def li strong {
  display: inline-block;
  min-width: 5.5em;
  font-weight: 600;
  color: var(--ink);
}
.legal__updated {
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: clamp(22px, 3vw, 30px);
  border-top: 1px solid var(--line);
  font-size: var(--fs-small);
  color: var(--muted);
}

/* ------------------------------------------------------------------ *
 * 21. Sub-page responsive shifts
 * ------------------------------------------------------------------ */
@media (max-width: 860px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: clamp(40px, 8vw, 56px);
  }
}
@media (max-width: 560px) {
  .form-foot { flex-direction: column-reverse; align-items: stretch; }
  .contact-form__submit { width: 100%; justify-content: center; --_pad-y: 1.05em; }
  .form-consent { text-align: center; }
}
