/*
Theme Name: Arte
Theme URI: https://arte.aomori.jp/
Author: Arte Inc.
Description: Arte Inc. corporate theme. 事業の流れを、デザインする。Light-based monotone design with GSAP + Lenis motion.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: arte
*/

/* =========================================================
   0. Design tokens
   ========================================================= */
:root {
  --bg:          #f4f3f0;   /* warm off-white */
  --bg-alt:      #eceae5;   /* slightly deeper panel */
  --bg-grey:     #dcd9d2;   /* mid warm grey (Philosophy 等) */
  --bg-dark:     #0d0d0d;   /* dark sections */
  --bg-dark-alt: #161616;
  --text:        #131312;   /* near black */
  --text-dim:    #6f6c66;   /* muted */
  --text-faint:  #a6a39c;
  --on-dark:     #f4f3f0;
  --on-dark-dim: #8d8a84;
  --line:        rgba(19, 19, 18, 0.14);
  --line-dark:   rgba(244, 243, 240, 0.16);
  --accent:      #3e5bff;   /* this site's own electric accent (distinct from corp) */

  /* fluid scaling: laptop size stays as-is, then grows with the viewport and caps
     around ~1920px so big monitors fill out (no shrinking on smaller screens). */
  --maxw: clamp(1328px, 90vw, 1720px);
  --maxw-wk: 1044px;  /* WORKS詳細の読み物幅：baigie準拠（本文カラム≈1004＋左右padding20） */
  --gutter: clamp(20px, 5vw, 110px);

  --ff-en: "Inter", "Helvetica Neue", Arial, sans-serif;
  --ff-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --ff-mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.8s;

  --header-h: 84px;
}

/* =========================================================
   1. Reset / base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto; /* Lenis handles smoothing */
}

body {
  font-family: var(--ff-jp);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: clamp(16px, 1.05vw, 20px);
  font-weight: 400;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* clip (not hidden) so position:sticky still works */
}

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }

::selection { background: var(--text); color: var(--bg); }

/* Skip link (a11y / WCAG 2.4.1). Hidden off-canvas until keyboard focus. */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100000;
  padding: 10px 16px;
  background: var(--accent, #3e5bff);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform .18s ease;
}
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid #fff;
  outline-offset: 2px;
}
/* target must not show a focus ring when reached via skip link */
#main:focus { outline: none; }

/* =========================================================
   2. Layout helpers
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(60px, 7.5vw, 120px);
}

.section--dark {
  background: var(--bg-dark);
  color: var(--on-dark);
}

.eyebrow {
  font-family: var(--ff-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.section--dark .eyebrow { color: var(--on-dark-dim); }

/* Big English section heading */
.display-en {
  font-family: var(--ff-en);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.02em;
  font-size: clamp(56px, 13vw, 220px);
  text-transform: uppercase;
}

/* Japanese display heading */
.display-jp {
  font-family: var(--ff-jp);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: 0.04em;
  font-size: clamp(28px, 4.4vw, 76px);
}

.lead {
  color: #3a3833;      /* darker than --text-dim for readable long-form body copy */
  font-size: clamp(14px, 1.1vw, 21px);
  line-height: 1.95;
  max-width: 46em;
  text-wrap: pretty;   /* avoid a single-character orphan on the last line */
}
.section--dark .lead { color: var(--on-dark-dim); }

/* =========================================================
   3. Buttons / links
   ========================================================= */
.btn {
  --c: var(--text);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--ff-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 18px 30px;
  border: 1px solid var(--c);
  border-radius: 100px;
  color: var(--c);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.5s var(--ease);
}
.btn .btn__fill {
  position: absolute;
  inset: 0;
  background: var(--c);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
  z-index: -1;
}
.btn .btn__arrow { transition: transform 0.5s var(--ease); }
.btn:hover { color: var(--bg); }
.section--dark .btn:hover { color: var(--bg-dark); }
.btn:hover .btn__fill { transform: translateY(0); }
.btn:hover .btn__arrow { transform: translate(4px, -4px); }
.section--dark .btn { --c: var(--on-dark); }

/* simple text link with animated underline */
.tlink {
  font-family: var(--ff-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.tlink__line {
  position: relative;
  padding-bottom: 3px;
}
.tlink__line::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.tlink:hover .tlink__line::after { transform: scaleX(1); transform-origin: left; }
.tlink__arrow { transition: transform 0.4s var(--ease); }
.tlink:hover .tlink__arrow { transform: translateX(5px); }

/* =========================================================
   4. Animation primitives
   ========================================================= */
/* Only hide when JS+GSAP are ready (set on <html>) to avoid FOUC-without-JS */
.js [data-reveal] { opacity: 0; }
.js [data-reveal="up"] { transform: translateY(42px); }

/* line mask for split text */
.line-mask { display: block; overflow: hidden; }
.line-inner { display: block; will-change: transform; }
.js .line-inner { transform: translateY(110%); }

/* =========================================================
   5. Header
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding-inline: var(--gutter);
  transition: transform 0.5s var(--ease), background-color 0.4s ease, backdrop-filter 0.4s ease;
  color: #fff;
}
/* JS toggles .header--on-light when scrolled over a light section */
.brand,
.nav-main > ul > li > a,
.nav-toggle {
  transition: color 0.45s var(--ease);
}
.site-header.header--on-light {
  color: var(--text);
}
/* JS toggles .is-scrolled past the top: give the bar a background so it
   doesn't overlap content transparently. Dark bg over dark sections,
   light bg over light sections (paired with .header--on-light). */
.site-header.is-scrolled {
  background-color: rgba(13, 13, 15, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header.is-scrolled.header--on-light {
  background-color: rgba(244, 243, 240, 0.85);
  border-bottom-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* 旧コーポサイトと同じ型：太い「Arte」＋小さめ「株式会社」｜細い縦線｜事業名 */
.brand { display: inline-flex; align-items: center; line-height: 1; }
.brand__logo {
  font-family: var(--ff-en); font-weight: 800; font-size: 26px; letter-spacing: -0.02em;
  display: inline-flex; align-items: baseline;
}
.brand__logo small {
  margin-left: 6px; font-family: var(--ff-jp); font-weight: 700; font-size: 14px; letter-spacing: 0.04em;
}
.brand__sub {
  display: inline-flex; align-items: center;
  margin-left: 18px; padding-left: 18px; border-left: 1px solid currentColor;
  height: 18px; font-family: var(--ff-jp); font-weight: 500; font-size: 14px; letter-spacing: 0.08em;
  opacity: 0.72; /* 線と文字を少し控えめに（旧サイトのグレー表現） */
}
/* PCメニュー（7項目）が1行で出る幅のうち狭い所では、メニューとロゴが接するので事業名だけ隠す */
@media (min-width: 769px) and (max-width: 1040px) {
  .brand__sub { display: none; }
}
@media (max-width: 560px) {
  .brand__logo { font-size: 22px; }
  .brand__logo small { margin-left: 4px; font-size: 12px; }
  .brand__sub { margin-left: 12px; padding-left: 12px; height: 15px; font-size: 12px; letter-spacing: 0.04em; }
}

.nav-main > ul { display: flex; gap: clamp(20px, 2.4vw, 44px); align-items: center; }
.nav-main a {
  font-family: var(--ff-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
}
.nav-main a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav-main a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-main .nav-contact {
  border: 1px solid currentColor;
  border-radius: 100px;
  padding: 9px 20px;
}
.nav-main .nav-contact::after { display: none; }

/* hover dropdown (About → 3 pages) */
.nav-item--has-menu {
  position: static;
}
.nav-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 210px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--bg-dark);
  border-radius: 14px;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}
/* invisible bridge so the cursor can cross the gap without closing the menu */
.nav-menu::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -12px;
  height: 12px;
}
.nav-item--has-menu:hover .nav-menu,
.nav-item--has-menu:focus-within .nav-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 9px;
  font-family: var(--ff-jp);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--on-dark);
  white-space: nowrap;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.nav-menu a::after { display: none; }
.nav-menu a:hover { background: rgba(244, 243, 240, 0.1); }
.nav-menu__ext { flex: 0 0 auto; opacity: 0.55; }

/* Service trigger: opens the dropdown, does not navigate. "+" turns into "−" when open */
.nav-svc { cursor: pointer; }
.nav-plus { position: relative; display: inline-block; vertical-align: middle; width: 9px; height: 9px; margin-left: 7px; }
.nav-plus::before, .nav-plus::after { content: ""; position: absolute; background: currentColor; }
.nav-plus::before { top: 50%; left: 0; right: 0; height: 1.5px; transform: translateY(-50%); }
.nav-plus::after {
  left: 50%; top: 0; bottom: 0; width: 1.5px; transform: translateX(-50%);
  transition: opacity 0.3s var(--ease);
}
.nav-item--has-menu:hover .nav-plus::after,
.nav-item--has-menu:focus-within .nav-plus::after { opacity: 0; }

/* ---- Service mega-menu (baigie-style: full-width light panel, columns per service) ---- */
.nav-mega {
  position: absolute; top: calc(100% + 14px); left: 0; right: 0; z-index: 1;
  background: #fff; border-radius: 16px;
  box-shadow: 0 30px 72px -20px rgba(13, 13, 13, 0.28);
  padding: clamp(28px, 2.6vw, 44px) clamp(28px, 2.6vw, 48px);
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}
.nav-mega::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.nav-item--has-menu:hover .nav-mega,
.nav-item--has-menu:focus-within .nav-mega {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
}
.nav-mega__inner { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(18px, 1.8vw, 36px); }
.nav-mega__head { display: block; padding-bottom: 12px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.nav-mega__head::after { display: none; }
.nav-mega__title { display: block; font-family: var(--ff-jp); font-weight: 700; font-size: 15px; letter-spacing: 0.02em; color: var(--text); transition: color 0.25s var(--ease); }
.nav-mega__en { display: block; margin-top: 4px; font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.nav-mega__head:hover .nav-mega__title { color: var(--accent); }
.nav-mega__list { display: grid; gap: 1px; }
.nav-mega__list a {
  display: block; position: relative; padding: 8px 8px 8px 22px; border-radius: 8px;
  font-family: var(--ff-jp); font-size: 12.5px; font-weight: 400; line-height: 1.5; letter-spacing: 0.01em;
  color: #45423d; white-space: normal;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.nav-mega__list a::after { display: none; }
.nav-mega__list a::before {
  content: ""; position: absolute; left: 7px; top: 0.95em; width: 5px; height: 5px;
  border-top: 1.4px solid var(--accent); border-right: 1.4px solid var(--accent);
  transform: rotate(45deg);
}
.nav-mega__list a:hover { background: var(--bg-alt); color: var(--text); }

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  position: relative;
  z-index: 120;
}
.nav-toggle span {
  position: absolute;
  left: 12px; right: 12px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.3s ease;
}
.nav-toggle span:nth-child(1) { top: 19px; }
.nav-toggle span:nth-child(2) { bottom: 19px; }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
/* 展開中: ヘッダーをオーバーレイ(z110)より上に出し、×とロゴを明色で見せる */
body.menu-open .site-header { transform: none; z-index: 130; }
body.menu-open .nav-toggle,
body.menu-open .brand { color: var(--on-dark); }
/* while the menu is open the header sits over the dark overlay: kill any
   scrolled/light-section background so no white bar shows behind brand + close */
body.menu-open .site-header,
body.menu-open .site-header.is-scrolled,
body.menu-open .site-header.is-scrolled.header--on-light {
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}
body.menu-open .brand__sub { color: var(--on-dark-dim); opacity: 1; }

/* Mobile overlay menu */
/* Mobile overlay — baigie風: 上寄せ・スクロール・ヘアライン区切り・読みやすい中サイズ */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--bg-dark);
  color: var(--on-dark);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: calc(var(--header-h) + clamp(14px, 3vh, 30px)) var(--gutter) clamp(48px, 10vh, 88px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.6s var(--ease);
  pointer-events: none;
}
body.menu-open .nav-overlay { clip-path: inset(0 0 0% 0); pointer-events: auto; }

.nav-overlay > ul { display: flex; flex-direction: column; }
.nav-overlay > ul > li { border-top: 1px solid var(--line-dark); }
.nav-overlay > ul > li:last-child { border-bottom: 1px solid var(--line-dark); }

/* staggered reveal on each top-level row */
.nav-overlay > ul > li {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.55s var(--ease);
}
body.menu-open .nav-overlay > ul > li { opacity: 1; transform: none; }
.nav-overlay > ul > li:nth-child(1) { transition-delay: 0.12s; }
.nav-overlay > ul > li:nth-child(2) { transition-delay: 0.17s; }
.nav-overlay > ul > li:nth-child(3) { transition-delay: 0.22s; }
.nav-overlay > ul > li:nth-child(4) { transition-delay: 0.27s; }
.nav-overlay > ul > li:nth-child(5) { transition-delay: 0.32s; }
.nav-overlay > ul > li:nth-child(6) { transition-delay: 0.37s; }
.nav-overlay > ul > li:nth-child(7) { transition-delay: 0.42s; }

/* top-level rows (Home/About/Service/Price/Works/Company/Contact) */
.nav-overlay > ul > li > a,
.nav-overlay__row {
  display: flex; align-items: center;
  padding: clamp(15px, 3.4vw, 21px) 2px;
  min-height: 0;
}
.nav-overlay > ul > li > a,
.nav-overlay__svc {
  font-family: var(--ff-en); font-weight: 700;
  font-size: clamp(23px, 6.2vw, 32px);
  letter-spacing: 0.01em; text-transform: uppercase; line-height: 1.1;
  color: var(--on-dark);
}
.nav-overlay > ul > li > a { transition: color 0.3s var(--ease); }
.nav-overlay > ul > li > a:hover,
.nav-overlay > ul > li > a:active { color: var(--accent); }

/* SERVICE accordion row + toggle */
.nav-overlay__row { justify-content: space-between; gap: clamp(12px, 4vw, 22px); }
.nav-overlay__svc { flex: 1 1 auto; }
.nav-overlay__expand {
  flex: 0 0 auto; position: relative;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(244, 243, 240, 0.42); border-radius: 50%;
  background: transparent; color: var(--on-dark); cursor: pointer;
}
.nav-overlay__expand span {
  position: absolute; left: 50%; top: 50%; width: 42%; height: 2px;
  background: currentColor; transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease);
}
.nav-overlay__expand span:nth-child(2) { transform: translate(-50%, -50%) rotate(90deg); }
.nav-overlay__group.is-open .nav-overlay__expand span:nth-child(2) { transform: translate(-50%, -50%) rotate(0deg); }

/* SERVICE submenu — grouped by category（メガメニューと同内容） */
.nav-overlay__submenu {
  overflow: hidden; max-height: 0;
  transition: max-height 0.45s var(--ease);
}
.nav-ov-cats {
  display: flex; flex-direction: column;
  gap: clamp(22px, 5.5vw, 30px);
  padding: 4px 2px clamp(22px, 6vw, 34px);
}
.nav-ov-cat__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.nav-ov-cat__jp {
  font-family: var(--ff-jp); font-weight: 700;
  font-size: clamp(16px, 4.6vw, 19px); letter-spacing: 0.02em;
  color: var(--on-dark); transition: color 0.3s var(--ease);
}
.nav-ov-cat__en {
  font-family: var(--ff-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.nav-ov-cat__head:hover .nav-ov-cat__jp,
.nav-ov-cat__head:active .nav-ov-cat__jp { color: var(--accent); }
.nav-ov-cat__list { display: flex; flex-direction: column; }
.nav-ov-cat__list a {
  display: block; position: relative;
  padding: 9px 0 9px 17px;
  font-family: var(--ff-jp); font-weight: 500;
  font-size: clamp(14px, 4.1vw, 16px); letter-spacing: 0.02em;
  text-transform: none; color: var(--on-dark-dim);
  transition: color 0.3s var(--ease);
}
.nav-ov-cat__list a::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 7px; height: 1px; background: rgba(244, 243, 240, 0.34);
  transition: background 0.3s var(--ease);
}
.nav-ov-cat__list a:hover,
.nav-ov-cat__list a:active { color: var(--accent); }
.nav-ov-cat__list a:hover::before,
.nav-ov-cat__list a:active::before { background: var(--accent); }

/* =========================================================
   6. Hero  — LDH-style dark / kinetic first view
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
}
.hero__sticky {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* symmetric top/bottom padding → block sits at the true vertical center */
  padding: var(--header-h) var(--gutter);
  overflow: hidden;
}
/* when the particle engine is live, give the hero scroll length and pin it,
   so the next section never appears until the burst has fully gone dark */
.hero.particles-on {
  height: 170vh;
  min-height: 0;
}
.hero.particles-on .hero__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 0;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(72% 64% at 50% 44%, #ffffff 0%, var(--bg) 58%, var(--bg-alt) 100%);
}
/* dark overlay that grows in on scroll → matches the next (dark) section */
.hero__tail {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--bg-dark);
  opacity: 0;
  pointer-events: none;
}
/* particle canvas that reconstructs the headline */
.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 3; width: 100%; }
/* once particles take over, hide the DOM headline (kept for a11y / fallback) */
.hero.particles-on .hero__title { opacity: 0; }
.hero__eyebrow {
  font-family: var(--ff-en);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(12px, 1.1vw, 15px);
  letter-spacing: 0.04em;
  color: var(--text-dim);
  margin-bottom: clamp(22px, 2.8vw, 38px);
}
.hero__title {
  font-family: var(--ff-jp);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.02em;
  font-size: clamp(40px, 8vw, 132px);
  color: var(--text);
  will-change: transform;
}
.hero__title .line-inner { color: var(--text); }

.hero__sub {
  margin: clamp(26px, 3.4vw, 44px) auto 0;
  max-width: 34em;
  color: var(--text-dim);
  font-size: clamp(13px, 1.15vw, 17px);
  line-height: 2;
}
.hero__actions {
  margin-top: clamp(30px, 3.6vw, 48px);
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* scroll cue */
.hero__cue {
  position: absolute;
  right: clamp(14px, 2.6vw, 46px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--text-faint);
}
.hero__cue-text {
  writing-mode: vertical-rl;
  font-family: var(--ff-en);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.hero__cue::after {
  content: "";
  width: 1px; height: 46px;
  background: currentColor;
  transform-origin: top;
  animation: scrollLine 2s var(--ease-inout) infinite;
}
@media (max-width: 768px) {
  .hero__cue { right: clamp(10px, 3vw, 20px); }
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Intro loader (LDH-style wipe reveal) */
.intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-dark);
}
.intro__brand {
  font-family: var(--ff-en);
  font-weight: 700;
  font-size: clamp(28px, 6vw, 64px);
  letter-spacing: 0.02em;
  overflow: hidden;
}
.intro__brand span { display: inline-block; }
.intro__bar {
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 0%;
  background: var(--on-dark);
}
body.intro-done .intro { display: none; }

/* =========================================================
   7. Statement (Message) — clear, dramatic, kinetic
   ========================================================= */
.statement {
  position: relative;
  z-index: 1;
  padding-block: clamp(120px, 18vw, 260px);
}
.statement .container { position: relative; z-index: 2; }

/* grayscale aura leaking from edges (the ring dissolved into light) */
.statement__aura { position: absolute; inset: -20%; z-index: 0; pointer-events: none; }
.statement__aura span {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.14;
  will-change: transform;
}
.statement__aura span:nth-child(1) {
  width: 52vw; height: 52vw; top: -12%; left: -12%;
  background: radial-gradient(circle, rgba(244,243,240,0.55), rgba(244,243,240,0) 70%);
  animation: auraDrift1 16s ease-in-out infinite alternate;
}
.statement__aura span:nth-child(2) {
  width: 46vw; height: 46vw; bottom: -14%; right: -10%;
  background: radial-gradient(circle, rgba(170,168,162,0.5), rgba(170,168,162,0) 70%);
  animation: auraDrift2 20s ease-in-out infinite alternate;
}
.statement__aura span:nth-child(3) {
  width: 40vw; height: 40vw; top: 26%; right: 22%;
  background: radial-gradient(circle, rgba(110,108,102,0.45), rgba(110,108,102,0) 70%);
  animation: auraDrift1 24s ease-in-out infinite alternate-reverse;
}
@keyframes auraDrift1 { to { transform: translate(8%, 10%) scale(1.15); } }
@keyframes auraDrift2 { to { transform: translate(-10%, -8%) scale(1.2); } }

.statement__mega {
  font-family: var(--ff-en);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(54px, 12vw, 190px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--on-dark);
}

.statement__body {
  margin-top: clamp(44px, 6vw, 84px);
  max-width: 54em;
  display: grid;
  gap: 0.15em;
  font-size: clamp(15px, 1.5vw, 21px);
  line-height: 2.0;
  font-weight: 500;
  color: var(--on-dark);
}
.statement__body p { margin: 0; }
.statement__body .kchar { display: inline-block; will-change: opacity; }
.statement__body .lead {
  font-weight: 700;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.5;
  color: var(--on-dark);
  margin-bottom: 1.1em;
}
.statement__spacer { height: 1.1em; }

/* monotone highlight box (inverted) */
.statement .hl {
  background: var(--on-dark);
  color: var(--bg-dark);
  font-weight: 700;
  padding: 0.08em 0.42em;
  border-radius: 2px;
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}

/* =========================================================
   8. Service
   ========================================================= */
.service {
  position: relative;
  z-index: 10;
  padding-block: clamp(90px, 12vw, 160px) clamp(60px, 8vw, 100px);
  background: var(--bg);
  border-radius: clamp(14px, 2vw, 24px) clamp(14px, 2vw, 24px) 0 0;
}
.service__head {
  margin-bottom: clamp(50px, 7vw, 90px);
}
.service__title { margin-top: 22px; }
.service__lead { margin-top: clamp(18px, 2vw, 28px); max-width: 54em; }
.service__foot { margin-top: clamp(56px, 7vw, 80px); text-align: center; }

/* -------------------------------------------------------
   Service list — vertical rows with hover inversion
------------------------------------------------------- */
.slist { border-top: 1px solid var(--line); }

.sitem {
  position: relative;
  display: block;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: color 0.6s var(--ease), border-color 0.6s var(--ease);
  isolation: isolate;
}

/* Dark fill sweeps up from bottom on hover */
.sitem::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-dark);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.72s cubic-bezier(0.76, 0, 0.24, 1);
  z-index: 0;
}
.sitem:hover::before { transform: scaleY(1); }
.sitem:hover { color: var(--on-dark); border-color: rgba(244, 243, 240, 0.1); }


/* Giant ghost number — slides in from right on hover */
.sitem__ghost {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-44%) translateX(28px);
  font-family: var(--ff-en);
  font-size: clamp(80px, 14vw, 200px);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(19, 19, 18, 0.07);
  opacity: 0;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  transition: opacity 0.55s var(--ease), transform 0.65s var(--ease),
              -webkit-text-stroke-color 0.6s var(--ease);
}
.sitem:hover .sitem__ghost {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  -webkit-text-stroke-color: rgba(244, 243, 240, 0.1);
}

/* Content grid (sits inside .container for padding/max-width) */
.sitem__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: clamp(44px, 5vw, 80px) minmax(0, 1.6fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 0 clamp(20px, 3vw, 48px);
  padding-block: clamp(28px, 4vw, 52px);
}

.sitem__num {
  font-family: var(--ff-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  align-self: start;
  padding-top: 8px;
  transition: color 0.55s var(--ease);
}
.sitem:hover .sitem__num { color: rgba(244, 243, 240, 0.3); }

.sitem__cat {
  display: block;
  font-family: var(--ff-en);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: clamp(6px, 0.8vw, 14px);
  transition: color 0.55s var(--ease);
}
.sitem:hover .sitem__cat { color: rgba(244, 243, 240, 0.4); }

.sitem__name {
  font-family: var(--ff-jp);
  font-size: clamp(22px, 3.2vw, 52px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: letter-spacing 0.65s var(--ease);
}
.sitem:hover .sitem__name { letter-spacing: 0.02em; }

.sitem__desc {
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.85;
  color: var(--text-dim);
  transition: color 0.55s var(--ease);
}
.sitem:hover .sitem__desc { color: rgba(244, 243, 240, 0.6); }

.sitem__cta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  justify-self: end;
}
.sitem__cta .arrow { transition: transform 0.4s var(--ease); }
.sitem:hover .sitem__cta .arrow { transform: translate(4px, -4px); }

/* =========================================================
   10. Media
   ========================================================= */
.media-sec { padding-block: clamp(60px, 7vw, 100px); }
.media-sec__head { margin-bottom: clamp(48px, 6vw, 80px); }
.media-sec__title { margin-top: 22px; }
.media-sec__lead { margin-top: clamp(16px, 2vw, 24px); }

.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
}

.mcard {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-alt);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.mcard:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 56px rgba(0,0,0,0.08);
}

.mcard__body {
  padding: clamp(24px, 3vw, 36px);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mcard__tag {
  font-family: var(--ff-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.mcard__name {
  margin-top: 14px;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  line-height: 1.3;
}

.mcard__desc {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-dim);
  flex: 1;
}

.mcard__cta {
  margin-top: 28px;
  font-family: var(--ff-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.mcard__cta .arrow { transition: transform 0.35s var(--ease); }
.mcard:hover .mcard__cta .arrow { transform: translate(3px, -3px); }

/* =========================================================
   Why Arte — 差別化（バラバラ発注 → 1社で流れに）
   ========================================================= */
.why__head { max-width: 56em; margin-bottom: clamp(44px, 5.5vw, 76px); }
.why__title { margin-top: 22px; line-height: 1.32; }
.why__lead { margin-top: clamp(16px, 2vw, 24px); }

.why__compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(16px, 2.5vw, 36px);
  align-items: stretch;
}
.why-col {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.2vw, 44px);
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
}
.why-col__label {
  font-family: var(--ff-en);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: none;
  color: var(--text-dim);
}
.why-col__title {
  margin-top: 12px;
  font-family: var(--ff-jp); font-weight: 700;
  font-size: clamp(20px, 2.2vw, 28px);
  color: var(--text);
}
.why-col--before .why-col__title { color: var(--text-dim); }

/* before — disconnected fragments (明るいカード) */
.why-frag {
  margin-top: 24px;
  flex: 1;
  display: flex; flex-wrap: wrap; align-content: flex-start; gap: 10px;
  list-style: none;
}
.why-frag li {
  font-size: 13px;
  padding: 8px 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--text-dim);
}

/* after — Arte を白カード＋影で「浮かせて」強調 */
.why-col--after {
  border-color: var(--line);
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.07);
}
.why-col--after .why-col__label { color: var(--text-dim); }
.why-col--after .why-col__title { color: var(--text); }

/* connected flow pills (ダークカード内) */
.why-flow {
  margin-top: 24px;
  flex: 1;
  display: flex; flex-direction: column; gap: 8px;
}
.why-flow__row { display: flex; flex-wrap: wrap; gap: 8px; }
.why-flow span {
  font-size: 13px; font-weight: 700 /* 和文は従来も700で表示されていた（可変フォント化で見た目を変えないため明示） */;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--text);
  border: 1px solid var(--text);
  color: var(--bg);
}

/* notes (× = 課題 / ✓ = 解決) */
.why-note {
  margin-top: 26px; padding-top: 22px;
  border-top: 1px solid var(--line);
  list-style: none;
  display: flex; flex-direction: column; gap: 11px;
}
.why-note li {
  position: relative;
  padding-left: 24px;
  font-size: 14px; line-height: 1.7;
  color: var(--text-dim);
}
.why-note li::before {
  content: "×";
  position: absolute; left: 0; top: 0;
  font-weight: 700;
  color: var(--text-faint);
}
/* ✓ リストは反転ダークカード内 */
.why-col--after .why-note { border-top-color: var(--line); }
.why-note--good li { color: var(--text); }
.why-note--good li::before { content: "✓"; color: var(--text); }

/* center transform arrow */
.why__arrow {
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
}

/* =========================================================
   11. News
   ========================================================= */
/* extra bottom space keeps the footer ("すべてのお知らせ") readable while the
   Recruit panel rises up over the pinned News section */
.news { padding-block: clamp(60px, 7vw, 100px) clamp(180px, 36vh, 360px); }
.news__head { margin-bottom: clamp(40px, 5vw, 72px); }
.news__title { margin-top: 20px; }

.news__list { border-top: 1px solid var(--line); }
.news__item { border-bottom: 1px solid var(--line); }
.news__link {
  display: grid;
  grid-template-columns: clamp(180px, 22vw, 260px) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(28px, 3.2vw, 48px);
  text-decoration: none;
  color: var(--text);
  transition: color 0.4s var(--ease);
}
.news__meta {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.8vw, 24px);
  flex-shrink: 0;
}
.news__date {
  font-family: var(--ff-en);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  white-space: nowrap;
}
.news__cat {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 14px;
  white-space: nowrap;
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.news__text {
  font-size: clamp(15px, 1.35vw, 18px);
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0.01em;
}
.news__arrow {
  display: inline-flex;
  color: var(--text-dim);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.news__link:hover .news__text { text-decoration: underline; text-underline-offset: 5px; }
.news__link:hover .news__cat { border-color: var(--text-dim); color: var(--text); }
.news__link:hover .news__arrow { opacity: 1; transform: translateX(0); }

.news__foot { margin-top: clamp(40px, 5vw, 64px); }

/* =========================================================
   11. Recruit (dark)
   ========================================================= */
.recruit {
  position: relative;
  z-index: 10; /* rises over the pinned News section (LDH-style overlap) */
  overflow: hidden;
  border-radius: clamp(14px, 2vw, 24px) clamp(14px, 2vw, 24px) 0 0;
}
.recruit__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.recruit__head { max-width: 34em; }
.recruit__title { margin-top: clamp(16px, 2vw, 24px); }
.recruit__lead { margin-top: clamp(20px, 2.4vw, 32px); }
.recruit__foot { margin-top: clamp(34px, 4vw, 50px); }

/* right-side image wall: two columns scrolling vertically in opposite
   directions, looping forever (swap each .recruit__ph for an <img> later) */
.recruit__loop {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 1.6vw, 22px);
  height: clamp(440px, 52vw, 620px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 9%, #000 91%, transparent);
}
.recruit__col {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.6vw, 22px);
  will-change: transform;
}
.recruit__shot {
  flex: 0 0 auto;
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
}
.recruit__shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.recruit__ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #232323 0%, #2c2c2c 48%, #181818 100%);
}
.recruit__ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244, 243, 240, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 243, 240, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}
.recruit__ph-label {
  position: relative;
  z-index: 1;
  font-family: var(--ff-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(244, 243, 240, 0.32);
}

/* =========================================================
   12. Contact
   ========================================================= */
/* contact: baigie-style 2-column CTA panels (left = inquiry, right = document
   download). Cards are placeholders for now — links/forms wired in later. */
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
}
.cta-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(34px, 4.5vw, 64px);
  border-radius: 16px;
  background: var(--bg-alt);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.cta-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.08);
}
.cta-card__label {
  margin-top: clamp(22px, 2.6vw, 32px);
  font-family: var(--ff-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.cta-card__title {
  margin-top: 12px;
  font-family: var(--ff-jp);
  font-weight: 700;
  font-size: clamp(22px, 2.5vw, 34px);
  line-height: 1.3;
}
.cta-card__desc {
  margin-top: 18px;
  margin-bottom: clamp(32px, 4vw, 48px);
  font-size: 16px;
  line-height: 1.95;
  color: var(--text-dim);
  flex: 1;
}
.cta-card__btn {
  position: relative;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 30px;
  border: 1px solid var(--text);
  border-radius: 100px;
  font-family: var(--ff-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.5s var(--ease);
}
.cta-card__btn-label { text-transform: none; letter-spacing: 0.04em; }
.cta-card__btn-fill {
  position: absolute;
  inset: 0;
  background: var(--text);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
  z-index: -1;
}
.cta-card__btn-arrow { transition: transform 0.5s var(--ease); }
.cta-card:hover .cta-card__btn { color: var(--bg); }
.cta-card:hover .cta-card__btn-fill { transform: translateY(0); }
.cta-card:hover .cta-card__btn-arrow { transform: translate(4px, -4px); }

/* =========================================================
   13. Footer
   ========================================================= */
.site-footer {
  background: var(--bg-dark);
  color: var(--on-dark);
  padding-block: clamp(60px, 8vw, 100px) 40px;
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  padding-bottom: clamp(50px, 6vw, 80px);
  border-bottom: 1px solid var(--line-dark);
}
.site-footer__brand {
  font-family: var(--ff-en);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1;
  letter-spacing: 0;
}
.site-footer__brand span { opacity: 1; }
.site-footer__addr {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--on-dark-dim);
}
.site-footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 40px;
  align-content: start;
}
.site-footer__nav a {
  font-family: var(--ff-en);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
  transition: color 0.3s ease;
  padding: 4px 0;
  display: inline-block;
}
.site-footer__nav a:hover { color: var(--on-dark); }
/* external link to the corporate site — JP-friendly, white */
.site-footer__nav a.site-footer__ext { font-family: var(--ff-jp); text-transform: none; letter-spacing: 0.04em; color: var(--on-dark); }
.site-footer__nav a.site-footer__ext:hover { color: var(--on-dark); opacity: 0.7; }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 30px;
  font-family: var(--ff-en);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
}

/* =========================================================
   13b. Sub-pages (About 等の下層ページ共通)
   ========================================================= */
/* page hero — dark band so the mix-blend header stays readable */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(26px, 4vw, 48px));
  padding-bottom: clamp(58px, 7.5vw, 112px);
}
/* パンくず（ナビ）と見出しブロックの間にしっかり余白を置いて分離 */
.page-hero .eyebrow { margin-top: clamp(40px, 6vw, 80px); }
.page-hero__title {
  margin-top: clamp(12px, 1.4vw, 18px);
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1.22;
}
.page-hero__lead { margin-top: clamp(24px, 3vw, 40px); max-width: 56em; }

/* =========================================================
   TOP hero — kinetic typography (own identity, distinct from corp)
   Giant keyword marquees that skew with scroll velocity + statement.
   ========================================================= */
.khero {
  position: relative;
  min-height: clamp(620px, 100svh, 1080px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-dark);
  color: var(--on-dark);
  padding-block: var(--header-h);
}

/* layered marquees */
.khero__marquees {
  position: absolute;
  inset: -6% 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(2px, 1vw, 16px);
  transform: skewY(var(--khSkew, 0deg));
  transition: transform 0.5s var(--ease);
  will-change: transform;
  pointer-events: none;
}
.khero__row { overflow: hidden; display: flex; }
.khero__track {
  display: inline-flex;
  flex: none;
  white-space: nowrap;
  font-family: var(--ff-en);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: clamp(44px, 9.5vw, 150px);
  line-height: 1.04;
  animation: kheroMarqueeL 34s linear infinite;
}
.khero__track span { padding-right: 0.4em; }
.khero__row--rev .khero__track { animation-name: kheroMarqueeR; }
.khero__row--slow .khero__track { animation-duration: 52s; }
/* row styling: mostly outlined, one accent-filled, one faint */
.khero__track--outline {
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(244, 243, 240, 0.34);
}
.khero__track--accent { color: var(--accent); opacity: 0.92; -webkit-text-stroke: 0; }
.khero__track--faint { color: rgba(244, 243, 240, 0.14); -webkit-text-stroke: 0; }

@keyframes kheroMarqueeL { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes kheroMarqueeR { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* scrim so the statement stays readable over the type */
.khero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(125% 85% at 28% 50%, rgba(13,13,13,0.92) 26%, rgba(13,13,13,0.55) 58%, rgba(13,13,13,0) 80%);
}

/* foreground statement */
.khero__inner { position: relative; z-index: 2; width: 100%; }
.khero__eyebrow {
  font-family: var(--ff-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(244, 243, 240, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.khero__eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--accent);
}
.khero__title {
  margin-top: clamp(22px, 3vw, 40px);
  font-family: var(--ff-jp);
  font-weight: 700;
  font-size: clamp(40px, 7.4vw, 104px);
  line-height: 1.14;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 40px rgba(13, 13, 13, 0.55);
}
.khero__title em { font-style: normal; color: var(--accent); }
.khero__lead {
  margin-top: clamp(24px, 3vw, 38px);
  max-width: 40em;
  font-size: clamp(13px, 1.05vw, 16px);
  line-height: 2.05;
  color: rgba(244, 243, 240, 0.74);
}
.khero__cta { margin-top: clamp(30px, 3.6vw, 48px); }

/* scroll cue */
.khero__cue {
  position: absolute;
  right: clamp(18px, 3vw, 48px);
  bottom: clamp(26px, 5vh, 52px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-en);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(244, 243, 240, 0.5);
}
.khero__cue::after {
  content: "";
  width: 1px; height: 42px;
  background: currentColor;
  transform-origin: top;
  animation: scrollLine 2s var(--ease-inout) infinite;
}

@media (max-width: 768px) {
  .khero__track { font-size: clamp(40px, 15vw, 90px); }
  .khero__scrim {
    background: linear-gradient(180deg,
      rgba(13,13,13,0.74) 0%,
      rgba(13,13,13,0.92) 40%,
      rgba(13,13,13,0.92) 60%,
      rgba(13,13,13,0.78) 100%);
  }
  .khero__cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .khero__track { animation: none; }
  .khero__marquees { transform: none; }
}

/* =========================================================
   SERVICE — sticky split (own design, not the corp .sitem rows)
   Left: pinned 01–05 index that highlights on scroll.
   Right: scrolling detail panels.
   ========================================================= */
.svc-split {
  display: grid;
  grid-template-columns: 0.66fr 1fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}
.svc-nav__item.is-active { opacity: 1; }
.svc-nav__item.is-active .svc-nav__num,
.svc-nav__item.is-active .svc-nav__en { color: var(--accent); }
.svc-panel.is-active .svc-panel__num { color: var(--accent); }
.svc-panel.is-active .svc-panel__num::after { background: var(--accent); }
.svc-panel.is-active .svc-panel__en { color: var(--accent); }
.svc-panel.is-active .svc-panel__tags li { border-color: rgba(62, 91, 255, 0.4); color: var(--text); }

/* View All (section foot) */
.svc-foot {
  margin-top: clamp(20px, 2.6vw, 40px);
  padding-top: clamp(18px, 2vw, 28px);
  border-top: 1px solid var(--line);
  text-align: right;
}

/* =========================================================
   WORKS — 3×2 grid of work cards (WP-ready: screenshot + meta)
   ========================================================= */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3vw, 48px) clamp(20px, 2.4vw, 32px);
}
.work-card { display: flex; flex-direction: column; color: var(--text); }
.work-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #d9d6cf, #efede8);
}
.work-card__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.work-card:hover .work-card__media img { transform: scale(1.05); }
.work-card__cat {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 1;
  font-family: var(--ff-jp);
  font-size: 11px;
  font-weight: 700 /* 和文は従来も700で表示されていた（可変フォント化で見た目を変えないため明示） */;
  letter-spacing: 0.04em;
  padding: 6px 13px;
  border-radius: 100px;
  background: rgba(13, 13, 13, 0.8);
  color: #fff;
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  transition: background-color 0.4s var(--ease);
}
.work-card:hover .work-card__cat { background: var(--accent); }
.work-card__body { margin-top: clamp(14px, 1.5vw, 18px); }
.work-card__name {
  font-family: var(--ff-jp);
  font-weight: 700;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5;
}
.work-card__industry {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-dim);
}
.works__foot { margin-top: clamp(44px, 5vw, 68px); text-align: center; }

@media (max-width: 900px) { .works-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .works-grid { grid-template-columns: 1fr; gap: 32px; } }

/* breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-en);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--on-dark-dim);
}
.breadcrumb a { transition: color 0.3s var(--ease); }
.breadcrumb a:hover { color: var(--on-dark); }
.breadcrumb__sep { opacity: 0.5; }
.breadcrumb [aria-current="page"] { color: var(--on-dark); }

/* eyebrow の日本語サブラベル（PHILOSOPHY ｜ 私たちの考え方） */
.eyebrow__sub {
  font-family: var(--ff-jp);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: none;
}
.eyebrow__sub::before { content: "｜"; margin: 0 6px 0 -2px; opacity: 0.55; }

/* Philosophy — 見出し＋本文＋画像の2カラム */
.philosophy__grid {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: clamp(40px, 5.5vw, 96px);
  align-items: stretch;
}
/* 左右反転バリアント（画像=左 / テキスト=右） */
.philosophy--reverse .philosophy__grid { grid-template-columns: 0.82fr 1fr; }
.philosophy__statement {
  margin-top: clamp(16px, 2vw, 24px);
  font-family: var(--ff-jp);
  font-weight: 700;
  line-height: 1.45;
  font-size: clamp(24px, 2.7vw, 38px);
  letter-spacing: 0.02em;
}
.philosophy__body { margin-top: clamp(26px, 3vw, 40px); }
.philosophy__body p {
  font-size: clamp(15px, 1.05vw, 16px);
  line-height: 1.95;
  color: var(--text-dim);
}
.philosophy__body p + p { margin-top: 1.5em; }
.philosophy__points { color: var(--text) !important; line-height: 2.05 !important; }
.philosophy__close { color: var(--text-dim); }

.philosophy__media {
  position: relative;
  min-height: 360px;
}
.philosophy__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.img-ph__label {
  font-family: var(--ff-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(19, 19, 18, 0.28);
}
.section--dark .img-ph { background: linear-gradient(135deg, #232323 0%, #2c2c2c 48%, #181818 100%); }
.section--dark .img-ph__label { color: rgba(244, 243, 240, 0.32); }

/* 3 値カード (Mission / Vision / Value) */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.6vw, 36px);
}
.value-card__en {
  display: block;
  margin-top: 18px;
  font-family: var(--ff-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.value-card__title {
  margin-top: 7px;
  font-family: var(--ff-jp);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.4;
  color: var(--text);
}
.value-card__desc {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.95;
  color: var(--text-dim);
}

/* 次ページ導線 (代表メッセージ / 会社概要) */
.page-links {
  border-top: 1px solid var(--line);
}
.section--dark .page-links { border-top-color: var(--line-dark); }
.page-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 2.6vw, 36px) clamp(16px, 2vw, 32px) clamp(22px, 2.6vw, 36px) 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  transition: opacity 0.3s var(--ease), gap 0.4s var(--ease);
}
.section--dark .page-link { border-bottom-color: var(--line-dark); color: var(--on-dark); }
.page-link:hover { opacity: 0.6; gap: 32px; }
.page-link__label {
  font-family: var(--ff-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  min-width: 80px;
}
.section--dark .page-link__label { color: var(--on-dark-dim); }
.page-link__title {
  flex: 1;
  font-family: var(--ff-jp);
  font-weight: 700 /* 和文は従来も700で表示されていた（可変フォント化で見た目を変えないため明示） */;
  font-size: clamp(16px, 1.6vw, 20px);
}
.page-link__arrow { flex: 0 0 auto; transition: transform 0.4s var(--ease); }
.page-link:hover .page-link__arrow { transform: translate(4px, -4px); }

/* generic sub-page section heads */
.about-block__head,
.message__head,
.company__head,
.sec-head { margin-bottom: clamp(36px, 5vw, 64px); }
.about-block__head h2,
.message__head h2,
.company__head h2,
.sec-head h2 { margin-top: clamp(12px, 1.6vw, 18px); }
.sec-head .lead { margin-top: clamp(18px, 2vw, 28px); }
.sec-head .lead + .lead { margin-top: 1.1em; }
.sec-head--center { text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }
.sec-head--center .lead { margin-inline: auto; }

/* accent utility (this site's electric blue) */
.u-accent { color: var(--accent); }

/* stacked section head with this site's accent (eyebrow line + tighter lead) */
.sec-head--accent .eyebrow::before { background: currentColor; opacity: 1; width: 40px; }
.sec-head--accent .lead { max-width: 42em; line-break: strict; }

/* oversized ghost section label — echoes the hero's big outlined type */
.sec-head, .phil__head, .knowledge__head { position: relative; overflow: hidden; }
.sec-head > :not(.sec-ghost),
.phil__head > :not(.sec-ghost),
.knowledge__head > :not(.sec-ghost) { position: relative; z-index: 1; }
.sec-ghost {
  position: absolute;
  top: 0;
  left: -0.01em;
  z-index: 0;
  margin: 0;
  font-family: "Anton", var(--ff-en), sans-serif;
  font-weight: 400;
  font-size: clamp(74px, 13vw, 200px);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: rgba(19, 19, 18, 0.07);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.section--dark .sec-ghost { color: rgba(244, 243, 240, 0.09); }
.sec-head--center .sec-ghost { left: 50%; transform: translateX(-50%); }
@media (max-width: 680px) { .sec-ghost { font-size: clamp(64px, 24vw, 120px); } }

/* ===== PROTOTYPE: scroll-driven background + dark SERVICE (hero→service) ===== */
html { background-color: #0a0a0f; }
body { background: transparent; }
.bg-layer { position: fixed; inset: 0; z-index: -1; background-color: #0c0e15; }
/* sections are transparent; the fixed #bgLayer is scroll-tweened through their data-bg colours */
[data-bg] { background-color: transparent !important; }
.khero { background: transparent; }

/* match the hero so hero→concept reads as one continuous dark field
   (note: [data-bg] forces transparent !important, so the #bgLayer shows through —
   this colour is the fallback when JS is off) */
#concept.section--dark { background: #0c0e15; }
/* desktop: extra room below CONCEPT so the "Clarity by design" marquee lingers in the
   dark before SERVICE pushes the #bgLayer to white (mobile overrides this below). */
#concept.section--dark { padding-bottom: clamp(180px, 26vh, 400px); }
/* mobile: CONCEPT slides up OVER the hero (parallax overlap). It needs an opaque
   background to actually cover the hero; hero.js translates #top at ~0.5x so the
   hero lingers while CONCEPT rises over it. The top radius + shadow define the edge. */
@media (max-width: 880px) {
  #top.hero-mw { z-index: 1; }
  /* CONCEPT itself stays TRANSPARENT → the fixed #bgLayer washes dark→light uniformly
     across the whole viewport (no spatial gradient = no banding = no seam). */
  #concept.section--dark {
    position: relative; z-index: 2;
    padding-top: clamp(96px, 18vh, 200px);         /* more room above the heading / overlap edge */
    padding-bottom: clamp(190px, 40vh, 420px);     /* gap before SERVICE (kept ≥ cap edge so no seam) */
  }
  /* an opaque cap covers ONLY the top of CONCEPT (where it overlaps the hero). It fades
     out high up while the #bgLayer behind is still dark, so its bottom edge is invisible.
     Everything below the cap is the plain transparent section → smooth bgLayer wash. */
  #concept.section--dark::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0;
    height: 86vh; z-index: -1; pointer-events: none;
    background-image: linear-gradient(to bottom,
        #0c0e15 0, #0c0e15 calc(100% - 20vh), rgba(12, 14, 21, 0) 100%);
    box-shadow: 0 -20px 44px -16px rgba(0, 0, 0, 0.6);
  }
}

/* =========================================================
   20. SERVICE — light, sticky changing visual (500g style)
   Left: scrolling 01–05 detail. Right: sticky photo that swaps
   to the active service. Section bg shifts through light tints.
   ========================================================= */
/* transparent so the fixed #bgLayer (scroll-tweened dark→light) shows through */
.svc-section { background: transparent; color: var(--text); padding-bottom: 0; }
/* tail after the pin: holds the foot link (sticky scope limited here, so it can't
   stick during the pinned stage) + buffer before WORKS turns dark */
.svc-tail { position: relative; padding-bottom: clamp(150px, 24vh, 300px); }
.svc-head { margin-bottom: clamp(20px, 4vw, 56px); }
.svc-title {
  font-family: var(--ff-en); font-weight: 800; text-transform: uppercase;
  font-size: clamp(48px, 9vw, 150px); line-height: 1; letter-spacing: -0.02em;
  color: #1c1f2a;
}
.svc-head .lead { margin-top: clamp(14px, 1.8vw, 24px); max-width: 38em; color: #1c1f2a; }

/* pinned stage via sticky (robust with Lenis): a tall parent defines the
   scroll length, the stage sticks for its duration; JS steps 01→05 by progress */
.svc-pin { position: relative; height: 460vh; }
.svc-stage {
  position: sticky; top: 0; height: 100vh;
  display: flex; align-items: center; overflow: hidden;
}
.svc-stage__inner {
  width: 100%;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 88px); align-items: center;
}

/* left: all items stacked in one cell, only the active one shown */
.svc-text { display: grid; }
.svc-item {
  grid-area: 1 / 1;
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity 0.45s var(--ease), transform 0.55s var(--ease);
}
.svc-item.is-active { opacity: 1; transform: none; pointer-events: auto; }
.svc-item__num { font-family: "Space Mono", monospace; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--text-dim); }
.svc-item__en { display: inline; margin-left: 10px; font-family: var(--ff-en); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); }
.svc-item__title { margin-top: 16px; font-family: var(--ff-jp); font-weight: 700; font-size: clamp(24px, 3.2vw, 40px); line-height: 1.3; }
/* desktop: oversized, faded, editorial "01 Strategy" — the JP title tucks slightly under it */
@media (min-width: 881px) {
  /* one cohesive label in the site's display face (Anton), oversized + faded */
  .svc-item__num, .svc-item__en {
    font-family: "Anton", var(--ff-en), sans-serif; font-weight: 400;
    font-size: clamp(54px, 6.4vw, 120px); line-height: 1; letter-spacing: 0.015em;
    text-transform: uppercase; color: #e2e1dc;
  }
  .svc-item__en { margin-left: 0.2em; }
  .svc-item__title { position: relative; margin-top: clamp(2px, 0.5vw, 12px); }
}
.svc-item__desc { margin-top: 18px; max-width: 30em; font-size: clamp(13px, 1.05vw, 15px); line-height: 2.05; color: var(--text-dim); }
.svc-item__tags { margin-top: clamp(20px, 2.4vw, 28px); display: flex; flex-wrap: wrap; gap: clamp(10px, 1vw, 18px); }
.svc-item__tags li { font-size: clamp(12px, 0.95vw, 14px); letter-spacing: 0.02em; color: var(--text-dim); }
.svc-item__tags li::before { content: "#"; color: var(--text-faint); margin-right: 1px; }
/* more prominent but monochrome (it's a link, not a coloured CTA) */
.svc-item__link {
  margin-top: 28px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--text); gap: 14px;
}
.svc-item__link .tlink__line { padding-bottom: 4px; border-bottom: 2px solid currentColor; }
.svc-item__link .tlink__line::after { display: none; }
.svc-item__link .tlink__arrow {
  width: 32px; height: 32px; border: 1.5px solid currentColor; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
.svc-item__link:hover .tlink__arrow { background-color: var(--text); color: var(--bg); transform: none; }

/* right: fixed visual box; the active photo slides in from the right */
.svc-visual {
  position: relative;
  height: min(70vh, 620px);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(13,13,13,0.4);
}
/* PC: full-height photo that bleeds to the right screen edge (dynamic 500g style).
   Text stays aligned to the container on the left; the picture fills the right half. */
@media (min-width: 881px) {
  .svc-stage { width: 100vw; margin-left: calc(50% - 50vw); }
  .svc-stage__inner {
    position: relative; height: 100vh;
    grid-template-columns: 1fr; align-items: center; gap: 0;
    padding-left: max(var(--gutter), calc(50vw - var(--maxw) / 2 + var(--gutter)));
    padding-right: 50vw;
  }
  .svc-visual {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: 50vw; height: auto;
    border-radius: 0; box-shadow: none;
  }
}
.svc-pic {
  position: absolute; inset: 0; margin: 0;
  display: flex; align-items: flex-end;
  padding: clamp(20px, 2.4vw, 36px);
  opacity: 0; transform: scale(1.06);
  transition: opacity 0.7s var(--ease), transform 1.1s cubic-bezier(.4, 0, .2, 1);
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.svc-pic.is-active { opacity: 1; transform: scale(1); }
/* per-item photo is desktop-hidden (the right column handles visuals); shown on mobile */
.svc-item__pic { display: none; }
/* layers: caption scrim (top) / photo / fallback gradient (shows until a photo is added).
   drop files in assets/img/service/ named service-01..05.webp to replace the gradients.
   shared by the desktop right-column .svc-pic and the mobile per-item .svc-item__pic. */
.svc-pic[data-i="0"], .svc-item__pic[data-i="0"] { background-image: linear-gradient(to top, rgba(10,12,20,0.5), rgba(10,12,20,0) 42%), url(../img/service/service-01.webp), linear-gradient(150deg, #1b2a6e 0%, #3e5bff 60%, #7b90ff 100%); }
.svc-pic[data-i="1"], .svc-item__pic[data-i="1"] { background-image: linear-gradient(to top, rgba(10,12,20,0.5), rgba(10,12,20,0) 42%), url(../img/service/service-02.webp), linear-gradient(150deg, #14225e 0%, #2f49d6 55%, #6f86ff 100%); }
.svc-pic[data-i="2"], .svc-item__pic[data-i="2"] { background-image: linear-gradient(to top, rgba(10,12,20,0.5), rgba(10,12,20,0) 42%), url(../img/service/service-03.webp), linear-gradient(150deg, #2a1d6e 0%, #5340d6 55%, #8f86ff 100%); }
.svc-pic[data-i="3"], .svc-item__pic[data-i="3"] { background-image: linear-gradient(to top, rgba(10,12,20,0.5), rgba(10,12,20,0) 42%), url(../img/service/service-04.webp), linear-gradient(150deg, #103a5e 0%, #2f7ad6 55%, #6fb8ff 100%); }
.svc-pic[data-i="4"], .svc-item__pic[data-i="4"] { background-image: linear-gradient(to top, rgba(10,12,20,0.5), rgba(10,12,20,0) 42%), url(../img/service/service-05.webp), linear-gradient(150deg, #1d2a3a 0%, #3e5bff 60%, #9fb4ff 100%); }
.svc-pic__cap { font-family: var(--ff-en); font-size: clamp(15px, 1.5vw, 22px); font-weight: 600; letter-spacing: 0.06em; color: #fff; display: inline-flex; align-items: baseline; gap: 12px; }
.svc-pic__cap b { font-family: "Space Mono", monospace; font-weight: 700; font-size: 0.7em; opacity: 0.8; }

/* hold the link near the bottom of the viewport while the tail scrolls,
   so it lingers in the light zone instead of flowing past into the dark WORKS */
.svc-foot {
  margin-top: clamp(24px, 3.5vw, 56px);
  position: sticky; bottom: clamp(28px, 6vh, 60px); z-index: 3;
}
@media (max-width: 880px) { .svc-foot { position: static; } }

/* mobile: no pin — show all items stacked, each with its own photo on top */
@media (max-width: 880px) {
  .svc-pin { height: auto; }
  .svc-stage { position: static; height: auto; min-height: 0; overflow: visible; }
  .svc-stage__inner { grid-template-columns: 1fr; gap: 28px; }
  .svc-text { display: block; }
  .svc-item {
    grid-area: auto; position: relative;
    opacity: 1 !important; transform: none !important; pointer-events: auto;
    padding-block: clamp(28px, 6vh, 48px); border-top: 1px solid var(--line);
  }
  .svc-item:first-child { border-top: 0; padding-top: 0; }
  /* the right-column changing visual is replaced by a per-item photo */
  .svc-visual { display: none; }
  .svc-item__pic {
    display: block; width: 100%; aspect-ratio: 16 / 10;
    margin-bottom: clamp(10px, 2.5vw, 16px);
    border-radius: 14px; overflow: hidden;
    background-size: cover; background-position: center; background-repeat: no-repeat;
    box-shadow: 0 24px 60px -38px rgba(13, 13, 13, 0.55);
  }
  /* tighter spacing around the 01 Strategy / title heading */
  .svc-item__title { margin-top: 6px; }
  .svc-item__desc { margin-top: 16px; }
}

/* =========================================================
   21. WORKS — webkid-style teaser: RGB-glitch heading over a faint
   thumbnail wall, centred copy + ghost button (dark section).
   ========================================================= */
/* works is now the first panel of the horizontal scroll (dark, opaque) */
.works-hero { position: relative; background-color: #14161e; }
.hpanel--works { position: relative; overflow: hidden; justify-content: center; }
.works-hero__bg {
  position: absolute; left: -3%; right: -3%; top: -14%; height: 128%; z-index: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 14px;
  opacity: 0.34; pointer-events: none; will-change: transform;
}
/* uniform landscape cells (PC screenshots). cover-crops any image.
   photo (top layer) over a fallback gradient — drop work-01..15.webp in assets/img/works/ */
.works-hero__bg span { border-radius: 8px; background-size: cover; background-position: center; background-repeat: no-repeat; }
.works-hero__bg span:nth-child(1)  { background-image: url(../img/works/work-01.webp), linear-gradient(160deg,#2b3a7a,#5e74e6); }
.works-hero__bg span:nth-child(2)  { background-image: url(../img/works/work-02.webp), linear-gradient(160deg,#1f2a5e,#3e5bff); }
.works-hero__bg span:nth-child(3)  { background-image: url(../img/works/work-03.webp), linear-gradient(160deg,#233056,#6f86ff); }
.works-hero__bg span:nth-child(4)  { background-image: url(../img/works/work-04.webp), linear-gradient(160deg,#2a2470,#8f86ff); }
.works-hero__bg span:nth-child(5)  { background-image: url(../img/works/work-05.webp), linear-gradient(160deg,#2b3a7a,#5e74e6); }
.works-hero__bg span:nth-child(6)  { background-image: url(../img/works/work-06.webp), linear-gradient(160deg,#1f2a5e,#3e5bff); }
.works-hero__bg span:nth-child(7)  { background-image: url(../img/works/work-07.webp), linear-gradient(160deg,#233056,#6f86ff); }
.works-hero__bg span:nth-child(8)  { background-image: url(../img/works/work-08.webp), linear-gradient(160deg,#2a2470,#8f86ff); }
.works-hero__bg span:nth-child(9)  { background-image: url(../img/works/work-09.webp), linear-gradient(160deg,#2b3a7a,#5e74e6); }
.works-hero__bg span:nth-child(10) { background-image: url(../img/works/work-10.webp), linear-gradient(160deg,#1f2a5e,#3e5bff); }
.works-hero__bg span:nth-child(11) { background-image: url(../img/works/work-11.webp), linear-gradient(160deg,#233056,#6f86ff); }
.works-hero__bg span:nth-child(12) { background-image: url(../img/works/work-12.webp), linear-gradient(160deg,#2a2470,#8f86ff); }
/* stagger each column vertically so the wall isn't a rigid grid */
.works-hero__bg span:nth-child(4n+1) { transform: translateY(-44px); }
.works-hero__bg span:nth-child(4n+2) { transform: translateY(26px); }
.works-hero__bg span:nth-child(4n+3) { transform: translateY(-18px); }
.works-hero__bg span:nth-child(4n+4) { transform: translateY(50px); }
.works-hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(115% 95% at 50% 50%, rgba(18,20,28,0.34) 26%, rgba(18,20,28,0.66) 74%);
}
.works-hero__inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin-inline: auto; text-align: center; }
.works-hero__num {
  font-style: normal; font-family: "Space Mono", monospace;
  font-size: 13px; letter-spacing: 0.1em; color: rgba(244,243,240,0.55);
  display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
}
.works-hero__num::before { content: ""; width: 1px; height: 34px; background: rgba(244,243,240,0.4); }
.works-hero__title {
  font-family: var(--ff-en); font-weight: 800; text-transform: uppercase;
  font-size: clamp(46px, 11vw, 190px); line-height: 1; letter-spacing: -0.02em;
  color: #fff; text-shadow: 0 4px 40px rgba(8,9,14,0.5);
}
.works-hero__lead {
  margin: clamp(22px, 2.6vw, 34px) auto 0; max-width: 40em;
  font-size: clamp(13px, 1.05vw, 16px); line-height: 2.05; color: rgba(244,243,240,0.78);
  text-wrap: balance;
}
.works-hero__cta { margin-top: clamp(30px, 3.4vw, 46px); }
/* solid white CTA so it stands out on the dark teaser */
.works-hero__cta .btn { background: #fff; color: #14161e; border-color: #fff; }
.works-hero__cta .btn .btn__fill { display: none; }
.works-hero__cta .btn:hover { background: transparent; color: #fff; }
.works-hero__cta .btn:hover .btn__arrow { transform: translate(4px, -4px); }

/* RGB-split glitch (datamosh, same language as the hero "We"):
   mostly clean, three violent bursts per loop — displacement filter tears the
   letters themselves while red/blue slices jump around. Filters #weG1-3 live in index.html. */
.glitch { display: inline-block; position: relative; }
.glitch::before, .glitch::after {
  content: attr(data-eng);
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  overflow: hidden; color: #fff; opacity: 0; pointer-events: none;
}
.glitch::before { text-shadow: -2px 0 #ff3b3b; }
.glitch::after  { text-shadow: 2px 0 #2d6bff; }
@media (prefers-reduced-motion: no-preference) {
  .glitch         { animation: wkShake 3.6s steps(1, end) 0.4s infinite; }
  .glitch::before { animation: wkGhostA 3.6s steps(1, end) 0.4s infinite; }
  .glitch::after  { animation: wkGhostB 3.6s steps(1, end) 0.4s infinite; }
}
@keyframes wkShake {
  0%, 3%, 38%, 41%, 72%, 75%, 100% { transform: none; filter: none; }
  0.5%  { transform: translateX(-3px);               filter: url(#weG2); }
  1.2%  { transform: translateX(2px) scaleX(1.012);  filter: url(#weG1); }
  1.9%  { transform: translateX(-1px);               filter: url(#weG3); }
  38.5% { transform: translateX(3px);                filter: url(#weG3); }
  39.2% { transform: translateX(-2px) scaleX(0.99);  filter: url(#weG1); }
  39.9% { transform: translateX(1px);                filter: url(#weG2); }
  72.5% { transform: translateX(-2px);               filter: url(#weG1); }
  73.2% { transform: translateX(2px) scaleX(1.015);  filter: url(#weG2); }
  73.9% { transform: translateX(-1px);               filter: url(#weG3); }
}
@keyframes wkGhostA {           /* red-fringed slices */
  0%, 3%, 38%, 41%, 72%, 75%, 100% { opacity: 0; transform: none; clip-path: inset(0 0 0 0); }
  0.5%  { opacity: .85; transform: translate(-9px, 2px);              clip-path: inset(12% 0 76% 0); }
  1.2%  { opacity: .7;  transform: translate(6px, -1px) skewX(-5deg); clip-path: inset(46% 0 42% 0); }
  1.9%  { opacity: .5;  transform: translate(-4px, 1px);              clip-path: inset(72% 0 18% 0); }
  38.5% { opacity: .85; transform: translate(8px, -2px);              clip-path: inset(28% 0 62% 0); }
  39.2% { opacity: .65; transform: translate(-6px, 1px) skewX(4deg);  clip-path: inset(58% 0 30% 0); }
  39.9% { opacity: .45; transform: translate(4px, 0);                 clip-path: inset(6% 0 86% 0); }
  72.5% { opacity: .85; transform: translate(-8px, 1px);              clip-path: inset(18% 0 72% 0); }
  73.2% { opacity: .65; transform: translate(5px, -2px) skewX(-4deg); clip-path: inset(52% 0 38% 0); }
  73.9% { opacity: .45; transform: translate(-3px, 1px);              clip-path: inset(80% 0 10% 0); }
}
@keyframes wkGhostB {           /* blue-fringed slices */
  0%, 3%, 38%, 41%, 72%, 75%, 100% { opacity: 0; transform: none; clip-path: inset(0 0 0 0); }
  0.5%  { opacity: .85; transform: translate(9px, -2px);              clip-path: inset(30% 0 60% 0); }
  1.2%  { opacity: .7;  transform: translate(-6px, 1px) skewX(5deg);  clip-path: inset(4% 0 88% 0); }
  1.9%  { opacity: .5;  transform: translate(4px, -1px);              clip-path: inset(56% 0 34% 0); }
  38.5% { opacity: .85; transform: translate(-8px, 2px);              clip-path: inset(40% 0 50% 0); }
  39.2% { opacity: .65; transform: translate(6px, -1px) skewX(-4deg); clip-path: inset(10% 0 82% 0); }
  39.9% { opacity: .45; transform: translate(-4px, 0);                clip-path: inset(66% 0 24% 0); }
  72.5% { opacity: .85; transform: translate(8px, 1px);               clip-path: inset(34% 0 56% 0); }
  73.2% { opacity: .65; transform: translate(-5px, -1px) skewX(4deg); clip-path: inset(70% 0 22% 0); }
  73.9% { opacity: .45; transform: translate(3px, 1px);               clip-path: inset(14% 0 78% 0); }
}
@media (prefers-reduced-motion: reduce) { .glitch::before, .glitch::after { display: none; } }
@media (max-width: 880px) {
  .works-hero__bg { grid-template-columns: repeat(3, 1fr); }
  .works-hero__bg span { transform: none; }
}
.hpin { position: relative; height: 360vh; }
.hstage { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; }
.htrack { display: flex; height: 100%; will-change: transform; }
.hpanel { flex: 0 0 100vw; height: 100%; display: flex; align-items: center; padding-inline: var(--gutter); }
.hpanel__inner {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(36px, 5vw, 90px); align-items: center;
}

/* intro panel */
.hpanel__intro .eyebrow { color: rgba(244,243,240,0.6); }

/* detail panel: left = image, right = text. bg matches the interview section */
.hpanel--detail { background-color: #1b1d25; }
.hpanel__inner--detail { grid-template-columns: 1.05fr 1fr; }
.sg-images { position: relative; height: min(74vh, 640px); }
.sg-img {
  position: absolute; inset: 0; border-radius: 16px; overflow: hidden;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,0.6);
  background-image: url(../img/strength/strength-01.webp), linear-gradient(150deg,#1b2a6e,#3e5bff);
}

.sg-text .eyebrow { color: rgba(244,243,240,0.6); }
.sg-heading { margin-top: 18px; font-family: var(--ff-jp); font-weight: 700; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.32; }
.sg-desc { margin-top: 24px; max-width: 32em; font-size: clamp(14px, 1.05vw, 16px); line-height: 2.05; color: rgba(244,243,240,0.74); }
.sg-cta { margin-top: clamp(28px, 3vw, 42px); }

/* mobile horizontal-scroll styles for WORKS live in the consolidated block
   after the INTERVIEW section (so source order wins over the desktop rules). */

/* =========================================================
   23. INTERVIEW — horizontal scroll of 3-up case-study cards.
   Fixed heading + cards that move right with scroll. Dark.
   ========================================================= */
/* works horizontal track now holds 3 panels (works / strength / interview) */
.works-hero .hpin { height: 600vh; }

/* interview = 3rd panel: fixed heading + 3-up cards (1 page), slightly lighter dark */
.hpanel--interview { background-color: #1b1d25; justify-content: center; }
.hpanel__inner--interview { display: block; max-width: var(--maxw); }
.interviews__head { width: 100%; }
.interviews__head .eyebrow { color: rgba(244,243,240,0.6); }
.interviews__title { font-family: var(--ff-en); font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; font-size: clamp(34px, 4.6vw, 72px); color: var(--on-dark); }
.interviews__cta { margin-top: clamp(28px, 3.4vw, 48px); text-align: center; }
.icards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.2vw, 38px); margin-top: clamp(20px, 2.4vw, 36px); }

.icard__inner { display: block; color: inherit; }
.icard__media {
  position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: flex-end; padding: 14px;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
/* PC interview panel: top-aligned (heading higher), cards tucked close under it. */
@media (min-width: 881px) {
  .hpanel--interview { align-items: flex-start; padding-block: clamp(92px, 12vh, 140px) clamp(36px, 5vh, 72px); }
  .hpanel__inner--interview { margin-top: 0; }
  .icards { margin-top: clamp(14px, 1.6vw, 24px); }
}
.icard__media[data-i="0"] { background-image: url(../img/interview/interview-01.webp), linear-gradient(150deg,#1b2a6e,#3e5bff); }
.icard__media[data-i="1"] { background-image: url(../img/interview/interview-02.webp), linear-gradient(150deg,#14225e,#5e74e6); }
.icard__media[data-i="2"] { background-image: url(../img/interview/interview-03.webp), linear-gradient(150deg,#233056,#6f86ff); }
.icard__media[data-i="3"] { background-image: url(../img/interview/interview-04.webp), linear-gradient(150deg,#103a5e,#2f7ad6); }
.icard__media[data-i="4"] { background-image: url(../img/interview/interview-05.webp), linear-gradient(150deg,#2a1d6e,#5340d6); }
.icard__media[data-i="5"] { background-image: url(../img/interview/interview-06.webp), linear-gradient(150deg,#1d2a3a,#3e5bff); }
.icard__logo { background: #fff; color: #14161e; font-family: var(--ff-en); font-size: 11px; font-weight: 700; letter-spacing: 0.02em; padding: 6px 12px; border-radius: 6px; }
.icard__company { margin-top: 14px; font-size: 13px; letter-spacing: 0.04em; color: rgba(244,243,240,0.6); }
.icard__title {
  margin-top: 6px; padding-bottom: 12px; border-bottom: 2px solid var(--accent);
  font-family: var(--ff-jp); font-weight: 700; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.45; color: var(--on-dark);
}
.icard__meta { margin-top: 2px; }
.icard__meta > div { display: flex; gap: 18px; padding-block: 8px; border-bottom: 1px solid var(--line-dark); }
.icard__meta dt { flex: 0 0 3.2em; font-size: 12px; letter-spacing: 0.3em; color: rgba(244,243,240,0.5); }
.icard__meta dd { font-size: 13px; color: rgba(244,243,240,0.82); }

@media (max-width: 880px) {
  .icards { grid-template-columns: 1fr; gap: clamp(64px, 17vw, 104px); }
}

/* =========================================================
   mobile WORKS — keep Selected Works → Strength as a horizontal
   scroll (webkid style). hero.js moves the interview panel out of
   the track to a normal vertical section below.
   ========================================================= */
@media (max-width: 880px) {
  /* WORKS rises up over the (light) SERVICE as a dark rounded panel — CONCEPT-style
     overlap reveal. Negative margin overlaps SERVICE's bottom; rounded top + shadow +
     higher z-index make it read as a sheet sliding up. overflow:clip rounds the corners
     cleanly (clip doesn't create a scroll container, so the sticky stage still works). */
  #works.works-hero {
    position: relative; z-index: 5;
    margin-top: calc(-1 * clamp(110px, 24vh, 260px));
    border-radius: 26px 26px 0 0; overflow: clip;
    box-shadow: 0 -34px 70px -20px rgba(0, 0, 0, 0.62);
  }
  /* extra room below the "View All Services" link so WORKS overlaps empty space,
     not the link (WORKS rises up into this gap). */
  .svc-tail { padding-bottom: clamp(320px, 52vh, 580px); }

  .works-hero .hpin { height: 280vh; }             /* 2-panel horizontal run (vs 600vh desktop) */
  .hstage { height: 100svh; }                      /* sticky stage = exactly one screen */
  .htrack { flex-direction: row; height: 100%; transform: translate3d(0,0,0); }
  .hpanel { flex: 0 0 100vw; width: 100vw; height: 100%; padding-block: 0; }

  /* panel 1 (Selected Works): centred, one screen — handled by base .hpanel centring */
  .works-hero__title { font-size: clamp(44px, 15vw, 86px); }
  .works-hero__lead { font-size: 14px; }
  /* SERVICE heading matches the WORKS heading size on mobile too */
  .svc-title { font-size: clamp(44px, 15vw, 86px); }

  /* panel 2 (Strength): photo on top, text below, centred in one screen */
  .hpanel__inner--detail { grid-template-columns: 1fr; gap: clamp(16px, 3.5vh, 26px); align-content: center; max-width: none; }
  .sg-images { height: clamp(170px, 34svh, 300px); }
  .sg-heading { font-size: clamp(26px, 7.4vw, 38px); margin-top: 14px; }
  .sg-desc { font-size: 14px; line-height: 1.9; margin-top: 16px; }
  .sg-cta { margin-top: 22px; }

  /* interview pulled out of the track → normal vertical section */
  .hpanel--interview {
    display: block; flex: none; width: auto; height: auto; min-height: 0;
    padding-block: clamp(56px, 10vh, 88px);
  }
}

/* section-end scrolling text band (webkid style), full-bleed outlined type */
.smarquee {
  margin-top: clamp(48px, 8vw, 104px);
  width: 100%; overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.smarquee__track {
  display: inline-flex; white-space: nowrap;
  font-family: var(--ff-en); font-weight: 800; text-transform: uppercase;
  font-size: clamp(64px, 13vw, 240px); line-height: 1.1; letter-spacing: -0.01em;
  color: transparent; -webkit-text-stroke: 1px rgba(244,243,240,0.20);
  will-change: transform;   /* position driven by JS (scroll-velocity marquee) */
}
.smarquee__track span { padding-right: 0.9em; }
@keyframes smarqRoll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .smarquee__track { animation: none; } }

/* filled (coloured) variant instead of outline */
.smarquee--fill .smarquee__track {
  color: rgba(244, 243, 240, 0.17);
  -webkit-text-stroke: 0;
}

/* CONCEPT — block centred on screen, text left-aligned inside */
.concept-head {
  max-width: 760px;
  margin-inline: auto;
  text-align: left;
}
/* break only at the <br> (the heading is short enough per line); prevents the big
   heading from wrapping mid-line inside the narrow concept block on wide monitors */
.concept-head .display-jp { text-align: left; white-space: nowrap; }
.concept-head .lead { text-align: left; margin-inline: 0; max-width: none; }
/* mobile: enlarge CONCEPT heading + body (global clamps bottom out too small on phones) */
@media (max-width: 768px) {
  .concept-head .display-jp { font-size: clamp(32px, 8.4vw, 44px); }
  .concept-head .lead { font-size: clamp(15px, 4.2vw, 18px); line-height: 1.95; }
  /* bigger scroll text (Clarity by design) on phones */
  .smarquee--fill .smarquee__track { font-size: clamp(100px, 26vw, 220px); }
}
.section--dark .svc-nav__item { color: var(--on-dark); border-top-color: var(--line-dark); }
.section--dark .svc-nav__item:last-child { border-bottom-color: var(--line-dark); }
.section--dark .svc-nav__num { color: rgba(244, 243, 240, 0.35); }
.section--dark .svc-nav__en { color: var(--on-dark-dim); }
.section--dark .svc-panel__title { color: var(--on-dark); }
.section--dark .svc-panel__desc { color: var(--on-dark-dim); }
.section--dark .svc-panel__num { color: var(--on-dark-dim); }
.section--dark .svc-panel__num::after { background: var(--line-dark); }
.section--dark .svc-panel__en { color: var(--on-dark-dim); }
.section--dark .svc-panel__tags li { border-color: var(--line-dark); color: var(--on-dark-dim); }
.section--dark .svc-panel.is-active .svc-panel__tags li { border-color: rgba(62, 91, 255, 0.55); color: var(--on-dark); }
.section--dark .svc-foot { border-top-color: var(--line-dark); }


/* editorial section head: eyebrow on top (full width),
   then title (left) + lead (right) sharing the same top line */
.sec-head--split {
  display: grid;
  grid-template-columns: 1.05fr 0.92fr;
  column-gap: clamp(32px, 5vw, 96px);
  row-gap: clamp(20px, 2.6vw, 36px);
  align-items: start;
}
.sec-head--split > .eyebrow { grid-column: 1 / -1; grid-row: 1; }
.sec-head--split > .eyebrow::before { background: var(--accent); opacity: 1; width: 40px; }
.sec-head--split > .sec-head__title { grid-column: 1; grid-row: 2; margin: 0; }
.sec-head--split > .sec-head__body { grid-column: 2; grid-row: 2; }
.sec-head--split .sec-head__body .lead { margin-top: 0; max-width: 34em; line-break: strict; }
@media (max-width: 880px) {
  .sec-head--split { grid-template-columns: 1fr; }
  .sec-head--split > .sec-head__title { grid-column: 1; grid-row: auto; }
  .sec-head--split > .sec-head__body { grid-column: 1; grid-row: auto; }
  .sec-head--split .sec-head__body .lead { max-width: none; }
}

/* temporary placeholder note (構成確定後に削除) */
.placeholder-note {
  padding: clamp(28px, 4vw, 48px);
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--text-dim);
  font-size: 14px;
}
.section--dark .placeholder-note { border-color: var(--line-dark); color: var(--on-dark-dim); }

/* 代表メッセージ */
.message__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}
.message__media {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
}
.message__media img { width: 100%; height: 100%; object-fit: cover; }
.message__ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #232323 0%, #2c2c2c 48%, #181818 100%);
}
.message__ph-label {
  font-family: var(--ff-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(244, 243, 240, 0.32);
}
.message__title {
  font-family: var(--ff-jp);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin-bottom: clamp(22px, 3vw, 34px);
}
.message__body p { font-size: clamp(15px, 1.05vw, 16px); line-height: 1.95; color: var(--text-dim); }
.message__body p + p { margin-top: 1.5em; }
.message__sign { margin-top: clamp(28px, 4vw, 44px); line-height: 1.5; }
.message__role { display: block; font-size: 13px; color: var(--text-dim); }
.message__name { display: block; margin-top: 6px; font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; }

/* 会社概要 table */
.company-table { border-top: 1px solid var(--line); }
.company-row {
  display: grid;
  grid-template-columns: clamp(160px, 22vw, 240px) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 48px);
  padding-block: clamp(20px, 2.4vw, 30px);
  border-bottom: 1px solid var(--line);
}
.company-row dt {
  font-size: 14px;
  font-weight: 700 /* 和文は従来も700で表示されていた（可変フォント化で見た目を変えないため明示） */;
  color: var(--text);
  letter-spacing: 0.04em;
}
.company-row dd {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-dim);
}
.company-map {
  margin-top: clamp(36px, 5vw, 64px);
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 7;
  background: var(--bg-alt);
}
.company-map iframe { display: block; width: 100%; height: 100%; }
@media (max-width: 768px) {
  .company-map { aspect-ratio: 4 / 3; }
}

/* =========================================================
   Service 一覧（各サービス → 専用サイトへ送客）
   ========================================================= */
/* サービス早見ナビ */
.svc-index {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.4vw, 16px);
  margin-bottom: clamp(56px, 8vw, 110px);
}
.svc-index__item {
  display: flex; align-items: center; gap: 14px;
  padding: clamp(16px, 1.8vw, 22px) clamp(18px, 2vw, 26px);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.svc-index__item:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.svc-index__num { font-family: var(--ff-en); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--text-dim); }
.svc-index__item:hover .svc-index__num { color: var(--bg); }
.svc-index__name { font-weight: 700 /* 和文は従来も700で表示されていた（可変フォント化で見た目を変えないため明示） */; font-size: clamp(14px, 1vw, 15px); }
.svc-index__arrow { margin-left: auto; flex: 0 0 auto; transition: transform 0.35s var(--ease); }
.svc-index__item:hover .svc-index__arrow { transform: translateY(3px); }

.svc-list {
  display: flex;
  flex-direction: column;
  gap: clamp(60px, 9vw, 130px);
}
.svc-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
.svc-block--reverse .svc-block__media { order: 2; }
.svc-block__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
}
.svc-block__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-block__num {
  display: block;
  font-family: var(--ff-en);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700; line-height: 1;
  letter-spacing: 0.02em;
  color: var(--text-faint);
}
.svc-block__cat {
  display: block;
  margin-top: 14px;
  font-family: var(--ff-en);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-dim);
}
.svc-block__title {
  margin-top: 10px;
  font-family: var(--ff-jp); font-weight: 700;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.3;
}
.svc-block__desc {
  margin-top: clamp(16px, 2vw, 22px);
  font-size: clamp(15px, 1.05vw, 16px);
  line-height: 1.95;
  color: var(--text-dim);
}
.svc-block__list {
  margin-top: 22px;
  list-style: none;
  display: flex; flex-direction: column; gap: 10px;
}
.svc-block__list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px; line-height: 1.7;
  color: var(--text);
}
.svc-block__list li::before {
  content: "";
  position: absolute; left: 0; top: 0.82em;
  width: 10px; height: 1px;
  background: var(--text-dim);
}
.svc-block__link {
  margin-top: clamp(26px, 3vw, 34px);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px;
  border: 1px solid var(--text);
  border-radius: 999px;
  font-family: var(--ff-en);
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--text);
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.svc-block__link:hover { background: var(--text); color: var(--bg); }
.svc-block__link svg { transition: transform 0.35s var(--ease); }
.svc-block__link:hover svg { transform: translate(3px, -3px); }

/* =========================================================
   Combination — 組み合わせると、流れになる
   ========================================================= */
.combo { background: var(--bg-alt); }
.combo__head { max-width: 56em; margin-bottom: clamp(40px, 5.5vw, 72px); }
.combo__title { margin-top: 22px; line-height: 1.32; }
.combo__lead { margin-top: clamp(16px, 2vw, 24px); }
.combo__list { display: flex; flex-direction: column; gap: clamp(16px, 2vw, 24px); }
.combo-case {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 3.2vw, 44px);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.combo-case__label {
  font-family: var(--ff-en);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-dim);
}
.combo-case__title {
  margin-top: 10px;
  font-family: var(--ff-jp); font-weight: 700;
  font-size: clamp(19px, 2.1vw, 26px); line-height: 1.4;
}
.combo-case__desc {
  margin-top: 12px;
  font-size: 14px; line-height: 1.9;
  color: var(--text-dim);
}
.combo-case__flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.combo-chip {
  font-size: 13px; font-weight: 700 /* 和文は従来も700で表示されていた（可変フォント化で見た目を変えないため明示） */;
  padding: 10px 18px;
  background: var(--text); color: var(--bg);
  border-radius: 999px;
}
.combo-arrow { flex: 0 0 auto; display: flex; align-items: center; color: var(--text-dim); }
@media (max-width: 1024px) {
  .combo-case { grid-template-columns: 1fr; gap: 24px; }
}

/* =========================================================
   Recruit page
   ========================================================= */
.recruit-lead__inner { max-width: 48em; }
.recruit-lead__title { margin-top: 18px; font-family: var(--ff-jp); font-weight: 700; font-size: clamp(24px, 3vw, 40px); line-height: 1.4; }
.recruit-lead__body { margin-top: clamp(20px, 2.5vw, 32px); }
.recruit-lead__body p { font-size: 16px; line-height: 1.95; color: var(--text-dim); }
.recruit-lead__body p + p { margin-top: 1.4em; }

.recruit-block__head { margin-bottom: clamp(36px, 5vw, 64px); }
.recruit-block__head h2 { margin-top: clamp(12px, 1.6vw, 18px); }

.job-list { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px); }
.job-card {
  padding: clamp(26px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-alt);
}
.job-card__type {
  display: inline-block;
  font-family: var(--ff-en);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
}
.job-card__title { margin-top: 16px; font-family: var(--ff-jp); font-weight: 700; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.4; }
.job-card__desc { margin-top: 12px; font-size: 15px; line-height: 1.9; color: var(--text-dim); }

.recruit-entry { text-align: center; }
.recruit-entry__title { font-family: var(--ff-jp); font-weight: 700; font-size: clamp(24px, 3vw, 38px); line-height: 1.4; }
.recruit-entry__lead { margin: clamp(16px, 2vw, 22px) auto 0; max-width: 40em; color: var(--on-dark-dim); }
.recruit-entry__foot { margin-top: clamp(28px, 3.5vw, 40px); }
@media (max-width: 1024px) {
  .job-list { grid-template-columns: 1fr; }
}

/* =========================================================
   Contact form（WordPress化後は Contact Form 7 に置換）
   ========================================================= */
.contact-form { max-width: 720px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px); }
.form__field { margin-bottom: clamp(20px, 2.6vw, 28px); }
.form__label {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 700 /* 和文は従来も700で表示されていた（可変フォント化で見た目を変えないため明示） */;
  margin-bottom: 10px;
}
.form__req {
  font-family: var(--ff-en);
  font-size: 10px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--bg);
  background: var(--text);
  border-radius: 4px;
  padding: 2px 7px;
}
.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--ff-jp);
  font-size: 16px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.form__input::placeholder,
.form__textarea::placeholder { color: var(--text-faint); }
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(19, 19, 18, 0.06);
}
.form__textarea { min-height: 170px; resize: vertical; line-height: 1.7; }
.form__consent {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; line-height: 1.7; color: var(--text-dim);
  margin-bottom: clamp(24px, 3vw, 34px);
}
.form__consent input { margin-top: 4px; width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--text); }
.form__consent a { text-decoration: underline; text-underline-offset: 3px; color: var(--text); }
@media (max-width: 680px) {
  .form__row { grid-template-columns: 1fr; }
}

/* =========================================================
   Privacy policy / legal 長文ページ
   ========================================================= */
.policy { max-width: 820px; }
.policy__intro {
  font-size: 16px; line-height: 1.95; color: var(--text-dim);
  margin-bottom: clamp(32px, 4.5vw, 56px);
}
.policy__section { margin-top: clamp(32px, 4vw, 52px); }
.policy__section h2 {
  font-family: var(--ff-jp); font-weight: 700;
  font-size: clamp(18px, 2vw, 24px); line-height: 1.5;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.policy__section p { font-size: 16px; line-height: 1.95; color: var(--text-dim); }
.policy__section p + p { margin-top: 1em; }
.policy__list { margin-top: 12px; padding-left: 1.3em; }
.policy__list li {
  list-style: disc;
  font-size: 16px; line-height: 1.9; color: var(--text-dim);
  margin-bottom: 6px;
}
.policy__contact { margin-top: 14px; font-size: 16px; line-height: 1.9; color: var(--text-dim); }
.policy__meta { margin-top: clamp(40px, 5vw, 64px); font-size: 14px; color: var(--text-faint); }

/* =========================================================
   14. Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .service-card {
    grid-template-columns: 64px 1fr auto;
    grid-template-areas:
      "num name cta"
      "num desc cta";
    gap: 8px 24px;
  }
  .service-card__num { grid-area: num; }
  .service-card__name { grid-area: name; }
  .service-card__desc { grid-area: desc; }
  .service-card__cta { grid-area: cta; align-self: center; }
  .media-grid { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; }
  .recruit__grid { grid-template-columns: 1fr; }
  .message__grid { grid-template-columns: 1fr; gap: 32px; }
  .message__media { max-width: 360px; }
  .values { grid-template-columns: 1fr; }
  .philosophy__grid { grid-template-columns: 1fr; gap: 32px; }
  .philosophy--reverse .philosophy__grid { grid-template-columns: 1fr; }
  .philosophy--reverse .philosophy__text { order: -1; }
  .philosophy__media { max-width: 520px; aspect-ratio: 4 / 3; min-height: 0; }
  .why__compare { grid-template-columns: 1fr; }
  .why__arrow { transform: rotate(90deg); padding: 4px 0; }
  .svc-block { grid-template-columns: 1fr; gap: 28px; }
  .svc-block--reverse .svc-block__media { order: 0; }
  .svc-index { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 70px; }
  .nav-main { display: none; }
  .nav-toggle { display: block; }
  .media-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-grid { grid-template-columns: 1fr; gap: 18px; }
  .news__link { grid-template-columns: 1fr; gap: 10px; }
  .news__arrow { display: none; }
  .site-footer__top { grid-template-columns: 1fr; gap: 36px; }
  .service-card {
    grid-template-columns: 48px 1fr;
    grid-template-areas:
      "num name"
      "num desc"
      "num cta";
    gap: 6px 18px;
    padding-block: 30px;
  }
  .service-card__cta { justify-self: start; margin-top: 10px; }
  .service-card:hover::before { transform: scaleY(0); } /* disable heavy hover on touch */
  .service-card:hover { color: inherit; }
  .hero__meta { display: none; }
  .statement__body { margin-left: 0; }
  .company-row { grid-template-columns: 1fr; gap: 6px; }
  .company-row dt { color: var(--text-dim); font-size: 12px; }
}

/* =========================================================
   15. Creative FX — cursor, grain, progress
   ========================================================= */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  pointer-events: none;
  z-index: 9000;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width 0.35s var(--ease), height 0.35s var(--ease), background-color 0.35s var(--ease);
  display: none;
  align-items: center;
  justify-content: center;
}
.cursor.is-active { display: flex; }
.cursor.is-hover { width: 76px; height: 76px; }
.cursor.is-label { width: 92px; height: 92px; }
.cursor__label {
  font-family: var(--ff-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  white-space: nowrap;
}
.cursor.is-label .cursor__label { opacity: 1; transform: scale(1); }
body.has-cursor,
body.has-cursor a,
body.has-cursor button,
body.has-cursor [data-cursor],
body.has-cursor [data-magnetic] { cursor: none; }

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--text);
  mix-blend-mode: difference;
  z-index: 8000;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 7000;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  animation: grain 0.6s steps(2) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0); }
  50% { transform: translate(-4%, 3%); }
  100% { transform: translate(3%, -2%); }
}

/* Hero canvas flow field */
.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Intro counter */
.intro__count {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(28px, 5vw, 56px);
  font-family: var(--ff-en);
  font-weight: 700;
  font-size: clamp(60px, 14vw, 180px);
  line-height: 1;
  color: var(--on-dark);
  opacity: 0.12;
}

/* =========================================================
   16. Service list — responsive
   ========================================================= */
@media (max-width: 1024px) {
  .sitem__inner {
    grid-template-columns: clamp(36px, 4vw, 52px) 1fr auto;
    grid-template-rows: auto auto;
    grid-template-areas:
      "num info cta"
      "num desc cta";
    row-gap: 0;
    column-gap: 20px;
    align-items: start;
  }
  .sitem__num  { grid-area: num; padding-top: 16px; }
  .sitem__info { grid-area: info; }
  .sitem__desc { grid-area: desc; margin-top: 8px; }
  .sitem__cta  { grid-area: cta; align-self: center; }
}

@media (max-width: 768px) {
  .sitem__inner {
    grid-template-columns: 32px 1fr;
    grid-template-areas:
      "num info"
      ". desc"
      ". cta";
    row-gap: 6px;
    column-gap: 12px;
    padding-block: 22px;
  }
  .sitem__cta { justify-self: start; margin-top: 12px; }
  .sitem__ghost { display: none; }
  .sitem__name { white-space: normal; }
  /* disable heavy hover on touch */
  .sitem:hover::before { transform: scaleY(0); }
  .sitem:hover::after  { transform: scaleX(0); }
  .sitem:hover { color: var(--text); border-color: var(--line); }
  .sitem:hover .sitem__num  { color: var(--text-faint); }
  .sitem:hover .sitem__cat  { color: var(--text-faint); }
  .sitem:hover .sitem__desc { color: var(--text-dim); }
  .sitem:hover .sitem__name { letter-spacing: -0.01em; }
}

/* =========================================================
   17. Velocity skew (set via JS custom property)
   ========================================================= */
.recruit__marquee-track,
.hero__keywords-track { transform-origin: center; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js .line-inner { opacity: 1 !important; transform: none !important; }
  .hero__scroll::after { animation: none; }
  .grain { animation: none; }
  .hero__canvas, .cursor { display: none !important; }
  .sitem::before, .sitem::after { display: none; }
  * { scroll-behavior: auto !important; }
}

/* =========================================================
   18b. HERO — word morph (dark) — alternate concept for review
   Giant "We [verb]." where the verb vertically rolls through
   plan / design / build / grow. Black ground, blue accent.
   ========================================================= */
.hero-mw {
  position: relative;
  min-height: 100svh;            /* always exactly one screen (no 1080px cap) so it fills 27" too */
  display: flex; align-items: center; overflow: hidden;
  background: #0c0e15; color: var(--on-dark);
  padding-block: calc(var(--header-h) + clamp(8px, 3vh, 44px)) var(--header-h);
}
/* full-bleed vertical column rules across the first view (3d-lab style) */
.mw-grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  background-position: 0 0;
}
.mw-grid::after {
  content: ""; position: absolute; top: 0; right: 0; width: 1px; height: 100%;
  background: rgba(255,255,255,0.06);
}
@media (max-width: 768px) { .mw-grid { background-size: calc(100% / 3) 100%; } }
/* centre the statement vertically so a full-screen hero stays balanced on tall monitors */
.hero-mw { align-items: center; }
.mw-nb, .mw-lead .nb { white-space: nowrap; }
/* mobile: hero = exactly one screen, content centred (no dead gap, next section doesn't peek) */
@media (max-width: 768px) {
  .hero-mw {
    min-height: 100svh;
    align-items: center;
    padding-block: var(--header-h);
  }
}
/* let the hero break out of the centred max-width so the statement hugs the left */
.mw-inner { position: relative; z-index: 2; width: 100%; max-width: none; }
/* desktop: bold editorial composition — giant statement up top, details anchored at the
   bottom, using the full screen height (instead of a small centred block floating). */
@media (min-width: 769px) {
  .hero-mw { align-items: stretch; }
  .mw-inner { display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
  .mw-show { margin-top: clamp(6px, 3vh, 48px); }
  .mw-foot { margin-top: 0; }
}
.mw-eyebrow {
  font-family: var(--ff-en); font-size: 12px; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase; color: rgba(244,243,240,0.6);
  display: inline-flex; align-items: center; gap: 14px;
  opacity: 0; animation: mwFade 1s var(--ease) 0.15s forwards;
}
.mw-eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--accent); }

/* showpiece: huge single line  We [rolling verb].  (Anton, fills ~80-90% width) */
.mw-show {
  margin-top: 0;
  font-family: "Anton", sans-serif; font-weight: 400; text-transform: none;
  font-size: clamp(56px, 21vw, 403px); line-height: 1; letter-spacing: 0.005em;
  white-space: nowrap;
  opacity: 0; filter: blur(10px);
  animation: mwSoft 0.55s var(--ease) 0.05s forwards;
}
.mw-show__pre { color: var(--on-dark); position: relative; display: inline-block; }
/* hidden svg holding the displacement filters (#weG1-3) */
.glitch-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
/* RGB-split glitch on "We": a hard "glitch-in" the instant it loads (first-view hook),
   then heavier-than-before bursts on a loop. */
.mw-show__pre::before, .mw-show__pre::after {
  content: attr(data-text); position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; opacity: 0; pointer-events: none;
}
.mw-show__pre::before { color: #ff2b3d; }   /* red */
.mw-show__pre::after  { color: #25e6e6; }   /* cyan */
@media (prefers-reduced-motion: no-preference) {
  .mw-show__pre        { animation: weIn 0.25s steps(1, end) 0.12s both, weShake 3.2s steps(1, end) 0.9s infinite; }
  .mw-show__pre::before { animation: weInA 0.25s steps(1, end) 0.12s both, weGhostA 3.2s steps(1, end) 0.9s infinite; }
  .mw-show__pre::after  { animation: weInB 0.25s steps(1, end) 0.12s both, weGhostB 3.2s steps(1, end) 0.9s infinite; }
}
/* —— intro: hard glitch-in (plays once) —— */
/* DATAMOSH: thin horizontal slices (~6%) jump left/right (broken-signal look) */
/* intro burst (once) */
@keyframes weIn {
  0%  { transform: translateX(-4px); filter: url(#weG1); }
  30% { transform: translateX(3px);  filter: url(#weG2); }
  60% { transform: translateX(-2px); filter: url(#weG3); }
  85% { transform: translateX(1px);  filter: url(#weG1); }
  100% { transform: none; filter: none; }
}
@keyframes weInA {              /* red slices, intro */
  0%  { opacity: .9; transform: translateX(-15px); clip-path: inset(16% 0 80% 0); }
  40% { opacity: .8; transform: translateX(11px);  clip-path: inset(48% 0 48% 0); }
  75% { opacity: .6; transform: translateX(-8px);  clip-path: inset(70% 0 26% 0); }
  100% { opacity: 0; transform: none; clip-path: inset(0 0 0 0); }
}
@keyframes weInB {              /* cyan slices, intro */
  0%  { opacity: .9; transform: translateX(15px);  clip-path: inset(28% 0 68% 0); }
  40% { opacity: .8; transform: translateX(-12px); clip-path: inset(8% 0 88% 0); }
  75% { opacity: .6; transform: translateX(8px);   clip-path: inset(58% 0 38% 0); }
  100% { opacity: 0; transform: none; clip-path: inset(0 0 0 0); }
}
/* —— loop: three datamosh bursts per cycle —— */
@keyframes weShake {
  0%, 3%, 33%, 36%, 66%, 69%, 100% { transform: none; filter: none; }
  0.5% { transform: translateX(-4px);              filter: url(#weG1); }
  1.1% { transform: translateX(3px) scaleX(1.015); filter: url(#weG2); }
  1.8% { transform: translateX(-2px);              filter: url(#weG3); }
  2.4% { transform: translateX(1px);               filter: url(#weG1); }
  33.5% { transform: translateX(4px);               filter: url(#weG2); }
  34.1% { transform: translateX(-3px) scaleX(0.99); filter: url(#weG3); }
  34.8% { transform: translateX(2px);               filter: url(#weG1); }
  66.5% { transform: translateX(-3px);              filter: url(#weG3); }
  67.1% { transform: translateX(3px) scaleX(1.02);  filter: url(#weG2); }
  67.8% { transform: translateX(-2px);              filter: url(#weG1); }
}
@keyframes weGhostA {           /* red slices */
  0%, 3%, 33%, 36%, 66%, 69%, 100% { opacity: 0; transform: none; clip-path: inset(0 0 0 0); }
  0.5% { opacity: .9; transform: translate(-15px, 2px);              clip-path: inset(14% 0 78% 0); }
  1.1% { opacity: .8; transform: translate(10px, -2px) skewX(-6deg); clip-path: inset(44% 0 46% 0); }
  1.8% { opacity: .7; transform: translate(-7px, 1px);               clip-path: inset(70% 0 22% 0); }
  2.4% { opacity: .5; transform: translate(5px, -1px);               clip-path: inset(30% 0 62% 0); }
  33.5% { opacity: .9; transform: translate(12px, -2px);              clip-path: inset(26% 0 66% 0); }
  34.1% { opacity: .75; transform: translate(-11px, 2px) skewX(5deg); clip-path: inset(58% 0 34% 0); }
  34.8% { opacity: .55; transform: translate(7px, 0);                 clip-path: inset(8% 0 86% 0); }
  66.5% { opacity: .9; transform: translate(-13px, 1px);              clip-path: inset(16% 0 76% 0); }
  67.1% { opacity: .75; transform: translate(8px, -2px) skewX(-4deg); clip-path: inset(50% 0 42% 0); }
  67.8% { opacity: .55; transform: translate(-6px, 1px);              clip-path: inset(78% 0 16% 0); }
}
@keyframes weGhostB {           /* cyan slices */
  0%, 3%, 33%, 36%, 66%, 69%, 100% { opacity: 0; transform: none; clip-path: inset(0 0 0 0); }
  0.5% { opacity: .9; transform: translate(14px, -2px);              clip-path: inset(26% 0 68% 0); }
  1.1% { opacity: .8; transform: translate(-10px, 2px) skewX(5deg);  clip-path: inset(6% 0 88% 0); }
  1.8% { opacity: .7; transform: translate(9px, -1px);               clip-path: inset(56% 0 36% 0); }
  2.4% { opacity: .5; transform: translate(-5px, 1px);               clip-path: inset(80% 0 12% 0); }
  33.5% { opacity: .9; transform: translate(-12px, 2px);              clip-path: inset(38% 0 54% 0); }
  34.1% { opacity: .75; transform: translate(11px, -2px) skewX(-5deg); clip-path: inset(12% 0 82% 0); }
  34.8% { opacity: .55; transform: translate(-7px, 0);                clip-path: inset(64% 0 28% 0); }
  66.5% { opacity: .9; transform: translate(13px, 1px);               clip-path: inset(32% 0 60% 0); }
  67.1% { opacity: .75; transform: translate(-8px, -2px) skewX(4deg); clip-path: inset(66% 0 28% 0); }
  67.8% { opacity: .55; transform: translate(6px, 1px);               clip-path: inset(4% 0 90% 0); }
}
/* floating signal-noise dashes scattered around "We design." (glitch reference) */
.mw-show { position: relative; }
.mw-noise { position: absolute; inset: -22% -4% -22% -2%; z-index: 4; pointer-events: none; }
.mw-noise i { position: absolute; height: 2px; opacity: 0; display: block; will-change: opacity, transform; }
.mw-noise i:nth-child(1)  { top: 6%;  left: 3%;  width: 60px;  background: #fff;    animation: nz 2.9s steps(1, end) 0s   infinite; }
.mw-noise i:nth-child(2)  { top: 16%; left: 58%; width: 92px;  background: #ff2b3d; animation: nz 3.3s steps(1, end) .5s  infinite; }
.mw-noise i:nth-child(3)  { top: 30%; left: 80%; width: 70px;  background: #25e6e6; animation: nz 2.4s steps(1, end) 1.1s infinite; }
.mw-noise i:nth-child(4)  { top: 44%; left: 2%;  width: 48px;  background: #25e6e6; animation: nz 3.6s steps(1, end) .8s  infinite; }
.mw-noise i:nth-child(5)  { top: 58%; left: 70%; width: 84px;  background: #fff;    animation: nz 2.7s steps(1, end) 1.6s infinite; }
.mw-noise i:nth-child(6)  { top: 70%; left: 10%; width: 56px;  background: #ff2b3d; animation: nz 3.1s steps(1, end) 2.0s infinite; }
.mw-noise i:nth-child(7)  { top: 84%; left: 44%; width: 100px; background: #fff;    animation: nz 2.5s steps(1, end) .3s  infinite; }
.mw-noise i:nth-child(8)  { top: 10%; left: 88%; width: 40px;  background: #fff;    animation: nz 3.4s steps(1, end) 1.3s infinite; }
.mw-noise i:nth-child(9)  { top: 90%; left: 76%; width: 64px;  background: #25e6e6; animation: nz 2.8s steps(1, end) 2.3s infinite; }
.mw-noise i:nth-child(10) { top: 50%; left: 90%; width: 36px;  background: #ff2b3d; animation: nz 3.0s steps(1, end) .9s  infinite; }
@keyframes nz {
  0%, 100% { opacity: 0; transform: translateX(0); }
  2%  { opacity: .85; transform: translateX(-8px); }
  4%  { opacity: 0; }
  6%  { opacity: .6;  transform: translateX(5px); }
  8%  { opacity: 0; }
  50% { opacity: .8;  transform: translateX(7px); }
  52% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .mw-noise { display: none; } }
/* show the noise dashes on mobile too, just scaled down a touch for the narrower hero */
@media (max-width: 768px) { .mw-noise { transform: scale(0.7); } }
/* clipped vertical roll, baseline-nudged to sit on the "We" baseline */
.mw-roll {
  display: inline-block; overflow: hidden;
  height: 1.12em; /* JSが測る前から1語分の高さに固定（5語が縦に並んだ状態→1行に縮む表示ズレ＝CLSを防ぐ） */
  margin-left: 0.14em; line-height: 1.12; color: var(--accent);
  vertical-align: -0.18em;
}
.mw-roll__list { display: flex; flex-direction: column; }
.mw-word { display: block; line-height: 1.12; white-space: nowrap; }

/* footer row: statement + body on the left, CTA balanced on the right */
.mw-foot {
  margin-top: clamp(26px, 3vw, 44px);
  display: flex; align-items: flex-end; justify-content: flex-start;
  gap: clamp(24px, 3vw, 52px); flex-wrap: wrap;
}
/* text keeps its natural width (capped by the lead) so the button sits right beside it */
.mw-foot__text { flex: 0 1 auto; min-width: 0; }

/* hero CTA: solid electric-blue for presence against the giant type */
/* 共通 .btn は font-size:13px 固定でスケールしないため、ヒーローのCTAだけ大画面で
   見出し・本文と一緒に育つようにする（他ページのボタンには影響させない）。
   下限は共通 .btn と同値なので、〜1625px 程度までは従来と同じ見え方。 */
.hero-mw .mw-cta .btn {
  background: var(--accent); color: #fff; border-color: var(--accent);
  font-size: clamp(13px, 0.8vw, 16px);
  padding: clamp(18px, 1.15vw, 23px) clamp(30px, 1.9vw, 38px);
  gap: clamp(14px, 0.9vw, 18px);
}
/* 矢印アイコンも本体に合わせて拡大（SVGは width/height 属性を持つので CSS で上書きする） */
.hero-mw .mw-cta .btn .btn__arrow {
  width: clamp(14px, 0.9vw, 17px);
  height: clamp(14px, 0.9vw, 17px);
}
.hero-mw .mw-cta .btn .btn__fill { display: none; }
.hero-mw .mw-cta .btn:hover { background: transparent; color: var(--accent); }
.hero-mw .mw-cta .btn:hover .btn__arrow { transform: translate(4px, -4px); }

/* 27"などの大型モニタ対策: 上限を引き上げて大画面でも伸び続けるようにしている。
   vw係数は据え置きなので、ノートPC等（〜1400px前後）の見え方は従来どおりで、
   頭打ちになる幅だけが後ろにずれる（見出し 1400px→1866px / 本文 1545px→1818px）。
   巨大な .mw-show が 1919px まで伸び続けるのに対し、見出し・本文・CTAだけが早々に
   頭打ちになっていたため、大画面で相対的に小さく見えていた。 */
.mw-jp {
  margin-top: 0;
  font-family: var(--ff-jp); font-weight: 700;
  font-size: clamp(22px, 3vw, 56px); line-height: 1.3; letter-spacing: 0.01em;
  color: rgba(244,243,240,0.92);
  opacity: 0; transform: translateY(10px);
  animation: mwRise 0.8s var(--ease) 0.3s forwards; /* 旧 1.1s / 遅延0.95s（表示速度のため短縮） */
}
.mw-jp em { font-style: normal; color: inherit; }
/* SEOキーワードは大見出しの上に小さなラベルで（大見出しは1行のまま） */
.mw-jp__kw { display: block; margin-bottom: 12px; font-size: clamp(13px, 1.3vw, 20px); font-weight: 700 /* 和文は従来も700で表示されていた（可変フォント化で見た目を変えないため明示） */; letter-spacing: 0.08em; color: var(--accent); }

.mw-lead {
  margin-top: clamp(20px, 2.2vw, 30px); max-width: 44em;
  font-size: clamp(14px, 1.1vw, 20px); line-height: 1.95; color: rgba(244,243,240,0.82);
  opacity: 0; transform: translateY(10px);
  animation: mwRise 0.8s var(--ease) 0.45s forwards; /* 旧 1.2s / 遅延1.2s */
}
.mw-cta {
  margin-top: 0; flex: 0 0 auto; white-space: nowrap;
  opacity: 0; transform: translateY(10px);
  animation: mwRise 0.8s var(--ease) 0.6s forwards; /* 旧 1.1s / 遅延1.4s */
}
/* vertical scroll cue, placed higher on the right */
.mw-cue {
  position: absolute; right: clamp(16px, 2.4vw, 40px); top: clamp(108px, 20vh, 230px); bottom: auto;
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-family: var(--ff-en); font-size: 10px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase; color: rgba(244,243,240,0.5);
  opacity: 0; animation: mwFade 0.8s var(--ease) 0.85s forwards; /* 旧 1s / 遅延1.7s */
}
.mw-cue__text { writing-mode: vertical-rl; }
.mw-cue__line { width: 1px; height: 50px; background: currentColor; position: relative; overflow: hidden; }
.mw-cue__line::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 42%; background: var(--accent);
  animation: mwCueDown 1.9s var(--ease-inout) infinite;
}
@keyframes mwCueDown { 0% { transform: translateY(-120%); } 100% { transform: translateY(320%); } }
@keyframes mwFade { to { opacity: 1; } }
@keyframes mwSoft { 0% { opacity: 0; filter: blur(10px); } 100% { opacity: 1; filter: blur(0); } }
@keyframes mwRise { to { opacity: 1; transform: none; } }

@media (max-width: 768px) { .mw-cue { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .mw-eyebrow, .mw-show, .mw-jp, .mw-lead, .mw-cta, .mw-cue {
    opacity: 1; filter: none; transform: none; animation: none;
  }
}

/* =========================================================
   18. HERO — clarity focus (dark, "整理して伝わる形にする")
   On load the statement opens out-of-focus + chromatically split,
   then pulls into sharp focus. Black ground, electric-blue accent.
   ========================================================= */
.hero-cf {
  position: relative;
  min-height: clamp(620px, 100svh, 1080px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #06070d;
  color: var(--on-dark);
  padding-block: var(--header-h);
}

/* defocused blue light pools that tighten as the words resolve */
.cf-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.cf-bg::before, .cf-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0;
  animation: cfPool 2s cubic-bezier(.2,.7,.2,1) 0.1s forwards;
}
.cf-bg::before {
  width: 60vw; height: 60vw; left: 8%; top: 8%;
  background: radial-gradient(circle, rgba(62,91,255,0.30), rgba(62,91,255,0) 65%);
}
.cf-bg::after {
  width: 46vw; height: 46vw; right: 6%; bottom: 2%;
  background: radial-gradient(circle, rgba(123,220,255,0.18), rgba(123,220,255,0) 65%);
  animation-delay: 0.35s;
}

.cf-inner { position: relative; z-index: 2; width: 100%; }

.cf-eyebrow {
  font-family: var(--ff-en);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(244, 243, 240, 0.6);
  display: inline-flex; align-items: center; gap: 14px;
  opacity: 0; filter: blur(8px);
  animation: cfSoft 1.1s var(--ease) 0.15s forwards;
}
.cf-eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--accent); }

.cf-title {
  margin-top: clamp(20px, 2.8vw, 40px);
  font-family: var(--ff-jp);
  font-weight: 700;
  font-size: clamp(42px, 7.6vw, 110px);
  line-height: 1.12;
  letter-spacing: 0.01em;
}
.cf-title em { font-style: normal; color: var(--accent); }
/* each line pulls from blurred + chromatically split -> sharp */
.cf-title .cf-line {
  display: block;
  opacity: 0;
  filter: blur(15px);
  transform: scale(1.06);
  letter-spacing: 0.18em;
  animation: cfFocus 1.6s cubic-bezier(.2,.7,.2,1) forwards;
}
.cf-title .cf-line:nth-child(1) { animation-delay: 0.35s; }
.cf-title .cf-line:nth-child(2) { animation-delay: 0.62s; }

.cf-lead {
  margin-top: clamp(24px, 2.8vw, 38px);
  max-width: 40em;
  font-size: clamp(13px, 1.05vw, 16px);
  line-height: 2.05;
  color: rgba(244, 243, 240, 0.74);
  opacity: 0; filter: blur(8px); transform: translateY(10px);
  animation: cfSoftRise 1.2s var(--ease) 1.25s forwards;
}
.cf-cta {
  margin-top: clamp(28px, 3.4vw, 46px);
  opacity: 0; transform: translateY(10px);
  animation: cfRise 1.1s var(--ease) 1.5s forwards;
}

.cf-cue {
  position: absolute; right: clamp(20px, 3vw, 52px); bottom: clamp(24px, 4.5vh, 50px);
  z-index: 2; display: flex; align-items: center; gap: 12px;
  font-family: var(--ff-en); font-size: 10px; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase; color: rgba(244, 243, 240, 0.5);
  opacity: 0; animation: cfFadeIn 1s var(--ease) 1.8s forwards;
}
.cf-cue__line { width: 46px; height: 1px; background: currentColor; position: relative; overflow: hidden; }
.cf-cue__line::after {
  content: ""; position: absolute; inset: 0; width: 40%; background: var(--accent);
  animation: cfCue 1.9s var(--ease-inout) infinite;
}

@keyframes cfFocus {
  0% {
    opacity: 0; filter: blur(15px); transform: scale(1.06); letter-spacing: 0.18em;
    text-shadow: 9px 0 22px rgba(62,91,255,0.55), -9px 0 22px rgba(123,220,255,0.5);
  }
  55% { opacity: 1; }
  100% {
    opacity: 1; filter: blur(0); transform: none; letter-spacing: 0.01em;
    text-shadow: 0 0 0 rgba(62,91,255,0);
  }
}
@keyframes cfSoft { 0% { opacity: 0; filter: blur(8px); } 100% { opacity: 1; filter: blur(0); } }
@keyframes cfSoftRise { 0% { opacity: 0; filter: blur(8px); transform: translateY(10px); } 100% { opacity: 1; filter: blur(0); transform: none; } }
@keyframes cfRise { to { opacity: 1; transform: none; } }
@keyframes cfFadeIn { to { opacity: 1; } }
@keyframes cfPool { to { opacity: 1; } }
@keyframes cfCue { 0% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }

@media (max-width: 768px) { .cf-cue { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .cf-bg::before, .cf-bg::after,
  .cf-eyebrow, .cf-lead, .cf-cta, .cf-cue { opacity: 1; filter: none; transform: none; animation: none; }
  .cf-title .cf-line { opacity: 1; filter: none; transform: none; letter-spacing: 0.01em; text-shadow: none; animation: none; }
}

/* =========================================================
   19. CONTACT — cursor spotlight marquees (from hero-lab-c)
   Giant English type sits in the dark; a soft light circle that
   follows the cursor reveals the bright copy. Two perfectly
   stacked layers (base faint / lit bright-masked) stay in sync
   because they share the same marquee animation.
   ========================================================= */
.contact-spot {
  position: relative;
  overflow: hidden;
  min-height: clamp(640px, 92vh, 1000px);
  display: flex;
  align-items: center;
  background-color: #15171f;   /* own opaque dark bg (no light peek on entry) */
}

.cmq { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.cmq__layer {
  position: absolute;
  inset: -4% 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(2px, 1vw, 16px);
}

/* base: barely-there so the void isn't empty */
.cmq__layer--base .khero__track--outline { -webkit-text-stroke: 1px rgba(244,243,240,0.06); color: transparent; }
.cmq__layer--base .khero__track--accent  { color: rgba(62,91,255,0.10); text-shadow: none; }
.cmq__layer--base .khero__track--faint   { color: rgba(244,243,240,0.04); }

/* lit: bright type, masked to a soft circle that follows the cursor */
.cmq__layer--lit {
  z-index: 1;
  --mx: 50%; --my: 50%; --r: 300px;
  -webkit-mask: radial-gradient(circle var(--r) at var(--mx) var(--my), #000 0%, #000 38%, transparent 72%);
          mask: radial-gradient(circle var(--r) at var(--mx) var(--my), #000 0%, #000 38%, transparent 72%);
}
.cmq__layer--lit .khero__track--outline { -webkit-text-stroke: 1.3px rgba(244,243,240,0.85); color: transparent; }
.cmq__layer--lit .khero__track--accent  { color: var(--accent); opacity: 1; text-shadow: 0 0 30px rgba(62,91,255,0.6); }
.cmq__layer--lit .khero__track--faint   { color: rgba(244,243,240,0.55); }

/* coloured glow trailing the cursor, under the type */
.cmq__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(380px 380px at var(--mx,50%) var(--my,50%),
              rgba(62,91,255,0.20) 0%, rgba(62,91,255,0.06) 40%, transparent 70%);
}

/* keep the contact statement readable above the type */
.contact-spot .container { position: relative; z-index: 2; }

@media (max-width: 768px) {
  .contact-spot { min-height: clamp(560px, 80vh, 760px); }
  .cmq__layer--lit { --r: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  /* no cursor follow: reveal everything softly, statement still readable */
  .cmq__layer--lit { -webkit-mask: none; mask: none; opacity: 0.5; }
}

/* =========================================================
   24. CONTACT — 500g-style bold accent closer (electric blue)
   ========================================================= */
.contact { background-color: #06070d; color: #fff; text-align: center; min-height: clamp(460px, 66vh, 720px); }
.contact__inner { position: relative; z-index: 2; }
/* radial scrim so the centred content stays readable over the marquee */
.contact__inner::before {
  content: ""; position: absolute; inset: -22% -14%; z-index: -1; pointer-events: none;
  background: radial-gradient(58% 64% at 50% 50%, rgba(6,7,13,0.86) 28%, rgba(6,7,13,0.45) 60%, rgba(6,7,13,0) 84%);
}
.contact__eyebrow {
  font-family: var(--ff-en); font-size: 13px; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255,255,255,0.72);
}
.contact__title {
  margin-top: clamp(8px, 1vw, 16px);
  font-family: "Anton", var(--ff-en), sans-serif; font-weight: 400;
  font-size: clamp(56px, 13vw, 200px); line-height: 0.92; letter-spacing: 0.01em; color: #fff;
}
.contact__lead {
  margin: clamp(20px, 2.4vw, 32px) auto 0; max-width: 36em;
  font-size: clamp(15px, 1.4vw, 20px); line-height: 2; font-weight: 500; color: #fff;
}
.contact__tel {
  margin-top: clamp(36px, 5vw, 64px);
  display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center;
}
.contact__tel-badge { border: 2px solid #fff; border-radius: 8px; padding: 4px 12px; font-size: 14px; font-weight: 700; }
.contact__tel-label { font-family: var(--ff-en); font-weight: 700; font-size: clamp(18px, 2vw, 26px); }
.contact__tel-num { font-family: "Anton", var(--ff-en), sans-serif; font-size: clamp(32px, 4.6vw, 64px); letter-spacing: 0.01em; line-height: 1; color: #fff; }
.contact__hours { margin-top: 14px; font-size: 14px; color: rgba(255,255,255,0.82); }
.contact__cta { margin-top: clamp(36px, 4.5vw, 60px); }
.contact__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 18px;
  min-width: min(560px, 82vw); padding: clamp(22px, 2.4vw, 32px) clamp(28px, 4vw, 52px);
  background: #fff; color: #14161e; border-radius: 16px;
  font-family: var(--ff-jp); font-weight: 700; font-size: clamp(16px, 1.5vw, 20px); letter-spacing: 0.02em;
  transition: transform 0.4s var(--ease), background-color 0.4s var(--ease), color 0.4s var(--ease);
}
.contact__btn svg { transition: transform 0.4s var(--ease); }
.contact__btn:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.contact__btn:hover svg { transform: translateX(5px); }

/* desktop: fill exactly one viewport, content centred so it always fits */
@media (min-width: 769px) {
  .contact { min-height: 100vh; }
  /* cap heading against viewport height too, so tall type never overflows short laptops */
  .contact__title { font-size: min(clamp(56px, 13vw, 200px), 22vh); }
}

/* mobile only: taller CONTACT + bigger heading + more space between the 4 marquee rows */
@media (max-width: 768px) {
  .contact { min-height: clamp(440px, 62vh, 600px); }
  .contact__title { font-size: clamp(72px, 17vw, 264px); }
  .cmq__layer { gap: clamp(28px, 8vw, 56px); }
}

/* =========================================================
   25. ABOUT page — hero (mtd-style) / features / company
   ========================================================= */
.about-hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + clamp(40px, 8vh, 100px)) var(--gutter) clamp(64px, 12vh, 150px);
  background: #0c0e15;
}
.about-hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(to top, rgba(8,9,14,0.94) 4%, rgba(8,9,14,0.40) 52%, rgba(8,9,14,0.78) 100%),
    url(../img/company/company-hero.webp),
    linear-gradient(155deg, #10131d 0%, #1b2340 60%, #2c3a6e 100%);
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.about-hero__inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin-inline: auto; }
.about-hero__eyebrow {
  font-family: var(--ff-en); font-size: 13px; font-weight: 600; letter-spacing: 0.28em;
  text-transform: uppercase; color: rgba(244,243,240,0.72);
  display: inline-flex; align-items: center; gap: 14px;
}
.about-hero__eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--accent); }
.about-hero__title {
  margin-top: clamp(18px, 2.4vw, 30px);
  font-family: var(--ff-jp); font-weight: 700; line-height: 1.18; letter-spacing: 0.02em;
  font-size: clamp(34px, 6.4vw, 92px); color: var(--on-dark);
}
.about-hero__lead {
  margin-top: clamp(20px, 2.4vw, 30px); max-width: 42em;
  font-size: clamp(14px, 1.1vw, 17px); line-height: 2.1; color: rgba(244,243,240,0.82);
}
.about-hero__cue {
  position: absolute; right: clamp(20px, 5vw, 64px); bottom: clamp(28px, 6vh, 60px); z-index: 2;
  display: inline-flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--ff-en); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(244,243,240,0.7); writing-mode: vertical-rl;
}
.about-hero__cue-line { width: 1px; height: 56px; background: rgba(244,243,240,0.4); }
@media (max-width: 768px) {
  .about-hero { align-items: center; }
  .about-hero__cue { display: none; }
  .about-hero__title { font-size: clamp(32px, 9vw, 56px); }
}

/* ---------------------------------------------------------
   Lower-page split hero (mtd-style): breadcrumb + big EN
   heading + JP label + lead on the left, two stacked photos
   on the right. Used by about.html; reusable for future
   service-detail pages. (Company page keeps .about-hero.)
   --------------------------------------------------------- */
.dhero {
  position: relative; overflow: hidden;
  background: #0c0e15; color: var(--on-dark);
  padding: calc(var(--header-h) + clamp(16px, 3.4vh, 36px)) var(--gutter) clamp(44px, 7vh, 88px);
}
/* faint, heavily-darkened full-bleed photo behind everything (mtd-style) */
.dhero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(12,14,21,0.95) 22%, rgba(12,14,21,0.82) 55%, rgba(12,14,21,0.62) 100%),
    url(../img/strength/strength-01.webp);
  background-size: cover; background-position: center;
}
.dhero__crumb, .dhero__grid { position: relative; z-index: 1; }
.dhero__crumb {
  max-width: var(--maxw); margin: 0 auto clamp(30px, 6vh, 72px);
  display: flex; align-items: center; gap: 12px;
  font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.06em;
  color: rgba(244,243,240,0.5);
}
.dhero__crumb a { color: rgba(244,243,240,0.5); transition: color 0.3s var(--ease); }
.dhero__crumb a:hover { color: var(--accent); }
.dhero__crumb i { color: rgba(244,243,240,0.3); font-style: normal; }
/* mobile: keep the breadcrumb on a single line (smaller, no wrapping, scroll if needed) */
@media (max-width: 640px) {
  .dhero__crumb {
    gap: 7px; font-size: 10.5px; letter-spacing: 0.03em;
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .dhero__crumb::-webkit-scrollbar { display: none; }
  .dhero__crumb a, .dhero__crumb span, .dhero__crumb i { white-space: nowrap; flex: none; }
}

.dhero__grid {
  max-width: var(--maxw); margin-inline: auto;
  display: grid; grid-template-columns: 1fr clamp(360px, 44vw, 680px);
  gap: clamp(32px, 5vw, 80px); align-items: center;
}
.dhero__text { min-width: 0; align-self: start; position: relative; z-index: 2; }   /* keep text above the photo when long EN overflows */
.dhero__en {
  font-family: "Anton", var(--ff-en), sans-serif; font-weight: 400; text-transform: uppercase;
  font-size: clamp(60px, 11vw, 184px); line-height: 0.9; letter-spacing: 0.01em;
  color: rgba(244,243,240,0.9);
}
.dhero__en em { font-style: normal; color: var(--accent); }
.dhero__label {
  margin-top: clamp(20px, 2.6vw, 34px);
  display: flex; align-items: center; gap: 14px;
  font-family: var(--ff-jp); font-weight: 700; font-size: clamp(20px, 2.3vw, 30px); color: var(--on-dark);
}
.dhero__label svg { flex: none; color: var(--accent); }
.dhero__lead {
  margin-top: clamp(22px, 2.8vw, 38px); max-width: 40em;
  font-size: clamp(14px, 1.05vw, 17px); line-height: 2.1; color: rgba(244,243,240,0.78);
}
.dhero__cta { margin-top: clamp(28px, 3vw, 40px); }

.dhero__media { position: relative; z-index: 1; min-width: 0; }
.dhero__photo { background-size: cover; background-position: center; border-radius: 6px; }
.dhero__photo--main {
  aspect-ratio: 4 / 3;
  background-image: url(../img/about/about-01.webp), linear-gradient(158deg, #141826, #1b2340 55%, #2c3a6e);
}
.dhero__scroll {
  position: absolute; right: clamp(20px, 5vw, 56px); bottom: clamp(24px, 5vh, 52px); z-index: 3;
  width: clamp(72px, 7vw, 96px); height: clamp(72px, 7vw, 96px); border-radius: 50%;
  border: 1px solid rgba(244,243,240,0.35);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-en); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(244,243,240,0.75);
}

@media (max-width: 880px) {
  /* mobile order: ABOUT → label → photo → lead → button
     (flatten .dhero__text with display:contents so all parts can be reordered) */
  .dhero__grid { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
  .dhero__text { display: contents; }
  .dhero__en { order: 1; }
  .dhero__label { order: 2; }
  .dhero__media { order: 3; width: 100%; max-width: 440px; margin-top: clamp(24px, 6vw, 36px); }
  .dhero__lead { order: 4; }
  .dhero__cta { order: 5; }
  .dhero__scroll { display: none; }
  /* sub variant: flatten the aside too, so lead/cta join the reorder flow */
  .dhero--sub .dhero__aside { display: contents; }
}
@media (max-width: 560px) {
  .dhero__en { font-size: clamp(56px, 20vw, 104px); }
}

/* ---- sub-page hero (deepest detail pages): no photo, large JP heading + body below ---- */
.dhero--sub { padding-block: calc(var(--header-h) + clamp(24px, 6vh, 64px)) clamp(56px, 9vh, 104px); }
.dhero--sub::before {
  background-image:
    linear-gradient(100deg, rgba(12,14,21,0.95) 22%, rgba(12,14,21,0.82) 55%, rgba(12,14,21,0.66) 100%),
    url(../img/service/detail-bg.webp);
}
/* per-service hero backgrounds (override the shared default above) */
.dhero--creative::before {
  background-image:
    linear-gradient(100deg, rgba(12,14,21,0.95) 22%, rgba(12,14,21,0.82) 55%, rgba(12,14,21,0.66) 100%),
    url(../img/service/detail-bg-creative.webp);
}
.dhero--renewal::before {
  background-image:
    linear-gradient(100deg, rgba(12,14,21,0.95) 22%, rgba(12,14,21,0.82) 55%, rgba(12,14,21,0.66) 100%),
    url(../img/service/detail-bg-renewal.webp);
}
.dhero--marketing::before {
  background-image:
    linear-gradient(100deg, rgba(12,14,21,0.95) 22%, rgba(12,14,21,0.82) 55%, rgba(12,14,21,0.66) 100%),
    url(../img/service/detail-bg-marketing.webp);
}
.dhero--operation::before {
  background-image:
    linear-gradient(100deg, rgba(12,14,21,0.95) 22%, rgba(12,14,21,0.82) 55%, rgba(12,14,21,0.66) 100%),
    url(../img/service/detail-bg-operation.webp);
}
.dhero--company::before {
  background-image:
    linear-gradient(100deg, rgba(12,14,21,0.95) 22%, rgba(12,14,21,0.82) 55%, rgba(12,14,21,0.66) 100%),
    url(../img/company/company-hero.webp);
}
.dhero--sub .dhero__crumb { margin-bottom: clamp(24px, 5vh, 52px); }
.dhero--sub .dhero__grid { grid-template-columns: 1fr; }
.dhero__jp {
  font-family: var(--ff-jp); font-weight: 700; letter-spacing: 0.02em;
  font-size: clamp(32px, 5.2vw, 64px); line-height: 1.25; color: var(--on-dark);
}
.dhero--sub .dhero__lead {
  margin-top: clamp(22px, 2.6vw, 32px); max-width: 44em;
  font-size: clamp(15px, 1.15vw, 18px); line-height: 2.15; color: rgba(244,243,240,0.85);
}
.dhero--sub .dhero__lead + .dhero__lead { margin-top: clamp(14px, 1.6vw, 20px); }
.dhero--sub .dhero__cta { margin-top: clamp(28px, 3vw, 40px); }

/* features (numbered editorial list) */
.about-feats { border-top: 1px solid var(--line); }
.about-feat {
  display: grid; grid-template-columns: clamp(56px, 8vw, 130px) 1fr;
  gap: clamp(16px, 4vw, 56px); align-items: start;
  padding-block: clamp(28px, 4vw, 56px); border-bottom: 1px solid var(--line);
}
.about-feat__num {
  font-family: var(--ff-en); font-weight: 800; font-size: clamp(28px, 4vw, 60px);
  line-height: 1; color: var(--accent); letter-spacing: -0.02em;
}
.about-feat__en {
  display: block; font-family: var(--ff-en); font-size: 12px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim);
}
.about-feat__title {
  margin-top: 8px; font-family: var(--ff-jp); font-weight: 700;
  font-size: clamp(20px, 2.6vw, 32px); line-height: 1.4;
}
.about-feat__desc {
  margin-top: clamp(12px, 1.4vw, 18px); max-width: 44em;
  font-size: clamp(14px, 1.05vw, 16px); line-height: 2.0; color: var(--text-dim);
}
@media (max-width: 640px) {
  .about-feat { grid-template-columns: 1fr; gap: 6px; }
  .about-feat__num { font-size: clamp(26px, 9vw, 40px); }
}

/* compact page header (Company page) — shorter than the full hero */
.about-hero--page { min-height: clamp(340px, 50vh, 540px); }

/* company profile (definition list) — light section */
.about-company { border-top: 1px solid var(--line); max-width: 880px; margin-inline: auto; }
.about-company__row {
  display: grid; grid-template-columns: clamp(120px, 20vw, 240px) 1fr;
  gap: clamp(12px, 3vw, 40px); align-items: start;
  padding-block: clamp(18px, 2.2vw, 28px); border-bottom: 1px solid var(--line);
}
.about-company__row dt {
  font-family: var(--ff-jp); font-weight: 500; font-size: 14px;
  letter-spacing: 0.08em; color: var(--text-dim);
}
.about-company__row dd { font-size: clamp(14px, 1.05vw, 16px); line-height: 1.9; color: var(--text); }
.about-company__cta { margin-top: clamp(36px, 5vw, 64px); max-width: 880px; margin-inline: auto; }
@media (max-width: 640px) {
  .about-company__row { grid-template-columns: 1fr; gap: 4px; padding-block: 16px; }
}

/* access — address + map placeholder */
.about-access { margin-top: clamp(48px, 7vw, 96px); max-width: 880px; margin-inline: auto; }
.about-access__map {
  margin-top: clamp(18px, 2.2vw, 28px); width: 100%; aspect-ratio: 16 / 7;
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #e7e5e0, #f0eee9);
  font-family: var(--ff-en); font-size: 13px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-dim);
}
@media (max-width: 640px) { .about-access__map { aspect-ratio: 4 / 3; } }

/* =========================================================
   26. ABOUT page — feature body (baigie-style)
   Fact stats → statement → numbered feature rows (alt
   text/image) → More Information cards. Light + dark mix.
   ========================================================= */
/* ---- Statement (Design for Results) — light panel, big dark type
       + full-bleed wide photo strip flush to the section bottom ---- */
.af-statement-sec { background: var(--bg-alt); padding-bottom: 0; }
/* centered statement: eyebrow + big heading + body, all centred */
.af-statement-sec .container { text-align: center; }
/* symmetric line on both sides of the eyebrow so it suits centred content */
.af-statement-sec .eyebrow::after {
  content: ""; width: 36px; height: 1px; background: currentColor; opacity: 0.6;
}
.af-statement {
  margin: clamp(20px, 2.5vw, 32px) auto 0; max-width: 24em;
  font-family: var(--ff-jp); font-weight: 700; line-height: 1.7; letter-spacing: 0.01em;
  font-size: clamp(24px, 3.4vw, 48px); color: var(--text);
}
.af-statement em { font-style: normal; color: var(--accent); }
.af-statement-sub {
  margin: clamp(24px, 2.8vw, 40px) auto 0; max-width: 40em;
  font-size: clamp(14px, 1.05vw, 16px); line-height: 2.1; color: var(--text-dim);
}
@media (max-width: 760px) {
  .af-statement-grid { grid-template-columns: 1fr; gap: clamp(20px, 5vw, 30px); }
  .af-statement, .af-statement-sub { max-width: 40em; }
  .af-statement-sub { padding-top: 0; }
}
/* strip is a direct child of the section (outside .container) → spans full width */
.af-strip {
  margin-top: clamp(40px, 6vw, 88px); width: 100%; height: clamp(300px, 48vh, 540px);
  background-size: cover; background-position: center;
  background-image: url(../img/about/about-wide.webp), linear-gradient(120deg, #1b2340, #2c3a6e 55%, #3e5bff);
}
@media (max-width: 640px) { .af-strip { height: clamp(200px, 36vh, 300px); } }

/* ---- Feature rows (alternating text / image) ---- */
/* about.html / company.html have no [data-bg] sections, so the fixed #bgLayer
   stays dark navy; give these (otherwise transparent) light sections an
   explicit light bg so their dark text stays readable. */
#strength, #company, #more { background: var(--bg); }
.af-rows { margin-top: clamp(32px, 5vw, 72px); display: flex; flex-direction: column; gap: clamp(48px, 8vw, 120px); }
.af-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.af-row:nth-child(even) .af-row__media { order: 2; }   /* flip image to the right on even rows */
.af-row__media { position: relative; }
.af-row__pic {
  aspect-ratio: 4 / 3; border-radius: 8px; background-size: cover; background-position: center;
  background-image: linear-gradient(150deg, #e6e4df, #f1efea);
}
.af-row__head { display: flex; align-items: center; gap: clamp(12px, 1.4vw, 20px); }
.af-row__num {
  font-family: "Anton", var(--ff-en), sans-serif; font-size: clamp(40px, 5vw, 76px); line-height: 0.9;
  color: var(--text-faint); letter-spacing: 0.01em;
}
.af-row__en {
  font-family: var(--ff-mono); font-size: clamp(16px, 1.7vw, 26px); font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim);
}
.af-row__title {
  margin-top: clamp(12px, 1.4vw, 18px); font-family: var(--ff-jp); font-weight: 700;
  font-size: clamp(22px, 2.8vw, 36px); line-height: 1.4;
}
.af-row__desc {
  margin-top: clamp(12px, 1.4vw, 18px); max-width: 38em;
  font-size: clamp(14px, 1.05vw, 16px); line-height: 2.0; color: var(--text-dim);
}
.af-row__points {
  margin-top: clamp(18px, 2vw, 26px); padding-top: clamp(16px, 1.8vw, 22px);
  border-top: 1px solid var(--line); display: grid; gap: clamp(8px, 1vw, 12px);
}
.af-row__points li {
  position: relative; padding-left: 26px;
  font-size: clamp(13px, 1vw, 15px); line-height: 1.65; color: var(--text);
}
.af-row__points li::before {
  content: ""; position: absolute; left: 3px; top: 0.28em;
  width: 6px; height: 11px; border: solid var(--accent); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
@media (max-width: 760px) {
  .af-rows { gap: clamp(72px, 18vw, 104px); }   /* more breathing room between 01–04 on mobile */
  .af-row { grid-template-columns: 1fr; gap: 18px; }
  .af-row__media, .af-row:nth-child(even) .af-row__media { order: -1; }   /* image always on top on mobile */
}

/* ---- More Information cards ---- */
.af-more {
  margin-top: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.4vw, 18px);
}
.af-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: clamp(20px, 2.2vw, 30px) clamp(22px, 2.4vw, 34px);
  border: 1px solid var(--line); border-radius: 12px; color: var(--text);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.af-card:hover { border-color: var(--accent); background: rgba(62,91,255,0.06); transform: translateY(-2px); }
.af-card__en { display: block; margin-bottom: 6px; font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); }
.af-card__main { font-family: var(--ff-jp); font-weight: 700; font-size: clamp(16px, 1.4vw, 19px); }
.af-card__arrow { flex: none; color: var(--accent); }
@media (max-width: 860px) { .af-more { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .af-more { grid-template-columns: 1fr; } }
/* 「〇〇の一覧に戻る」は右寄せ（カード列の右端に揃える。実績・インタビューと統一） */
.af-more-back { margin-top: clamp(24px, 3vw, 36px); text-align: right; }

/* =========================================================
   27. Service detail page (e.g. service-strategy.html)
   light section utility + numbered, linkable sub-service list
   ========================================================= */
/* sub-pages have no [data-bg] driver, so transparent .section shows the dark
   #bgLayer — give plain light sections an explicit background. */
.section--light { background: var(--bg); }
.section--alt { background: var(--bg-alt); }
/* detail-page related links: 2-up cards */
#dp-related .af-more { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 560px) { #dp-related .af-more { grid-template-columns: 1fr; } }

/* detail-page overview: heading + shorter body (left), photo spanning full height (right) */
.dp-intro { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 48px); }
.dp-intro__head { margin-bottom: clamp(30px, 4.5vw, 60px); }
.dp-intro__body .lead { margin-top: 0; }
.dp-intro__body .lead + .lead { margin-top: clamp(18px, 2vw, 28px); }
.dp-intro__pic { margin: 0; aspect-ratio: 4 / 5; border-radius: 6px; background-size: cover; background-position: center; }
@media (min-width: 861px) {
  .dp-intro { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr); gap: clamp(44px, 5vw, 88px); align-items: stretch; }
  .dp-intro__pic { aspect-ratio: auto; height: 100%; }
}

/* detail-page "What We Do": 2-column checklist so it fills the width */
.dp-do__points { gap: clamp(24px, 6vw, 34px); }
.dp-do__points li { font-size: clamp(14px, 1.15vw, 17px); line-height: 1.7; }
@media (min-width: 721px) {
  .dp-do__points { grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 72px); row-gap: clamp(26px, 3vw, 38px); }
}

/* detail-page: ×/○ comparison (with vs without) */
.compare { margin-top: clamp(28px, 4vw, 52px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
.compare__col { padding: clamp(24px, 3vw, 38px); border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.compare__col--good { border-color: var(--accent); background: rgba(62, 91, 255, 0.05); }
.compare__h { font-family: var(--ff-jp); font-weight: 700; font-size: clamp(16px, 1.5vw, 20px); margin-bottom: clamp(14px, 1.6vw, 20px); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.compare__col--good .compare__h { color: var(--accent); }
.compare__list { list-style: none; display: grid; gap: 12px; }
.compare__list li { position: relative; padding-left: 28px; font-size: clamp(13px, 1.05vw, 15px); line-height: 1.75; color: var(--text-dim); }
.compare__col--bad .compare__list li::before { content: "\00d7"; position: absolute; left: 4px; top: -1px; font-weight: 700; color: var(--text-faint); }
.compare__col--good .compare__list li { color: var(--text); }
.compare__col--good .compare__list li::before { content: ""; position: absolute; left: 4px; top: 0.35em; width: 6px; height: 11px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
@media (max-width: 640px) { .compare { grid-template-columns: 1fr; } }

/* detail-page: goal → KGI/KPI examples */
.gex { margin-top: clamp(28px, 4vw, 52px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.gex__item {
  padding: clamp(24px, 2.8vw, 34px); border-radius: 14px; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 8px 24px -16px rgba(20, 22, 30, 0.22);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.gex__item:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -18px rgba(20, 22, 30, 0.3); border-color: rgba(62, 91, 255, 0.35); }
.gex__type {
  font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
  padding-bottom: clamp(12px, 1.4vw, 16px); margin-bottom: clamp(6px, 0.8vw, 10px);
  border-bottom: 1px solid var(--line);
}
.gex__row { display: block; }
.gex__row dt {
  font-family: var(--ff-jp); font-weight: 700; font-size: 11px; letter-spacing: 0.06em; color: var(--text-faint);
  margin: clamp(16px, 1.8vw, 20px) 0 5px;
}
.gex__row dd { margin: 0; font-size: clamp(14px, 1.05vw, 16px); line-height: 1.7; color: var(--text); }
@media (max-width: 820px) { .gex { grid-template-columns: 1fr; } }

/* detail-page (Webサイト制作 etc.): editorial "pillars" — big Anton index + title + copy */
.pillars { margin-top: clamp(30px, 4vw, 56px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 30px); }
.pillar {
  position: relative; padding: clamp(28px, 3vw, 42px) clamp(24px, 2.6vw, 36px) clamp(30px, 3.2vw, 44px);
  background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 10px 28px -18px rgba(20, 22, 30, 0.24);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.pillar::before { /* accent rule along the top */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), #6f84ff);
  opacity: 0; transition: opacity 0.45s var(--ease);
}
.pillar:hover { transform: translateY(-5px); box-shadow: 0 22px 40px -20px rgba(20, 22, 30, 0.32); border-color: rgba(62, 91, 255, 0.4); }
.pillar:hover::before { opacity: 1; }
.pillar__num {
  font-family: "Anton", var(--ff-en), sans-serif; font-weight: 400; line-height: 0.82;
  font-size: clamp(52px, 6vw, 92px); color: #ecebe6; letter-spacing: 0.01em; display: block;
}
.pillar__en {
  display: block; margin-top: clamp(-6px, -0.4vw, -2px);
  font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.pillar__title { font-family: var(--ff-jp); font-weight: 700; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.4; margin: clamp(10px, 1.2vw, 14px) 0 clamp(8px, 1vw, 12px); }
.pillar__desc { margin: 0; font-size: clamp(14px, 1.05vw, 16px); line-height: 1.85; color: #3a3833; }
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; gap: clamp(14px, 3vw, 20px); } }

/* stacked variant (LIG-style full-width rows: index left / text right) */
.pillars--stack { display: block; margin-top: clamp(22px, 3vw, 44px); }
.pillars--stack .pillar {
  display: grid; grid-template-columns: clamp(84px, 9.5vw, 158px) 1fr; gap: clamp(28px, 3.4vw, 56px);
  align-items: start; background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0;
  box-shadow: none; padding: clamp(26px, 3.4vw, 50px) 0; overflow: visible;
}
.pillars--stack .pillar:last-child { border-bottom: 1px solid var(--line); }
.pillars--stack .pillar::before { display: none; }
.pillars--stack .pillar:hover { transform: none; box-shadow: none; }
.pillars--stack .pillar__num { font-size: clamp(64px, 8vw, 132px); color: #9a978f; line-height: 0.85; }
.pillars--stack .pillar__title { margin-top: 0; }
@media (max-width: 720px) {
  .pillars--stack .pillar { grid-template-columns: 1fr; gap: clamp(14px, 4vw, 22px); }
}

/* detail-page (制作系): pricing plans */
.plans { margin-top: clamp(30px, 4vw, 56px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: clamp(28px, 3vw, 40px) clamp(24px, 2.6vw, 34px);
  box-shadow: 0 10px 28px -18px rgba(20, 22, 30, 0.24);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: 0 20px 38px -20px rgba(20, 22, 30, 0.3); }
.plan--featured { border-color: var(--accent); box-shadow: 0 16px 38px -18px rgba(62, 91, 255, 0.32); }
.plan__badge {
  position: absolute; top: 0; right: clamp(20px, 2.4vw, 30px); transform: translateY(-50%);
  background: var(--accent); color: #fff; font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.1em;
  padding: 5px 13px; border-radius: 999px;
}
.plan__en { display: block; text-align: center; font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.plan__name { text-align: center; font-family: var(--ff-jp); font-weight: 700; font-size: clamp(17px, 1.4vw, 20px); }
.plan__price { text-align: center; font-family: "Anton", var(--ff-en), sans-serif; font-weight: 400; font-size: clamp(44px, 5.2vw, 72px); line-height: 1; margin: clamp(12px, 1.4vw, 18px) 0 0; color: #4d4a44; }
.plan__price small { font-family: var(--ff-jp); font-weight: 700; font-size: 0.3em; color: var(--text-dim); margin-left: 5px; letter-spacing: 0.02em; }
.plan__meta { text-align: center; font-size: 13px; color: var(--text-dim); margin: clamp(8px, 1vw, 12px) 0 clamp(16px, 1.8vw, 22px); padding-bottom: clamp(16px, 1.8vw, 22px); border-bottom: 1px solid var(--line); }
.plan__list { display: grid; gap: 10px; }
.plan__list li { position: relative; padding-left: 24px; font-size: clamp(13px, 1vw, 15px); line-height: 1.6; color: var(--text); }
.plan__list li::before { content: ""; position: absolute; left: 2px; top: 0.35em; width: 6px; height: 11px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; } }

/* intro: left text + right foundation diagram */
.sd-intro__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.sd-figure { margin: 0; width: 100%; }
.sd-figure svg { display: block; width: 100%; height: auto; }
.sd-figure text { font-family: var(--ff-jp); }
.sd-figure .tier { fill: #fff; stroke: var(--line); stroke-width: 1.5; }
.sd-figure .tier--base { fill: rgba(62, 91, 255, 0.10); stroke: var(--accent); }
.sd-figure .t-main { fill: var(--text); font-weight: 700; }
.sd-figure .t-accent { fill: var(--accent); font-weight: 700; }
.sd-figure .t-cap { fill: var(--text-dim); font-family: var(--ff-mono); }
.sd-figure .tri { fill: var(--accent); }
/* iceberg metaphor (Craft): visible tip = look, submerged mass = the real work */
.sd-figure .ice-water { fill: rgba(62, 91, 255, 0.06); }
.sd-figure .ice-line { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 5 5; opacity: 0.5; }
.sd-figure .ice-tip { fill: #fff; stroke: var(--line); stroke-width: 1.5; }
.sd-figure .ice-body { fill: rgba(62, 91, 255, 0.12); stroke: var(--accent); stroke-width: 1.5; }
.sd-figure .ice-cap { font-family: var(--ff-mono); fill: var(--text-dim); }
/* Before/After browser mockups (Renewal): old, cluttered → new, clean */
.sd-figure .mk-win { fill: #fff; stroke: var(--line); stroke-width: 1.5; }
.sd-figure .mk-div { stroke: var(--line); stroke-width: 1; }
.sd-figure .mk-dot { fill: var(--text-faint); }
.sd-figure .mk-old { fill: var(--text-faint); }
.sd-figure .mk-block { fill: var(--bg-grey); }
.sd-figure .mk-accent { fill: var(--accent); }
.sd-figure .mk-arrow { fill: var(--accent); }
.sd-figure .mk-arrowln { stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; }
.sd-figure .mk-lbl { font-family: var(--ff-mono); fill: var(--text-dim); font-weight: 700; }
.sd-figure .mk-lbl--after { fill: var(--accent); }
/* channels → site → results (Marketing): multiple channels feed the site */
.sd-figure .mg-pill { fill: #fff; stroke: var(--line); stroke-width: 1.5; }
.sd-figure .mg-node { fill: rgba(62, 91, 255, 0.10); stroke: var(--accent); stroke-width: 1.5; }
.sd-figure .mg-line { stroke: var(--text-faint); stroke-width: 1.5; fill: none; }
.sd-figure .mg-arrow { stroke: var(--accent); stroke-width: 2.5; fill: none; }
.sd-figure .mg-head { fill: var(--accent); }
.sd-figure .mg-t { font-family: var(--ff-jp); fill: var(--text); font-weight: 700 /* 和文は従来も700で表示されていた（可変フォント化で見た目を変えないため明示） */; }
.sd-figure .mg-t--accent { fill: var(--accent); font-weight: 700; }
.sd-figure .mg-cap { font-family: var(--ff-mono); fill: var(--text-dim); }
/* ascending steps (Operation): results stack up with each update / improvement */
.sd-figure .st-axis { stroke: var(--line); stroke-width: 1.5; }
.sd-figure .st-fill { fill: rgba(62, 91, 255, 0.10); }
.sd-figure .st-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.sd-figure .st-dot { fill: var(--accent); }
.sd-figure .st-riser { font-family: var(--ff-jp); fill: var(--text-dim); font-weight: 700 /* 和文は従来も700で表示されていた（可変フォント化で見た目を変えないため明示） */; }
.sd-figure .st-top { font-family: var(--ff-jp); fill: var(--accent); font-weight: 700; }
.sd-figure__cap {
  margin-top: 14px; text-align: center;
  font-size: clamp(12px, 0.95vw, 13px); line-height: 1.7; color: var(--text-dim);
}
@media (max-width: 820px) {
  .sd-intro__grid { grid-template-columns: 1fr; gap: clamp(28px, 7vw, 44px); }
  .sd-figure { max-width: 420px; margin-inline: auto; }
}

/* full-bleed rows: the row (link + hover + divider) spans the full width,
   while inner content stays aligned to the container via matching padding */
.sd-list { margin-top: clamp(32px, 5vw, 64px); border-top: 1px solid var(--line); }
.sd-item {
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: clamp(20px, 4vw, 56px);
  padding-block: clamp(24px, 3.2vw, 44px);
  padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  border-bottom: 1px solid var(--line); color: var(--text);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
/* dark hover: row goes near-black and text flips to light */
.sd-item:hover { background: #2a2e3a; }   /* soft dark slate-grey (not pure black) */
.sd-item:hover .sd-item__title { color: var(--on-dark); }
.sd-item:hover .sd-item__desc { color: var(--on-dark-dim); }
.sd-item:hover .sd-item__arrow { color: var(--on-dark-dim); }
.sd-item__title { font-family: var(--ff-jp); font-weight: 700; font-size: clamp(18px, 2vw, 26px); }
.sd-item__desc {
  margin-top: 8px; max-width: 46em;
  font-size: clamp(13px, 1vw, 15px); line-height: 1.9; color: var(--text-dim);
}
.sd-item__arrow { flex: none; color: var(--text-dim); transition: transform 0.3s var(--ease); }
.sd-item:hover .sd-item__arrow { transform: translateX(5px); }

/* ---- FLOW: horizontal steps (numbered nodes on a connecting line) ---- */
#sd-flow { background: var(--bg-alt); }
.flow {
  --flow-node: clamp(44px, 5vw, 60px); --flow-gap: clamp(20px, 3vw, 48px);
  margin-top: clamp(32px, 5vw, 56px); list-style: none;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--flow-gap);
}
.flow__step { position: relative; text-align: left; }
/* horizontal connector from this node to the next */
.flow__step:not(:last-child)::before {
  content: ""; position: absolute; z-index: 0; top: calc(var(--flow-node) / 2 - 0.5px);
  left: calc(var(--flow-node) / 2 - 0.5px); width: calc(100% + var(--flow-gap)); height: 1px; background: var(--line);
}
.flow__num {
  position: relative; z-index: 1; margin: 0 0 clamp(14px, 1.6vw, 20px);
  width: var(--flow-node); height: var(--flow-node); border-radius: 50%;
  border: 1.5px solid var(--text); background: var(--bg-alt); color: var(--text);
  display: grid; place-items: center;
  font-family: "Anton", var(--ff-en), sans-serif; font-size: clamp(16px, 1.7vw, 22px); letter-spacing: 0.01em;
}
.flow__title { font-family: var(--ff-jp); font-weight: 700; font-size: clamp(15px, 1.4vw, 19px); line-height: 1.4; }
.flow__desc { margin-top: 8px; font-size: clamp(12px, 0.95vw, 14px); line-height: 1.8; color: var(--text-dim); }
/* mobile: stack vertically (5 across is too tight on phones) */
@media (max-width: 720px) {
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow__step {
    text-align: left; display: grid; grid-template-columns: var(--flow-node) 1fr;
    gap: clamp(14px, 3vw, 22px); padding-bottom: clamp(22px, 5vw, 34px);
  }
  .flow__step:last-child { padding-bottom: 0; }
  .flow__num { margin: 0; }
  .flow__step:not(:last-child)::before {
    top: var(--flow-node); bottom: 0; left: calc(var(--flow-node) / 2 - 0.5px);
    width: 1px; height: auto;
  }
  .flow__body { padding-top: clamp(6px, 1.5vw, 10px); }
}

/* ---- FAQ: native <details> accordion (+ turns to − when open) ---- */
.faq { margin-top: clamp(28px, 4vw, 52px); border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: clamp(16px, 3vw, 28px); padding: clamp(20px, 2.4vw, 28px) 0;
  font-family: var(--ff-jp); font-weight: 700; font-size: clamp(16px, 1.5vw, 20px); color: var(--text);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }
.faq__icon { position: relative; flex: none; width: 14px; height: 14px; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; background: var(--text-dim); }
.faq__icon::before { top: 50%; left: 0; right: 0; height: 2px; transform: translateY(-50%); }
.faq__icon::after {
  left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.faq__item[open] .faq__icon::after { opacity: 0; transform: translateX(-50%) rotate(90deg); }
.faq__a {
  padding: 0 0 clamp(20px, 2.4vw, 28px); max-width: 60em;
  font-size: clamp(14px, 1.05vw, 16px); line-height: 1.95; color: var(--text-dim);
}

/* =========================================================
   28. Service-detail extras: pain / deliverables / price /
   related services + section background rhythm
   ========================================================= */
/* background rhythm: these sections take the deeper bg-alt tone */
#sd-intro, #sd-related { background: var(--bg-alt); }

/* ---- Solvable issues (解決できる課題) — editorial numbered list, no boxes ---- */
.issues {
  margin-top: clamp(32px, 5vw, 56px);
  display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;   /* fill down the left column (1,2,3) then the right (4,5,6) */
  column-gap: clamp(40px, 6vw, 96px); row-gap: 0;
}
.issues__item {
  display: grid; grid-template-columns: auto 1fr; align-items: baseline;
  gap: clamp(16px, 2vw, 28px);
  padding: clamp(22px, 2.6vw, 32px) 0; border-top: 1px solid var(--line);
}
.issues__num {
  font-family: "Anton", var(--ff-en), sans-serif; line-height: 1; letter-spacing: 0.01em;
  font-size: clamp(20px, 2vw, 30px); color: var(--text-faint);
}
.issues__item p {
  font-family: var(--ff-jp); font-weight: 700 /* 和文は従来も700で表示されていた（可変フォント化で見た目を変えないため明示） */; font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.6; color: var(--text);
}
@media (max-width: 640px) { .issues { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; column-gap: 0; } }

/* ---- Related services: 2-up cards ---- */
#sd-related .af-more { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 560px) { #sd-related .af-more { grid-template-columns: 1fr; } }

/* ============================================================
   29. WORKS listing page (works.html) — WordPress実績一覧
   ============================================================ */
.wworks .sec-head { margin-bottom: clamp(28px, 3.4vw, 48px); }

/* --- category filter (WP taxonomy) --- */
.wfilter {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: clamp(28px, 3.6vw, 52px);
}
.wfilter__chip {
  font-family: var(--ff-en); font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--text-dim); background: transparent;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 20px; cursor: pointer;
  transition: color .25s ease, border-color .25s ease, background .25s ease;
}
.wfilter__chip:hover { color: var(--text); border-color: var(--text-faint); }
.wfilter__chip.is-active {
  color: #fff; background: var(--accent); border-color: var(--accent);
}

/* --- card grid --- */
.wgrid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 2.6vw, 44px) clamp(20px, 2.2vw, 36px);
}
.wcard { display: block; color: inherit; }
.wcard.is-hidden { display: none; }
.wcard__thumb {
  /* アイキャッチ画像（16:9 で作る）と同じ比率にして、左右が切れないようにする */
  aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden;
  background-size: cover; background-position: center;
  transition: transform .5s cubic-bezier(.22,1,.36,1), box-shadow .4s ease;
}
.wcard:hover .wcard__thumb {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgba(19,19,18,0.4);
}
.wcard__body { padding-top: clamp(14px, 1.4vw, 20px); }
.wcard__meta {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
}
.wcard__cat { color: var(--accent); }
.wcard__year { color: var(--text-faint); }
.wcard__title {
  margin-top: 8px; font-size: clamp(16px, 1.15vw, 19px); font-weight: 700;
  line-height: 1.55; letter-spacing: 0.01em; color: var(--text);
  transition: color .25s ease;
}
.wcard:hover .wcard__title { color: var(--accent); }
/* interview一覧のカードで会社名を添える行 */
.wcard__company { margin-top: 10px; font-size: 13px; letter-spacing: 0.02em; color: var(--text-dim); }

.wworks__note {
  margin-top: clamp(40px, 5vw, 72px); text-align: center;
  font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--text-faint);
}

@media (max-width: 880px) {
  .wgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .wgrid { grid-template-columns: 1fr; gap: clamp(28px, 8vw, 40px); }
  .wfilter { gap: 8px; }
  .wfilter__chip { padding: 8px 16px; font-size: 12px; }
}

/* ============================================================
   30. WORKS single — 実績ケーススタディ (works-*.html)
   ヒーロー無し：アイキャッチ画像から開始（sharedan風）
   ============================================================ */
/* read-column container: baigie準拠 ~1004（固定・中央・単カラム） */
.container--wk { max-width: var(--maxw-wk); padding-inline: 20px; }

/* breadcrumb bar — pinned at the very top (sharedan風), above the eyecatch */
.wk-topbar { background: var(--bg); padding-top: calc(var(--header-h) + clamp(14px, 2.2vw, 26px)); padding-bottom: clamp(12px, 1.6vw, 20px); }
.wk-crumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--text-dim);
}
.wk-crumb a { color: var(--text-dim); text-decoration: none; }
.wk-crumb a:hover { color: var(--accent); }
.wk-crumb i { font-style: normal; color: var(--text-faint); }
.wk-crumb > span:last-child { color: var(--text); }

/* eyecatch — main visual constrained to content width (breadcrumb bar sits above it) */
.wk-eyecatch { background: var(--bg); padding-bottom: clamp(8px, 1vw, 16px); }
.wk-eyecatch__img {
  width: 100%; aspect-ratio: 16 / 9; border-radius: 10px;
  background-size: cover; background-position: center;
}
/* スマホでも 16:9 のまま（4:3 にすると 16:9 の画像の左右が 12.5% ずつ切れる） */

/* head — category + title + project facts */
.wk-head__cat { font-family: var(--ff-en); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.wk-head__title {
  margin-top: 14px; font-family: var(--ff-jp); font-weight: 700;
  font-size: clamp(28px, 3.2vw, 38px); line-height: 1.45; letter-spacing: 0.05em; color: var(--text);
}
/* intro text under the title (baigie: 16px / 500 / lh~1.7, コンテンツ幅いっぱい) */
.wk-intro {
  margin-top: clamp(18px, 2vw, 26px);
  font-size: 16px; font-weight: 500; line-height: 1.8; letter-spacing: 0.02em; color: #3a3833; text-wrap: pretty;
}
/* 紹介文（リード文の下の本文。WPでは ACF「紹介文」を段落に展開） */
.wk-body { margin-top: clamp(16px, 1.8vw, 24px); }
.wk-body p { font-size: 15px; line-height: 1.75; letter-spacing: 0.02em; color: var(--text-dim); text-wrap: pretty; }
.wk-body p + p { margin-top: 0; } /* 段落の間は空けない（改行だけで区切る） */

/* ---- DETAIL block (baigie準拠: 左ラベル / 右コンテンツ) ---- */
.wk-detail { display: grid; gap: clamp(28px, 3.2vw, 46px); }
.wk-detail__row { display: grid; grid-template-columns: 200px 1fr; column-gap: clamp(24px, 3vw, 40px); }
.wk-detail__label { font-family: var(--ff-en); font-size: 14px; font-weight: 500; letter-spacing: 0.08em; color: var(--text-dim); padding-top: 5px; }
.wk-detail__subhead { font-family: var(--ff-jp); font-size: 19px; font-weight: 500; line-height: 1.85; letter-spacing: 0.03em; color: var(--text); }
.wk-detail__subhead + .wk-detail__list { margin-top: 12px; }
.wk-detail__group + .wk-detail__group { margin-top: clamp(22px, 2.4vw, 34px); }
.wk-detail__list { display: grid; gap: 10px; }
.wk-detail__list li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.9; color: #3a3833; }
.wk-detail__list li::before { content: ""; position: absolute; left: 2px; top: 0.78em; width: 10px; height: 2px; background: var(--accent); }
.wk-detail__text { font-size: 16px; line-height: 1.9; letter-spacing: 0.02em; color: var(--text); }
/* URL 行の外部リンク（WPテーマで http(s) の値のときだけ出力） */
.wk-detail__link {
  color: var(--accent); text-decoration: underline; text-underline-offset: 4px;
  text-decoration-thickness: 1px; overflow-wrap: anywhere; transition: opacity .25s ease;
}
.wk-detail__link:hover { opacity: 0.7; }
.wk-detail__ext { display: inline-block; margin-left: 6px; font-family: var(--ff-mono); text-decoration: none; }
@media (max-width: 760px) {
  .wk-detail__row { grid-template-columns: 1fr; row-gap: 12px; }
  .wk-detail__label { padding-top: 0; }
}

/* ---- 全体ページ（左=PC広め / 右=スマホ細め、固定枠＋ホバーで中を上→下スクロール） ---- */
/* 実績のスクリーンショット（静止画・giginc 等の実績ページ準拠）
   以前は枠内スクロール＋スナップでフルページ画像を送っていたが、
   ・フルページ1枚はどうしても解像度が頭打ちになり粗い
   ・スマホで画面の大半を箱が占め「スクロールの罠」になる
   ・画像が巨大でページが重い
   の3点から、「見せ場を高解像度の静止画で並べる」方式に変更した。
   画像は上部数画面ぶんの抜粋を想定し、高さは画像の自然比に任せる。

   構成: 本文の下に PC画像2枚（TOP・下層）を横並び → DETAIL → スマホ画像3枚を横並び。 */

/* 画像の入れ物（PC・スマホ共通の見た目） */
.wk-shot {
  border-radius: 8px; overflow: hidden; position: relative;
  background: var(--bg-alt);
  box-shadow: 0 18px 44px -24px rgba(19,19,18,0.4);
}
.wk-shot__img { display: block; width: 100%; height: auto; }

/* 横並びの高さ揃え。表示上の高さは「列幅 × (画像の高さ ÷ 画像の幅)」で決まるので、
   素材の実寸が少しでも違うと下端がズレる（高さだけ合わせても幅が違えば揃わない）。

   ここでの比率は「素材が揃っている場合の既定値」兼 JS 無効時のフォールバック。
   実際には hero.js が読み込み後に、グループ内で一番短い画像の比率を全枠に適用して揃える。
   （比率を固定したままだと短い素材で下に隙間ができ、object-fit:cover にすると
     高さを満たすまで拡大されて1枚だけズームして見えるため、JS側で実寸に合わせている）
   画像は基本ルールの width:100% / height:auto ＝拡大せず幅に合わせて縮小し、
   はみ出したぶんは .wk-shot の overflow:hidden が下を切る。 */
.wk-pc .wk-shot { aspect-ratio: 1280 / 2860; }
.wk-sp .wk-shot { aspect-ratio: 390 / 1000; }

/* PC画像: 2枚を横並び（TOP / 下層ページ）
   本文（#wk-head）のすぐ続きとして見せたいので、セクション共通の上パディングは打ち消す。
   これが無いと wk-head の下余白60px と合算されて 124px 空き、本文と切り離れて見える。 */
#wk-pc { padding-top: 0; }
.wk-pc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.2vw, 34px); align-items: start; }

/* スマホ画像: 3枚を横並び */
.wk-sp { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.8vw, 26px); align-items: start; }

@media (max-width: 640px) {
  /* スマホでも「PC2枚・スマホ3枚の横並び」を維持する（列数は変えない）。
     画面が狭いぶん1枚あたりが小さくなるので、gap を詰めて表示幅を少しでも稼ぐ。 */
  .wk-pc { gap: 10px; }
  .wk-sp { gap: 6px; }
}

/* ---- Other Works (baigie「よく似た実績」準拠) ---- */
.wk-simhead { font-family: var(--ff-jp); font-size: 16px; font-weight: 700; letter-spacing: 0.03em; color: var(--text); margin-bottom: clamp(22px, 2.6vw, 36px); }
.wk-simhead span { margin-left: 12px; font-family: var(--ff-en); font-weight: 600; font-size: 13px; letter-spacing: 0.06em; color: var(--text-faint); text-transform: uppercase; }
.wk-sim { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 2.4vw, 38px); }
.wk-simcard { display: block; color: inherit; }
.wk-simcard__thumb { aspect-ratio: 16 / 9; border-radius: 6px; background-size: cover; background-position: center; transition: transform .5s cubic-bezier(.22,1,.36,1), box-shadow .4s ease; }
.wk-simcard:hover .wk-simcard__thumb { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(19,19,18,0.4); }
.wk-simcard__company { margin-top: 14px; font-size: 12px; font-weight: 500; letter-spacing: 0.04em; color: var(--text-dim); }
.wk-simcard__title { margin-top: 5px; font-family: var(--ff-jp); font-size: 21px; font-weight: 700; line-height: 1.5; color: var(--text); transition: color .25s ease; }
.wk-simcard:hover .wk-simcard__title { color: var(--accent); }
@media (max-width: 760px) { .wk-sim { grid-template-columns: 1fr; gap: clamp(28px, 8vw, 40px); } }
/* 「制作実績の一覧を見る」は右寄せ（カード列の右端に揃える） */
.wk-simmore { margin-top: clamp(30px, 3.4vw, 48px); text-align: right; }
.wk-facts {
  margin-top: clamp(30px, 3.6vw, 52px); padding-top: clamp(24px, 2.6vw, 34px);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(22px, 2.4vw, 34px) clamp(20px, 2.4vw, 40px);
}
.wk-facts__item--wide { grid-column: 1 / -1; }
.wk-facts dt { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.wk-facts dd { margin-top: 8px; font-size: 14px; line-height: 1.7; color: var(--text); }
@media (max-width: 760px) { .wk-facts { grid-template-columns: repeat(2, 1fr); } }

/* section heading (sharedan風: 英ラベル＋控えめなJP見出し / 巨大見出しは使わない) */
.wk-sec { margin-bottom: clamp(24px, 2.8vw, 40px); }
.wk-sec__label { font-family: var(--ff-en); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.wk-sec__title { margin-top: 12px; font-family: var(--ff-jp); font-weight: 700; font-size: clamp(21px, 1.9vw, 26px); line-height: 1.5; letter-spacing: 0.05em; color: var(--text); }

/* body copy (sharedan風: 16px / 行間2.0 / ゆったり字間) */
.wk-text { max-width: 82ch; font-size: clamp(15px, 1.05vw, 17px); line-height: 2; letter-spacing: 0.04em; color: #3a3833; text-wrap: pretty; }
.wk-text + .wk-text { margin-top: 1.5em; }

/* overview + project meta */
.wk-lead-grid {
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: clamp(32px, 4vw, 72px); align-items: start;
}
.wk-lead__body .lead + .lead { margin-top: 1.1em; }
.wk-meta { border-top: 1px solid var(--line); }
.wk-meta__row {
  display: grid; grid-template-columns: 6.5em 1fr; gap: 16px;
  padding: 15px 2px; border-bottom: 1px solid var(--line);
}
.wk-meta__dt { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); padding-top: 2px; }
.wk-meta__dd { font-size: 14px; line-height: 1.7; color: var(--text); }

/* challenge list */
.wk-list { margin-top: clamp(20px, 2.4vw, 32px); display: grid; gap: 14px; max-width: 74ch; }
.wk-list li { position: relative; padding-left: 26px; font-size: clamp(15px, 1.05vw, 17px); line-height: 1.85; color: #3a3833; }
.wk-list li::before { content: ""; position: absolute; left: 2px; top: 0.75em; width: 12px; height: 2px; background: var(--accent); }

/* outcome tiles */
.wk-outcomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 30px); }
.wk-outcome { padding: clamp(22px, 2.4vw, 32px); background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.wk-outcome__num { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--accent); }
.wk-outcome__title { margin-top: 10px; font-size: clamp(16px, 1.2vw, 19px); font-weight: 700; line-height: 1.5; color: var(--text); }
.wk-outcome__desc { margin-top: 10px; font-size: 14px; line-height: 1.85; color: #3a3833; }

/* gallery */
.wk-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 1.8vw, 28px); margin-top: clamp(24px, 3vw, 40px); }
.wk-gallery__item { aspect-ratio: 16 / 10; border-radius: 8px; background-size: cover; background-position: center; }
.wk-gallery__item--wide { grid-column: 1 / -1; aspect-ratio: 16 / 7; }

@media (max-width: 880px) {
  .wk-lead-grid { grid-template-columns: 1fr; gap: clamp(32px, 7vw, 48px); }
  .wk-outcomes { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wk-gallery { grid-template-columns: 1fr; }
}

/* ============================================================
   31. CONTACT form page (contact.html)
   ※ WordPress化時は <form> 内を Contact Form 7 のショートコードに置換。
      name属性はCF7標準（your-name 等）に合わせてある。
   ============================================================ */
.cform-wrap { max-width: 760px; margin-inline: auto; }
.cform__tel {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px;
  padding: clamp(18px, 2.2vw, 26px) clamp(20px, 2.4vw, 30px);
  margin-bottom: clamp(30px, 4vw, 52px);
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg-alt);
}
.cform__tel-label { font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.cform__tel-num { font-family: var(--ff-en); font-weight: 700; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: 0.02em; color: var(--text); }
.cform__tel-hours { font-size: 13px; color: var(--text-dim); }

.cform { display: grid; gap: clamp(20px, 2.4vw, 28px); }
.cform__2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px); }
.cform__field { display: grid; gap: 9px; }
.cform__label { font-family: var(--ff-jp); font-size: 14px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }
.cform__badge { font-family: var(--ff-en); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; padding: 2px 8px; border-radius: 4px; }
.cform__badge--req { color: #fff; background: var(--accent); }
.cform__badge--opt { color: var(--text-dim); background: var(--bg-alt); border: 1px solid var(--line); }
.cform__input, .cform__select, .cform__textarea {
  width: 100%; font-family: inherit; font-size: 16px; line-height: 1.6; color: var(--text);
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 13px 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cform__input::placeholder, .cform__textarea::placeholder { color: var(--text-faint); }
.cform__input:focus, .cform__select:focus, .cform__textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(62,91,255,0.12);
}
.cform__textarea { min-height: 170px; resize: vertical; }
.cform__select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 42px;
  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 1l5 5 5-5' stroke='%236f6c66' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.cform__consent { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.7; color: #3a3833; }
.cform__consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.cform__consent a { color: var(--accent); text-decoration: underline; }
.cform__actions { margin-top: clamp(8px, 1vw, 14px); text-align: center; }
.cform__submit {
  font-family: var(--ff-jp); font-size: 16px; font-weight: 700; color: #fff; letter-spacing: 0.04em;
  background: var(--accent); border: none; border-radius: 999px; padding: 16px 56px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px; transition: background 0.25s ease, transform 0.25s ease;
}
.cform__submit:hover { background: #2c46e0; transform: translateY(-2px); }
.cform__note { margin-top: clamp(28px, 3.4vw, 44px); font-size: 13px; line-height: 1.9; color: var(--text-dim); text-align: center; }
@media (max-width: 600px) { .cform__2 { grid-template-columns: 1fr; } }

/* ============================================================
   32. Footer (rich / sitemap) — 全ページ共通
   ============================================================ */
.site-footer__brand { display: inline-block; color: var(--on-dark); text-decoration: none; transition: opacity 0.25s ease; }
.site-footer__brand:hover { opacity: 0.7; }
.site-footer__meta { margin-top: 18px; display: grid; gap: 6px; }
.site-footer__meta > div { display: flex; gap: 12px; align-items: baseline; }
.site-footer__meta dt { flex: 0 0 3em; font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-dim); }
.site-footer__meta dd { font-size: 14px; color: var(--on-dark); }
.site-footer__meta dd a { color: var(--on-dark); text-decoration: none; transition: opacity 0.25s ease; }
.site-footer__meta dd a:hover { opacity: 0.7; }
.site-footer__cta {
  margin-top: 24px; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-jp); font-weight: 700; font-size: 14px; color: #fff;
  background: var(--accent); border-radius: 999px; padding: 12px 28px; text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}
.site-footer__cta:hover { background: #2c46e0; transform: translateY(-2px); }

.site-footer__sitemap { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 40px; align-content: start; }
.site-footer__col-head { font-family: var(--ff-en); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-dim); margin-bottom: 14px; }
.site-footer__col ul { list-style: none; display: grid; gap: 11px; }
.site-footer__col a { font-family: var(--ff-jp); font-size: 14px; color: var(--on-dark); text-decoration: none; transition: color 0.25s ease; }
.site-footer__col a:hover { color: var(--accent); }

.site-footer__bottom { flex-wrap: wrap; }
.site-footer__legal { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.site-footer__legal a { font-family: var(--ff-jp); font-size: 12px; letter-spacing: 0.04em; text-transform: none; color: var(--on-dark-dim); text-decoration: none; transition: color 0.25s ease; }
.site-footer__legal a:hover { color: var(--on-dark); }
.site-footer__legal a.site-footer__ext { color: var(--on-dark); }

@media (max-width: 720px) {
  .site-footer__bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .site-footer__cta { display: none; }
}
@media (max-width: 480px) {
  .site-footer__sitemap { grid-template-columns: 1fr; gap: 26px; }
}

/* ============================================================
   33. Interview single — Q&A（お客様の声・個別ページ）
   ============================================================ */
.qa { display: grid; gap: clamp(34px, 4.4vw, 58px); max-width: 860px; }
.qa__q, .qa__a { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.qa__a { margin-top: 16px; }
.qa__badge { font-family: var(--ff-en); font-weight: 700; font-size: 18px; line-height: 1; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.qa__badge--q { background: var(--accent); color: #fff; }
.qa__badge--a { background: var(--bg-alt); color: var(--text); border: 1px solid var(--line); }
.qa__q-text { font-family: var(--ff-jp); font-size: clamp(17px, 1.5vw, 20px); font-weight: 700; line-height: 1.6; letter-spacing: 0.02em; color: var(--text); padding-top: 8px; }
.qa__a-text { font-size: clamp(15px, 1.05vw, 17px); line-height: 2; letter-spacing: 0.02em; color: #3a3833; padding-top: 9px; text-wrap: pretty; }
@media (max-width: 560px) {
  .qa__q, .qa__a { grid-template-columns: 36px 1fr; gap: 12px; }
  .qa__badge { width: 36px; height: 36px; font-size: 15px; }
}

/* ============================================================
   34. Interview article (blog-style) — 写真＋テキストを流す記事型
   ============================================================ */
.article { max-width: 760px; margin-inline: auto; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.article__cats { display: flex; flex-wrap: wrap; gap: 8px; }
.article__cat { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--accent); border: 1px solid rgba(62,91,255,0.35); border-radius: 4px; padding: 4px 10px; }
.article__date { font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--text-dim); }
.article__title { margin-top: 18px; font-family: var(--ff-jp); font-weight: 700; font-size: clamp(25px, 2.9vw, 36px); line-height: 1.45; letter-spacing: 0.03em; color: var(--text); }
.article__lead { margin-top: 22px; font-size: 16px; line-height: 1.95; letter-spacing: 0.02em; color: #3a3833; text-wrap: pretty; }

.article__body h2 {
  margin-top: clamp(48px, 6vw, 82px); padding-bottom: 14px; border-bottom: 2px solid var(--text);
  font-family: var(--ff-jp); font-weight: 700; font-size: clamp(21px, 2vw, 26px); line-height: 1.5; letter-spacing: 0.03em; color: var(--text);
}
.article__body h3 {
  margin-top: clamp(32px, 4vw, 48px);
  font-family: var(--ff-jp); font-weight: 700; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; letter-spacing: 0.02em; color: var(--accent);
}
.article__body p { margin-top: 1.4em; font-size: 16px; line-height: 1.95; letter-spacing: 0.02em; color: #3a3833; text-wrap: pretty; }
.article__body h2 + p, .article__body h3 + p { margin-top: 1em; }

.article__figure { margin-top: clamp(28px, 3.4vw, 44px); }
.article__img { width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; background-size: cover; background-position: center; }
/* 「お客様の声の一覧に戻る」は右寄せ（本文の右端に揃える） */
.article__back { margin-top: clamp(44px, 5.5vw, 76px); text-align: right; }
.article__figcap { margin-top: 10px; font-size: 12px; letter-spacing: 0.02em; color: var(--text-faint); }

.article__box { margin-top: clamp(32px, 4vw, 50px); padding: clamp(22px, 3vw, 32px); background: rgba(62,91,255,0.06); border: 1px solid rgba(62,91,255,0.2); border-radius: 10px; }
.article__box-title { font-family: var(--ff-jp); font-weight: 700; font-size: 15px; letter-spacing: 0.03em; color: var(--accent); margin-bottom: 14px; }
.article__box ul { list-style: none; display: grid; gap: 10px; }
.article__box li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.8; color: var(--text); }
.article__box li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 10px; height: 2px; background: var(--accent); }

/* ============================================================
   35. Price page (price.html) — サービス別の料金目安一覧
   ============================================================ */
.price-group + .price-group { margin-top: clamp(38px, 4.4vw, 60px); }
.price-group__label { font-family: var(--ff-en); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: clamp(16px, 2vw, 22px); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.price-list { display: grid; gap: clamp(12px, 1.4vw, 18px); }
.price-item {
  display: flex; align-items: center; justify-content: space-between; gap: clamp(16px, 2.4vw, 36px);
  padding: clamp(20px, 2.4vw, 28px) clamp(22px, 2.6vw, 34px);
  background: #fff; border: 1px solid var(--line); border-radius: 10px; color: inherit; text-decoration: none;
  transition: border-color 0.25s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
a.price-item:hover { border-color: var(--accent); box-shadow: 0 16px 34px -20px rgba(19,19,18,0.32); transform: translateY(-2px); }
.price-item__body { min-width: 0; }
.price-item__name { font-family: var(--ff-jp); font-weight: 700; font-size: clamp(16px, 1.3vw, 19px); color: var(--text); display: flex; align-items: center; gap: 8px; transition: color 0.25s ease; }
.price-item__arrow { color: var(--text-faint); transition: transform 0.25s ease, color 0.25s ease; }
a.price-item:hover .price-item__name { color: var(--accent); }
a.price-item:hover .price-item__arrow { color: var(--accent); transform: translateX(3px); }
.price-item__desc { margin-top: 7px; font-size: 13.5px; line-height: 1.75; letter-spacing: 0.01em; color: var(--text-dim); }
.price-item__price { flex: none; font-family: "Anton", var(--ff-en), sans-serif; font-weight: 400; font-size: clamp(28px, 3vw, 40px); line-height: 1; color: #4d4a44; white-space: nowrap; }
.price-item__price small { font-family: var(--ff-jp); font-weight: 700; font-size: 0.34em; color: var(--text-dim); margin-left: 4px; letter-spacing: 0.02em; }
.price-note { margin-top: clamp(16px, 2vw, 24px); font-size: 13px; line-height: 1.9; color: var(--text-dim); }
@media (max-width: 560px) {
  .price-item { flex-direction: column; align-items: flex-start; gap: 12px; }
  /* スマホは縦積み。金額だけ右寄せにする */
  .price-item__price { align-self: flex-end; }
}

/* ============================================================
   36. Price — 料金が変わる要素（チェック・2カラム・区切り線なし）
   ============================================================ */
.pfactors {
  margin-top: clamp(28px, 3.4vw, 48px);
  display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  column-gap: clamp(40px, 6vw, 96px); row-gap: clamp(22px, 2.8vw, 36px);
}
.pfactor { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 14px; }
.pfactor__check {
  flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); margin-top: 2px;
  display: inline-flex; align-items: center; justify-content: center;
}
.pfactor__check svg { width: 13px; height: 13px; }
.pfactor__t { font-size: clamp(15px, 1.1vw, 17px); line-height: 1.55; letter-spacing: 0.01em; font-weight: 700; color: var(--text); }
.pfactor__d { margin-top: 5px; font-size: 13.5px; line-height: 1.75; letter-spacing: 0.01em; color: var(--text-dim); }
@media (max-width: 640px) {
  .pfactors { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; column-gap: 0; }
}

/* ---- privacy.html 本文の微調整 ---- */
.article__body .wk-list { margin-top: 1.2em; }
.article__body .wk-list li { font-size: 16px; color: #3a3833; }
.article__body a { color: var(--accent); text-decoration: underline; }
.privacy-date { margin-top: clamp(40px, 5vw, 72px); font-size: 14px; color: var(--text-dim); }

/* ============================================================
   37. Pagination — WP の the_posts_pagination()（Works / Interview 一覧）
   静的HTMLには無い（WP出力のみ）。見た目は .wfilter__chip と揃えたピル型。
   ============================================================ */
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); border: 0;
  word-wrap: normal !important;
}
.pagination { margin-top: clamp(56px, 6.4vw, 96px); }
.pagination .nav-links {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 10px;
}
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 48px; height: 48px; padding: 0 8px; border-radius: 999px;
  font-family: var(--ff-mono); font-size: 14px; letter-spacing: 0.04em; line-height: 1;
  color: var(--text); background: transparent; border: 1px solid var(--line);
  transition: color .25s ease, border-color .25s ease, background .25s ease;
}
.pagination a.page-numbers:hover { border-color: var(--text); }
.pagination .page-numbers.current { color: #fff; background: var(--accent); border-color: var(--accent); }
.pagination .page-numbers.dots { min-width: 24px; padding: 0; border-color: transparent; color: var(--text-dim); }
/* 前へ／次へ：数字と区別するため和文・太字＋矢印、少し離して置く */
.pagination .prev,
.pagination .next { padding: 0 22px; font-family: var(--ff-jp); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; }
.pagination .prev { margin-right: 14px; }
.pagination .next { margin-left: 14px; }
.pagination .prev::before,
.pagination .next::after { font-family: var(--ff-mono); font-weight: 400; transition: transform .25s ease; }
.pagination .prev::before { content: "\2190"; }
.pagination .next::after { content: "\2192"; }
.pagination .prev:hover::before { transform: translateX(-3px); }
.pagination .next:hover::after { transform: translateX(3px); }
@media (max-width: 560px) {
  /* スマホは1行に収めるため、前へ／次へは矢印だけの丸ボタンにする（文言は aria 用に残す） */
  .pagination .nav-links { gap: 4px; }
  .pagination .page-numbers { min-width: 36px; height: 36px; padding: 0 4px; font-size: 13px; }
  .pagination .page-numbers.dots { min-width: 16px; }
  .pagination .prev,
  .pagination .next { width: 36px; padding: 0; margin: 0; font-size: 0; gap: 0; }
  .pagination .prev::before,
  .pagination .next::after { font-size: 14px; }
  .pagination .prev { margin-right: 6px; }
  .pagination .next { margin-left: 6px; }
}

/* ============================================================
   38. Interview cover — お客様の声 一覧カードの表紙風アイキャッチ
   写真の上に色を重ね、種別バッジ／業種（大）／制作種別／Arte Web制作・INTERVIEW を文字で置く。
   文字サイズはカード幅に比例（cqi）させ、PC3列でもスマホ1列でも同じ見え方にする。
   ============================================================ */
.icover { position: relative; container-type: inline-size; }
.icover::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(16, 17, 22, 0.66);
}
.icover--blue::before { background: rgba(46, 82, 214, 0.80); }
.icover__inner {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column;
  padding: 6.5cqi 7cqi 5.5cqi; color: #fff;
}
.icover__badge {
  align-self: flex-end;
  padding: 0.6em 1.15em; border-radius: 999px; background: #fff; color: #131312;
  font-family: var(--ff-jp); font-weight: 700; font-size: max(9px, 2.1cqi); letter-spacing: 0.04em; line-height: 1;
}
.icover--blue .icover__badge { color: #2e52d6; }
.icover__main { margin-top: 3.5cqi; }
.icover__title {
  display: block; font-family: var(--ff-jp); font-weight: 700;
  font-size: 8cqi; line-height: 1.22; letter-spacing: 0.02em; text-wrap: balance;
}
.icover__sub {
  display: block; margin-top: 2.2cqi;
  font-family: var(--ff-jp); font-weight: 500; font-size: max(10px, 2.7cqi); letter-spacing: 0.06em; opacity: 0.92;
}
.icover__foot {
  margin-top: auto; padding-top: 3.2cqi; border-top: 1px solid rgba(255, 255, 255, 0.55);
  display: flex; align-items: center; justify-content: space-between;
}
.icover__logo { font-family: var(--ff-en); font-weight: 800; font-size: max(11px, 2.9cqi); letter-spacing: -0.01em; line-height: 1; }
.icover__logo small { margin-left: 0.5em; font-family: var(--ff-jp); font-weight: 700; font-size: 0.62em; letter-spacing: 0.06em; }
.icover__label { font-family: var(--ff-en); font-weight: 600; font-size: max(8px, 1.9cqi); letter-spacing: 0.08em; }

/* ============================================================
   39. Interview article — 会話形式（baigie の事例記事を参考）
   お客様の声の個別ページ本文（.article__body--iv）だけに効かせる（privacy.html の .article__body には効かない）。
   エディタでの書き方：見出し(H2)＝質問 ／ 段落＝回答（話者名は付けない）
   ／ 画像＝写真 ／ 引用＝概要の囲み ／ 太字＝黄色マーカー
   ============================================================ */
.article__body--iv h2 {
  margin-top: clamp(44px, 5vw, 64px); padding: 0 0 0 1em; border: 0; text-indent: -1em;
  font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; letter-spacing: 0.02em; color: var(--text);
}
.article__body--iv h2::before { content: "ー"; color: var(--accent); }
.article__body--iv p { margin-top: 1.1em; line-height: 2; }
.article__body--iv h2 + p { margin-top: 1.1em; }
.article__body--iv strong { font-weight: 700; color: var(--text); background: linear-gradient(transparent 60%, #fff0a0 60%); }
/* 写真（WPの画像ブロック figure.wp-block-image ／ 静的サンプルの .article__img） */
.article__body--iv figure { margin: clamp(32px, 4vw, 48px) 0 0; }
.article__body--iv figure img { display: block; width: 100%; height: auto; border-radius: 8px; }
.article__body--iv figcaption { margin-top: 10px; font-size: 12px; line-height: 1.7; letter-spacing: 0.02em; color: var(--text-faint); text-align: left; }
/* 概要の囲み（WPの引用ブロック） */
.article__body--iv blockquote {
  margin: clamp(32px, 4vw, 48px) 0 0; padding: clamp(22px, 3vw, 32px);
  background: var(--bg-alt); border: 0; border-radius: 10px;
}
.article__body--iv blockquote p { margin-top: 0.8em; font-size: 15px; line-height: 1.95; }
.article__body--iv blockquote p:first-child { margin-top: 0; }
.article__body--iv blockquote strong { background: none; color: var(--accent); }
.article__body--iv blockquote cite { display: block; margin-top: 10px; font-size: 12px; font-style: normal; color: var(--text-faint); }
/* 冒頭の「〇〇について」と「インタビュー」の大見出し（記事を2部に分ける） */
.iv-section-title {
  margin-top: clamp(48px, 6vw, 80px); padding-bottom: 14px; border-bottom: 1px solid var(--line);
  font-family: var(--ff-jp); font-weight: 700; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.5; letter-spacing: 0.03em; color: var(--text);
}
.iv-about__img { margin: clamp(24px, 3vw, 32px) 0 0; border-radius: 8px; overflow: hidden; }
.iv-about__img img { display: block; width: 100%; height: auto; } /* 写真は幅いっぱい */
/* ロゴ（幅800px未満の画像。テーマ側で判定）は白い枠の中央に余白付きで */
.iv-about__img--logo {
  display: flex; align-items: center; justify-content: center;
  padding: clamp(36px, 6vw, 72px) 24px; background: #fff; border: 1px solid var(--line);
}
.iv-about__img--logo img { width: auto; max-width: min(100%, 360px); max-height: 140px; object-fit: contain; }
.iv-about__text { margin-top: 1.1em; font-size: 16px; line-height: 2; letter-spacing: 0.02em; color: #3a3833; text-wrap: pretty; }
.iv-about__img + .iv-about__text, .iv-section-title + .iv-about__text { margin-top: clamp(20px, 2.4vw, 28px); }
/* 「インタビュー」見出しの直後の最初の質問は詰める */
.iv-section-title + .article__body--iv > h2:first-child { margin-top: clamp(28px, 3.2vw, 40px); }
/* アイキャッチはタイトルの下（記事の間）。パンくずの直後から記事が始まるので上の余白も詰める */
#iv-article { padding-top: clamp(28px, 3.6vw, 48px); }
/* 「他のお客様の声」は記事の続きなので、上の余白は記事セクションの下余白だけにする（二重で約240px空いていた） */
#iv-other { padding-top: 0; }
.article__eyecatch { margin-top: clamp(24px, 3vw, 36px); }
/* 「インタビュー」見出しの下にアイキャッチを置いた時、続く最初の質問との間を詰める */
.article__eyecatch + .article__body--iv > h2:first-child { margin-top: clamp(32px, 3.6vw, 44px); }
/* 写真の下の「お話を伺った方」 */
.iv-person { margin-top: 14px; }
.iv-person__label { font-family: var(--ff-jp); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--accent); }
.iv-person__name { margin-top: 2px; font-size: 14px; line-height: 1.7; letter-spacing: 0.02em; color: var(--text); }
/* 目次（質問が5つ以上の記事だけ） */
.iv-toc { margin-top: clamp(28px, 3.4vw, 40px); padding: clamp(18px, 2.4vw, 26px) clamp(20px, 2.8vw, 30px); background: var(--bg-alt); border-radius: 10px; }
.iv-toc__title { font-family: var(--ff-jp); font-size: 14px; font-weight: 700; letter-spacing: 0.06em; color: var(--accent); }
.iv-toc__list { margin-top: 10px; padding-left: 1.6em; display: grid; gap: 4px; list-style: decimal; }
.iv-toc__list li { font-size: 14px; line-height: 1.75; color: var(--text-dim); }
.iv-toc__list li::marker { font-family: var(--ff-mono); font-size: 12px; color: var(--text-faint); }
.iv-toc__list a { color: var(--text); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s ease, color .2s ease; }
.iv-toc__list a:hover { color: var(--accent); background-size: 100% 1px; }
.iv-toc + .article__body--iv > h2:first-child { margin-top: clamp(36px, 4vw, 52px); }
/* 目次から飛んだ時、固定ヘッダーに隠れない位置で止める（main.js が scroll-margin-top を読む） */
.article__body--iv h2[id] { scroll-margin-top: calc(var(--header-h) + 24px); }
/* 記事の最後「この記事で紹介した制作実績」カード（横並び：左に画像／右に文字。スマホは縦積み） */
.iv-work { margin-top: clamp(48px, 6vw, 72px); padding-top: clamp(28px, 3.4vw, 40px); border-top: 1px solid var(--line); }
.iv-work__label { font-family: var(--ff-jp); font-size: 14px; font-weight: 700; letter-spacing: 0.06em; color: var(--text); }
.iv-work__card {
  margin-top: 16px; display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); align-items: stretch;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; color: inherit; text-decoration: none;
  transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s ease, border-color .3s ease;
}
.iv-work__card:hover { transform: translateY(-3px); border-color: transparent; box-shadow: 0 18px 40px -20px rgba(19,19,18,0.35); }
.iv-work__thumb { display: block; aspect-ratio: 16 / 9; background-size: cover; background-position: center; }
.iv-work__body { display: flex; flex-direction: column; gap: 6px; padding: clamp(16px, 2vw, 22px) clamp(18px, 2.4vw, 26px); }
.iv-work__meta { font-family: var(--ff-jp); font-size: 12px; letter-spacing: 0.04em; color: var(--accent); }
.iv-work__title { font-family: var(--ff-jp); font-size: clamp(16px, 1.4vw, 18px); font-weight: 700; line-height: 1.5; color: var(--text); }
.iv-work__lead { font-size: 13px; line-height: 1.8; color: var(--text-dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.iv-work__more { margin-top: auto; padding-top: 6px; font-family: var(--ff-jp); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--accent); display: inline-flex; gap: 8px; }
.iv-work__more span { transition: transform .25s ease; }
.iv-work__card:hover .iv-work__more span { transform: translateX(4px); }
@media (max-width: 560px) { .iv-work__card { grid-template-columns: 1fr; } }
/* タイトルの横に続ける会社名（少し小さく・控えめな色で、タイトル本体と区別する） */
.article__title-company { margin-left: 0.3em; font-size: 0.72em; font-weight: 700; color: var(--text-dim); white-space: nowrap; }

/* ============================================================
   40. Interview 画像の比率統一（3:2）
   記事内の写真（アイキャッチ／本文の画像ブロック／会社紹介の写真）を 3:2 の枠にそろえ、はみ出しは中央基準で切り取る。
   一般的なカメラ写真が 3:2 なので切り取りが最小。ロゴ（.iv-about__img--logo）は対象外＝原寸。
   切られたくない画像（サイト画面のモックなど）は、画像ブロックの「追加CSSクラス」に no-crop で元の比率のまま。
   ============================================================ */
.article__eyecatch { aspect-ratio: 3 / 2; }
.article__body--iv figure:not(.no-crop) img,
.iv-about__img:not(.iv-about__img--logo) img { aspect-ratio: 3 / 2; object-fit: cover; object-position: center; }
.article__body--iv .article__img,
.iv-about__img .article__img { aspect-ratio: 3 / 2; } /* 静的サンプル（背景画像のdiv）用 */

/* =========================================================
   TOPの背景画像の遅延読み込み（サービス写真・実績のスライド）
   画面に近づくまで背景画像を読み込まない。main.js が近づいた要素に .is-bg-in を付ける。
   ========================================================= */
.js .svc-pic:not(.is-bg-in),
.js .svc-item__pic:not(.is-bg-in),
.js .works-hero__bg:not(.is-bg-in) span { background-image: none !important; }

/* TOPヒーローの登場アニメは、同じタブで2ページ目以降は省略してすぐ表示（初回だけ演出）。
   <head> の inline script が sessionStorage を見て html に .hero-seen を付ける。 */
.hero-seen .mw-eyebrow, .hero-seen .mw-show, .hero-seen .mw-jp, .hero-seen .mw-lead, .hero-seen .mw-cta, .hero-seen .mw-cue {
  animation: none; opacity: 1; transform: none; filter: none;
}
