/* ============================================
   MISORA — TOP page site layout
   Loaded after the design-system style.css. Adds page-level layout
   (header / hero / sections / process / about). Components come from
   the design system. Hero follows the v04 main-visual direction.
   ============================================ */

/* ---- Smooth in-page scrolling (with fixed-header offset) ---- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ---- Generic scroll reveal: soft in-place fade-in ---- */
.is-reveal-init {
  opacity: 0;
  transition: opacity 0.8s var(--ease-standard);
}
.is-reveal-init.is-revealed {
  opacity: 1;
}

/* ---- Page background: viewport-fixed sky gradient (toggled per section) ---- */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(108, 155, 210, 0.4) 0%,
    rgba(108, 155, 210, 0.3) 45%,
    rgba(108, 155, 210, 0.2) 70%,
    rgba(108, 155, 210, 0) 92%,
    rgba(108, 155, 210, 0) 100%
  );
  opacity: 0; /* driven continuously by scroll position (see inline script) */
}

/* ---- Header: brand (left) + nav (right) ---- */
/* transparent at the top, frosted glass once scrolled */
.site-header {
  /* fixed (overlay) instead of sticky: a sticky header occupies flow space,
     which left the hero starting BELOW it and exposed a header-height strip
     of the page background at the very top. Overlaying lets the hero sit
     fully behind the transparent header. */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  justify-content: space-between;
  background: transparent;
  /* MUST stay none to override the DS base .site-header (style.css), which sets
     a backdrop-filter. Any backdrop-filter here makes the header a containing
     block for the fixed mobile drawer and traps it inside the header bar. The
     frost is supplied by ::before instead. */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  transition: border-color var(--duration-base) var(--ease-standard);
}

/* Frost lives on ::before, NOT on the header element. A backdrop-filter on the
   element makes it a containing block for position:fixed children, which traps
   the mobile drawer inside the thin header bar — and because the frost was
   transitioned, the trap lingered until the blur faded (the "first it's broken,
   then it fixes itself" flash). Keeping the header itself free of any
   containing-block trigger lets the drawer resolve against the viewport. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition:
    background-color var(--duration-base) var(--ease-standard),
    backdrop-filter var(--duration-base) var(--ease-standard);
  pointer-events: none;
}

.site-header.is-scrolled::before {
  background: rgba(250, 248, 245, 0.45);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  backdrop-filter: saturate(150%) blur(10px);
}

.site-header__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: 0.22em;
  line-height: 1;
  color: var(--color-ink);
  text-decoration: none;
}

/* mobile nav toggle (hamburger) — hidden on desktop */
.site-nav-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  margin: -8px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 60;
}
.site-nav-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: var(--color-ink);
  border-radius: 2px;
  transition: transform 0.34s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.2s ease;
}
.site-nav-toggle span:nth-child(1) {
  top: 15px;
}
.site-nav-toggle span:nth-child(2) {
  top: 21px;
}
.site-nav-toggle span:nth-child(3) {
  top: 27px;
}
.site-header.nav-open .site-nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.site-header.nav-open .site-nav-toggle span:nth-child(2) {
  opacity: 0;
}
.site-header.nav-open .site-nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* TOP link lives only inside the mobile drawer, not the desktop header */
.ds-site-nav__top {
  display: none;
}

@media (max-width: 860px) {
  .site-nav-toggle {
    display: block;
  }
  .ds-site-nav__top {
    display: block;
  }
  /* full-screen menu — DS "面・グラデーション（写真の代替）" visual-tile v3 */
  .ds-site-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: clamp(22px, 5.5vh, 40px);
    margin: 0;
    padding: 0;
    background: radial-gradient(80% 80% at 30% 20%, #ffffff 0%, #dce8f4 100%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s var(--ease-standard), visibility 0.45s;
    z-index: 55;
  }
  .site-header.nav-open .ds-site-nav {
    opacity: 1;
    visibility: visible;
  }
  /* each link fades up in sequence — ふわっと */
  .ds-site-nav a {
    font-size: 19px;
    letter-spacing: 0.06em;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.55s var(--ease-standard),
      transform 0.55s var(--ease-standard);
  }
  .site-header.nav-open .ds-site-nav a {
    opacity: 1;
    transform: none;
  }
  .site-header.nav-open .ds-site-nav a:nth-child(1) { transition-delay: 0.10s; }
  .site-header.nav-open .ds-site-nav a:nth-child(2) { transition-delay: 0.16s; }
  .site-header.nav-open .ds-site-nav a:nth-child(3) { transition-delay: 0.22s; }
  .site-header.nav-open .ds-site-nav a:nth-child(4) { transition-delay: 0.28s; }
  .site-header.nav-open .ds-site-nav a:nth-child(5) { transition-delay: 0.34s; }
  .site-header.nav-open .ds-site-nav a:nth-child(6) { transition-delay: 0.40s; }
  .site-header.nav-open .ds-site-nav a:nth-child(7) { transition-delay: 0.46s; }
  /* Contact CTA sits ~1.2x larger than the other items in the drawer.
     Needs a.ds-site-nav__cta to outweigh the DS base font-size (16px). */
  .ds-site-nav a.ds-site-nav__cta {
    margin-top: 10px;
    padding: 11px 30px;
    font-size: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ds-site-nav,
  .ds-site-nav a,
  .site-nav-toggle span {
    transition: none;
  }
}

/* ---- Section wrapper ---- */
.site-section {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: clamp(72px, 11vw, 140px) clamp(24px, 6vw, 64px);
}

/* full-width section (edge-to-edge content with modest gutters) */
.site-section--full {
  max-width: none;
  padding-left: clamp(24px, 4vw, 72px);
  padding-right: clamp(24px, 4vw, 72px);
}

/* full-width white band, content kept centred at content-width */
.site-section--white {
  max-width: none;
  background: var(--bg-white);
  padding-left: max(clamp(24px, 6vw, 64px), calc(50% - var(--content-width) / 2));
  padding-right: max(clamp(24px, 6vw, 64px), calc(50% - var(--content-width) / 2));
}

/* lined grid — internal cell dividers only (no left/right outer frame) */
.ds-works-grid--lined {
  gap: 0;
  /* pull out to the screen edges (cancel the section's side padding) */
  margin-left: calc(-1 * clamp(24px, 4vw, 72px));
  margin-right: calc(-1 * clamp(24px, 4vw, 72px));
  border-top: 1px solid var(--border-divider);
}

.ds-works-grid--lined .ds-works-card {
  padding: clamp(24px, 3vw, 48px);
  border-right: 1px solid var(--border-divider);
  border-bottom: 1px solid var(--border-divider);
}

/* drop the outer right edge (right column) */
.ds-works-grid--lined .ds-works-card:nth-child(2n) {
  border-right: 0;
}

/* single column on mobile → no vertical dividers at all */
@media (max-width: 767px) {
  .ds-works-grid--lined .ds-works-card {
    border-right: 0;
  }
}

/* no border around the works thumbnail */
#works .ds-works-card__thumb {
  border: 0;
}

/* in-copy emphasis */
.site-section .em,
.site-hero .em {
  color: var(--color-link);
  font-style: normal;
}

/* shared section heading (DS section title + optional lead) */
.site-sec-head {
  margin-bottom: clamp(40px, 6vw, 72px);
}

.site-sec-head__lead {
  margin-top: var(--space-6);
  max-width: 560px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 2;
  color: var(--text-secondary);
}

/* ---- Section title reveal: characters rise from below, staggered ---- */
/* .char spans exist only after JS splits the text, so a no-JS fallback
   simply shows the plain title. */
.ds-section-title__en .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em);
  transition:
    opacity 0.55s var(--ease-standard),
    transform 0.55s var(--ease-standard);
}

.is-inview .ds-section-title__en .char,
.site-why-stage.is-revealed .ds-section-title__en .char {
  opacity: 1;
  transform: none;
}

/* JP label fades up after the characters (gated on .is-anim = JS active) */
.is-anim .ds-section-title__label {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.6s var(--ease-standard) 0.25s,
    transform 0.6s var(--ease-standard) 0.25s;
}

.is-anim.is-inview .ds-section-title__label {
  opacity: 1;
  transform: none;
}

/* ============================================
   Section haze background (e.g. Service) + pointer parallax
   ============================================ */
#reasons {
  position: relative;
  padding-top: clamp(32px, 5vw, 72px);
}

/* keep all real content above the section base */
#reasons > * {
  position: relative;
  z-index: 1;
}

/* trim the top gap above Service a touch (Reasons already has bottom padding) */
#service {
  position: relative;
  padding-top: clamp(40px, 6vw, 88px);
}

/* full-width mesh gradient behind Service (MISORA-toned aurora).
   A heavy blur melts the radial edges so the colours blend with no visible
   circles (like the reference site's baked image, but CSS-only). The layer is
   extended beyond the section so the blur has no hard edge. */
#service::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  /* SVG mesh (gaussian-blurred) = image-smooth, no circles; opacity dials it down */
  background: url("../images/mesh-service.svg") center / cover no-repeat;
  opacity: 0.25;
}

#service > * {
  position: relative;
  z-index: 1;
}

/* Service cards: frosted glass over the sky gradient, no border, floating */
#service .ds-svc-card {
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  backdrop-filter: blur(10px) saturate(130%);
  border: 0;
  border-radius: 16px;
  box-shadow: 0 16px 38px rgba(40, 60, 100, 0.13);
  /* promote to its own layer so the hover lift composites smoothly
     (avoids re-blurring the backdrop every frame) */
  will-change: transform;
  transition:
    opacity 0.8s var(--ease-standard),
    transform 0.5s var(--ease-standard),
    box-shadow 0.5s var(--ease-standard),
    background-color 0.5s var(--ease-standard);
}

#service .ds-svc-card:hover {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 24px 52px rgba(40, 60, 100, 0.18);
}

/* no icon zoom on hover */
#service .ds-svc-card:hover .ds-svc-card__icon {
  transform: none;
}

#service .ds-svc-card--cta {
  background: rgba(236, 244, 252, 0.4);
  border: 0;
}

#service .ds-svc-card--cta:hover {
  border-color: transparent;
  background: rgba(236, 244, 252, 0.55);
}

/* DS circle-link inside the CTA card, pushed to the bottom-right */
.site-svc-cta-link {
  align-self: flex-end;
  margin-top: auto;
}

/* ============================================
   Why MISORA — pinned scroll (left title fixed, right card swaps 1→2→3)
   ============================================ */
.site-why-scroll {
  position: relative;
  height: 300vh; /* 3 cards × ~1 viewport of scroll each */
}

.site-why-stage {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

/* keep the pinned title on one line */
.site-why-stage__title .ds-section-title__en {
  white-space: nowrap;
}

/* staged entrance: title appears first, right content follows */
.site-why-stage__title {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.7s var(--ease-standard),
    transform 0.7s var(--ease-standard);
}

.site-why-stage.is-revealed .site-why-stage__title {
  opacity: 1;
  transform: none;
}

/* left — pinned title + progress dots */
.site-why-steps {
  display: flex;
  gap: 12px;
  margin-top: clamp(28px, 4vw, 48px);
}

.site-why-steps__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--color-misora-blue);
  transition:
    background-color 0.4s var(--ease-standard),
    transform 0.4s var(--ease-standard);
}

.site-why-steps__dot.is-active {
  background: var(--color-misora-blue);
  transform: scale(1.2);
}

/* right — cards stacked in one grid cell, crossfading in place */
.site-why-stage__cards {
  position: relative;
  display: grid;
  opacity: 0;
  transition: opacity 0.7s var(--ease-standard);
}

/* right content fades in after the title (staggered delay) */
.site-why-stage.is-revealed .site-why-stage__cards {
  opacity: 1;
  transition-delay: 0.9s;
}

.site-why-card {
  grid-area: 1 / 1;
  text-align: center;
  opacity: 0;
  transition: opacity 0.55s var(--ease-standard);
  pointer-events: none;
}

.site-why-card.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* numeral — centred, with thin rules that grow inside→outside on appear */
.site-why-card__num {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.2vw, 30px);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 64px); /* capped at --fs-display token */
  line-height: 1;
  letter-spacing: 0.05em; /* matches DS .ds-why-card__num */
  color: var(--color-misora-blue);
  margin-bottom: clamp(20px, 2.4vw, 32px);
}

.site-why-card__num::before,
.site-why-card__num::after {
  content: "";
  position: relative;
  top: 0.14em; /* nudge down — the italic numeral sits low, so centre optically */
  height: 1px;
  width: clamp(44px, 7vw, 96px);
  background: var(--border-divider);
  transform: scaleX(0);
  transition: transform 1.1s var(--ease-standard) 0.15s;
}

/* grow from the side nearest the number (inside) toward the outside */
.site-why-card__num::before {
  transform-origin: right center;
}
.site-why-card__num::after {
  transform-origin: left center;
}

/* lines grow once the stage is pinned (content centred & actually seen) */
.site-why-stage.is-pinned .site-why-card.is-active .site-why-card__num::before,
.site-why-stage.is-pinned .site-why-card.is-active .site-why-card__num::after {
  transform: scaleX(1);
}

/* headline — DS .ds-core__headline scale */
.site-why-card__title {
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 46px); /* matches DS .ds-core__headline */
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: clamp(20px, 2.4vw, 28px);
}

/* body — Type Hierarchy "Body / Text" = 15 / 27px (lh 1.8) */
.site-why-card__body {
  max-width: 42ch;
  margin: 0 auto;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  color: var(--text-secondary);
}

/* mobile: drop the pin, stack all three cards normally */
@media (max-width: 860px) {
  .site-why-scroll {
    height: auto;
  }
  .site-why-stage {
    position: static;
    min-height: 0;
    grid-template-columns: 1fr;
    gap: clamp(32px, 6vw, 48px);
  }
  .site-why-stage__cards {
    gap: clamp(40px, 9vw, 64px);
  }
  .site-why-card {
    grid-area: auto;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  /* all cards are shown on mobile, so keep their rules expanded */
  .site-why-card__num::before,
  .site-why-card__num::after {
    transform: scaleX(1);
  }
  .site-why-steps {
    display: none;
  }
}

/* ============================================
   Hero (v04 main-visual direction)
   ============================================ */
.site-hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(96px, 13vh, 150px) 0 clamp(24px, 4vh, 48px);
  /* transparent base (lets the page colour show through) + soft tints kept
     in the upper area, so the bottom fades to nothing and joins the next
     section seamlessly regardless of the page background colour. */
  background: none;
}

/* drifting atmosphere — three heavily-blurred lights whose silhouettes
   morph (border-radius) while they roam on different paths and speeds.
   The strong blur dissolves the circular edge; the morph + large drift
   make the movement clearly visible and never repeat in sync. */
.site-hero__aura {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  /* blue/white SVG mesh (gaussian-blurred, image-smooth, no circles) */
  background: url("../images/mesh-hero.svg?v=6") center / cover no-repeat;
  opacity: 0.62;
  /* fade the mesh out before the clipped edge so the bottom of the hero
     dissolves instead of cutting off in a hard line */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 68%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 68%, transparent 100%);
}

.site-hero__blob {
  display: none; /* replaced by the SVG mesh on .site-hero__aura */
  position: absolute;
  filter: blur(110px);
  will-change: transform, opacity;
}

/* layer 1 — faint misora-blue haze, upper-left, large & slow */
.site-hero__blob--1 {
  width: 78vw;
  height: 70vw;
  max-width: 1000px;
  max-height: 880px;
  top: -24%;
  right: -16%;
  background: radial-gradient(
    closest-side,
    rgba(108, 155, 210, 0.4) 0%,
    rgba(108, 155, 210, 0.16) 45%,
    rgba(108, 155, 210, 0) 74%
  );
  animation: heroBlob1 30s ease-in-out infinite alternate;
}

/* layer 2 — faint sky-blue haze, lower-right */
.site-hero__blob--2 {
  width: 70vw;
  height: 64vw;
  max-width: 900px;
  max-height: 800px;
  bottom: -18%;
  left: -14%;
  background: radial-gradient(
    closest-side,
    rgba(150, 188, 230, 0.28) 0%,
    rgba(150, 188, 230, 0.1) 48%,
    rgba(150, 188, 230, 0) 74%
  );
  animation: heroBlob2 38s ease-in-out infinite alternate;
}

/* layer 3 — barely-there warm light, centre, adds gentle colour variation */
.site-hero__blob--3 {
  width: 58vw;
  height: 52vw;
  max-width: 720px;
  max-height: 640px;
  bottom: 4%;
  left: 8%;
  background: radial-gradient(
    closest-side,
    rgba(190, 216, 242, 0.4) 0%,
    rgba(190, 216, 242, 0.12) 50%,
    rgba(190, 216, 242, 0) 75%
  );
  animation: heroBlob3 34s ease-in-out infinite alternate;
}

/* layer 4 — mid sky, fills between top-right and centre */
.site-hero__blob--4 {
  width: 62vw;
  height: 56vw;
  max-width: 820px;
  max-height: 720px;
  top: 6%;
  right: 24%;
  background: radial-gradient(
    closest-side,
    rgba(150, 188, 230, 0.22) 0%,
    rgba(150, 188, 230, 0.08) 48%,
    rgba(150, 188, 230, 0) 74%
  );
  animation: heroBlob2 42s ease-in-out infinite alternate;
  animation-delay: -11s;
}

/* layer 5 — pale blue, fills the centre-low gap */
.site-hero__blob--5 {
  width: 58vw;
  height: 52vw;
  max-width: 780px;
  max-height: 680px;
  bottom: 14%;
  left: 32%;
  background: radial-gradient(
    closest-side,
    rgba(190, 216, 242, 0.3) 0%,
    rgba(190, 216, 242, 0.1) 50%,
    rgba(190, 216, 242, 0) 75%
  );
  animation: heroBlob1 36s ease-in-out infinite alternate;
  animation-delay: -7s;
}

/* gentle, slow drift only — no shape morphing, small amplitude */
@keyframes heroBlob1 {
  0%   { transform: translate(-4%, -3%) scale(1);    opacity: 0.9; }
  100% { transform: translate(6%, 5%) scale(1.08);   opacity: 1;   }
}

@keyframes heroBlob2 {
  0%   { transform: translate(4%, 3%) scale(1.04);   opacity: 0.85; }
  100% { transform: translate(-6%, -4%) scale(1.1);  opacity: 1;    }
}

@keyframes heroBlob3 {
  0%   { transform: translate(3%, -2%) scale(1);     opacity: 0.7;  }
  100% { transform: translate(-5%, 6%) scale(1.06);  opacity: 0.95; }
}

.site-hero__wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 clamp(24px, 6vw, 64px);
}

/* floating orbs */
.site-hero__orbs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.site-hero__orbs i {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 30%,
    #ffffff 0%,
    #e6eef7 35%,
    #b8cce0 75%,
    #8aa6c4 100%
  );
  box-shadow:
    0 4px 16px rgba(120, 150, 180, 0.15),
    inset -2px -3px 6px rgba(140, 170, 200, 0.25);
  opacity: 0.55;
  animation: siteOrbFloat 8s ease-in-out infinite;
}

.site-hero__orbs i:nth-child(1) { width: 14px; height: 14px; top: 18%; left: 48%; animation-delay: 0s; }
.site-hero__orbs i:nth-child(2) { width: 10px; height: 10px; top: 72%; left: 52%; animation-delay: 2s; }
.site-hero__orbs i:nth-child(3) { width: 6px; height: 6px; top: 38%; right: 12%; animation-delay: 1s; }
.site-hero__orbs i:nth-child(4) { width: 8px; height: 8px; bottom: 22%; left: 18%; animation-delay: 3s; }

@keyframes siteOrbFloat {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-12px) translateX(4px); }
}

.site-hero__catch {
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: clamp(24px, 3.8vw, 42px);
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.site-hero__catch .ln {
  display: block;
  overflow: hidden;
}

.site-hero__catch .ln > span {
  display: inline-block;
  transform: translateY(110%);
  animation: siteRise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.site-hero__catch .ln:nth-child(1) > span { animation-delay: 0.35s; }
.site-hero__catch .ln:nth-child(2) > span { animation-delay: 0.5s; }

@keyframes siteRise {
  to { transform: translateY(0); }
}

.site-hero__catch .em {
  color: var(--color-link);
}

/* MISORA brand kicker above the catch */
.site-hero__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(18px, 3vh, 30px);
  opacity: 0;
  animation: siteFade 0.9s ease 0.35s forwards;
}
.site-hero__brand-name {
  font-family: var(--font-display);
  font-size: clamp(56px, 10vw, 120px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.1em;
  color: var(--color-misora-blue);
}
.site-hero__brand-sub {
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.site-hero__sub {
  margin-top: clamp(28px, 4vh, 44px);
  max-width: 34ch;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 2.1;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  opacity: 0;
  animation: siteFade 0.9s ease 0.9s forwards;
}

/* hero CTA fades in after the sub copy */
.site-hero__cta {
  margin-top: clamp(32px, 4.5vh, 52px);
  opacity: 0;
  animation: siteFade 0.9s ease 1.15s forwards;
}

/* slightly larger circle for the hero CTA */
.site-hero__cta-link .ds-circle-link__circle {
  width: 46px;
  height: 46px;
}

@keyframes siteFade {
  to { opacity: 1; }
}

/* SCROLL cue: bottom-left, serif label over a long line with a travelling segment */
.site-hero__scroll {
  position: absolute;
  right: clamp(24px, 6vw, 64px);
  bottom: clamp(24px, 5vh, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  z-index: 2;
  opacity: 0;
  animation: siteFade 0.9s ease 1.4s forwards;
}

.site-hero__scroll-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0.2em;
  color: var(--text-soft);
}

.site-hero__scroll-line {
  position: relative;
  width: 1px;
  height: 110px;
  background: rgba(108, 155, 210, 0.25);
  overflow: hidden;
}

.site-hero__scroll-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 40%;
  background: var(--color-misora-blue);
  animation: heroScrollCue 1.8s var(--ease-standard) infinite;
}

@keyframes heroScrollCue {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(250%); }
}

/* ============================================
   Process (steps list)
   ============================================ */
/* Flow section "sky": a soft blue band (faded at the edges so it blends into
   the white sections above/below) with gentle drifting white clouds. */
#process {
  position: relative;
}

/* 2-column layout: left title pinned, right steps scroll */
.site-process-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.site-process-layout__head {
  align-self: start;
}

/* Flow JP label sits on the sky — darken it for legibility */
#process .ds-section-title__label {
  color: var(--text-secondary);
}

.site-process {
  position: relative;
}

.site-process__step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: clamp(24px, 3vw, 44px);
  padding: clamp(30px, 4vw, 46px) 0;
}

/* connector line: from this circle's bottom to the next circle's top.
   Grows downward (scaleY) when the section comes into view. */
.site-process__step::after {
  content: "";
  position: absolute;
  left: 28px; /* centre of the 56px circle */
  top: calc(clamp(30px, 4vw, 46px) + 56px); /* circle bottom edge */
  height: calc(100% - 56px); /* gap to the next circle's top */
  width: 1.5px;
  background: rgba(108, 155, 210, 0.55);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.55s var(--ease-standard);
}

.site-process__step:last-child::after {
  display: none;
}

.site-process.is-inview .site-process__step::after {
  transform: scaleY(1);
}

/* draw the segments top → bottom in sequence */
.site-process.is-inview .site-process__step:nth-child(1)::after {
  transition-delay: 0.1s;
}
.site-process.is-inview .site-process__step:nth-child(2)::after {
  transition-delay: 0.5s;
}
.site-process.is-inview .site-process__step:nth-child(3)::after {
  transition-delay: 0.9s;
}

/* number enclosed in a circle */
.site-process__num {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--color-misora-blue);
  background: #ffffff;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--color-misora-blue);
  /* italic display glyph sits low; nudge it up by reducing the bottom space */
  padding-bottom: 5px;
  position: relative;
  z-index: 1;
}

.site-process__title {
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.site-process__title small {
  display: block;
  margin-top: 7px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--color-misora-blue);
}

.site-process__body {
  max-width: 62ch;
  font-size: 14px;
  line-height: 2;
  color: var(--text-secondary);
}

.site-process__note {
  margin-top: clamp(32px, 5vw, 56px);
  padding: var(--space-6) var(--space-8);
  background: var(--bg-blue-pale);
  font-size: 13px;
  line-height: 1.95;
  color: var(--text-secondary);
}

/* ============================================
   About
   ============================================ */
/* ============================================
   About — editorial profile (asymmetric, characterful)
   ============================================ */
.site-about {
  position: relative;
  overflow: hidden;
}

/* image (left) + content (right) */
.site-about__layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

/* stacked, overlapping image placeholders (swap the gradients for real <img>) */
.site-about__media {
  position: relative;
  padding-bottom: clamp(40px, 8vw, 96px);
}
.site-about__img {
  background: linear-gradient(150deg, #e9f1fa 0%, #d3e4f6 55%, #e7eefb 100%);
}
.site-about__img--1 {
  width: 82%;
  aspect-ratio: 4 / 5;
}
.site-about__img--2 {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 56%;
  aspect-ratio: 5 / 4;
  box-shadow: 0 24px 54px rgba(40, 60, 100, 0.14);
}

/* statement headline at the top of the content column */
.site-about__statement {
  margin: 0 0 clamp(28px, 4vw, 44px);
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

/* CV — refined vertical timeline */
.site-about__cv {
  list-style: none;
  margin: clamp(40px, 5vw, 60px) 0 0;
  padding: 0;
  display: grid;
  gap: clamp(28px, 3vw, 40px);
}

.site-about__cv-item {
  position: relative;
  padding-left: 26px;
  display: grid;
  gap: 5px;
}

.site-about__cv-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--color-misora-blue);
  background: var(--bg-white);
  z-index: 1;
}

.site-about__cv-item::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: calc(-1 * clamp(28px, 3vw, 40px));
  width: 1px;
  background: var(--border-divider);
}

.site-about__cv-item:last-child::after {
  display: none;
}

.site-about__cv-year {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--color-misora-blue);
}

.site-about__cv-role {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--text-soft);
}

.site-about__cv-desc {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* narrative + signature */
.site-about__narrative p {
  margin-bottom: var(--space-5);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  color: var(--text-secondary);
}

.site-about__sign {
  margin-top: clamp(24px, 3vw, 36px);
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.site-about__sign-name {
  font-family: var(--font-mincho);
  font-size: 22px;
  letter-spacing: 0.12em;
  color: var(--text-primary);
}

.site-about__sign-role {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.site-about__cta {
  margin-top: clamp(28px, 4vw, 44px);
}

/* thin divider separating the two sub-blocks inside Service */
.site-sub-divider {
  border: 0;
  border-top: 1px solid var(--border-divider);
  margin: clamp(48px, 6vw, 80px) 0 clamp(28px, 4vw, 40px);
}

/* news section foot / works foot */
.site-foot-link {
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(40px, 5vw, 64px);
}

/* News: title (left) + list (right) */
.site-news-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.site-news-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(32px, 4vw, 48px);
}

@media (max-width: 860px) {
  .site-news-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

@media (max-width: 860px) {
  .site-about__layout,
  .site-process__step {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .site-about__layout {
    gap: clamp(36px, 8vw, 56px);
  }
  /* keep the image stack from getting too tall on mobile */
  .site-about__media {
    padding-bottom: clamp(28px, 12vw, 64px);
  }
  .site-about__img--1 {
    width: 88%;
  }
  .site-about__img--2 {
    width: 60%;
  }
  /* unpin the Flow title and stack it above the steps */
  .site-process-layout {
    grid-template-columns: 1fr;
    gap: clamp(32px, 6vw, 48px);
  }
  .site-process-layout__head {
    position: static;
  }
  /* drop the timeline line/dot and right-aligned numbers on mobile */
  .site-process__step::before,
  .site-process__step::after {
    display: none;
  }
  .site-process__num {
    text-align: left;
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-hero__orbs i,
  .site-hero__catch .ln > span,
  .site-hero__brand,
  .site-hero__sub,
  .site-hero__cta,
  .site-hero__scroll {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .site-hero__scroll-line::after {
    animation: none;
  }
  .site-hero__blob {
    animation: none;
    opacity: 0.7;
  }
  /* no staged entrance when motion is reduced — show everything */
  .site-why-stage__title,
  .site-why-stage__cards {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================================
   SUBPAGES (News / Works / Contact / Privacy) — shared
   ============================================================================ */

/* soft image placeholder (swap for real <img> later) */
.site-ph {
  background: linear-gradient(150deg, #e9f1fa 0%, #d3e4f6 55%, #e7eefb 100%);
}

/* subpage header bar: frosted (solid enough to sit over content, no hero behind) */
.site-header--sub::before {
  background: rgba(250, 248, 245, 0.6);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  backdrop-filter: saturate(150%) blur(10px);
}

/* page header band — full-width soft gradient, content kept at content width */
.site-subhead {
  position: relative;
  max-width: none;
  margin: 0 0 clamp(14px, 2vw, 24px);
  padding-top: clamp(92px, 13vh, 147px);
  padding-bottom: clamp(50px, 7vw, 87px);
  padding-left: max(clamp(24px, 6vw, 64px), calc(50% - var(--content-width) / 2));
  padding-right: max(clamp(24px, 6vw, 64px), calc(50% - var(--content-width) / 2));
  /* sky band: deeper blue at the top → lighter (but not white) at the bottom,
     with a clear bottom boundary against the content */
  background: linear-gradient(
    180deg,
    rgba(108, 155, 210, 0.45) 0%,
    rgba(108, 155, 210, 0.14) 100%
  );
}

@media (max-width: 600px) {
  .site-subhead {
    padding-top: clamp(72px, 11vh, 110px);
    padding-bottom: clamp(40px, 6vw, 60px);
  }
}

/* breadcrumb: independent of the band, sits in the white zone below it,
   aligned to content width (same gutters as .site-subsection) */
.site-crumb {
  max-width: var(--content-width);
  margin: 0 auto clamp(40px, 6vw, 72px);
  padding: 0 clamp(24px, 6vw, 64px);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--text-soft);
}

@media (max-width: 600px) {
  .site-crumb {
    font-size: 12px;
  }
}
.site-crumb a {
  color: var(--text-soft);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}
.site-crumb a:hover {
  color: var(--color-link);
}
.site-crumb__sep {
  opacity: 0.5;
}
.site-crumb__current {
  color: var(--text-primary);
}

.site-subhead__en {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1.04;
  letter-spacing: 0.03em;
  color: var(--text-primary);
}
.site-subhead__jp {
  margin-top: var(--space-3);
  margin-bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mincho);
  font-weight: 400;
  font-size: var(--fs-lg);
  letter-spacing: 0.14em;
  color: var(--text-soft);
}
.site-subhead__jp::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

/* generic subpage content wrapper */
.site-subsection {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 clamp(24px, 6vw, 64px) clamp(80px, 12vw, 140px);
}

/* prose (article / privacy body) */
.site-prose {
  font-family: var(--font-body);
}
.site-prose > * + * {
  margin-top: var(--space-5);
}
.site-prose h2 {
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: clamp(19px, 2.4vw, 24px);
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: var(--text-primary);
  margin-top: clamp(36px, 5vw, 56px);
  margin-bottom: var(--space-4);
}
.site-prose h2:first-child {
  margin-top: 0;
}
.site-prose p,
.site-prose li {
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  color: var(--text-secondary);
}
.site-prose ul,
.site-prose ol {
  margin-left: 1.3em;
}
.site-prose li + li {
  margin-top: 8px;
}
.site-prose a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-prose .site-prose__date {
  margin-top: clamp(32px, 4vw, 48px);
  font-size: 13px;
  color: var(--text-soft);
  text-align: right;
}

/* pager */
.site-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: clamp(48px, 7vw, 80px);
}
.site-pager a,
.site-pager span {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  text-decoration: none;
  border: 1px solid var(--border-divider);
  transition:
    color var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard),
    background-color var(--duration-fast) var(--ease-standard);
}
.site-pager a:hover {
  color: var(--color-link);
  border-color: var(--color-misora-blue);
}
.site-pager .is-current {
  background: var(--color-misora-blue);
  border-color: var(--color-misora-blue);
  color: #fff;
}
.site-pager .is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* "back to list" link spacing */
.site-back {
  margin-top: clamp(48px, 6vw, 80px);
  display: flex;
  justify-content: center;
}

/* ---- Works list ---- */
.site-works-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 5vw, 72px) clamp(28px, 4vw, 48px);
}

/* ---- News / Works detail ---- */
.site-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 clamp(24px, 6vw, 64px) clamp(80px, 12vw, 140px);
}
.site-detail__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(16px, 2vw, 22px);
}
.site-detail__date {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-soft);
}
/* matches DS .ds-news__cat sizing; border uses the misora-blue token so it
   stays visible on the coloured heading band */
.site-detail__cat {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-link);
  border: 1px solid color-mix(in srgb, var(--color-misora-blue) 55%, transparent);
  border-radius: var(--radius-sm);
  padding: 3px 10px;
}
.site-detail__title {
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin-bottom: 0;
}
.site-detail__thumb {
  aspect-ratio: 16 / 9;
  margin-bottom: clamp(32px, 4vw, 52px);
}

/* works case meta table */
.site-case-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 32px);
  margin: clamp(32px, 4vw, 48px) 0;
  padding: clamp(24px, 3vw, 36px) 0;
  border-top: 1px solid var(--border-divider);
  border-bottom: 1px solid var(--border-divider);
}
.site-case-meta__k {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 6px;
}
.site-case-meta__v {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-primary);
}
.site-case-gallery {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(32px, 4vw, 48px);
}
.site-case-gallery > div {
  aspect-ratio: 16 / 10;
}

/* ---- Contact form (Contact Form 7-ready markup) ---- */
.site-form {
  max-width: 720px;
  margin: 0 auto;
}
.site-form__lead {
  margin-bottom: clamp(32px, 4vw, 48px);
  text-align: center;
  word-break: keep-all;
}
.site-form__row {
  margin-bottom: clamp(22px, 3vw, 30px);
}
.site-form__label {
  display: block;
  margin-bottom: 9px;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}
.site-form__req {
  margin-left: 8px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--color-misora-blue);
}
.site-form__input,
.site-form__select,
.site-form__textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
  background: var(--bg-white);
  border: 1px solid var(--border-divider);
  border-radius: 6px;
  transition: border-color var(--duration-fast) var(--ease-standard);
}
.site-form__input:focus,
.site-form__select:focus,
.site-form__textarea:focus {
  outline: none;
  border-color: var(--color-misora-blue);
}
.site-form__textarea {
  min-height: 170px;
  resize: vertical;
}

/* select: strip the native control so it shares the inputs' box model
   (fixes the SP height mismatch) and add a quiet custom chevron with
   room to breathe on the right (fixes the cramped native arrow). */
.site-form__select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  /* right padding holds the chevron; vertical padding matches the inputs */
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%236f6b66' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px auto;
  cursor: pointer;
}
/* tint the chevron to the brand blue on focus, to echo the border */
.site-form__select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%236c9bd2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
/* IE/legacy: hide the native arrow (harmless elsewhere) */
.site-form__select::-ms-expand {
  display: none;
}
.site-form__consent {
  margin: clamp(8px, 1vw, 14px) 0 clamp(28px, 4vw, 40px);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
}
/* CF7 nests the control in spans (wrap > acceptance > list-item > label);
   flatten them to blocks and drop CF7's default list-item indent so our
   own checkbox + text layout takes over cleanly. */
.site-form__consent .wpcf7-form-control-wrap,
.site-form__consent .wpcf7-acceptance {
  display: block;
}
.site-form__consent .wpcf7-list-item {
  margin: 0;
}
.site-form__consent label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
/* custom checkbox: strip the native box, draw a quiet bordered square that
   fills with the brand blue + a white tick when checked. */
.site-form__consent input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 1px 0 0; /* optical align with the first line of text */
  border: 1px solid var(--border-divider);
  border-radius: 4px;
  background: var(--bg-white);
  cursor: pointer;
  transition:
    border-color var(--duration-fast) var(--ease-standard),
    background-color var(--duration-fast) var(--ease-standard);
}
.site-form__consent input[type="checkbox"]:hover {
  border-color: var(--color-misora-blue);
}
.site-form__consent input[type="checkbox"]:checked {
  border-color: var(--color-misora-blue);
  background-color: var(--color-misora-blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10' fill='none'%3E%3Cpath d='M1 5 4.6 8.6 11 1.4' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px auto;
}
.site-form__consent input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--color-misora-blue);
  outline-offset: 2px;
}
.site-form__consent a {
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.site-form__actions {
  text-align: center;
}
.site-form__submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 48px;
  border: 0;
  border-radius: 100px;
  background: var(--color-misora-blue);
  color: #fff;
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color var(--duration-base) var(--ease-standard),
    transform var(--duration-base) var(--ease-standard),
    box-shadow var(--duration-base) var(--ease-standard);
}
.site-form__submit:hover {
  background: #5b8bc6;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(108, 155, 210, 0.3);
}

/* ---- Thanks page ---- */
.site-thanks {
  min-height: 72vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(150px, 22vh, 240px) clamp(24px, 6vw, 64px) clamp(80px, 12vw, 140px);
}
.site-thanks__en {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.1;
  color: var(--color-misora-blue);
}
.site-thanks__title {
  margin-top: var(--space-4);
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: clamp(20px, 2.6vw, 28px);
  letter-spacing: 0.06em;
  color: var(--text-primary);
  word-break: keep-all;
}
.site-thanks__text {
  margin: var(--space-5) auto 0;
  max-width: 540px;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  color: var(--text-secondary);
  word-break: keep-all;
}
.site-thanks__back {
  margin-top: clamp(36px, 5vw, 56px);
  display: flex;
  justify-content: center;
}

/* subpage responsive */
@media (max-width: 767px) {
  .site-works-list {
    grid-template-columns: 1fr;
  }
  .site-case-meta {
    grid-template-columns: 1fr;
  }
}
