/* =========================================================
   Historie — First View (1440 x 700 reference)
   ========================================================= */

:root {
  --color-bg: #0a0a0b;
  --color-text: #ffffff;
  --color-sub: rgba(255, 255, 255, 0.72);
  --color-ghost: #313131;
  --color-line: rgba(255, 255, 255, 0.55);
  --font-ghost: "Zen Old Mincho", serif;          /* FVゴーストのみ（spec-lock） */
  --font-body: "Inter", "Zen Kaku Gothic New", sans-serif; /* FV見出し/サブ（確定・変更不可） */
  --font-en: "Outfit", "Noto Sans JP", sans-serif;  /* 英字ディスプレイ・アイブロウ・数字 */
  --font-jp: "Noto Sans JP", sans-serif;            /* JP本文・見出し */
  --header-h: 96px;
  --pad-x: clamp(20px, 3.33vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* 3パターン配色の既定（= ホワイト: 背景白 / 文字#121212） */
  --bg-1: #ffffff;        /* メイン背景：白 */
  --bg-2: #f2f2f2;        /* ソフトセクション背景 */
  --ink: #121212;         /* ホワイトセクションの文字 */
  --ink-strong: #121212;  /* 見出し */
  --ink-soft: rgba(18, 18, 18, 0.66);
  --ink-mute: #777777;
  --hair: rgba(0, 0, 0, 0.10);
  --card: #ffffff;        /* カード面：白 */
  --card-hover: #fafafa;
  --card-border: rgba(0, 0, 0, 0.10);
  --tint: rgba(0, 0, 0, 0.05);   /* アイコン円などの淡い地 */
  --panel: #f2f2f2;              /* インセットパネル（ホワイト地で淡グレー） */
  --strip: #121212;             /* バナー帯 */
  --on-strip: #ffffff;
  --accent: #1633bb;      /* ブルーアクセント（参照デザイン） */
  --accent-soft: rgba(22, 51, 187, 0.40);
  --on-accent: #ffffff;
  --dark-band: #121212;   /* ダーク基準色（セクション・帯・ボタン） */
  --box-radius: 0;        /* ボックスの角丸（シャープ基調 = 0） */
  --container: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-1);
  color: var(--ink);
  font-family: var(--font-jp);
  font-feature-settings: "palt";   /* 詰め組みで端正な和文に */
  line-height: 1.9;
  letter-spacing: 0.06em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;   /* hidden だと overflow-y が auto に昇格し body がスクロールコンテナ化して sticky を殺すため clip */
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }

/* =========================================================
   Header
   ========================================================= */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.5s var(--ease), backdrop-filter 0.5s var(--ease);
}

.header.is-scrolled {
  background: rgba(10, 10, 11, 0.7);
  backdrop-filter: blur(12px);
}

.header__inner {
  max-width: 1440px;
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo img {
  width: clamp(128px, 11.4vw, 164px);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.5vw, 40px);
}

.nav__link {
  position: relative;
  font-family: var(--font-en); /* 参照: 14px / weight 500 */
  font-weight: 500;
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--color-text);
  white-space: nowrap;
  padding-bottom: 6px;
}
.nav__link::after { /* 中央から伸びる下線 */
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: left 0.3s var(--ease), right 0.3s var(--ease);
}
.nav__link:hover::after { left: 0; right: 0; }

/* 区切り線（資料請求 / お問合せ の前） */
.nav__item--divided {
  position: relative;
  padding-left: clamp(20px, 2.5vw, 40px);
}

.nav__item--divided::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.4);
}

/* override gap so divider padding controls spacing */
.nav__list { gap: clamp(20px, 2.5vw, 40px); }
.nav__item--divided { margin-left: calc(clamp(20px, 2.5vw, 40px) * -0.4); }

/* Hamburger (mobile) */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--color-text);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}

.nav__toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* =========================================================
   First View
   ========================================================= */
.fv {
  position: relative;
  width: 100%;
  height: 700px;
  max-height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* 1440幅では 1440:700 の比率を厳密に保つ */
@media (min-width: 1024px) {
  .fv {
    height: auto;
    aspect-ratio: 1440 / 700;
    max-height: none;
  }
}

.fv__bg {
  position: absolute;
  inset: 0;
  background: url("../images/fv_bg.png") right center / cover no-repeat;
  transform: scale(1.06);
  animation: fvZoom 16s ease-out forwards;
}

@keyframes fvZoom {
  to { transform: scale(1); }
}

/* 左を黒く落として可読性を確保 */
.fv__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 7, 8, 0.96) 0%, rgba(7, 7, 8, 0.78) 38%, rgba(7, 7, 8, 0.18) 70%, rgba(7, 7, 8, 0.05) 100%),
    linear-gradient(0deg, rgba(7, 7, 8, 0.55) 0%, rgba(7, 7, 8, 0) 35%);
}

.fv__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  padding-left: clamp(20px, 8.6vw, 124px);
  padding-top: calc(var(--header-h) * 0.55);
}

/* Ghost text — Zen Old Mincho 400 / 82.77px / lh 90.04px / 13% / #313131 */
.fv__ghost {
  font-family: var(--font-ghost);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.748vw, 82.77px);
  line-height: 1.088;
  letter-spacing: 0.13em;
  color: var(--color-ghost);
  text-transform: uppercase;
  margin-bottom: 0;
}

.fv__ghost span { display: block; }

/* Heading — Inter 400 / 33px / lh 59px / 22% / #FFFFFF */
.fv__heading {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.292vw, 33px);
  line-height: 1.788;
  letter-spacing: 0.22em;
  color: var(--color-text);
  margin-left: clamp(4px, 3vw, 44px);
  /* ゴースト（GLOBAL〜）の下端へ約10%重ねる */
  margin-top: clamp(-36px, -2.5vw, -18px);
  position: relative;
  z-index: 1;
}

.fv__heading span { display: block; }

/* Divider line */
.fv__divider {
  display: block;
  width: 64px;
  height: 1px;
  background: var(--color-line);
  margin: clamp(22px, 3vw, 38px) 0 clamp(18px, 2.4vw, 30px) clamp(4px, 3vw, 44px);
}

/* Sub text — Inter 400 / 18px / lh 34.91px / 22% */
.fv__sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(0.82rem, 1.25vw, 18px);
  line-height: 1.939;
  letter-spacing: 0.22em;
  color: var(--color-sub);
  margin-left: clamp(4px, 3vw, 44px);
}

/* =========================================================
   Reveal animation
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1023px) {
  :root { --header-h: 72px; }

  /* backdrop-filter は fixed 子要素の包含ブロックを生成し、
     全画面メニューがヘッダー内に閉じ込められる。モバイルでは無効化して solid 背景に */
  .header.is-scrolled {
    backdrop-filter: none;
    background: rgba(7, 7, 8, 0.96);
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(7, 7, 8, 0.98);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
  }

  .nav.is-open { opacity: 1; visibility: visible; }

  .nav__list { flex-direction: column; align-items: center; gap: 30px; }
  .nav__link { font-size: 18px; }
  .nav__item--divided { padding-left: 0; margin-left: 0; }
  .nav__item--divided::before { display: none; }

  .nav__toggle { display: flex; z-index: 60; }
}

@media (max-width: 600px) {
  .fv {
    height: auto;
    min-height: 600px;
    aspect-ratio: auto;
  }

  .fv__bg { background-position: 72% center; }

  .fv__overlay {
    background:
      linear-gradient(180deg, rgba(7, 7, 8, 0.82) 0%, rgba(7, 7, 8, 0.45) 45%, rgba(7, 7, 8, 0.9) 100%);
  }

  .fv__content {
    padding-left: 28px;
    padding-right: 28px;
    padding-top: calc(var(--header-h) + 36px);
    padding-bottom: 48px;
  }

  .fv__heading,
  .fv__divider,
  .fv__sub { margin-left: 0; }

  .fv__heading {
    font-size: clamp(1rem, 5vw, 1.4rem);
    letter-spacing: 0.03em;
    line-height: 1.7;
  }

  .fv__ghost { font-size: clamp(2rem, 11vw, 3rem); }

  .fv__sub br { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .fv__bg { animation: none; transform: scale(1); }
  [data-reveal] { transition: none; }
}

/* =========================================================
   Shared layout — page sections (Dark theme / FV統一)
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* 参照デザインの大きな縦余白（100–190px相当）。ウォーターマークを端でクリップ */
.section { padding: clamp(80px, 11vw, 180px) 0; overflow: hidden; color: var(--ink); }
.section--tight { padding: clamp(64px, 8vw, 120px) 0; }

/* ソフト: 背景 #F2F2F2 / 文字 #3F3F3F */
.section--soft {
  background: #f2f2f2;
  --ink: #3f3f3f;
  --ink-soft: rgba(63, 63, 63, 0.82);
  --panel: #ffffff;            /* ソフト地では白パネルで対比 */
}

/* ダーク: 背景 #121212 / 文字 白 */
.section--dark {
  background: var(--dark-band);
  --ink: #ffffff;
  --ink-strong: #ffffff;
  --ink-soft: rgba(255, 255, 255, 0.66);
  --ink-mute: rgba(255, 255, 255, 0.5);
  --hair: rgba(255, 255, 255, 0.14);
  --card: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.14);
  --tint: rgba(255, 255, 255, 0.08);
  --panel: rgba(255, 255, 255, 0.05);
  --strip: #ffffff;
  --on-strip: #121212;
}
.section--dark .ph { background: rgba(255, 255, 255, 0.05); }
/* ダークセクションのウォーターマークは淡い白に */
.section--dark .sec-head[data-wm]::before { color: rgba(255, 255, 255, 0.05); }

/* =========================================================
   .box-dark — 黒背景ボックスの共通ルール
   背景を #121212 にし、section--dark と同じトークン差し替えで
   中の文字を自動的に白系へ。個別に #fff をベタ書きしないこと。
   ・主役テキスト（見出し/氏名/数字）= var(--ink) → #fff
   ・補足テキスト（ラベル/本文/統計ラベル）= var(--ink-soft) → 薄白
   ・仕切り線/ハードライン = var(--hair) → 半透明白
   角丸は --box-radius（既定 0 = シャープ）で統一。
   ========================================================= */
.box-dark {
  background: var(--dark-band);
  border-radius: var(--box-radius);
  --ink: #ffffff;
  --ink-strong: #ffffff;
  --ink-soft: rgba(255, 255, 255, 0.72);
  --ink-mute: rgba(255, 255, 255, 0.5);
  --hair: rgba(255, 255, 255, 0.14);
  --card-border: rgba(255, 255, 255, 0.14);
}

.pc-br { display: inline; }

/* Section heading — small gray EN kicker + bold JP heading (reference style) */
.eyebrow {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::after {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.sec-head { position: relative; margin-bottom: clamp(36px, 5vw, 64px); }
/* 参照デザイン: 見出し背後の極薄ウォーターマーク英字（JSで data-wm を付与） */
.sec-head[data-wm]::before {
  content: attr(data-wm);
  position: absolute;
  left: -0.05em;
  top: 50%;
  transform: translateY(-54%);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(4rem, 12vw, 10rem);
  line-height: 1;
  letter-spacing: 0.01em;
  color: rgba(18, 18, 18, 0.055);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}
.sec-head > * { position: relative; z-index: 1; }
.sec-head--center { text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }
.sec-head--center[data-wm]::before { left: 50%; transform: translate(-50%, -54%); }

.sec-title {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 1.875rem);
  line-height: 1.7;
  letter-spacing: 0.12em;
  color: var(--ink-strong);
  margin-top: 20px;
}

.sec-lead {
  margin-top: 22px;
  font-size: clamp(0.92rem, 1.1vw, 1.02rem);
  line-height: 2.1;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
/* 横幅100%（PCはコンテナ幅 = --container でmax-width制限） */
.sec-head--center .sec-lead { width: 100%; max-width: 100%; margin-left: auto; margin-right: auto; }

.brand { font-family: var(--font-jp); color: inherit; }

.sec-actions { margin-top: clamp(40px, 5vw, 64px); display: flex; justify-content: center; }

/* Buttons — 参照デザインの黒タグ型（左寄せラベル＋右端の線＋ホバーで面スライド）
   anatomy: 240x60, padding-left 28px, 12-13px label, 30x1px trailing line right:20px,
   hover = inner panel slides scaleX(0→1) over 0.3s */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 240px;
  height: 60px;
  padding: 0 24px 0 28px;
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-align: left;
  transition: color 0.4s var(--ease);
}
.btn::before { /* hover slide panel（負のz-indexで背景の上・文字の下） */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.btn:hover::before { transform: scaleX(1); }
.btn::after { /* trailing line（右端） */
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
  flex: 0 0 auto;
}
.btn--block { width: 100%; }
/* 全ボタン統一: 黒背景 #121212 / 白文字（ホバーで #333 面がスライドイン） */
.btn,
.btn--accent,
.btn--dark,
.btn--outline,
.btn--outline-light { background: var(--ink-strong); color: #fff; }
.btn::before { background: #333; }
.btn:hover { color: #fff; }
/* ダーク背景（帯・ダークセクション）の上では黒ボタンが埋もれるため細い白枠を付与 */
.cta-band .btn,
.section--dark .btn { border: 1px solid rgba(255, 255, 255, 0.28); }
/* CTAバンドのアクションボタンだけは「背景なし＝透明」の白ゴーストボタン
   （白枠＋白文字 / ホバーで白面がスライドインし文字が暗転） */
.cta-band__actions .btn {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.cta-band__actions .btn::before { background: #fff; }
.cta-band__actions .btn:hover { color: var(--ink-strong); }

/* Image placeholders */
.ph {
  position: relative;
  background:
    linear-gradient(135deg, #ece9e3 0%, #ddd9d1 100%);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
}

/* =========================================================
   Intro
   ========================================================= */
.intro__grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.intro__title {
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.65;
  letter-spacing: 0.05em;
}
.intro__lead {
  margin-top: 28px;
  font-size: clamp(0.92rem, 1.05vw, 1rem);
  line-height: 2.15;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.intro__media { aspect-ratio: 4 / 3; }

.intro__services {
  margin-top: clamp(48px, 6vw, 80px);
  background: var(--panel);
  border: 1px solid var(--card-border);
  padding: clamp(28px, 3.5vw, 44px);
}
.intro__services-label {
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  padding-left: 14px;
  border-left: 2px solid var(--ink-strong);
}
.taglist { display: flex; flex-wrap: wrap; gap: 10px; }
.taglist li {
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--card-border);
  padding: 9px 17px;
  border-radius: 999px;
}

/* =========================================================
   Clients marquee
   ========================================================= */
.clients__lead {
  text-align: center;
  font-weight: 400;
  font-size: clamp(1rem, 1.5vw, 1.28rem);
  line-height: 1.95;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: clamp(36px, 4vw, 56px);
}
.marquee { overflow: hidden; padding: 10px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 24px; width: max-content; animation: marquee 114s linear infinite; }
.marquee__track--reverse { animation-direction: reverse; }
.logo-ph {
  flex: 0 0 auto;
  width: 184px;
  height: 86px;
  background: var(--panel);
  border: 1px solid var(--card-border);
}
.logo-item {
  flex: 0 0 auto;
  width: 184px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
}
.logo-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 12px)); }
}

/* =========================================================
   Challenges
   ========================================================= */
.challenge__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.6vw, 24px);
}
.challenge__card {
  background: var(--card);
  border: 1px solid var(--card-border);
  padding: 0;
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 0;
}
.challenge__icon {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--tint);
  overflow: hidden;
}
.challenge__card p { padding: 20px clamp(20px, 2vw, 28px); font-weight: 400; font-size: 1.02rem; line-height: 1.75; letter-spacing: 0.04em; color: var(--ink); }
.challenge__icon img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (min-width: 769px) {
  .challenge__list { grid-template-columns: repeat(6, 1fr); }
  .challenge__card { grid-column: span 2; }
  .challenge__card:nth-child(4) { grid-column: 2 / span 2; }
  .challenge__card:nth-child(5) { grid-column: 4 / span 2; }
}

.challenge__banner {
  margin-top: clamp(40px, 5vw, 64px);
  border: 1px solid var(--card-border);
  overflow: hidden;
}
.challenge__banner-title {
  background: var(--ink-strong);
  color: var(--on-accent);
  text-align: center;
  font-weight: 500;
  font-size: clamp(0.98rem, 1.3vw, 1.15rem);
  letter-spacing: 0.06em;
  padding: 20px 24px;
}
.challenge__banner-body {
  padding: clamp(24px, 3vw, 36px);
  font-size: 0.95rem;
  line-height: 2.05;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  background: var(--card);
}
.challenge__closing {
  margin-top: clamp(40px, 5vw, 60px);
  text-align: center;
  font-weight: 500;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  letter-spacing: 0.05em;
  line-height: 1.8;
}

/* ---------------------------------------------------------
   Challenges — Premium dark treatment
   黒背景＋白文字。フラットな黒でなく奥行きのあるグラデ地、
   ガラス質カード、繊細なアイコン縁取りで高級感を出す。
   トークンは section--dark のものをそのまま使用。
   --------------------------------------------------------- */
.challenge--premium {
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, #161616 0%, #0e0e0e 100%);
}

/* ガラス質カード：薄い白地＋上端ハイライト＋繊細な縁 */
.challenge--premium .challenge__card {
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.challenge--premium .challenge__icon {
  background: rgba(255, 255, 255, 0.04);
}
.challenge--premium .challenge__card p { color: rgba(255, 255, 255, 0.86); }

/* バナー：白地ベタを避け、上品なヘッダー＋ガラス質本文 */
.challenge--premium .challenge__banner {
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.challenge--premium .challenge__banner-title {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  letter-spacing: 0.08em;
}
.challenge--premium .challenge__banner-body {
  background: rgba(255, 255, 255, 0.025);
  color: rgba(255, 255, 255, 0.72);
}

/* 結びの一文：白。ブランド名は同色（参照デザイン同様ブルーは使わない） */
.challenge--premium .challenge__closing { color: #ffffff; }

/* =========================================================
   Message
   ========================================================= */
/* sticky 写真のため overflow:hidden(=スクロールコンテナ)を clip に置換。clip はスクロールコンテナを作らず sticky を殺さない */
.message { overflow: clip; }
.message__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 4.5vw, 64px);
  align-items: stretch;
}
/* 写真列はテキスト列の高さまで伸ばし、その内側で画像をスクロール追従させる */
.message__photo { align-self: stretch; }
.message__photo-inner {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--card-border);
}
.message__photo-inner img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.message__text {
  font-size: clamp(0.98rem, 1.2vw, 1.1rem);
  line-height: 2.2;
  letter-spacing: 0.04em;
  color: var(--ink);
}
/* 代表情報＋経歴を1つの連結ダークボックスに（.box-dark を併用） */
.message__person {
  margin-top: 36px;
  padding: 28px 32px;
}
.message__role { font-size: 0.8rem; letter-spacing: 0.12em; color: var(--ink-soft); }
.message__name { font-size: 1.65rem; font-weight: 700; letter-spacing: 0.1em; margin-top: 8px; color: var(--ink); }
.message__career {
  padding: 28px 32px;
  border-top: 1px solid var(--hair);
}
.message__career-label {
  font-family: var(--font-en);
  font-size: 0.78rem; letter-spacing: 0.18em; color: var(--ink-soft);
  margin-bottom: 12px;
}
.message__career-text { font-size: 0.9rem; line-height: 2.05; color: var(--ink-soft); letter-spacing: 0.03em; }

/* 実績の数値バー（.box-dark を併用） */
.stats {
  margin-top: clamp(56px, 7vw, 96px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}
.stats__item {
  text-align: center;
  padding: clamp(34px, 4vw, 54px) 20px;
  border-right: 1px solid var(--hair);
}
.stats__item:last-child { border-right: none; }
.stats__num {
  display: block;
  font-family: var(--font-en);
  font-weight: 500;
  font-size: clamp(2rem, 3.6vw, 3rem);
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1.1;
}
.stats__unit { font-size: 0.42em; margin-left: 5px; letter-spacing: 0.06em; color: var(--ink); }
.stats__label { display: block; margin-top: 16px; font-size: 0.85rem; letter-spacing: 0.05em; color: var(--ink-soft); }

/* =========================================================
   Service
   ========================================================= */
.service__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 2vw, 28px);
}
.service__card {
  background: var(--card);
  border: 1px solid var(--card-border);
  padding: clamp(30px, 3vw, 42px);
}
.service__card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.service__head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.service__icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  background: var(--tint);
  color: var(--ink-strong);
  border-radius: 50%;
  font-size: 25px;
  flex: 0 0 auto;
}
.service__no {
  font-family: var(--font-en);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--ink-strong);
  letter-spacing: 0.04em;
}
.service__title { font-size: 1.3rem; font-weight: 700; letter-spacing: 0.06em; }
.service__text { font-size: 0.92rem; line-height: 2.05; letter-spacing: 0.03em; color: var(--ink-soft); }

/* Outputs — アウトプットイメージ（成果物サムネイルのギャラリー） */
.outputs__intro {
  max-width: 920px;
  margin-top: calc(-1 * clamp(12px, 1.5vw, 20px));
  margin-bottom: clamp(40px, 5vw, 64px);
  font-size: 0.9rem;
  line-height: 2.1;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.outputs__intro p + p { margin-top: 1.4em; }
.outputs__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.2vw, 32px);
}
/* 動画埋め込み（16:9 レスポンシブ） */
.video-embed {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: clamp(28px, 3.5vw, 48px) auto 0;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
/* 暫定プレースホルダー（動画差し替え前） */
.video-embed--placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.2vw, 14px);
  padding: 12px;
  background: #121212;
  color: #fff;
  text-align: center;
}
/* SP では箱自体が 320x180 程度まで縮むため、アイコン・文字も追従させる。
   再生アイコンの三角は --icon-size に比例させ、円との比率を保つ。 */
.video-embed__icon {
  --icon-size: clamp(44px, 7vw, 72px);
  width: var(--icon-size);
  height: var(--icon-size);
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
}
.video-embed__icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: calc(var(--icon-size) * 0.18) 0 calc(var(--icon-size) * 0.18) calc(var(--icon-size) * 0.305);
  border-color: transparent transparent transparent #fff;
}
.video-embed__label {
  font-family: var(--font-en);
  font-size: clamp(0.95rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
}
/* 補足テキスト。固定 1.3rem だと SP でラベルより大きくなり階層が逆転するため、
   PC の見た目（1.3rem）は保ったまま下限を設ける。 */
.video-embed__note {
  font-size: clamp(0.78rem, 2.6vw, 1.3rem);
  letter-spacing: 0.1em;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}
.outputs__card { display: flex; flex-direction: column; }
.outputs__thumb {
  width: 100%;
  aspect-ratio: 512 / 288;
  align-items: center;        /* .ph は flex-end。アイコンを中央寄せに上書き */
  margin-bottom: clamp(14px, 1.4vw, 20px);
}
.outputs__thumb .iconify {
  font-size: clamp(30px, 3vw, 40px);
  color: var(--ink-mute);
  opacity: 0.6;
}
.outputs__title {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.6;
  color: var(--ink-strong);
}
.outputs__text {
  margin-top: 10px;
  font-size: 0.82rem;
  line-height: 1.95;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

/* =========================================================
   CTA band
   ========================================================= */
.cta-band {
  position: relative;
  background:
    linear-gradient(rgba(7, 7, 8, 0.82), rgba(7, 7, 8, 0.82)),
    url("../images/fv_bg.png") center / cover no-repeat fixed;
  padding: clamp(64px, 8vw, 120px) 0;
}
.cta-band__inner { text-align: center; color: #fff; }
.cta-band__title {
  font-weight: 500;
  font-size: clamp(1.4rem, 2.5vw, 2.05rem);
  line-height: 1.65;
  letter-spacing: 0.06em;
}
.cta-band__lead { margin-top: 22px; color: rgba(255, 255, 255, 0.74); letter-spacing: 0.05em; font-size: 0.98rem; }
.cta-band__actions { margin-top: 44px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   Why Historie
   ========================================================= */
.why__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3vw, 44px);
}
.why__card { background: var(--card); border: 1px solid var(--card-border); overflow: hidden; }
.why__media { aspect-ratio: 16 / 9; border: none; border-bottom: 1px solid var(--card-border); }
.why__body { padding: clamp(28px, 3vw, 40px); }
.why__title { font-size: clamp(1.1rem, 1.5vw, 1.3rem); font-weight: 700; line-height: 1.65; letter-spacing: 0.05em; }
.why__text { margin-top: 18px; font-size: 0.92rem; line-height: 2.05; color: var(--ink-soft); letter-spacing: 0.03em; }

/* =========================================================
   Case
   ========================================================= */
.case__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2vw, 28px); max-width: 900px; margin-inline: auto; }
.case__card { background: var(--card); border: 1px solid var(--card-border); padding: clamp(28px, 2.6vw, 38px); display: flex; flex-direction: column; }
.case__tag {
  align-self: center;
  text-align: center;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--ink-strong);
  margin-bottom: 24px;
  position: relative;
  padding: 0 34px;
}
.case__tag::before, .case__tag::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 18px; height: 1px;
  background: rgba(0, 0, 0, 0.18);
}
.case__tag::before { left: 0; }
.case__tag::after { right: 0; }
.case__client { align-self: center; text-align: center; font-size: 0.78rem; line-height: 1.7; letter-spacing: 0.04em; color: var(--ink-soft); margin-top: -16px; margin-bottom: 26px; max-width: 34em; }
.case__headline { font-weight: 700; font-size: 1.05rem; line-height: 1.8; letter-spacing: 0.04em; color: var(--ink); text-align: left; line-break: strict; }
.case__arrow { color: var(--ink-strong); padding: 0 2px; }
.case__block { margin-top: 26px; }
.case__block-title { font-size: 0.9rem; font-weight: 500; letter-spacing: 0.06em; padding-bottom: 12px; border-bottom: 1px solid var(--hair); margin-bottom: 16px; }
.case__items li { position: relative; padding-left: 16px; font-size: 0.88rem; line-height: 2; color: var(--ink-soft); }
.case__items li::before { content: ""; position: absolute; left: 0; top: 0.9em; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-strong); }
.case__result { margin-top: 26px; background: var(--panel); border: 1px solid var(--card-border); padding: 22px; }
.case__result-title { font-size: 0.88rem; font-weight: 500; letter-spacing: 0.08em; color: var(--ink-strong); margin-bottom: 12px; }
.case__result-text { font-size: 0.86rem; line-height: 2; color: var(--ink-soft); }

/* =========================================================
   Mission
   ========================================================= */
.mission__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.mission__media { aspect-ratio: 4 / 5; }
.mission__title { margin-top: 22px; font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2.05rem); line-height: 1.6; letter-spacing: 0.05em; }
.mission__text { margin-top: 28px; font-size: 0.95rem; line-height: 2.25; color: var(--ink-soft); letter-spacing: 0.04em; }

/* =========================================================
   About
   ========================================================= */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.about__row { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--hair); }
.about__row:first-child { border-top: 1px solid var(--hair); }
.about__row dt { font-weight: 500; font-size: 0.92rem; letter-spacing: 0.06em; color: var(--ink); }
.about__row dd { font-size: 0.92rem; letter-spacing: 0.04em; color: var(--ink-soft); line-height: 1.85; }
.about__media { aspect-ratio: 1 / 1; overflow: hidden; border: 1px solid var(--card-border); }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
/* 会社概要セクションがダークのとき: テーブル文字は白 */
.section--dark .about__row dt,
.section--dark .about__row dd,
.section--dark .about__row dd .loc-head { color: #fff; }
.section--dark .about__row dd li::before { background: #fff; }

/* =========================================================
   Footer
   ========================================================= */
/* フッターはダークアクセント帯。中のCTAカードは白 */
.footer { background: var(--dark-band); color: #fff; padding: clamp(64px, 8vw, 120px) 0 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.footer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
/* 新ロゴ（黒の縦組み）を暗色フッターで白く反転表示 */
.footer__logo img { width: 132px; opacity: 0.95; filter: brightness(0) invert(1); }
.footer__brand-text { margin-top: 26px; font-size: 0.9rem; line-height: 2.05; color: #fff; letter-spacing: 0.04em; max-width: 30em; }
.footer__cta { background: #ffffff; border: 1px solid rgba(0, 0, 0, 0.06); padding: clamp(30px, 3vw, 46px); }
.footer__cta-title { font-weight: 700; font-size: 1.1rem; letter-spacing: 0.06em; color: var(--ink); }
.footer__cta-text { margin-top: 18px; font-size: 0.9rem; line-height: 2.05; color: var(--ink-soft); letter-spacing: 0.03em; }
.footer__actions { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.footer__copy {
  margin-top: 0;
  padding: 26px 20px;
  text-align: center;
  font-family: var(--font-en);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================================================
   Scroll reveal (sections)
   ========================================================= */
.section [data-reveal],
.cta-band [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.section [data-reveal].is-visible,
.cta-band [data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   Responsive — page sections
   ========================================================= */
@media (max-width: 980px) {
  .intro__grid { grid-template-columns: 1fr; }
  .intro__media { aspect-ratio: 16 / 9; order: -1; }
  .message__grid { grid-template-columns: 1fr; }
  .message__photo-inner { position: static; aspect-ratio: 16 / 10; max-width: 480px; }
  .service__list { grid-template-columns: 1fr; }
  .outputs__list { grid-template-columns: repeat(2, 1fr); }
  .why__list { grid-template-columns: 1fr; }
  .case__list { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .mission__grid { grid-template-columns: 1fr; }
  .mission__media { aspect-ratio: 16 / 10; order: -1; max-width: 520px; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 520px; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .pc-br { display: none; }
  figure.rmap-img img.rmap-img__pc { display: none; }
  figure.rmap-img img.rmap-img__sp { display: block; }
  .challenge__list { grid-template-columns: 1fr 1fr; }
  .challenge__list .challenge__card:nth-child(5) { grid-column: 1 / -1; }
  .stats { grid-template-columns: 1fr; }
  .stats__item { border-right: none; border-bottom: 1px solid var(--card-border); }
  .stats__item:last-child { border-bottom: none; }
  .cta-band { background-attachment: scroll; }
  .btn { min-width: 0; width: 100%; }
  .cta-band__actions .btn, .sec-actions .btn { max-width: 360px; }
  .about__row { grid-template-columns: 110px 1fr; gap: 14px; }
}

@media (max-width: 480px) {
  .challenge__list { grid-template-columns: 1fr; }
  .outputs__list { grid-template-columns: 1fr; gap: 28px; }
}

/* =========================================================
   Sub-pages — shared components
   ========================================================= */

/* Page hero (dark band, follows FV tone) */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(56px, 8vw, 110px)) 0 clamp(56px, 8vw, 96px);
  text-align: center;
  color: #fff;
  overflow: hidden;
  background: var(--dark-band);
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  background: url("../images/fv_bg.png") center / cover no-repeat;
  opacity: 0.28;
  transform: scale(1.05);
}
.page-hero__bg--service { background-image: url("../images/fv-service.jpg"); }
.page-hero__bg--company { background-image: url("../images/fv-company.jpg"); }
.page-hero__bg--contact { background-image: url("../images/fv-contact.jpg"); }
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,7,8,0.55), rgba(7,7,8,0.85));
}
.page-hero__inner { position: relative; z-index: 2; }
/* 参照デザイン: 巨大な英字タイトル＋小さなJP（ページヒーロー） */
.page-hero__en {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: clamp(2.8rem, 9vw, 7rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  display: block;
}
.page-hero__title {
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 22px;
}

/* Page intro (white, centered) */
.page-intro { text-align: center; }
.page-intro__title {
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 2.15rem);
  line-height: 1.6;
  letter-spacing: 0.06em;
}
.page-intro__text {
  margin: 26px auto 0;
  max-width: 820px;
  font-size: clamp(0.92rem, 1.1vw, 1.02rem);
  line-height: 2.1;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

/* Breadcrumb-ish footer nav */
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(16px, 2.4vw, 36px);
  margin-top: clamp(48px, 6vw, 80px);
  padding: 0 20px 22px;
}
.footer__nav a {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: #fff;
  transition: color 0.3s var(--ease);
}
.footer__nav a:hover { color: #fff; }

/* =========================================================
   Contact form
   ========================================================= */
.contact__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.contact__lead { font-size: 0.98rem; line-height: 2.1; letter-spacing: 0.04em; color: var(--ink-soft); margin-bottom: clamp(36px, 5vw, 56px); }
.contact__works .logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.contact__works .logo-grid .logo-ph { width: 100%; height: 110px; }
.contact__works .logo-grid .logo-item {
  width: 100%;
  height: 110px;
  border: 1px solid var(--card-border);
}
.contact__works .logo-grid .logo-item img { padding: 14px 22px; }

.form { display: flex; flex-direction: column; gap: 24px; }
.form__row { display: flex; flex-direction: column; gap: 10px; }
.form__row label { font-weight: 500; font-size: 0.92rem; letter-spacing: 0.06em; }
.form__row label .req { color: var(--ink-mute); font-size: 0.78rem; margin-left: 8px; }
.form__row input,
.form__row textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 2px;
  padding: 15px 18px;
  font-family: var(--font-jp);
  font-size: 0.96rem;
  color: var(--ink);
  transition: border-color 0.3s var(--ease);
}
.form__row input:focus,
.form__row textarea:focus { outline: none; border-color: var(--ink-strong); }
.form__row textarea { min-height: 168px; resize: vertical; }
.form__actions { margin-top: 8px; }
.form__actions .btn { min-width: 240px; }

/* =========================================================
   Process steps (value proposition) & FLOW
   ========================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(var(--cols, 5), 1fr);
  gap: clamp(10px, 1.2vw, 18px);
}
.step {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--card-border);
  padding: clamp(22px, 2vw, 30px) clamp(18px, 1.6vw, 24px);
}
.step__no {
  font-family: var(--font-en);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--ink-strong);
  letter-spacing: 0.04em;
  line-height: 1;
}
.step__en { display: block; font-family: var(--font-en); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--ink-mute); margin-top: 6px; }
.step__title { margin-top: 16px; font-weight: 700; font-size: 1.02rem; letter-spacing: 0.04em; }
.step__text { margin-top: 12px; font-size: 0.84rem; line-height: 1.9; color: var(--ink-soft); }
.step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: calc(clamp(10px, 1.2vw, 18px) * -0.5 - 7px);
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-mute);
  font-size: 1.1rem;
  z-index: 2;
}
.steps--value .step { background: var(--panel); }
.steps--value .step__sub { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hair); font-size: 0.82rem; color: var(--ink-strong); font-weight: 500; }

.value-map { margin-top: clamp(32px, 4vw, 52px); }
.value-map__intro { text-align: left; max-width: 100%; margin: 0 0 clamp(32px, 4vw, 48px); font-size: clamp(0.92rem,1.1vw,1.02rem); line-height: 2.05; color: var(--ink-soft); letter-spacing: 0.04em; }

/* =========================================================
   Funnel (data tiers)
   ========================================================= */
.tiers { display: flex; flex-direction: column; gap: 14px; max-width: 920px; margin: 0 auto; }
.tier {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(18px, 3vw, 40px);
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--card-border);
  padding: clamp(22px, 2.4vw, 32px) clamp(24px, 3vw, 40px);
}
.tier__head { display: flex; align-items: center; gap: 16px; }
.tier__mark { width: 8px; height: 38px; background: var(--ink-strong); flex: 0 0 auto; }
.tier__name { font-weight: 700; font-size: 1.1rem; letter-spacing: 0.05em; }
.tier__def { font-size: 0.9rem; line-height: 1.95; color: var(--ink-soft); letter-spacing: 0.03em; }
.tier__def b { color: var(--ink); font-weight: 500; }
.tier:nth-child(1) .tier__mark { opacity: 0.45; }
.tier:nth-child(2) .tier__mark { opacity: 0.7; }

/* =========================================================
   Outputs grid (report images)
   ========================================================= */
.outputs { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 26px); }
.output {}
.output__media { aspect-ratio: 4 / 3; }
.output__title { margin-top: 16px; font-weight: 500; font-size: 0.98rem; letter-spacing: 0.04em; }
.output__text { margin-top: 8px; font-size: 0.84rem; line-height: 1.85; color: var(--ink-soft); }

/* =========================================================
   Network / reach
   ========================================================= */
.network__media { aspect-ratio: 21 / 9; margin-bottom: clamp(28px, 3.5vw, 44px); }
.network__reach { text-align: center; font-weight: 700; font-size: clamp(1.1rem, 1.8vw, 1.5rem); letter-spacing: 0.05em; margin-bottom: clamp(28px, 3.5vw, 44px); }
.network__reach b { color: var(--ink-strong); }
.network__logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.network__logos .logo-ph { width: 100%; height: 72px; }

/* =========================================================
   Sub-page responsive
   ========================================================= */
@media (max-width: 980px) {
  .contact__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
  .outputs { grid-template-columns: repeat(2, 1fr); }
  .network__logos { grid-template-columns: repeat(3, 1fr); }
  .tier { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .outputs { grid-template-columns: 1fr; }
  .contact__works .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .network__logos { grid-template-columns: repeat(2, 1fr); }
}

/* Feature cards (compliance etc.) */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.8vw, 24px); }
.feature {
  background: #fff;
  border: 1px solid var(--card-border);
  padding: clamp(26px, 2.6vw, 36px);
}
.feature__title { font-weight: 700; font-size: 1.05rem; letter-spacing: 0.04em; position: relative; padding-left: 16px; }
.feature__title::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 3px; height: 1.1em; background: var(--ink-strong); }
.feature__text { margin-top: 16px; font-size: 0.9rem; line-height: 1.95; color: var(--ink-soft); letter-spacing: 0.02em; }
.section--soft .feature { background: var(--panel); }
/* dd bullet lists in about table */
.about__row dd ul { display: flex; flex-direction: column; gap: 6px; }
.about__row dd li { position: relative; padding-left: 15px; }
.about__row dd li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-strong); }
.about__row dd .loc-head { font-weight: 500; color: var(--ink); display: block; margin-bottom: 2px; }
.about__row dd .loc-block + .loc-block { margin-top: 12px; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }

/* Value-prop step pills */
.step__tags { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.step__tags li {
  font-size: 0.78rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  background: var(--panel);
  border: 1px solid var(--card-border);
  border-radius: 2px;
  padding: 8px 12px;
}
.steps--value .step { display: flex; flex-direction: column; }
/* Phase cards */
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 26px); margin-top: clamp(36px, 4.5vw, 60px); }
.phase { background: var(--panel); border: 1px solid var(--card-border); padding: clamp(26px, 2.6vw, 38px); text-align: center; }
.phase__no { font-family: var(--font-en); font-size: 1.6rem; color: var(--ink-strong); letter-spacing: 0.04em; }
.phase__title { margin-top: 10px; font-weight: 700; font-size: 1.05rem; letter-spacing: 0.04em; }
.phase__text { margin-top: 14px; font-size: 0.86rem; line-height: 1.9; color: var(--ink-soft); }
.band-line { text-align: center; font-weight: 500; font-size: clamp(1.05rem, 1.7vw, 1.4rem); letter-spacing: 0.05em; line-height: 1.8; }
@media (max-width: 980px) { .phases { grid-template-columns: 1fr; } }

/* Figma提供の作り込みダイアグラムを額装表示（VALUE PROPOSITION / METHOD） */
.diagram {
  margin: 0 auto;
  max-width: 1040px;
  background: #fff;
  border: 1px solid var(--card-border);
  padding: clamp(16px, 2.4vw, 32px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.diagram img { display: block; width: 100%; height: auto; margin: 0 auto; }
/* 密度の高い図はSPで横スクロールさせて可読性を確保 */
@media (max-width: 768px) {
  .diagram { padding: 12px; }
  .diagram img { min-width: 640px; }
}

/* =========================================================
   Value map（Step1-4 プロセス図）— トンマナ準拠でHTML再構築
   ========================================================= */
.vmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.4vw, 18px); }
.vmap__col { display: flex; flex-direction: column; }
.vmap__step {
  background: var(--vm-bg);
  color: var(--vm-fg);
  padding: 16px 26px 16px 18px;
  min-height: 78px;
  display: flex; flex-direction: column; justify-content: center;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
}
.vmap__col:nth-child(1) { --vm-bg: #cfcdc8; --vm-fg: #121212; }
.vmap__col:nth-child(2) { --vm-bg: #8d8b86; --vm-fg: #ffffff; }
.vmap__col:nth-child(3) { --vm-bg: #4a4946; --vm-fg: #ffffff; }
.vmap__col:nth-child(4) { --vm-bg: #121212; --vm-fg: #ffffff; }
.vmap__en { font-family: var(--font-en); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; opacity: 0.85; }
.vmap__phase { font-size: 1.05rem; font-weight: 700; letter-spacing: 0.04em; margin-top: 5px; }
.vmap__q { margin: 16px 4px 0; min-height: 3.4em; font-size: 0.8rem; line-height: 1.7; letter-spacing: 0.02em; color: var(--ink-soft); }
.vmap__tags { margin-top: 14px; padding-top: 16px; border-top: 1px dashed var(--card-border); display: flex; flex-direction: column; gap: 8px; }
.vmap__tags li {
  background: var(--panel);
  border: 1px solid var(--card-border);
  border-radius: 0;
  padding: 9px 16px;
  font-size: 0.76rem;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--ink-strong);
}

/* =========================================================
   DD flow（Phase01-03 投資判断）— トンマナ準拠でHTML再構築
   ========================================================= */
.ddflow { position: relative; }
.ddflow__track { display: grid; grid-template-columns: repeat(3, 1fr); position: relative; margin-bottom: 22px; }
.ddflow__track::before {
  content: ""; position: absolute; top: 30px; left: 16.6%; right: 16.6%;
  border-top: 1px dashed var(--ink-mute); z-index: 0;
}
.ddflow__node {
  position: relative; z-index: 1; justify-self: center;
  width: 60px; height: 60px; background: var(--ink-strong); color: #fff;
  transform: rotate(45deg); display: grid; place-items: center;
}
.ddflow__node-in { transform: rotate(-45deg); display: flex; flex-direction: column; align-items: center; gap: 3px; line-height: 1; }
.ddflow__node-in i { font-style: normal; font-family: var(--font-en); font-size: 0.52rem; letter-spacing: 0.08em; opacity: 0.82; }
.ddflow__node-in b { font-family: var(--font-en); font-size: 1.15rem; font-weight: 600; }
.ddflow__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.ddcard { background: var(--panel); border: 1px solid var(--card-border); padding: clamp(20px, 1.9vw, 26px); display: flex; flex-direction: column; }
.ddcard__title { font-size: 0.98rem; font-weight: 700; letter-spacing: 0.03em; color: var(--ink-strong); text-align: center; padding-bottom: 14px; border-bottom: 1px solid var(--hair); }
.ddcard__needs { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.ddcard__needs li { position: relative; padding-left: 16px; font-size: 0.8rem; line-height: 1.8; letter-spacing: 0.01em; color: var(--ink-soft); }
.ddcard__needs li::before { content: "›"; position: absolute; left: 2px; top: -0.05em; color: var(--ink-mute); font-weight: 700; }
.ddcard__highlight {
  margin-top: 18px; text-align: center;
  font-size: 0.9rem; font-weight: 700; letter-spacing: 0.03em; color: var(--ink-strong);
  background: rgba(22, 51, 187, 0.06);
  border: 1px solid var(--accent-soft);
  padding: 13px 10px;
}
.ddcard__support { margin-top: auto; padding-top: 16px; }
.ddcard__support-label {
  display: inline-block; margin-bottom: 8px;
  font-size: 0.68rem; letter-spacing: 0.12em; font-weight: 700;
  color: #fff; background: var(--ink-strong); padding: 4px 12px;
}
.ddcard__support p { font-size: 0.78rem; line-height: 1.85; letter-spacing: 0.01em; color: var(--ink-soft); }

@media (max-width: 900px) {
  .vmap { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .vmap__q { min-height: 0; }
  .ddflow__track { display: none; }
  .ddflow__cards { grid-template-columns: 1fr; gap: 16px; }
  .ddcard__title { text-align: left; }
  .ddcard__highlight { text-align: left; }
}
@media (max-width: 480px) {
  .vmap { grid-template-columns: 1fr; }
}

/* =========================================================
   Method funnel — Codex生成のファネル図にHTMLで文字を重ねる
   ========================================================= */
.funnel { max-width: 1040px; margin: 0 auto; background: transparent; border: none; padding: 0; }
.funnel img { width: 100%; display: block; }
.funnel__stage { position: relative; container-type: inline-size; }
.funnel__img { width: 100%; display: block; }
.funnel img.funnel__img--sp { display: none; }
.funnel__tier, .funnel__layer, .funnel__pdca, .funnel__def { position: absolute; margin: 0; }
/* ファネル帯の3ラベル（中心 x≈25.8%） */
.funnel__tier { left: 18.7%; transform: translate(-50%, -50%); text-align: center; font-weight: 700; letter-spacing: 0.06em; line-height: 1.25; white-space: nowrap; }
.funnel__tier--1 { top: 28%; color: #2a2a2a; font-size: 2.8cqw; }
.funnel__tier--2 { top: 46%; color: #ffffff; font-size: 2.6cqw; }
.funnel__tier--3 { top: 63%; color: #ffffff; font-size: 2.1cqw; }
/* 定義テキスト（ファネルと層の間の余白に配置・各帯の高さに合わせる） */
.funnel__def { left: 33%; width: 19%; transform: translateY(-50%); font-size: 1.45cqw; line-height: 1.5; letter-spacing: 0.01em; color: var(--ink-soft); }
.funnel__def b { color: var(--ink-strong); font-weight: 700; }
.funnel__def span { display: block; color: var(--ink-mute); }
.funnel__def--1 { top: 28%; }
.funnel__def--2 { top: 46%; }
.funnel__def--3 { top: 63%; }
/* 層ラベル（右側プレーンの上） */
.funnel__layer { left: 75%; transform: translate(-50%, -50%); text-align: center; font-weight: 700; font-size: 1.8cqw; letter-spacing: 0.04em; color: var(--ink-strong); white-space: nowrap; }
.funnel__layer--1 { top: 22%; }
.funnel__layer--2 { top: 41%; }
.funnel__layer--3 { top: 62%; }
.funnel__pdca { right: 1%; top: 47%; transform: translateY(-50%); font-family: var(--font-en); font-weight: 600; font-size: 1.8cqw; letter-spacing: 0.06em; color: var(--ink-strong); }

@media (max-width: 760px) {
  /* SPは文字が潰れるため、図を上・テキスト凡例を下の素直な構成に切替 */
  .funnel { padding: 0; border: none; background: transparent; }
  .funnel__stage img.funnel__img--pc { display: none; }
  .funnel__stage img.funnel__img--sp { display: block; }
  .funnel__tier { white-space: nowrap; }
  .funnel__def { font-size: 1.6cqw; }
}

/* =========================================================
   Network — ダーク世界地図＋地域ノード（Codex地図ベース＋HTML文字）
   ========================================================= */
.netmap { position: relative; max-width: 1000px; margin: 0 auto; container-type: inline-size; }
.netmap__img { width: 100%; display: block; }
.netmap__node { position: absolute; transform: translate(-50%, -50%); text-align: center; white-space: nowrap; pointer-events: none; }
.netmap__node::before {
  content: ""; display: block; width: 9px; height: 9px; margin: 0 auto 6px;
  border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 5px rgba(22, 51, 187, 0.16);
}
.netmap__node b { display: block; font-family: var(--font-en); font-weight: 600; font-size: clamp(0.62rem, 1vw, 0.82rem); letter-spacing: 0.04em; color: #fff; line-height: 1.2; }
.netmap__node i { font-style: normal; font-family: var(--font-en); font-weight: 500; font-size: clamp(0.56rem, 0.9vw, 0.72rem); letter-spacing: 0.02em; color: var(--ink-soft); }
.netmap__reach { text-align: center; margin-top: clamp(24px, 3.5vw, 40px); font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 500; letter-spacing: 0.05em; color: #fff; }
.netmap__reach b { font-family: var(--font-en); font-size: 1.35em; font-weight: 600; color: #fff; margin: 0 0.1em; }

.netcols { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(24px, 4vw, 56px); margin-top: clamp(48px, 6vw, 80px); }
.netcol__h { font-size: 1.05rem; font-weight: 700; letter-spacing: 0.05em; color: var(--ink); padding-bottom: 14px; border-bottom: 1px solid var(--hair); margin-bottom: 18px; }
.netcol__list { display: flex; flex-direction: column; gap: 12px; }
.netcol__list li { position: relative; padding-left: 18px; font-size: 0.9rem; line-height: 1.7; color: var(--ink-soft); }
.netcol__list li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.netcol__lead { font-size: 0.9rem; line-height: 1.9; color: var(--ink-soft); margin-bottom: 18px; }
.netcov { display: flex; flex-direction: column; gap: 16px; }
.netcov__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.netcov__region { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; color: #121212; background: #fff; padding: 6px 12px; margin-right: 4px; }
.netcov__row > span:not(.netcov__region) { font-size: 0.78rem; letter-spacing: 0.02em; color: var(--ink-soft); border: 1px solid var(--card-border); padding: 6px 11px; }

/* リサーチャーネットワーク・調査実績（net1の詳細データ） */
.net-h { font-size: 1.05rem; font-weight: 700; letter-spacing: 0.05em; color: var(--ink); padding-bottom: 14px; border-bottom: 1px solid var(--hair); margin: 0 0 22px; }

/* リサーチャー網：全幅地図＋下部ピン（地図を大きく、地域ラベルを大きく） */
.rmap { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: start; column-gap: clamp(24px, 4vw, 64px); row-gap: clamp(28px, 4vw, 48px); }
.rmap__svg { display: none; }
.rmap__line { fill: none; stroke: rgba(255, 255, 255, 0.28); stroke-width: 1; }
.rcol, .rmap__center { position: relative; z-index: 2; }
/* 地図上の地域アンカー（円＋ラベル） */
.ranchor { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 8px; white-space: nowrap; pointer-events: none; }
.ranchor--right { flex-direction: row-reverse; }
.ranchor__dot { width: 32px; height: 32px; border-radius: 50%; background: rgba(94, 123, 240, 0.14); border: 1px solid rgba(94, 123, 240, 0.5); flex: 0 0 auto; position: relative; }
.ranchor__dot::after { content: ""; position: absolute; inset: 0; margin: auto; width: 7px; height: 7px; border-radius: 50%; background: #5e7bf0; }
.ranchor__dot--lg { width: 50px; height: 50px; }
.ranchor__label { font-family: var(--font-en); font-size: clamp(0.85rem, 1.2vw, 1.1rem); font-weight: 600; letter-spacing: 0.03em; color: #fff; }
.rcol { display: flex; flex-direction: column; gap: clamp(20px, 2.4vw, 32px); }
.rmap__center { margin: 0; grid-column: 1 / -1; order: -1; }
.rmap__center img { width: 100%; display: block; }
.rmap-img { position: relative; width: 100%; max-width: 100%; margin: 0 auto; }
.rmap-img img { width: 100%; display: block; }
.rmap-img img.rmap-img__sp { display: none; }
.rpins__label { display: block; font-family: var(--font-en); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.05em; color: #fff; padding-bottom: 7px; border-bottom: 1px solid var(--accent-soft); margin-bottom: 10px; }
.rpins__list { display: flex; flex-direction: column; }
.rpins__list li { display: flex; align-items: center; gap: 7px; padding: 5px 0; font-size: 0.78rem; line-height: 1.4; }
.rpin__ico { color: #5e7bf0; font-size: 15px; flex: 0 0 auto; }
.rpin__c { color: var(--ink-soft); letter-spacing: 0.01em; }
.rpin__n { font-family: var(--font-en); font-size: 0.72rem; letter-spacing: 0.01em; color: var(--ink-mute); white-space: nowrap; }
/* 地図下のピンは両列とも左寄せ・アイコン先頭で統一 */
.rcol--left { text-align: left; }
.rcol--left .rpins__list li { justify-content: flex-start; }
.rcol--left .rpin__ico { order: -1; }
.rcol--left .rpin__n { order: 0; }
.rcol--left .rpin__c { order: 0; }
.rcol--right .rpins__list li { justify-content: flex-start; }

.researchers { margin-top: clamp(48px, 6vw, 80px); }
.researchers__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 2.6vw, 40px); }
.rgroup__region { display: inline-block; font-family: var(--font-en); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; color: #fff; padding-bottom: 8px; border-bottom: 1px solid var(--accent-soft); margin-bottom: 14px; }
.rgroup__list { display: flex; flex-direction: column; gap: 0; }
.rgroup__list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; font-size: 0.84rem; border-bottom: 1px dotted var(--hair); }
.rgroup__list span { color: var(--ink-soft); letter-spacing: 0.02em; }
.rgroup__list i { font-style: normal; font-family: var(--font-en); font-size: 0.78rem; letter-spacing: 0.02em; color: var(--ink-mute); white-space: nowrap; }

.record { margin-top: clamp(48px, 6vw, 80px); }
.record__top { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 10px 18px; padding-bottom: 14px; border-bottom: 1px solid var(--hair); margin-bottom: 6px; }
.record__top .net-h { border: 0; padding: 0; margin: 0; }
.record__legend { font-size: 0.72rem; letter-spacing: 0.03em; color: var(--ink-mute); display: inline-flex; align-items: center; gap: 5px; }
.record__legend .mk { margin-left: 12px; }
.record__region { display: grid; grid-template-columns: 130px 1fr; gap: 14px 18px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--hair); }
.record__rname { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; color: #fff; padding-top: 7px; }
.record__list { display: flex; flex-wrap: wrap; gap: 8px; }
.record__list li { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--card-border); padding: 6px 12px; font-size: 0.78rem; letter-spacing: 0.02em; color: var(--ink-soft); }
.mk { font-family: var(--font-en); font-weight: 700; font-size: 0.86rem; line-height: 1; color: rgba(255, 255, 255, 0.78); }
.mk--x { color: #ffffff; }
.mk--t { color: rgba(255, 255, 255, 0.38); }

.netrecruit { margin-top: clamp(40px, 5vw, 72px); }
.netcol__list--row { flex-direction: row; flex-wrap: wrap; gap: 10px 28px; }
.netcol__list--row li { padding-left: 18px; }

/* 調査実績・リクルーティング手法のテキストは白で統一 */
.record__legend,
.record__list li,
.netrecruit .netcol__list li { color: #fff; }
.record .mk { color: #fff; }

.netpartners { margin-top: clamp(40px, 5vw, 64px); background: #fff; border: 1px solid var(--card-border); padding: clamp(20px, 2.6vw, 34px); }
.netpartners__label { display: block; font-size: 1.05rem; font-weight: 700; letter-spacing: 0.05em; color: #121212; padding-bottom: 14px; border-bottom: 1px solid rgba(0, 0, 0, 0.1); margin-bottom: clamp(18px, 2.4vw, 28px); }
.netpartners__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 30px) clamp(20px, 3vw, 44px); align-items: center; }
.netpartners__grid li { display: flex; align-items: center; justify-content: center; min-width: 0; }
.netpartners__grid img { width: auto; max-width: 100%; height: auto; max-height: 38px; object-fit: contain; }
.netpartners__grid img.is-mono { filter: brightness(0); }
/* ロゴ個別のサイズ調整（マーク形状で小さく見えるものを補正） */
.netpartners__grid img[alt="EXPERT CONNECT Asia"] { max-height: 70px; }
.netpartners__grid img[alt="BCC.Global"] { max-height: 53px; }
.netpartners__grid img[alt="Astute Connect"] { max-height: 53px; }

@media (max-width: 900px) {
  .researchers__grid { grid-template-columns: repeat(2, 1fr); }
  /* SPは地図→ピン群（2カラム）で縦積み。地図上のラベルは小さくなるため非表示 */
  .rmap { grid-template-columns: 1fr; gap: 28px; }
  .ranchor { display: none; }
  .rcol { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 760px) {
  .netcols { grid-template-columns: 1fr; gap: 32px; }
  .netmap__node b { font-size: 2.2cqw; }
  .netmap__node i { font-size: 2cqw; }
  .netmap__node::before { width: 6px; height: 6px; box-shadow: 0 0 0 3px rgba(22,51,187,0.16); margin-bottom: 3px; }
  .netpartners__grid { grid-template-columns: repeat(2, 1fr); gap: 22px 24px; }
  .researchers__grid { grid-template-columns: 1fr; gap: 28px; }
  .record__region { grid-template-columns: 1fr; gap: 10px; }
  .record__rname { padding-top: 0; }
}

/* =========================================================
   Utility pages — 404 / Thanks
   罫線ベースのエディトリアル基調（サイト全体の radius:0 / 黒タグボタンに合わせる）
   ========================================================= */

/* 遷移先リスト（404）— カードではなく hairline 行で構成 */
.linklist {
  max-width: 860px;
  margin: clamp(48px, 6vw, 80px) auto 0;
  border-top: 1px solid var(--hair);
}
.linklist__item { border-bottom: 1px solid var(--hair); }
.linklist__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
  padding: clamp(20px, 2.6vw, 30px) 4px;
  color: var(--ink);
  transition: color 0.4s var(--ease);
}
/* ホバー時に下罫線が左から引かれる（.btn の trailing line と同じ語彙） */
.linklist__link::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--ink-strong);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.linklist__link:hover { color: var(--ink-strong); }
.linklist__link:hover::before { transform: scaleX(1); }
.linklist__no {
  flex: 0 0 auto;
  font-family: var(--font-en);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
}
.linklist__body { flex: 1 1 auto; min-width: 0; }
.linklist__title {
  display: block;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.6;
}
.linklist__desc {
  display: block;
  margin-top: 6px;
  font-size: 0.84rem;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.linklist__arrow {
  flex: 0 0 auto;
  width: 30px;
  height: 1px;
  background: currentColor;
  transition: transform 0.4s var(--ease);
}
.linklist__link:hover .linklist__arrow { transform: translateX(8px); }

/* 完了メッセージ（サンクス） */
.thanks { text-align: center; }
.thanks__mark {
  width: 64px;
  height: 64px;
  margin: 0 auto clamp(28px, 3.4vw, 40px);
  border: 1px solid var(--ink-strong);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thanks__mark svg { width: 24px; height: 24px; }
.thanks__note {
  max-width: 820px;
  margin: clamp(48px, 6vw, 72px) auto 0;
  padding: clamp(22px, 2.6vw, 30px) clamp(20px, 2.6vw, 32px);
  background: var(--panel);
  border-left: 2px solid var(--accent);
  text-align: left;
}
.thanks__note-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.thanks__note-text {
  margin-top: 10px;
  font-size: 0.86rem;
  line-height: 1.95;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.thanks__note-text a { text-decoration: underline; text-underline-offset: 3px; }

/* 2つ以上のボタンを並べるときのアクション行 */
.sec-actions--multi { gap: 16px; flex-wrap: wrap; }

@media (max-width: 560px) {
  .linklist__link { gap: 14px; padding: 18px 2px; }
  .linklist__no { display: none; }
  .linklist__arrow { width: 20px; }
  .sec-actions--multi .btn { max-width: 360px; }
}

/* =========================================================
   お問合せページ — フォーム集中モード（distraction-free）
   グローバルナビと重複CTAを外してフォームに集中させる。
   ページヒーローは他の下層ページと同じサイズのまま維持する。
   ロゴだけは残す（現在地の確認と離脱の逃げ道として必要）。
   ========================================================= */
.page-template-page-contact .nav,
.page-template-page-contact .nav__toggle { display: none; }

/* ナビが無くなるぶんロゴを左端に寄せる */
.page-template-page-contact .header__inner { justify-content: flex-start; }

/* 本文セクションの上下余白は詰めてフォームを早く見せる */
.page-template-page-contact .section {
  padding: clamp(44px, 5.5vw, 84px) 0;
}

/* フッターの「お問合せ・資料請求」CTAはこのページでは重複するため非表示 */
.page-template-page-contact .footer__cta { display: none; }
.page-template-page-contact .footer__grid { grid-template-columns: 1fr; }
.page-template-page-contact .footer { padding-top: clamp(48px, 6vw, 80px); }

/* SP では1カラムに畳まれるため「リード文 → フォーム → 実績ロゴ」に組み替える。
   .contact__lead と .contact__works は .contact__info の子なので、
   display:contents で親を透過させて直接並べ替える。 */
@media (max-width: 980px) {
  /* 元の .contact__grid は align-items:start。flex 化すると横方向の指定になり
     フォームが内容幅まで縮むため、stretch に戻す。 */
  .page-template-page-contact .contact__grid { display: flex; flex-direction: column; align-items: stretch; }
  .page-template-page-contact .contact__info { display: contents; }
  .page-template-page-contact .contact__lead { order: 1; margin-bottom: clamp(28px, 4vw, 36px); }
  .page-template-page-contact .form { order: 2; }
  .page-template-page-contact .contact__works { order: 3; margin-top: clamp(44px, 6vw, 60px); }
}

/* =========================================================
   Contact Form 7 — テーマの .form スタイルへの馴染ませ
   （入力欄・ラベルは .form__row のスタイルをそのまま継承）
   ========================================================= */
.form--plugin .wpcf7-form-control-wrap { display: block; }
.form--plugin p { margin: 0; }

/* 同意チェック行: チェックボックスとラベルを横並び・左寄せに */
.form__row--privacy { flex-direction: row; align-items: center; }
.form__row--privacy p { width: 100%; }
.form--plugin .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.form--plugin .wpcf7-acceptance label {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.form--plugin .wpcf7-acceptance input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--ink-strong);
  flex: 0 0 auto;
  cursor: pointer;
}
.form--plugin .wpcf7-list-item-label a { text-decoration: underline; text-underline-offset: 2px; }

/* バリデーションエラー（送信ボタン非活性ではなく文言で通知） */
.form--plugin .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  color: #c0392b;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}
.form--plugin .wpcf7-form-control.wpcf7-not-valid { border-color: #c0392b; }

/* 送信結果メッセージ。CF7 6.x は状態クラスを form 側に付けるため、
   .wpcf7-form.invalid / .failed / .sent で色分けする（既定のオレンジ枠を上書き）。 */
.form--plugin .wpcf7-response-output {
  margin: 22px 0 0;
  padding: 14px 18px;
  font-size: 0.88rem;
  line-height: 1.7;
  letter-spacing: 0.03em;
  border: 1px solid var(--card-border);
}
.wpcf7-form.invalid .form--plugin .wpcf7-response-output,
.wpcf7-form.unaccepted .form--plugin .wpcf7-response-output,
.wpcf7-form.failed .form--plugin .wpcf7-response-output,
.form--plugin .wpcf7-form.invalid .wpcf7-response-output,
.form--plugin .wpcf7-form.unaccepted .wpcf7-response-output,
.form--plugin .wpcf7-form.failed .wpcf7-response-output { border-color: #c0392b; color: #c0392b; }
.form--plugin .wpcf7-form.sent .wpcf7-response-output { border-color: #1e7e34; color: #1e7e34; }

/* 送信ボタンは input 要素のため .btn の擬似要素（右端の線・スライド面）が付かない。
   代わりに hover で最終色（#333）へ transition させ、押せることを伝える。
   同意文はボタンの下に置く（.form__actions は縦積みのまま）。 */
.form__actions { position: relative; }
.form--plugin .wpcf7-submit.btn { justify-content: center; text-align: center; cursor: pointer; transition: background 0.4s var(--ease); }
.form--plugin .wpcf7-submit.btn:hover { background: #333; }
.form--plugin .wpcf7-submit.btn::after { content: none; }

/* 送信をもって同意の一文 */
.form__consent {
  margin-top: 16px;
  font-size: 0.82rem;
  line-height: 1.8;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}
.form__consent a { text-decoration: underline; text-underline-offset: 2px; }

/* 送信中スピナー */
.form--plugin .wpcf7-spinner { margin: 14px auto 0; display: block; }
