/* =========================================================
   Northern Lights — Official Site
   White-based, editorial typography, art-leaning layout
   ========================================================= */

:root {
  /* Base — warm off-white & deep ink */
  --bg: #fafaf7;
  --bg-warm: #f3efe7;
  --bg-cool: #eef0ee;
  --ink: #0e1726;
  --ink-soft: #3a4159;
  --ink-mute: #7a8094;
  --ink-dim: #b2b6c3;
  --line: rgba(14, 23, 38, 0.10);
  --line-strong: rgba(14, 23, 38, 0.22);

  /* Dark surface (gallery / hero accent) */
  --dark: #0a1218;
  --dark-2: #0e1a23;

  /* Aurora accents (muted, refined) */
  --aurora: #7dc4b8;
  --aurora-soft: #b3dad2;
  --aurora-pale: #d9ece7;
  --aurora-deep: #4a8a82;

  /* Type */
  --font-display: "Italiana", "Cormorant Garamond", "Noto Serif JP", serif;
  --font-serif: "Cormorant Garamond", "Noto Serif JP", "Hiragino Mincho ProN",
    "游明朝", serif;
  --font-jp-serif: "Noto Serif JP", "Hiragino Mincho ProN", "游明朝",
    "Yu Mincho", serif;
  --font-sans: "Inter", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "游ゴシック",
    "Yu Gothic", system-ui, sans-serif;

  /* Layout */
  --container: 1280px;
  --container-narrow: 920px;
  --gutter: clamp(20px, 5vw, 64px);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-left: clamp(60px, 5vw, 80px); /* room for the fixed side-bar */
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: "palt";
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s var(--ease), color 0.3s var(--ease);
}
a:hover { opacity: 0.6; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* =========================================================
   Reveal on scroll
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.35s; }
.reveal[data-delay="4"] { transition-delay: 0.5s; }
.reveal[data-delay="5"] { transition-delay: 0.65s; }

/* =========================================================
   Header — LINICA-style: square hamburger left, brand right
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  /* must sit above .overlay-nav (z=200) so brand stays legible */
  z-index: 250;
  padding: 28px clamp(20px, 4vw, 48px);
  pointer-events: none;
}
.brand {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.18em;
  transition: opacity 0.3s var(--ease);
}
.brand-en {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--ink);
}
/* On hero pages, brand is white over the video until the header gets a background */
body.has-hero .site-header:not(.is-scrolled) .brand-en { color: #fff; }

/* =========================================================
   Left side bar (white) — fixed full-height column that hosts
   the hamburger, the HOME button, and the SCROLL indicator.
   ========================================================= */
.side-bar {
  position: fixed;
  top: 0; left: 0;
  bottom: 0;
  width: clamp(60px, 5vw, 80px);
  background: #fff;
  border-right: 1px solid var(--line);
  z-index: 240;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 28px;
}
.side-home {
  margin: auto 0;
  width: clamp(42px, 3.4vw, 54px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}
.side-home:hover {
  opacity: 1;
  transform: scale(1.08);
  background: var(--aurora-deep);
}
.side-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--ink-mute);
}
.side-scroll .label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.side-scroll .line {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, currentColor, transparent);
}

/* Square hamburger button (top of side-bar) */
.nav-toggle {
  pointer-events: auto;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--ink);
  position: relative;
  z-index: 260;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background 0.4s var(--ease);
}
.nav-toggle .bars {
  position: relative;
  width: 22px;
  height: 14px;
}
.nav-toggle .bars span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: #fff;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease),
    top 0.4s var(--ease);
}
.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle .bars span:nth-child(3) { top: 100%; transform: translateY(-100%); }
.nav-toggle.is-open .bars span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.nav-toggle.is-open .bars span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .bars span:nth-child(3) {
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

/* No background blur — header is just the brand floating top-right */

/* =========================================================
   Fullscreen overlay menu (LINICA-style)
   ========================================================= */
.overlay-nav {
  position: fixed;
  /* overlay starts to the right of the side-bar so the bar stays white */
  top: 0;
  right: 0;
  bottom: 0;
  left: clamp(60px, 5vw, 80px);
  z-index: 200;
  background: #16357a; /* deep navy blue */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s var(--ease), visibility 0.55s var(--ease);
}
.overlay-nav.is-open {
  opacity: 1;
  visibility: visible;
}
.overlay-nav-inner {
  width: min(960px, 100%);
}
.overlay-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.overlay-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.overlay-list li:first-child { border-top: 1px solid rgba(255, 255, 255, 0.22); }
.overlay-nav.is-open .overlay-list li {
  opacity: 1;
  transform: translateY(0);
}
.overlay-nav.is-open .overlay-list li:nth-child(1) { transition-delay: 0.18s; }
.overlay-nav.is-open .overlay-list li:nth-child(2) { transition-delay: 0.26s; }
.overlay-nav.is-open .overlay-list li:nth-child(3) { transition-delay: 0.34s; }
.overlay-nav.is-open .overlay-list li:nth-child(4) { transition-delay: 0.42s; }
.overlay-nav.is-open .overlay-list li:nth-child(5) { transition-delay: 0.50s; }
.overlay-nav.is-open .overlay-list li:nth-child(6) { transition-delay: 0.58s; }

.overlay-list a {
  display: flex;
  align-items: baseline;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(22px, 3vw, 36px) 8px;
  color: #fff;
  position: relative;
}
.overlay-list a::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--aurora-soft);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.overlay-list a:hover {
  opacity: 1;
}
.overlay-list a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.overlay-list a:hover .en {
  letter-spacing: 0.32em;
}
.overlay-list .en {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 52px);
  letter-spacing: 0.22em;
  line-height: 1;
  transition: letter-spacing 0.5s var(--ease);
}
.overlay-list .jp {
  font-family: var(--font-jp-serif);
  font-size: 12px;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.7);
}

/* =========================================================
   KV halftone (dot pattern, mixed onto the video)
   ========================================================= */
.kv-halftone {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: radial-gradient(
    circle,
    rgba(0, 0, 0, 0.55) 1px,
    transparent 1.5px
  );
  background-size: 4px 4px;
  mix-blend-mode: multiply;
  opacity: 0.9;
}

/* =========================================================
   Hero — Full-screen immersive
   ========================================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  padding: 0;
  overflow: hidden;
  background: var(--dark);
}
.hero-canvas,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* Bottom vignette so corner labels stay legible */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 18, 24, 0.0) 55%, rgba(10, 18, 24, 0.55) 100%),
    linear-gradient(180deg, rgba(10, 18, 24, 0.35) 0%, rgba(10, 18, 24, 0) 30%);
}

/* Huge background type — sans-serif (gothic), sits ABOVE the halftone
   so the dot pattern never overlays the letterforms */
.hero-bigtype {
  position: absolute;
  inset: 0;
  z-index: 3; /* above .hero-halftone (z=1) */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  font-family: var(--font-sans);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.015em;
  text-align: center;
  color: rgba(255, 255, 255, 0.30);
  /* no mix-blend-mode → letters cover the halftone behind them */
}
.hero-bigtype span {
  display: block;
  font-size: clamp(110px, 21vw, 320px);
}
.hero-bigtype span + span {
  margin-top: -0.05em;
}

/* Tagline — left-aligned like LINICA */
.hero-tagline {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-left: clamp(32px, 8vw, 140px);
  padding-right: var(--gutter);
  color: #fff;
  pointer-events: none;
  text-align: left;
}
@media (max-width: 700px) {
  .hero-tagline {
    padding-left: 24px;
    padding-right: 24px;
  }
  .hero-tagline h1 {
    font-size: 22px !important;
    letter-spacing: 0.12em !important;
    line-height: 1.5 !important;
  }
  /* keep both lines on a single row so the 2-line structure stays intact */
  .hero-tagline h1 .line { white-space: nowrap !important; }
}
@media (max-width: 380px) {
  .hero-tagline h1 {
    font-size: 18px !important;
    letter-spacing: 0.10em !important;
  }
}
.hero-tagline h1 {
  display: inline-block; /* shrink to longest line so .line justify works */
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(32px, 5.4vw, 72px);
  letter-spacing: 0.18em;
  line-height: 1.5;
  margin: 0;
  color: #fff;
}
.hero-tagline h1 .line {
  display: block;
  text-align: justify;
  text-align-last: justify;
  /* Word breaking off so the line stays as one logical row */
  white-space: nowrap;
  /* Re-enable wrapping for narrow screens via justify when nowrap is removed */
}
.hero-tagline h1 .line:first-child {
  white-space: normal; /* longest line — defines the width */
}

/* Corner labels */
.hero-corner {
  position: absolute;
  z-index: 4;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.35em;
  color: rgba(255, 255, 255, 0.7);
}
.hero-corner.cn-tl { top: 28px; left: clamp(20px, 5vw, 64px); }
.hero-corner.cn-tr { top: 28px; right: clamp(20px, 5vw, 64px); }
.hero-corner.cn-bl { bottom: 28px; left: clamp(20px, 5vw, 64px); }
.hero-corner.cn-br { bottom: 28px; right: clamp(20px, 5vw, 64px); }
.hero-corner .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--aurora);
  margin-right: 10px;
  vertical-align: middle;
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}
.hero-scroll-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.6));
  z-index: 4;
  animation: scrollLine 2.6s var(--ease) infinite;
}
@keyframes scrollLine {
  0% { transform: translateX(-50%) scaleY(0); transform-origin: top; }
  50% { transform: translateX(-50%) scaleY(1); transform-origin: top; }
  51% { transform: translateX(-50%) scaleY(1); transform-origin: bottom; }
  100% { transform: translateX(-50%) scaleY(0); transform-origin: bottom; }
}

/* Round HOME button on the left edge of the hero */
.hero-home {
  position: absolute;
  left: clamp(16px, 3vw, 40px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: clamp(54px, 5vw, 68px);
  height: clamp(54px, 5vw, 68px);
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  pointer-events: auto;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}
.hero-home:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.07);
  background: var(--aurora-deep);
}

/* Vertical SCROLL indicator at the bottom-left */
.hero-scroll-indicator {
  position: absolute;
  left: calc(clamp(16px, 3vw, 40px) + clamp(54px, 5vw, 68px) / 2 - 8px);
  bottom: 28px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.4em;
  color: rgba(255, 255, 255, 0.78);
  pointer-events: none;
}
.hero-scroll-indicator .label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.hero-scroll-indicator .line {
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, currentColor, transparent);
}

/* When the overlay menu is open, force the brand to white over the navy bg */
body.is-menu-open .brand-en { color: #fff !important; }

/* Header overlays hero — white text until scroll */
body.has-hero .site-header:not(.is-scrolled) {
  color: #fff;
}
body.has-hero .site-header:not(.is-scrolled) .brand-en,
body.has-hero .site-header:not(.is-scrolled) .nav-list a {
  color: #fff;
}

/* =========================================================
   Sub-page Hero (framed but smaller)
   ========================================================= */
.page-hero {
  padding: 160px var(--gutter) 60px;
}
.page-hero-inner {
  max-width: var(--container);
  margin: 0 auto;
}
/* Title + jp subtitle on the same row, picture below */
.page-hero-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(12px, 2vw, 28px);
  padding-left: clamp(0px, 2vw, 24px);
  padding-right: clamp(0px, 2vw, 24px);
  flex-wrap: wrap;
}
.page-hero-display {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 140px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  margin: 0;
  position: relative;
  z-index: 3;
}
.page-hero-display .italic {
  font-style: italic;
  color: var(--ink);
}
.page-hero-picture {
  position: relative;
  aspect-ratio: 16 / 7;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--dark);
}
.page-hero-canvas,
.page-hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.page-hero-jp {
  font-family: var(--font-jp-serif);
  font-size: 12px;
  letter-spacing: 0.4em;
  color: var(--ink-mute);
  margin: 0;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .page-hero { padding-top: 110px; }
  .page-hero-row { gap: 12px; }
  .page-hero-jp { font-size: 10px; letter-spacing: 0.3em; }
  .page-hero-picture { aspect-ratio: 16 / 10; }
}

/* =========================================================
   Section
   ========================================================= */
.section {
  padding: clamp(100px, 14vw, 180px) var(--gutter);
}
.section.is-dark {
  background: var(--dark);
  color: var(--bg);
}
.section.is-warm {
  background: var(--bg-warm);
}
.section.is-cool {
  background: var(--bg-cool);
}
.container {
  max-width: var(--container);
  margin: 0 auto;
}
.container.narrow {
  max-width: var(--container-narrow);
}
.container.mid {
  max-width: 1060px;
}

/* Section header pattern: small label left, optional link right */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 56px;
}
.section-head .label {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.6vw, 80px);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
  margin: 0;
}
.section-head .label-jp {
  font-family: var(--font-jp-serif);
  font-size: 12px;
  letter-spacing: 0.4em;
  color: var(--ink-mute);
  display: block;
  margin-top: 12px;
}
.section-head .head-right {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.25em;
  color: var(--ink-mute);
  white-space: nowrap;
}

.section-display {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 140px);
  font-weight: 400;
  line-height: 1;
  margin: 0 0 32px;
  letter-spacing: 0.01em;
}
.section-text {
  font-family: var(--font-jp-serif);
  font-size: 15.5px;
  line-height: 2.15;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin: 0;
  /* Better automatic line breaks where browser supports it */
  text-wrap: pretty;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.section-lead {
  font-family: var(--font-jp-serif);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 2.1;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin: 0 0 48px;
}

/* =========================================================
   Buttons (small bordered link)
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 16px 34px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  background: transparent;
  position: relative;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease),
    background 0.4s var(--ease);
  cursor: pointer;
}
.btn:hover {
  color: var(--bg);
  background: var(--ink);
  border-color: var(--ink);
  opacity: 1;
}
.btn .arrow {
  display: inline-block;
  width: 24px; height: 1px;
  background: currentColor;
  position: relative;
}
.btn .arrow::after {
  content: "";
  position: absolute;
  right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn.is-dark {
  color: var(--bg);
  border-color: rgba(255,255,255,0.3);
}
.btn.is-dark:hover {
  color: var(--ink);
  background: var(--bg);
  border-color: var(--bg);
}
.text-link {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.28em;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  display: inline-flex;
  gap: 12px;
  align-items: center;
}
.text-link::after {
  content: "→";
  font-style: normal;
  letter-spacing: 0;
}

/* =========================================================
   About block (2-col text + image)
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
}
.about-text h3 {
  font-family: var(--font-jp-serif);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: 0.1em;
  line-height: 1.7;
  margin: 0 0 28px;
}
.about-figure {
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #d6e0d8 0%, #b3cac6 100%);
}
.about-figure.tint-2 {
  background: linear-gradient(135deg, #e8ddd1 0%, #cdb9a3 100%);
}
.about-figure.tint-3 {
  background: linear-gradient(135deg, #cfd9d8 0%, #94afb1 100%);
}
.about-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.5), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(0,0,0,0.18), transparent 60%);
}
.about-figure .caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.85);
  z-index: 2;
}
/* Photo variant — real photograph fills the figure */
.about-figure.has-photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.about-figure.has-photo::after {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.25) 100%);
}
/* Service detail figures use real photos */
#web .about-figure,
#ai .about-figure,
#consulting .about-figure,
#ma .about-figure {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
#web .about-figure {
  background-image:
    linear-gradient(180deg, rgba(4,10,20,0.10), rgba(4,10,20,0.30)),
    url("../images/service-web.png");
}
#ai .about-figure {
  background-image:
    linear-gradient(180deg, rgba(4,10,20,0.10), rgba(4,10,20,0.30)),
    url("../images/service-ai.png");
}
#consulting .about-figure {
  background-image:
    linear-gradient(180deg, rgba(4,10,20,0.10), rgba(4,10,20,0.30)),
    url("../images/service-consulting.png");
}
#ma .about-figure {
  background-image:
    linear-gradient(180deg, rgba(4,10,20,0.10), rgba(4,10,20,0.30)),
    url("../images/service-ma.png");
}
/* Suppress the decorative glow on service figures so photos read clean */
#web .about-figure::after,
#ai .about-figure::after,
#consulting .about-figure::after,
#ma .about-figure::after {
  display: none;
}

/* =========================================================
   Service cards — horizontal drag-scroller (LINICA-style)
   ========================================================= */
.service-list {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 0 40px 0;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  scrollbar-width: none;          /* Firefox */
}
.service-list::-webkit-scrollbar { display: none; } /* WebKit */
.service-list.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}
.service-list::after {
  /* trailing spacer so the last card can snap to the start */
  content: "";
  flex: 0 0 var(--gutter);
}
.service-card {
  position: relative;
  flex: 0 0 min(640px, 78vw);
  scroll-snap-align: start;
  padding: clamp(36px, 4vw, 56px);
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* photographic background + strong dark overlay so text is always legible */
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.50) 45%, rgba(0, 0, 0, 0.78) 100%),
    url("../images/service-web.png");
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  border: 1px solid var(--line);
}
.service-list.is-dragging .service-card a { pointer-events: none; }

/* Drag hint bubble (LINICA-style) */
.service-wrap {
  position: relative;
}
.service-hint,
.works-hint {
  position: absolute;
  top: 50%;
  right: clamp(80px, 8vw, 140px);
  transform: translateY(-50%);
  z-index: 10;
  width: clamp(56px, 5vw, 72px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: rgba(20, 30, 50, 0.78);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.15em;
  pointer-events: none;
  animation: dragPulse 2.6s var(--ease) infinite;
  transition: opacity 0.5s var(--ease);
}
.service-hint.is-hidden,
.works-hint.is-hidden {
  opacity: 0;
}
@keyframes dragPulse {
  0%, 100% { transform: translate(0, -50%) scale(1); opacity: 0.9; }
  50%      { transform: translate(-6px, -50%) scale(1.06); opacity: 1; }
}
.service-card.s-2 {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.50) 45%, rgba(0, 0, 0, 0.78) 100%),
    url("../images/service-ai.png");
}
.service-card.s-3 {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.50) 45%, rgba(0, 0, 0, 0.78) 100%),
    url("../images/service-consulting.png");
}
.service-card.s-4 {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.50) 45%, rgba(0, 0, 0, 0.78) 100%),
    url("../images/service-ma.png");
}
/* Text overrides for photo bg — pure white + subtle shadow for legibility */
.service-card,
.service-card *:not(.pill) {
  color: #fff !important;
}
.service-card .service-num {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}
.service-card h3 {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}
.service-card .service-title .en,
.service-card .jp {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}
.service-card p {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}
.service-card .stamp {
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}
.service-card .pill {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px -40px rgba(14, 23, 38, 0.35);
}
.service-num {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: 1;
  color: rgba(14, 23, 38, 0.7);
}
.service-card .body {
  align-self: flex-start;
}
.service-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: 0.02em;
  margin: 0 0 12px;
  line-height: 1.1;
}
.service-card .jp {
  font-family: var(--font-jp-serif);
  font-size: 13px;
  letter-spacing: 0.25em;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.service-card p {
  font-family: var(--font-jp-serif);
  font-size: 14px;
  line-height: 1.95;
  margin: 0;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.service-card .stamp {
  position: absolute;
  right: clamp(20px, 3vw, 36px);
  bottom: clamp(20px, 3vw, 36px);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.4em;
  color: rgba(14, 23, 38, 0.6);
}
.service-card .pill {
  position: absolute;
  right: clamp(20px, 3vw, 36px);
  top: clamp(20px, 3vw, 36px);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.3em;
  padding: 6px 14px;
  border: 1px solid rgba(14,23,38,0.3);
  border-radius: 999px;
  color: var(--ink-soft);
}

/* =========================================================
   Works (preview grid)
   ========================================================= */
.works-section {
  position: relative;
  padding-top: 0;
  padding-bottom: clamp(60px, 7vw, 100px);
}
/* Tight top spacing for the News section so it follows Works closely */
.news-section {
  padding-top: clamp(60px, 7vw, 100px);
}

.works-display {
  font-family: var(--font-display);
  font-size: clamp(64px, 11vw, 180px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
  text-align: right;
  padding-right: clamp(40px, 8vw, 140px);
  /* Pull the giant title up so it visibly crosses the section boundary */
  margin: -0.62em 0 clamp(40px, 6vw, 80px);
  color: rgba(20, 30, 60, 0.22);
  font-style: italic;
  pointer-events: none;
}
/* Horizontal drag-scroller for Works, matching the Service slider */
.works-list {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 0 0 0;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  scrollbar-width: none;
}
.works-list::-webkit-scrollbar { display: none; }
.works-list.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}
.works-list::after {
  content: "";
  flex: 0 0 var(--gutter);
}
.works-card {
  position: relative;
  flex: 0 0 min(440px, 72vw);
  scroll-snap-align: start;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.works-list.is-dragging .works-card { pointer-events: none; }
.works-wrap { position: relative; }

/* =========================================================
   Slider progress bar (Service & Works)
   ========================================================= */
.scroll-bar {
  position: relative;
  height: 1px;
  width: 100%;
  background: rgba(14, 23, 38, 0.15);
  margin-top: 36px;
}
.section.is-warm .scroll-bar { background: rgba(14, 23, 38, 0.18); }
.scroll-bar-fill {
  position: absolute;
  top: -1px;
  left: 0;
  width: 30%;
  height: 3px;
  background: var(--ink);
  transition: left 0.18s var(--ease), width 0.3s var(--ease);
}
.works-card.w-1 { background: linear-gradient(135deg, #d4ebe7, #98b9c4); }
.works-card.w-2 { background: linear-gradient(135deg, #1a2230, #3a4a5e); color: #fff; }
.works-card.w-3 { background: linear-gradient(135deg, #e3d6dc, #c9b4bf); }
.works-card.w-4 { background: linear-gradient(135deg, #e6dccd, #c1ab86); }
.works-card.w-5 { background: linear-gradient(135deg, #cfd9d8, #94afb1); }
.works-card.w-6 { background: linear-gradient(135deg, #f0e9df, #d4c4a6); }
.works-label {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: 0.06em;
  font-style: italic;
  text-align: center;
}
.works-label .jp {
  display: block;
  font-family: var(--font-jp-serif);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.35em;
  color: currentColor;
  opacity: 0.7;
  margin-top: 12px;
}
.works-empty {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.35em;
  color: var(--ink-mute);
  text-align: center;
}

/* =========================================================
   Photograph banner (full-bleed image-like band)
   ========================================================= */
.photo-banner {
  position: relative;
  padding: clamp(120px, 18vw, 240px) var(--gutter);
  overflow: hidden;
  text-align: center;
  background: linear-gradient(135deg, #1a2a2a 0%, #2d4848 60%, #4a8a82 100%);
  color: #fff;
}
.photo-banner-canvas,
.photo-banner-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.photo-banner > * {
  position: relative;
  z-index: 1;
}
.photo-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(64px, 12vw, 180px);
  line-height: 1;
  font-style: italic;
  margin: 0;
  letter-spacing: 0.02em;
}
.photo-banner .sub {
  font-family: var(--font-jp-serif);
  font-size: 14px;
  letter-spacing: 0.4em;
  margin-top: 32px;
  color: rgba(255,255,255,0.85);
}

/* =========================================================
   Message
   ========================================================= */
.message-block {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}
.message-portrait {
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, #c5d8d4 0%, #7da8a4 100%);
  position: relative;
  overflow: hidden;
}
.message-portrait::after {
  content: "代表取締役";
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-family: var(--font-jp-serif);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.85);
}
.message-body {
  font-family: var(--font-jp-serif);
  font-size: 16px;
  line-height: 2.25;
  letter-spacing: 0.07em;
  color: var(--ink-soft);
}
.message-body p {
  margin: 0 0 1.8em;
}
.message-body p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.4em;
  float: left;
  line-height: 1;
  padding: 6px 14px 0 0;
  color: var(--aurora-deep);
  font-style: italic;
}
.message-name {
  font-family: var(--font-jp-serif);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.2em;
  margin: 60px 0 0;
  text-align: right;
}
.message-name .en {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  margin-top: 8px;
}

/* =========================================================
   Company info table
   ========================================================= */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-jp-serif);
}
.info-table th, .info-table td {
  text-align: left;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.06em;
}
.info-table th {
  width: 220px;
  letter-spacing: 0.22em;
  font-size: 12px;
  font-family: var(--font-display);
  font-style: italic;
  vertical-align: top;
  padding-top: 30px;
  color: var(--aurora-deep);
}
.info-table td { color: var(--ink-soft); }

/* =========================================================
   Contact
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact-info dt {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--aurora-deep);
  margin-bottom: 8px;
}
.contact-info dd {
  font-family: var(--font-jp-serif);
  font-size: 16px;
  letter-spacing: 0.08em;
  margin: 0 0 32px;
  color: var(--ink);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.field { display: flex; flex-direction: column; gap: 10px; }
.field label {
  font-family: var(--font-jp-serif);
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
}
.field label .required {
  color: var(--aurora-deep);
  margin-left: 6px;
  font-size: 10px;
}
.field input,
.field textarea,
.field select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  padding: 14px 0;
  font-family: var(--font-jp-serif);
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 0.05em;
  transition: border-color 0.3s var(--ease);
  border-radius: 0;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--aurora-deep);
}
.field textarea { min-height: 160px; resize: vertical; }
.form-status {
  font-family: var(--font-jp-serif);
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-mute);
  margin-top: 20px;
  min-height: 1.5em;
}
.form-status.is-success {
  color: var(--aurora-deep);
  padding: 16px 18px;
  background: rgba(125, 196, 184, 0.10);
  border-left: 2px solid var(--aurora-deep);
}
.form-status.is-error {
  color: #b54848;
  padding: 16px 18px;
  background: rgba(181, 72, 72, 0.08);
  border-left: 2px solid #b54848;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--bg);
  padding: 100px var(--gutter) 40px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.footer-brand .brand-en {
  font-size: 28px;
  margin-bottom: 4px;
  display: block;
}
.footer-brand .brand-jp {
  display: block;
  margin-bottom: 24px;
  font-family: var(--font-jp-serif);
  font-weight: 400;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--ink-mute);
}
.footer-brand p {
  font-family: var(--font-jp-serif);
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 2;
  margin: 0;
}
.footer-heading {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0.25em;
  color: var(--aurora-deep);
  margin: 0 0 22px;
}
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--font-jp-serif);
  font-size: 13.5px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}
.footer-bottom {
  max-width: var(--container);
  margin: 36px auto 0;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--ink-mute);
}

/* =========================================================
   News list
   ========================================================= */
.news-list {
  border-top: 1px solid var(--line);
}
.news-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: clamp(20px, 4vw, 60px);
  align-items: center;
  padding: clamp(20px, 2.4vw, 32px) 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.4s var(--ease), padding-left 0.4s var(--ease);
}
.news-item:hover {
  background: rgba(14, 23, 38, 0.025);
  padding-left: 8px;
  opacity: 1;
}
.news-date {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
}
.news-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #1a2230 0%, #3a4a5e 100%);
}
.news-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(125, 196, 184, 0.25), transparent 60%);
}
.news-thumb.n-2 { background: linear-gradient(135deg, #e8ddd1 0%, #cdb9a3 100%); }
.news-thumb.n-2::after {
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.35), transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(166, 121, 255, 0.18), transparent 60%);
}
.news-thumb.n-3 { background: linear-gradient(135deg, #c5d8d4 0%, #7da8a4 100%); }
.news-thumb.n-3::after {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.20), transparent 60%);
}
.news-thumb-label {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.92);
}
.news-title {
  font-family: var(--font-jp-serif);
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: 0.05em;
  margin: 0;
  color: var(--ink-soft);
}
.news-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--aurora-deep);
  margin-right: 16px;
}
@media (max-width: 700px) {
  .news-item {
    grid-template-columns: 100px 1fr;
    gap: 16px 24px;
  }
  .news-thumb { display: none; }
  .news-title { font-size: 14px; }
}

/* =========================================================
   Contact CTA — dark, giant display type (LINICA-style)
   ========================================================= */
.contact-cta {
  position: relative;
  padding: clamp(100px, 14vw, 180px) var(--gutter);
  /* Extend full-width: cancel the body's left padding (side-bar) so the
     section spans from the very left edge of the viewport to the right. */
  margin-left: calc(clamp(60px, 5vw, 80px) * -1);
  margin-right: 0;
  overflow: hidden;
  background: #04060f;
  color: #fff;
}
/* Background video that fills the section */
.contact-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}
/* Dark overlay over the video so text stays legible */
.contact-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(4, 6, 15, 0.55) 0%,
    rgba(4, 6, 15, 0.40) 50%,
    rgba(4, 6, 15, 0.55) 100%
  );
  pointer-events: none;
}
.contact-cta > .container { z-index: 2; }
.contact-cta > .container {
  position: relative;
  z-index: 1;
}
.contact-cta-display {
  font-family: var(--font-display);
  font-size: clamp(56px, 11vw, 170px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin: 0 0 28px;
  color: #fff;
}
.contact-cta-categories {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.4vw, 18px);
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 clamp(64px, 10vw, 140px);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.contact-cta-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: end;
}
.contact-cta-body {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 56px;
}
.contact-cta-body p {
  font-family: var(--font-jp-serif);
  font-size: 14px;
  line-height: 2.2;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}
.contact-cta-link {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: 0.12em;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  align-self: flex-end;
}
.contact-cta-link .arrow {
  font-style: italic;
  display: inline-block;
  transition: transform 0.4s var(--ease);
}
.contact-cta-link:hover { opacity: 1; }
.contact-cta-link:hover .arrow { transform: translateX(8px); }
@media (max-width: 700px) {
  .contact-cta {
    /* the section spans full viewport, so push content right of the side-bar */
    padding-top: clamp(64px, 14vw, 100px);
    padding-bottom: clamp(64px, 14vw, 100px);
    padding-left: calc(clamp(60px, 5vw, 80px) + 24px);
    padding-right: 24px;
  }
  .contact-cta-display {
    font-size: clamp(48px, 14vw, 72px);
    margin-bottom: 20px;
  }
  .contact-cta-categories {
    font-size: 11px;
    letter-spacing: 0.14em;
    margin-bottom: 56px;
    padding-top: 18px;
    line-height: 1.9;
  }
  .contact-cta-bottom { grid-template-columns: 1fr; gap: 0; }
  .contact-cta-body { grid-column: 1; gap: 40px; }
  .contact-cta-body p {
    font-size: 13.5px;
    line-height: 2;
  }
  .contact-cta-link {
    align-self: flex-start;
    font-size: 18px;
    letter-spacing: 0.1em;
  }
}
@media (max-width: 380px) {
  .contact-cta-categories {
    font-size: 10px;
    letter-spacing: 0.1em;
  }
}

/* =========================================================
   Contact CTA — dark navy with flowing waves
   ========================================================= */
.cta-contact {
  position: relative;
  background: #04060f;
  color: #fff;
  padding: clamp(100px, 14vw, 180px) var(--gutter);
  overflow: hidden;
  text-align: center;
}
.cta-contact-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
/* Faint grid backdrop, like a measurement field */
.cta-contact-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.8;
}
/* Flowing SVG wave layer */
.cta-waves {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  animation: waveSlide 28s linear infinite;
}
@keyframes waveSlide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.cta-waves .wv {
  fill: none;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.cta-waves .wv-1 { stroke: rgba(125, 196, 184, 0.32); }
.cta-waves .wv-2 { stroke: rgba(166, 121, 255, 0.22); }
.cta-waves .wv-3 { stroke: rgba(180, 220, 230, 0.18); }
.cta-waves .wv-4 { stroke: rgba(255, 220, 180, 0.14); }
.cta-waves-2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  animation: waveSlide 42s linear infinite reverse;
  opacity: 0.6;
}
.cta-waves-2 .wv { fill: none; stroke-width: 1; vector-effect: non-scaling-stroke; }
.cta-waves-2 .wv-a { stroke: rgba(125, 196, 184, 0.18); }
.cta-waves-2 .wv-b { stroke: rgba(166, 121, 255, 0.15); }

.cta-contact > .container {
  position: relative;
  z-index: 1;
}
.cta-contact .section-head {
  justify-content: center;
  margin-bottom: clamp(48px, 7vw, 96px);
}
.cta-contact .section-head .label {
  color: #fff;
}
.cta-contact .section-head .label-jp {
  color: rgba(255, 255, 255, 0.65);
}

.cta-contact-title {
  font-family: var(--font-jp-serif);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: 0.12em;
  line-height: 1.6;
  margin: 0 0 32px;
}
.cta-contact-text {
  font-family: var(--font-jp-serif);
  font-size: 15px;
  line-height: 2.1;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 56px;
}
.cta-contact-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 36px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #fff;
  font-family: var(--font-jp-serif);
  font-size: 14px;
  letter-spacing: 0.15em;
  transition: background 0.4s var(--ease), color 0.4s var(--ease),
    border-color 0.4s var(--ease);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  min-width: 280px;
  justify-content: space-between;
}
.cta-pill:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
  opacity: 1;
}
.cta-pill span {
  font-family: var(--font-display);
  font-style: italic;
}
@media (max-width: 600px) {
  .cta-pill { min-width: 0; width: 100%; }
}

/* =========================================================
   Coming Soon (Works page)
   ========================================================= */
.coming-soon {
  padding: clamp(80px, 14vw, 180px) var(--gutter);
  text-align: center;
}
.coming-soon .label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.4em;
  color: var(--aurora-deep);
  margin-bottom: 24px;
}
.coming-soon h2 {
  font-family: var(--font-display);
  font-size: clamp(72px, 14vw, 200px);
  font-weight: 400;
  line-height: 1;
  margin: 0 0 40px;
  letter-spacing: 0.02em;
}
.coming-soon h2 .it { font-style: italic; color: var(--aurora-deep); }
.coming-soon p {
  font-family: var(--font-jp-serif);
  font-size: 16px;
  line-height: 2;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 40px;
  letter-spacing: 0.06em;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .about-grid,
  .message-block,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .message-portrait { max-width: 280px; margin: 0 auto; }

  .service-list { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }

  .info-table th { width: 130px; font-size: 11px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero { padding-top: 110px; }
  .page-hero { padding-top: 120px; }
}

@media (max-width: 600px) {
  .works-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-jp { display: none; }
  .hero-picture { aspect-ratio: 4 / 5; }
  .page-hero-picture { aspect-ratio: 16 / 10; }
}
