:root {
  --color-bg: #fbfaf6;
  --color-surface: #ffffff;
  --color-text: #202832;
  --color-muted: #6f7b86;
  --color-primary: #486982;
  --color-primary-dark: #263f53;
  --color-blue: #b9d7e5;
  --color-blue-soft: #e9f3f6;
  --color-yellow: #f2df9a;
  --color-green: #c8e1d1;
  --color-coral: #edc5bd;
  --color-line: #e2dfd7;
  --shadow-soft: 0 30px 80px rgba(49, 65, 80, 0.10);
  --shadow-card: 0 18px 48px rgba(49, 65, 80, 0.07);
  --radius-xl: 42px;
  --radius-lg: 30px;
  --max-width: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* iOS Safari/Chrome 等で body のみだと不十分なケースに備えて html にも。
     hidden だと暗黙的に overflow-y: auto 扱いになり scroll container 化して
     子の position: sticky を破壊するため、clip を使う（横スクロール抑止は同じ）。 */
  overflow-x: clip;
}

body {
  position: relative;
  margin: 0;
  /* ヘッダーは position: fixed で常時追従。元 sticky 時の占有領域分を padding で確保 */
  padding-top: 108px;
  background:
    radial-gradient(circle at 0% 4%, rgba(185, 215, 229, 0.36), transparent 28%),
    radial-gradient(circle at 100% 10%, rgba(242, 223, 154, 0.30), transparent 24%),
    linear-gradient(180deg, #fbfaf6 0%, #f8f7f1 100%);
  color: var(--color-text);
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.8;
  /* v3 修正: モバイルで h2 white-space: nowrap などが横スクロールを引き起こさないように。
     hidden は scroll container 化で子の position: sticky を壊すため、clip を使う。 */
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(72, 105, 130, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(72, 105, 130, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
  mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
}

.ambient-lines {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.ambient-lines::before,
.ambient-lines::after {
  content: "";
  position: absolute;
  width: 36vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(72, 105, 130, 0.18), transparent);
  animation: ambientSlide 18s linear infinite;
}

.ambient-lines::before {
  top: 26vh;
  left: -40vw;
}

.ambient-lines::after {
  top: 72vh;
  left: -50vw;
  animation-delay: -8s;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  /* viewport 基準の追従。sticky だと祖先の overflow-x: hidden や grid stacking で
     稀に固定が外れるため、PC/スマホとも確実な fixed で固定する。
     body { padding-top: 108px } でヘッダー領域分の余白を別途確保している。 */
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(226, 223, 215, 0.86);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 48px rgba(49, 65, 80, 0.05);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: "Outfit", sans-serif;
  font-size: 20px;
  font-weight: 700;
}

/* v3 ロゴ：assets/img/logo.png は 354x100 の横長（ピース絵+Kiece 文字を含む） */
.logo-mark {
  display: block;
  width: auto;
  height: 32px;
  object-fit: contain;
  object-position: left center;
}

/* フッター版は少し大きく */
.logo-mark--footer {
  height: 44px;
}

.global-nav {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(226, 223, 215, 0.66);
  border-radius: 999px;
  background: rgba(251, 250, 246, 0.62);
  color: var(--color-muted);
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.global-nav a {
  padding: 7px 13px;
  border-radius: 999px;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.global-nav a:hover {
  background: #ffffff;
  color: var(--color-primary-dark);
}

/* v3: ハンバーガーボタン（PC 非表示、モバイルで出現） */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  border: 1px solid rgba(72, 105, 130, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  z-index: 102;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--color-primary-dark);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out, ease), opacity 0.3s var(--ease-out, ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 980px) {
  /* ハンバーガー表示（base は display: none、specificity 同じで後勝ち） */
  .nav-toggle { display: flex; }

  /* モバイル時は .site-header の backdrop-filter を解除。
     backdrop-filter があると containing block が site-header に閉じ込められて
     position: fixed の .global-nav が bottom: 0 まで広がらない（背景が途中で切れる）。 */
  .site-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  /* モバイル：ナビをオーバーレイメニュー化
     selector に .site-header を含めて specificity を上げる（base .global-nav より勝つ） */
  .site-header .global-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(82%, 320px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    padding: 88px 28px 32px;
    border: none;
    border-left: 1px solid rgba(72, 105, 130, 0.12);
    border-radius: 0;
    background: #ffffff;
    box-shadow: -12px 0 40px rgba(49, 65, 80, 0.14);
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.35s var(--ease-out, ease),
      opacity 0.25s var(--ease-out, ease),
      visibility 0s linear 0.35s;
    z-index: 101;
  }
  .site-header .global-nav.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
      transform 0.35s var(--ease-out, ease),
      opacity 0.25s var(--ease-out, ease),
      visibility 0s linear 0s;
  }
  .site-header .global-nav a {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 15px;
  }

  body.nav-open {
    overflow: hidden;
  }
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, 0.92fr);
  gap: 58px;
  align-items: center;
  width: min(100% - 40px, var(--max-width));
  /* 100vh は iOS Safari で URL バー分だけはみ出すため、対応ブラウザでは svh で抑える */
  min-height: calc(100vh - 108px);
  min-height: calc(100svh - 108px);
  margin: 0 auto;
  padding: 78px 0 116px;
}

.eyebrow,
.section-label {
  margin: 0 0 16px;
  color: var(--color-primary);
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* v3 修正：font-size を下げて「あなたの理想を、」を1行で収める。
   元 clamp(50px, 8vw, 98px) → grid の左カラム幅で改行が割れていたため縮小 */
.hero h1 {
  margin: 0;
  font-size: clamp(38px, 5.6vw, 72px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.055em;
}

.hero-text {
  max-width: 640px;
  margin: 30px 0 0;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 2.08;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 25px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--color-primary-dark);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(38, 63, 83, 0.25);
}

.button.secondary {
  border: 1px solid rgba(226, 223, 215, 0.96);
  background: rgba(255, 255, 255, 0.70);
  color: var(--color-primary-dark);
}

.hero-visual {
  position: relative;
  min-height: 540px;
  border: 1px solid rgba(226, 223, 215, 0.82);
  border-radius: 44px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(233, 243, 246, 0.70)),
    radial-gradient(circle at 80% 18%, rgba(242, 223, 154, 0.26), transparent 24%);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.blueprint-grid {
  position: absolute;
  inset: 34px;
  border: 1px solid rgba(72, 105, 130, 0.13);
  border-radius: 30px;
  background-image:
    linear-gradient(rgba(72, 105, 130, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(72, 105, 130, 0.07) 1px, transparent 1px);
  background-size: 38px 38px;
  animation: gridDrift 22s linear infinite;
}

.flow-map {
  position: absolute;
  inset: 46px;
  z-index: 2;
  width: calc(100% - 92px);
  height: calc(100% - 92px);
  overflow: visible;
}

.flow-line {
  fill: none;
  stroke: rgba(72, 105, 130, 0.38);
  stroke-linecap: round;
}

.main-flow {
  stroke-width: 2;
  stroke-dasharray: 10 12;
  animation: dashMove 18s linear infinite;
}

.sub-flow {
  stroke-width: 1.4;
  stroke-dasharray: 4 10;
  animation: dashMove 12s linear infinite reverse;
}

.flow-dot {
  fill: var(--color-primary);
  offset-path: path("M92 128 H244 C276 128 286 184 318 184 H462 V314 H334 C300 314 288 386 252 386 H94");
  animation: dotMove 9s ease-in-out infinite;
}

.dot-b {
  fill: var(--color-yellow);
  animation-delay: -4.5s;
}

.process-node {
  position: absolute;
  z-index: 4;
  display: grid;
  gap: 2px;
  width: 144px;
  padding: 16px;
  border: 1px solid rgba(226, 223, 215, 0.88);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 20px 48px rgba(49, 65, 80, 0.10);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  animation: floatNode 7s ease-in-out infinite;
}

.process-node span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 24px;
  margin-bottom: 6px;
  border-radius: 999px;
  background: var(--color-blue-soft);
  color: var(--color-primary);
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.process-node strong {
  color: var(--color-primary-dark);
  font-family: "Outfit", sans-serif;
  font-size: 21px;
  line-height: 1.2;
}

.process-node small {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
}

.node-01 {
  top: 76px;
  left: 58px;
  animation-delay: 0s;
}

.node-02 {
  /* v3 修正: node-01 と同じ高さは上げすぎだったので少し下に */
  top: 108px;
  right: 38px;
  animation-delay: -1.5s;
}

.node-03 {
  right: 72px;
  bottom: 92px;
  animation-delay: -3s;
}

.node-04 {
  left: 62px;
  bottom: 100px;
  animation-delay: -4.5s;
}

.center-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  width: 210px;
  padding: 28px;
  border: 1px solid rgba(72, 105, 130, 0.16);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: 0 26px 70px rgba(49, 65, 80, 0.12);
  transform: translate(-50%, -50%);
  animation: panelBreath 8s ease-in-out infinite;
}

.center-panel p {
  margin: 0 0 5px;
  color: var(--color-muted);
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.center-panel strong {
  color: var(--color-primary-dark);
  font-family: "Outfit", sans-serif;
  font-size: 18px;
  line-height: 1.35;
}

.mini-panel {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(226, 223, 215, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.50);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.panel-a {
  top: 70px;
  right: 180px;
  width: 86px;
}

.panel-a span {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: rgba(72, 105, 130, 0.22);
}

.panel-a span:nth-child(2) {
  width: 70%;
}

.panel-a span:nth-child(3) {
  width: 48%;
}

.panel-b {
  left: 188px;
  bottom: 72px;
  grid-template-columns: repeat(3, 1fr);
  width: 86px;
}

.panel-b i {
  display: block;
  height: 22px;
  border-radius: 8px;
  background: rgba(72, 105, 130, 0.16);
}

.panel-b i:nth-child(2) {
  background: rgba(242, 223, 154, 0.72);
}

.panel-b i:nth-child(3) {
  background: rgba(200, 225, 209, 0.72);
}

.section {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
  padding: 112px 0;
}

.section-soft {
  position: relative;
}

/* v3-① 背景の面設計（2026-06-03）：インセットカードを廃止、フルブリード帯。
   セクション境界を「面」で明確に区切る。上下に細い罫線で輪郭を1pxで定義。 */
.section-soft::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  background: var(--color-blue-soft);
  border-top: 1px solid rgba(72, 105, 130, 0.08);
  border-bottom: 1px solid rgba(72, 105, 130, 0.08);
  transform: translateX(-50%);
  pointer-events: none;
}

/* Flow は微妙にトーン違い：薄ブルー + 極わずかにグリーンを混ぜて区別 */
.flow-section.section-soft::before {
  background:
    linear-gradient(180deg, var(--color-blue-soft) 0%, rgba(219, 235, 240, 0.92) 100%);
}

.section-layout {
  display: grid;
  /* v3 微調整：左カラム（見出し）に十分な幅を確保して font-size を下げずに改行を綺麗に */
  grid-template-columns: 0.85fr 1fr;
  gap: 56px;
  align-items: start;
}

/* v3 section-head h2：font-size は「いい感じ」と評価された clamp(26-42px) に固定。
   改行位置は CSS 側で grid 列幅を確保して自然改行に任せる（<br> は使わない）。 */
.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.04em;
}

/* 英字単語が分断されないようにラップする要素用 */
.section-head h2 .nowrap,
.services-head h2 .nowrap,
.flow-head h2 .nowrap,
.contact h2 .nowrap {
  white-space: nowrap;
}

.services-head h2 {
  margin: 0;
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.06em;
}

.text-panel {
  position: relative;
  padding: 48px 52px;
  border: 1px solid rgba(226, 223, 215, 0.86);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-card);
}

.text-panel::before {
  content: "Kiece";
  position: absolute;
  top: -14px;
  right: 34px;
  padding: 4px 13px;
  border: 1px solid rgba(226, 223, 215, 0.80);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--color-primary);
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.text-panel p {
  margin: 0;
  color: var(--color-muted);
  font-size: 16px;
}

.text-panel p + p {
  margin-top: 18px;
}

/* Values セクション左カラム：grid item を全高に伸ばす wrapper。
   .sticky-head を grid item として直接 sticky にすると Chrome は grid item box (= content 高さ)
   内でしか sticky 計算せず動かないため、wrapper を間に挟んで sticky 計算を div 内に閉じる。 */
.sticky-col {
  align-self: stretch;
}

.sticky-head {
  position: sticky;
  top: 120px;
}

/* v3: Values 背景は廃止。section-soft のフラットな薄ブルー帯のみ。 */
.values {
  position: relative;
}

.values .section-layout {
  position: relative;
  z-index: 1;
}

.value-list {
  display: grid;
  gap: 14px;
}

/* v3 修正：値カードにアイコン追加、hover で動き、背景パターン強化 */
.value-item {
  position: relative;
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 24px;
  padding: 30px 32px;
  border: 1px solid rgba(226, 223, 215, 0.84);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 36px rgba(49, 65, 80, 0.045);
  overflow: hidden;
  transition:
    transform 0.3s var(--ease-out, ease),
    box-shadow 0.3s var(--ease-out, ease),
    border-color 0.3s var(--ease-out, ease);
}

/* 背景の薄いグリッドパターン（設計図テイスト） */
.value-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(72, 105, 130, 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(72, 105, 130, 0.038) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: -1px -1px;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out, ease);
  pointer-events: none;
}

.value-item:hover {
  transform: translateY(-6px);
  border-color: rgba(72, 105, 130, 0.28);
  box-shadow: 0 22px 50px rgba(49, 65, 80, 0.10);
}

.value-item:hover::before {
  opacity: 1;
}

/* hover 時にアイコンも反応 */
.value-item:hover .value-item__icon {
  background: var(--color-primary);
  color: #fff;
  transform: rotate(-6deg) scale(1.05);
}

.value-item__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.value-item__num {
  display: inline-block;
  color: var(--color-primary);
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.value-item__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--color-blue-soft);
  color: var(--color-primary);
  transition:
    background 0.3s var(--ease-out, ease),
    color 0.3s var(--ease-out, ease),
    transform 0.3s var(--ease-out, ease);
}

.value-item__icon svg {
  width: 28px;
  height: 28px;
}

.value-item > div:last-child {
  position: relative;
  z-index: 1;
}

.value-item h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.45;
  letter-spacing: -0.035em;
}

.value-item p {
  margin: 0;
  color: var(--color-muted);
}

.services-head {
  display: grid;
  grid-template-columns: 0.34fr 0.86fr 0.70fr;
  gap: 44px;
  align-items: end;
  margin-bottom: 42px;
}

.services-head p:last-child {
  margin: 0;
  color: var(--color-muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  position: relative;
  min-height: 390px;
  padding: 30px;
  border: 1px solid rgba(226, 223, 215, 0.88);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 58px rgba(49, 65, 80, 0.09);
}

/* v3 修正：3 カードの上部ビジュアル領域を統一（高さ・重心・余白）
   各 diagram は固定 height のコンテナ内で flex 中央寄せ → 重心が揃う */
.service-diagram {
  position: relative;
  height: 168px;            /* 3 枚で統一した高さ */
  margin: 0 auto 28px;      /* カード上部からの余白も統一 */
}

.site-diagram   { width: 210px; }
.system-diagram { width: 296px; }
.dx-diagram     { width: 244px; }

.service-diagram span,
.service-diagram i {
  position: absolute;
  display: block;
}

.site-window {
  /* v3 修正：container 168px の中で重心を中央に */
  top: 32px;
  left: 0;
  width: 210px;
  height: 106px;
  border: 1px solid rgba(72, 105, 130, 0.18);
  border-radius: 20px;
  background: rgba(233, 243, 246, 0.86);
  overflow: hidden;
}

.site-window::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 24px;
  border-bottom: 1px solid rgba(72, 105, 130, 0.12);
  background: rgba(255, 255, 255, 0.38);
}

.site-nav {
  top: 37px;
  left: 14px;
  width: 48px;
  height: 5px;
  border-radius: 999px;
  background: rgba(72, 105, 130, 0.24);
}

.site-hero {
  top: 70px;
  left: 16px;
  width: 88px;
  height: 32px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
}

.site-button {
  top: 78px;
  left: 122px;
  width: 54px;
  height: 18px;
  border-radius: 999px;
  background: rgba(185, 215, 229, 0.82);
}

.site-copy {
  left: 18px;
  height: 1px;
  background: rgba(72, 105, 130, 0.24);
}

.copy-a {
  top: 114px;
  width: 148px;
}

.copy-b {
  top: 124px;
  width: 98px;
}

.site-cursor {
  top: 116px;
  left: 188px;
  width: 18px;
  height: 18px;
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(45deg);
  animation: cursorTap 2.6s ease-in-out infinite;
}

/* v3 修正：container 168px に重心を合わせて全体を下げる */
.data-table {
  top: 46px;
  left: 0;
  width: 72px;
  height: 82px;
  border: 1px solid rgba(72, 105, 130, 0.18);
  border-radius: 16px;
  background: rgba(242, 223, 154, 0.70);
}

.data-table::before {
  content: "Data";
  position: absolute;
  top: -22px;
  left: 0;
  color: var(--color-primary);
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.data-table i {
  left: 14px;
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: rgba(72, 105, 130, 0.22);
}

.data-table i:nth-child(1) {
  top: 22px;
}

.data-table i:nth-child(2) {
  top: 38px;
}

.data-table i:nth-child(3) {
  top: 54px;
}

.app-screen {
  top: 38px;
  left: 106px;
  width: 92px;
  height: 90px;
  border: 1px solid rgba(72, 105, 130, 0.18);
  border-radius: 18px;
  background: rgba(233, 243, 246, 0.88);
}

.app-screen::before {
  content: "App";
  position: absolute;
  top: -22px;
  left: 0;
  color: var(--color-primary);
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.app-header {
  top: 14px;
  left: 14px;
  width: 40px;
  height: 8px;
  border-radius: 999px;
  background: rgba(72, 105, 130, 0.22);
}

.app-row {
  left: 14px;
  width: 76px;
  height: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.row-a {
  top: 34px;
}

.row-b {
  top: 58px;
}

.output-card {
  top: 66px;
  left: 234px;
  width: 62px;
  height: 50px;
  border: 1px solid rgba(72, 105, 130, 0.18);
  border-radius: 14px;
  background: rgba(200, 225, 209, 0.76);
}

.output-card::before {
  content: "Output";
  position: absolute;
  top: -22px;
  left: 0;
  color: var(--color-primary);
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.output-card i {
  left: 10px;
  height: 5px;
  border-radius: 999px;
  background: rgba(72, 105, 130, 0.22);
}

.output-card i:nth-child(1) {
  top: 16px;
  width: 44px;
}

.output-card i:nth-child(2) {
  top: 30px;
  width: 32px;
}

.system-connect {
  height: 1px;
  background: rgba(72, 105, 130, 0.30);
  /* v3 矢印を動かす */
  animation: connectFlow 2.8s ease-in-out infinite;
}

.connect-a {
  top: 88px;
  left: 76px;
  width: 26px;
}

.connect-b {
  top: 88px;
  left: 202px;
  width: 28px;
  animation-delay: 0.5s;
}

.system-connect::after {
  content: "";
  position: absolute;
  top: -4px;
  right: 0;
  width: 8px;
  height: 8px;
  border-top: 1px solid rgba(72, 105, 130, 0.50);
  border-right: 1px solid rgba(72, 105, 130, 0.50);
  transform: rotate(45deg);
}

/* v3 修正：dx-diagram は他2枚と高さ・重心を揃えるため少し下に + ボックスを大きく */
.before-box {
  top: 46px;
  left: 0;
  width: 86px;
  height: 86px;
  border: 1px solid rgba(72, 105, 130, 0.18);
  border-radius: 18px;
  background: rgba(237, 197, 189, 0.50);
}

.before-box::before {
  content: "Before";
  position: absolute;
  top: -24px;
  left: 0;
  color: var(--color-primary);
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.before-box i {
  left: 18px;
  width: 58px;
  height: 9px;
  border-radius: 999px;
  background: rgba(72, 105, 130, 0.20);
}

.before-box i:nth-child(1) {
  top: 28px;
}

.before-box i:nth-child(2) {
  top: 50px;
}

.improve-arrow {
  top: 86px;
  left: 100px;
  width: 44px;
  height: 1px;
  background: rgba(72, 105, 130, 0.40);
  /* v3 矢印を動かす */
  animation: connectFlow 2.6s ease-in-out infinite;
}

.improve-arrow::after {
  content: "";
  position: absolute;
  top: -5px;
  right: -1px;
  width: 10px;
  height: 10px;
  border-top: 1px solid rgba(72, 105, 130, 0.50);
  border-right: 1px solid rgba(72, 105, 130, 0.50);
  transform: rotate(45deg);
}

.after-box {
  top: 38px;
  left: 158px;
  width: 86px;
  height: 102px;
  border: 1px solid rgba(72, 105, 130, 0.22);
  border-radius: 18px;
  background: rgba(200, 225, 209, 0.82);
}

.after-box::before {
  content: "After";
  position: absolute;
  top: -24px;
  left: 0;
  color: var(--color-primary);
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  font-weight: 700;
}

/* v3 修正：+バッジ削除（落ち着いたトーンに合わせて意味のない装飾を削除） */

.after-box i {
  left: 18px;
  height: 9px;
  border-radius: 999px;
  background: var(--color-primary);
  opacity: 0.20;
  animation: afterPulse 2.4s ease-in-out infinite;
  transform-origin: left center;
}

.after-box i:nth-child(1) {
  top: 26px;
  width: 54px;
  animation-delay: 0s;
}

.after-box i:nth-child(2) {
  top: 48px;
  width: 40px;
  animation-delay: 0.3s;
}

.after-box i:nth-child(3) {
  top: 70px;
  width: 60px;
  animation-delay: 0.6s;
}

/* v3 修正：cursor は下動き、矢印は常時アニメ */
@keyframes cursorTap {
  0% {
    transform: translate(0, 0) rotate(45deg);
    opacity: 0.6;
  }
  50% {
    transform: translate(0, 8px) rotate(45deg);
    opacity: 1;
  }
  100% {
    transform: translate(0, 0) rotate(45deg);
    opacity: 0.6;
  }
}

/* v3: system-connect / improve-arrow の流れる矢印 */
@keyframes connectFlow {
  0% { opacity: 0.30; transform: translateX(-2px); }
  50% { opacity: 0.9; transform: translateX(2px); }
  100% { opacity: 0.30; transform: translateX(-2px); }
}

/* v3: after-box の lines パルス */
@keyframes afterPulse {
  0%, 100% { opacity: 0.2; transform: scaleX(0.95); }
  50% { opacity: 0.7; transform: scaleX(1.04); }
}

.service-number {
  margin: 0 0 12px;
  color: var(--color-primary);
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.service-card h3 {
  margin: 0 0 18px;
  font-size: 25px;
  line-height: 1.42;
  letter-spacing: -0.04em;
}

.service-card p:not(.service-number) {
  margin: 0;
  color: var(--color-muted);
  font-size: 15px;
}

.flow-section {
  padding-top: 96px;
}

.flow-head {
  display: grid;
  grid-template-columns: 0.34fr 0.86fr 0.70fr;
  gap: 44px;
  align-items: end;
  margin-bottom: 54px;
}

.flow-head h2 {
  margin: 0;
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.06em;
}

.flow-head p:last-child {
  margin: 0;
  color: var(--color-muted);
}

.flow-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  padding-top: 34px;
}

.timeline-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(72, 105, 130, 0.18);
  overflow: visible;
}

.timeline-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 160px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  /* position / opacity は main.js が requestAnimationFrame で制御 */
}

.timeline-dot {
  position: absolute;
  top: -5px;
  left: 0;
  width: 11px;
  height: 11px;
  border: 3px solid var(--color-bg);
  border-radius: 999px;
  background: var(--color-primary);
  box-shadow:
    0 0 0 1px rgba(72, 105, 130, 0.22),
    0 0 22px rgba(72, 105, 130, 0.28);
  opacity: 0;
  pointer-events: none;
  /* position / opacity は main.js が requestAnimationFrame で制御 */
}

/* v3 修正: .flow-step は静止ヒット領域（透明）。card の見た目は __body へ移し、
   __body のみが上に動くことで「四角ごと浮く」見た目を維持しつつ
   ::before の丸は動かず・hover 境界フリッカーも起きない */
.flow-step {
  position: relative;
  min-height: 210px;
}

.flow-step__body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 22px;
  border: 1px solid rgba(226, 223, 215, 0.84);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 14px 36px rgba(49, 65, 80, 0.045);
  transition:
    transform 0.5s cubic-bezier(0.34, 0.6, 0.3, 1),
    box-shadow 0.5s cubic-bezier(0.34, 0.6, 0.3, 1),
    border-color 0.4s cubic-bezier(0.4, 0.4, 0, 1);
}

.flow-step::before {
  content: "";
  position: absolute;
  top: -41px;
  left: 50%;
  width: 13px;
  height: 13px;
  border: 3px solid var(--color-bg);
  border-radius: 999px;
  background: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(72, 105, 130, 0.20);
  transform: translateX(-50%) scale(1);
  transition: transform 0.05s linear, box-shadow 0.05s linear;
  /* pulse は main.js が .is-pulsing クラスを付与して @keyframes stepPulseOnce を1回再生 */
}

.flow-step.is-pulsing::before {
  /* 拡大→縮小をなめらかに（ease-in-out 系のカーブ + 中間キー削除で1ストロークの曲線に） */
  animation: stepPulseOnce 1.25s cubic-bezier(0.34, 0.6, 0.3, 1);
}

/* JS 無効時のフォールバック（従来 CSS animation） */
html.no-js .timeline-glow {
  left: -160px;
  transform: none;
  opacity: 1;
  animation: timelineMove 16s linear infinite;
}
html.no-js .timeline-dot {
  opacity: 1;
  animation: timelineDotMove 16s linear infinite;
}
html.no-js .flow-step::before {
  animation: stepPulse 16s ease-in-out infinite;
  animation-delay: var(--pulse-delay);
}
html.no-js .flow-step:nth-of-type(1) { --pulse-delay: 0s; }
html.no-js .flow-step:nth-of-type(2) { --pulse-delay: 4s; }
html.no-js .flow-step:nth-of-type(3) { --pulse-delay: 8s; }
html.no-js .flow-step:nth-of-type(4) { --pulse-delay: 12s; }
html.no-js .flow-step:nth-of-type(5) { --pulse-delay: 16s; }

/* v3 修正: hover 時に __body だけが浮く。.flow-step（hit領域）は静止 →
   四角全体が浮いて見えつつ、::before は動かず、hover 境界フリッカーも無い */
.flow-step:hover .flow-step__body {
  transform: translateY(-10px);
  border-color: rgba(72, 105, 130, 0.24);
  box-shadow: 0 28px 62px rgba(49, 65, 80, 0.12);
}

/* hover 時に step-number が反転 + わずかに大きく */
.flow-step .step-number {
  transition:
    background 0.4s cubic-bezier(0.4, 0.4, 0, 1),
    color 0.4s cubic-bezier(0.4, 0.4, 0, 1),
    transform 0.4s cubic-bezier(0.34, 0.6, 0.3, 1);
}

.flow-step:hover .step-number {
  background: var(--color-primary);
  color: #fff;
  transform: scale(1.06);
}

/* hover 時にタイトルもわずかに */
.flow-step h3 {
  transition: color 0.3s cubic-bezier(0.4, 0.4, 0, 1);
}

.flow-step:hover h3 {
  color: var(--color-primary-dark);
}

/* v3 修正: Flow の各ステップは「ナンバー + タイトル」を横並びに（アイコン廃止） */
.flow-step__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.step-number {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 28px;
  border-radius: 999px;
  background: var(--color-blue-soft);
  color: var(--color-primary);
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.flow-step h3 {
  /* v3 修正：h3 下マージンは __head の margin-bottom で代用、ナンバーとタイトルの縦揃えズレ防止 */
  margin: 0;
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: -0.035em;
}

.flow-step p {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
}

@keyframes timelineMove {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(100% + 320px));
  }
}

@keyframes timelineDotMove {
  0% {
    left: 10%;
    opacity: 0;
  }

  3% {
    opacity: 1;
  }

  25% {
    left: 30%;
  }

  50% {
    left: 50%;
  }

  75% {
    left: 70%;
  }

  97% {
    opacity: 1;
  }

  100% {
    left: 90%;
    opacity: 0;
  }
}

@keyframes stepPulse {
  0%,
  10%,
  100% {
    transform: translateX(-50%) scale(1);
    box-shadow:
      0 0 0 1px rgba(72, 105, 130, 0.20),
      0 0 0 0 rgba(72, 105, 130, 0);
  }

  3% {
    transform: translateX(-50%) scale(1.76);
    box-shadow:
      0 0 0 1px rgba(72, 105, 130, 0.24),
      0 0 0 12px rgba(72, 105, 130, 0.10);
  }

  6% {
    transform: translateX(-50%) scale(1.24);
    box-shadow:
      0 0 0 1px rgba(72, 105, 130, 0.22),
      0 0 0 18px rgba(72, 105, 130, 0);
  }
}

/* JS 制御で1回再生される pulse（dot が step の真上を通った瞬間に発火）
   v3 修正：中間キー（70%）削除で 拡大→縮小 を 1ストロークの滑らかな曲線に */
@keyframes stepPulseOnce {
  0% {
    transform: translateX(-50%) scale(1);
    box-shadow:
      0 0 0 1px rgba(72, 105, 130, 0.20),
      0 0 0 0 rgba(72, 105, 130, 0);
  }
  35% {
    transform: translateX(-50%) scale(1.76);
    box-shadow:
      0 0 0 1px rgba(72, 105, 130, 0.24),
      0 0 0 14px rgba(72, 105, 130, 0.08);
  }
  100% {
    transform: translateX(-50%) scale(1);
    box-shadow:
      0 0 0 1px rgba(72, 105, 130, 0.20),
      0 0 0 0 rgba(72, 105, 130, 0);
  }
}

/* v3: 代表紹介はカードではなく、Contact 左カラムにそのまま組み込む短いプロフィール。
   背景・枠・影なし。上下の細い罫線でセパレートするだけ。 */
.representative-intro {
  margin: 20px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(72, 105, 130, 0.18);
  max-width: 520px;
}

/* v3 修正: 代表 + 熊川 諒一 を横並びに */
.representative-intro__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.representative-intro__label {
  margin: 0;
  color: var(--color-primary);
  font-family: "Outfit", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.representative-intro__name {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text);
}

.representative-intro p:not(.representative-intro__label):not(.representative-intro__name) {
  margin: 0 0 6px;
  color: var(--color-muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.representative-intro p:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

/* v3-② Contact 面設計（2026-06-03）：フルブリードの少し濃いブルー面。
   横 padding は通常セクションと同じガター（max-width 外側）を再現 */
.contact {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 110px max(20px, calc((100% - var(--max-width)) / 2)) 132px;
  border: none;
  border-radius: 0;
  background:
    linear-gradient(180deg, var(--color-blue) 0%, #a8cad8 100%);
  box-shadow: none;
  overflow: hidden;
}

/* 上下に細い罫線で「面」の輪郭を1pxで定義 */
.contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(72, 105, 130, 0.18);
  pointer-events: none;
}

.contact::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(72, 105, 130, 0.12);
  pointer-events: none;
}

.contact-map {
  position: absolute;
  right: 24px;
  top: 50%;
  width: 320px;
  height: 220px;
  transform: translateY(-50%);
  display: none; /* 狭い画面ではコンテンツと重なるので非表示。広い画面でのみ表示 */
}

@media (min-width: 1320px) {
  .contact-map {
    display: block;
    right: calc((100% - var(--max-width)) / 2 + 24px);
  }
}

.contact-map::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(72, 105, 130, 0.12);
  border-radius: 30px;
  background-image:
    linear-gradient(rgba(72, 105, 130, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(72, 105, 130, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
}

.contact-map span {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: var(--color-primary);
  animation: contactPulse 3.8s ease-in-out infinite;
}

.contact-map span:nth-child(1) {
  top: 54px;
  left: 54px;
  width: 12px;
  height: 12px;
}

.contact-map span:nth-child(2) {
  top: 112px;
  left: 154px;
  width: 16px;
  height: 16px;
  background: var(--color-yellow);
  animation-delay: -1.2s;
}

.contact-map span:nth-child(3) {
  right: 58px;
  bottom: 56px;
  width: 12px;
  height: 12px;
  background: var(--color-green);
  animation-delay: -2.4s;
}

/* v3 修正：Contact レイアウト
   row 1: h2（両カラム跨ぐ・1行）
   row 2: 説明文（左） | CONTACT ラベル（右、下端寄せ）
   row 3: 代表紹介（左） | フォーム（右） */
.contact-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  grid-template-rows: auto auto auto;
  gap: 0 56px;
  align-items: start;
  max-width: none;
}

.contact-content > h2 {
  grid-column: 1 / -1;
  grid-row: 1;
  margin: 0 0 28px;
}

.contact-content > p:not(.form-notice):not(.section-label) {
  grid-column: 1;
  grid-row: 2;
}

.contact-content > .section-label {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  justify-self: end;
  align-self: end;
  text-align: right;
  padding-bottom: 8px;
}

.contact-content > .representative-intro {
  grid-column: 1;
  grid-row: 3;
}

.contact-content > .contact-form {
  grid-column: 2;
  grid-row: 3;
  margin-top: 0;
  align-self: start;
}

@media (max-width: 980px) {
  .contact-content {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 24px;
  }
  .contact-content > h2,
  .contact-content > .section-label,
  .contact-content > p:not(.form-notice):not(.section-label),
  .contact-content > .representative-intro,
  .contact-content > .contact-form {
    grid-column: 1;
    grid-row: auto;
  }
  /* v3 修正: モバイルでは CONTACT ラベルを左寄せ */
  .contact-content > .section-label {
    justify-self: start;
    text-align: left;
    padding-bottom: 0;
  }
}

.contact h2 {
  margin: 0;
  /* v3: 元の大サイズを維持。両カラム跨いで 1 行に強制 */
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.28;
  letter-spacing: -0.06em;
  color: var(--color-primary-dark);
  white-space: nowrap;
}

@media (max-width: 980px) {
  .contact h2 {
    font-size: clamp(28px, 6vw, 40px);
    white-space: normal;
  }
}

/* v3 修正: 直接の子のみ対象（grandchild の代表紹介・form 内 p に影響しない、form-result も除外） */
.contact-content > p:not(.section-label):not(.form-notice):not(.form-result) {
  margin: 24px 0 34px;
  color: var(--color-text);
  font-size: 16px;
}

/* v3: honeypot（bot 対策、視覚的に完全に隠す） */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* v3: 送信結果メッセージ */
.form-result {
  margin: 0 0 18px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}
.form-result--success {
  background: rgba(200, 225, 209, 0.6);
  color: var(--color-primary-dark);
  border: 1px solid rgba(72, 130, 95, 0.30);
}
.form-result--error {
  background: rgba(237, 197, 189, 0.45);
  color: #8b3b3b;
  border: 1px solid rgba(140, 60, 60, 0.30);
}

/* v3 追加: お問い合わせフォーム */
.contact-form {
  margin-top: 40px;
  padding: 36px 32px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(72, 105, 130, 0.16);
  border-radius: 24px;
  box-shadow: 0 22px 48px rgba(49, 65, 80, 0.06);
}

.form-field {
  margin-bottom: 22px;
  border: 0;
  padding: 0;
}

.form-field:last-of-type {
  margin-bottom: 28px;
}

.form-label {
  display: block;
  margin-bottom: 10px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0;
}

.form-required {
  display: inline-block;
  margin-left: 4px;
  color: #d24a4a;
  font-weight: 700;
}

.form-input {
  width: 100%;
  padding: 13px 16px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  background: #ffffff;
  border: 1px solid rgba(72, 105, 130, 0.22);
  border-radius: 10px;
  transition:
    border-color 0.25s cubic-bezier(0.4, 0.4, 0, 1),
    box-shadow 0.25s cubic-bezier(0.4, 0.4, 0, 1),
    background 0.25s cubic-bezier(0.4, 0.4, 0, 1);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder {
  color: rgba(111, 123, 134, 0.7);
}

.form-input:hover {
  border-color: rgba(72, 105, 130, 0.34);
}

.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(72, 105, 130, 0.12);
  /* v3 修正: background shorthand だと select の矢印画像が消える → background-color に */
  background-color: #ffffff;
}

.form-input--textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.8;
}

/* v3: ご相談内容のドロップダウン
   矢印は wrapper の ::after で表示し、開いたとき（:focus-within）に上向きに反転 */
.form-select-wrap {
  position: relative;
}

.form-input--select {
  padding-right: 44px;
  cursor: pointer;
}

.form-select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 12px;
  height: 8px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%23486982' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  transform: translateY(-50%);
  transition: transform 0.2s var(--ease-out, ease);
}

/* v3 修正: :focus-within だと閉じても focus が残って矢印が戻らない →
   JS で .is-open クラスを切り替える方式に */
.form-select-wrap.is-open::after {
  transform: translateY(-50%) rotate(180deg);
}

/* 送信ボタンエリア */
.form-submit {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.form-submit .button.primary {
  min-width: 168px;
  padding: 14px 36px;
  cursor: pointer;
  border: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
}

/* フォーム下の注記 */
.form-notice {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--color-muted);
  text-align: center;
}

/* モバイルでフォームの padding 調整 */
@media (max-width: 640px) {
  .contact-form {
    padding: 28px 22px;
    border-radius: 20px;
  }
  .form-submit {
    justify-content: stretch;
  }
  .form-submit .button.primary {
    width: 100%;
  }
}

.contact .section-label {
  color: var(--color-primary-dark);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
  padding: 38px 0 46px;
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
  font-size: 14px;
}

.site-footer strong {
  color: var(--color-text);
  font-family: "Outfit", sans-serif;
  font-size: 20px;
}

.site-footer p {
  margin: 6px 0 0;
}

.footer-info {
  text-align: right;
}

/* v3 reveal: IO ベースのフェードイン（main.js が .is-visible を付与）
   旧 scroll-driven animation (animation-timeline: view()) は廃止し、全ブラウザ対応に。 */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.85s cubic-bezier(0.4, 0.4, 0, 1),
    transform 0.85s cubic-bezier(0.4, 0.4, 0, 1);
  will-change: opacity, transform;
}

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

/* スタガー：各リスト内の要素を時間差で表示 */
.value-list > .reveal:nth-child(2) { transition-delay: 0.08s; }
.value-list > .reveal:nth-child(3) { transition-delay: 0.16s; }
.value-list > .reveal:nth-child(4) { transition-delay: 0.24s; }

.service-grid > .reveal:nth-child(2) { transition-delay: 0.12s; }
.service-grid > .reveal:nth-child(3) { transition-delay: 0.24s; }

.flow-timeline > .reveal:nth-child(2) { transition-delay: 0.08s; }
.flow-timeline > .reveal:nth-child(3) { transition-delay: 0.16s; }
.flow-timeline > .reveal:nth-child(4) { transition-delay: 0.24s; }
.flow-timeline > .reveal:nth-child(5) { transition-delay: 0.32s; }

/* JS 無効時の保険：reveal が永久に non-visible にならないように */
html.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* Hero 初期ロードアニメ（自然な階段フェードイン） */
.hero .eyebrow,
.hero h1,
.hero-text,
.hero-actions,
.hero-visual {
  opacity: 0;
  transform: translateY(20px);
  animation: heroIn 1s cubic-bezier(0.4, 0.4, 0, 1) forwards;
}

.hero .eyebrow   { animation-delay: 0.10s; }
.hero h1         { animation-delay: 0.20s; }
.hero-text       { animation-delay: 0.40s; }
.hero-actions    { animation-delay: 0.55s; }
.hero-visual     { animation-delay: 0.30s; }

@keyframes heroIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ambientSlide {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(140vw);
  }
}

@keyframes gridDrift {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 76px 38px;
  }
}

@keyframes dashMove {
  0% {
    stroke-dashoffset: 0;
  }

  100% {
    stroke-dashoffset: -220;
  }
}

@keyframes dotMove {
  0% {
    offset-distance: 0%;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    offset-distance: 100%;
    opacity: 0;
  }
}

@keyframes floatNode {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-9px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes panelBreath {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -51.5%) scale(1.025);
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes contactPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(72, 105, 130, 0.22);
  }

  70% {
    transform: scale(1.08);
    box-shadow: 0 0 0 18px rgba(72, 105, 130, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(72, 105, 130, 0);
  }
}

/* prefers-reduced-motion 対応はファイル末尾に移動済（cascade 後勝ちで効くため） */

@media (max-width: 980px) {
  /* v3 整理: !important を全廃。メディアクエリ後勝ちで OK */

  .hero {
    display: block;
    min-height: auto;
    padding: 56px 0 72px;
    gap: 0;
  }

  .hero-copy,
  .hero-visual {
    width: 100%;
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(28px, 7vw, 42px);
    line-height: 1.3;
    letter-spacing: -0.04em;
  }

  .hero-text {
    font-size: 14px;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .hero-visual {
    min-height: 460px;
    margin-top: 36px;
  }

  .section-layout,
  .services-head,
  .flow-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .flow-timeline {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 0;
  }

  .timeline-line {
    display: none;
  }

  .flow-step::before {
    display: none;
  }

  .flow-step {
    min-height: auto;
  }

  /* v3 修正: モバイルでは __body を通常フローに戻して高さを内容に追従させる
     （PC では position: absolute だが、モバイルではカードが潰れて文字が重なる問題を解消） */
  .flow-step__body {
    position: static;
    inset: auto;
    height: auto;
    min-height: 0;
  }

  .step-number {
    margin-bottom: 24px;
  }

  .sticky-head {
    position: static;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .contact-map {
    /* v3 フルブリード化で content と重なるため、中サイズ以下では非表示 */
    display: none;
  }
}

@media (max-width: 640px) {
  /* v3 整理: 980px と矛盾する rule (.hero h1 48px, .hero-text 15px, .section-head h2 32px 等) を削除。
     base + 980px の指定に任せる。640px では更に狭い view 用の調整のみ。 */

  .site-header {
    top: 12px;
    width: min(100% - 24px, var(--max-width));
    margin-top: 12px;
  }

  .hero,
  .section,
  .site-footer {
    width: min(100% - 24px, var(--max-width));
  }

  /* Contact はフルブリード帯のため width 縮小しない */
  .contact {
    margin: 0;
    padding: 76px 20px 88px;
    border-radius: 0;
  }

  .hero-visual {
    border-radius: 34px;
  }

  .blueprint-grid {
    inset: 22px;
    border-radius: 24px;
  }

  /* Hero ビジュアル内部の process-node 配置（小画面用） */
  .flow-map { display: none; }
  .process-node { width: 126px; padding: 12px; }
  .process-node strong { font-size: 17px; }
  .process-node small { font-size: 10px; }
  .node-01 { top: 48px; left: 28px; }
  .node-02 { top: 92px; right: 26px; }
  .node-03 { right: 28px; bottom: 62px; }
  .node-04 { left: 28px; bottom: 76px; }
  .center-panel { width: 166px; padding: 18px; }
  .center-panel strong { font-size: 15px; }
  .mini-panel { display: none; }

  .section {
    padding: 76px 0;
  }

  /* v3 では section-soft はフルブリード帯なので、モバイルでも上下インセットは不要 */
  .section-soft::before {
    top: 0;
    bottom: 0;
    border-radius: 0;
  }

  .text-panel {
    padding: 34px 28px;
    border-radius: 30px;
  }

  .value-item {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .service-card {
    padding: 26px;
    border-radius: 32px;
  }

  .service-diagram {
    margin-bottom: 40px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-info {
    text-align: left;
  }
}

/* ============================================
   prefers-reduced-motion: reduce
   ファイル末尾に配置することで cascade 後勝ち。!important なしで効かせる。
============================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
  }

  /* reveal / Hero ロードアニメを停止 */
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero .eyebrow,
  .hero h1,
  .hero-text,
  .hero-actions,
  .hero-visual {
    opacity: 1;
    transform: none;
    animation: none;
  }

  /* 周期アニメを持つ要素を個別停止 */
  .values-bg .vv-set,
  .ambient-lines::before,
  .ambient-lines::after,
  .system-connect,
  .improve-arrow,
  .after-box i,
  .site-cursor,
  .process-node,
  .center-panel,
  .contact-map span,
  .timeline-dot,
  .timeline-glow,
  .blueprint-grid {
    animation: none;
  }

  .flow-step.is-pulsing::before {
    animation: none;
  }
}
