/* ==========================================================================
   common.css — 共通ブラッシュアップレイヤー
   style.css の「後」に読み込んで上書きする想定。
   既存の --teal / --ink / --gray-* 変数を前提とする。
   ========================================================================== */

/* ---------- Base tokens（既存に補完するモーション/影） ---------- */
:root {
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05), 0 1px 1px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);
  --ease: cubic-bezier(.22,.61,.36,1);
  --t-fast: 150ms;
  --t-base: 220ms;
  --t-slow: 380ms;
  --focus-ring: 0 0 0 3px rgba(0,174,187,.45);
}

/* ---------- 和文タイポ・禁則 ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
  text-spacing-trim: trim-start;
}
h1, h2, h3, h4, .lead {
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
}

/* ---------- Skip link（A11y） ---------- */
.skip-link {
  position: absolute;
  left: 0; top: 0;
  background: var(--ink, #1a2326);
  color: #fff;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  z-index: 1000;
  transform: translateY(-110%);
  transition: transform var(--t-base) var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  opacity: 1;
  outline: none;
}

/* ---------- Focus Ring（全要素統一） ---------- */
*:focus { outline: none; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

/* ---------- Header: スクロール時の影 / 高さ最適化 ---------- */
.site-header {
  transition: box-shadow var(--t-base) var(--ease),
              background-color var(--t-base) var(--ease);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
}
/* ヘッダー下端の通信ライン（細いティールのストローク + 動く光点） */
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0,174,187,.0) 20%,
    rgba(0,174,187,.55) 50%,
    rgba(0,174,187,.0) 80%,
    transparent 100%);
  background-size: 200% 100%;
  animation: signal-line 6s linear infinite;
  pointer-events: none;
}
@keyframes signal-line {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* signal-pulse: 廃止（FVイントロの通信拡散演出に統合） */
.signal-pulse { display: none !important; }

/* ---------- セクション到達時：上端を通信ラインが走る ---------- */
.section.section-reveal {
  position: relative;
}
.section.section-reveal::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--teal, #00AEBB) 50%, transparent 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s linear;
}
.section.section-reveal.is-revealed::before {
  opacity: 1;
  animation: section-line 1.2s var(--ease) forwards;
}
@keyframes section-line {
  0%   { width: 0;    opacity: 0; }
  30%  { opacity: 1; }
  100% { width: 100%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .section.section-reveal::before { display: none; }
}

/* ---------- Read Progress Bar（ページ上部の細い進行バー） ---------- */
.read-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 200;
  background: transparent;
  pointer-events: none;
}
.read-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--teal, #00AEBB) 0%, var(--teal-dark, #00808a) 100%);
  box-shadow: 0 0 8px rgba(0,174,187,.6);
  transition: width 120ms linear;
}
body[data-theme="dark"] .read-progress-fill {
  background: linear-gradient(90deg, var(--teal, #00AEBB) 0%, #fff 100%);
}

/* ---------- Hamburger button ---------- */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--gray-2, #e2e7e9);
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
  position: relative;
  flex-shrink: 0;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--t-base) var(--ease),
              top var(--t-base) var(--ease),
              opacity var(--t-fast) var(--ease);
}
.nav-toggle-bar {
  top: 50%;
  transform: translate(-50%, -50%);
}
.nav-toggle-bar::before { top: -7px; transform: translateX(-50%); }
.nav-toggle-bar::after  { top:  7px; transform: translateX(-50%); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
  top: 0; transform: translateX(-50%) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  top: 0; transform: translateX(-50%) rotate(-45deg);
}

/* ---------- Active page indicator（aria-current優先） ---------- */
.gnav a[aria-current="page"] {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

/* ---------- ナビホバー：電波風アンダーライン（左から右へ伸長） ---------- */
.gnav a {
  position: relative;
  border-bottom: 2px solid transparent !important;
}
.gnav a::after {
  content: "";
  position: absolute;
  left: 0; right: auto; bottom: -2px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--teal, #00AEBB) 0%, transparent 100%);
  transition: width var(--t-base) var(--ease);
  pointer-events: none;
}
.gnav a:hover::after,
.gnav a[aria-current="page"]::after {
  width: 100%;
  background: linear-gradient(90deg, var(--teal, #00AEBB) 0%, var(--teal-dark, #00808a) 100%);
}

/* ---------- カード：ホバー時の通信パルス（左上→右下にライン） ---------- */
.card { position: relative; isolation: isolate; }
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg,
    rgba(0,174,187,0) 0%,
    rgba(0,174,187,0) 45%,
    rgba(0,174,187,.55) 50%,
    rgba(0,174,187,0) 55%,
    rgba(0,174,187,0) 100%);
  background-size: 220% 220%;
  background-position: 0% 0%;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base) var(--ease);
  z-index: -1;
}
.card:hover::before {
  opacity: 1;
  animation: card-pulse 1.4s ease-out forwards;
}
@keyframes card-pulse {
  from { background-position: 0% 0%; }
  to   { background-position: 100% 100%; }
}

/* ---------- Buttons: hover/active/disabled の強化 ---------- */
.btn-primary,
.btn-secondary {
  transition: background-color var(--t-base) var(--ease),
              color var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease),
              transform var(--t-fast) var(--ease),
              box-shadow var(--t-base) var(--ease);
  will-change: transform;
}
.btn-primary:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-primary:active,
.btn-secondary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.btn-primary[aria-disabled="true"],
.btn-secondary[aria-disabled="true"],
.btn-primary:disabled,
.btn-secondary:disabled {
  opacity: .5;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

/* ボタン内の矢印アイコン */
.btn-primary .icon-arrow,
.btn-secondary .icon-arrow,
.link-arrow .icon-arrow {
  display: inline-block;
  margin-left: 6px;
  transition: transform var(--t-base) var(--ease);
}
.btn-primary:hover .icon-arrow,
.btn-secondary:hover .icon-arrow,
.link-arrow:hover .icon-arrow {
  transform: translateX(4px);
}

/* link-arrow: 下線スライドアニメ */
.link-arrow {
  position: relative;
  padding-bottom: 2px;
}
.link-arrow::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 0;
  background: currentColor;
  transition: width var(--t-base) var(--ease);
}
.link-arrow:hover::after { width: 100%; }

/* ---------- Card grid（事例・サービス用） ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--gray-2, #e2e7e9);
  border-radius: 6px;
  overflow: hidden;
  transition: transform var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal);
}
.card-media {
  aspect-ratio: 16 / 9;
  background: var(--gray-1, #f5f7f8);
  overflow: hidden;
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}
.card:hover .card-media img { transform: scale(1.04); }
.card-body {
  padding: 18px 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card-eyebrow {
  font-size: 11px;
  letter-spacing: .15em;
  color: var(--teal-dark, #00808a);
  font-weight: 700;
}
.card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}
.card-desc {
  font-size: 13px;
  color: var(--gray-4, #4a5559);
  line-height: 1.7;
}
.card-foot {
  margin-top: auto;
  padding-top: 8px;
  font-size: 13px;
  color: var(--teal-dark);
  font-weight: 700;
}

/* Dark theme card overrides */
body[data-theme="dark"] .card {
  background: #1a1a1a;
  border-color: #333;
}
body[data-theme="dark"] .card-media { background: #0a0a0a; }
body[data-theme="dark"] .card-title { color: #fff; }
body[data-theme="dark"] .card-desc  { color: var(--gray-4); }
body[data-theme="dark"] .card-eyebrow { color: var(--teal); }
body[data-theme="dark"] .card-foot { color: var(--teal); }
body[data-theme="dark"] .card:hover { border-color: var(--teal); }

/* ---------- Form skeleton ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 640px;
  margin: 24px 0;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-row.is-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-required {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  background: var(--warn, #c8542b);
  color: #fff;
  padding: 2px 6px;
  border-radius: 2px;
}
.form-optional {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  background: var(--gray-2, #e2e7e9);
  color: var(--gray-4, #4a5559);
  padding: 2px 6px;
  border-radius: 2px;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--gray-2, #e2e7e9);
  border-radius: 4px;
  padding: 12px 14px;
  transition: border-color var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease);
}
.form-textarea { min-height: 140px; resize: vertical; }
.form-input:hover,
.form-textarea:hover,
.form-select:hover {
  border-color: var(--gray-3, #8a9498);
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--teal);
  box-shadow: var(--focus-ring);
  outline: none;
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-3, #8a9498);
}
.form-input[aria-invalid="true"],
.form-textarea[aria-invalid="true"],
.form-select[aria-invalid="true"] {
  border-color: var(--warn, #c8542b);
}
.form-error {
  font-size: 12px;
  color: var(--warn, #c8542b);
  font-weight: 500;
  display: none;
}
.form-input[aria-invalid="true"] ~ .form-error,
.form-textarea[aria-invalid="true"] ~ .form-error,
.form-select[aria-invalid="true"] ~ .form-error {
  display: block;
}
.form-help {
  font-size: 12px;
  color: var(--gray-4, #4a5559);
}
.form-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
}
.form-checkbox-row input[type="checkbox"],
.form-checkbox-row input[type="radio"] {
  margin-top: 4px;
  width: 18px; height: 18px;
  accent-color: var(--teal);
  flex-shrink: 0;
}
.form-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 8px;
}
.form-success {
  background: rgba(42,138,74,.08);
  border-left: 3px solid var(--ok, #2a8a4a);
  color: var(--ok, #2a8a4a);
  padding: 14px 18px;
  font-size: 14px;
  border-radius: 2px;
}

/* Dark theme form overrides */
body[data-theme="dark"] .form-input,
body[data-theme="dark"] .form-textarea,
body[data-theme="dark"] .form-select {
  background: #1a1a1a;
  color: #fff;
  border-color: #333;
}
body[data-theme="dark"] .form-input:hover,
body[data-theme="dark"] .form-textarea:hover,
body[data-theme="dark"] .form-select:hover {
  border-color: #555;
}
body[data-theme="dark"] .form-input::placeholder,
body[data-theme="dark"] .form-textarea::placeholder {
  color: var(--gray-3);
}
body[data-theme="dark"] .form-label { color: #fff; }
body[data-theme="dark"] .form-help  { color: var(--gray-4); }

/* ---------- Table: モバイル対応 ---------- */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0;
}
.table-scroll .content-table {
  margin: 0;
  min-width: 480px;
}

/* SP: テーブルの行をブロック化して縦並びに */
@media (max-width: 540px) {
  .content-table {
    border: none;
  }
  .content-table tr {
    display: block;
    margin-bottom: 12px;
    border: 1px solid var(--gray-2, #e2e7e9);
    border-radius: 4px;
    overflow: hidden;
  }
  .content-table th,
  .content-table td {
    display: block;
    width: 100% !important;
    border: none;
    padding: 10px 14px;
  }
  .content-table th {
    background: var(--gray-1, #f5f7f8);
    font-size: 12px;
    letter-spacing: .05em;
    padding-bottom: 6px;
  }
  .content-table td {
    padding-top: 6px;
  }
  body[data-theme="dark"] .content-table tr {
    border-color: #333;
  }
  body[data-theme="dark"] .content-table th {
    background: #1a1a1a;
  }
}

/* ---------- Scroll fade-in（IntersectionObserverと連動） ---------- */
.fx-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease),
              transform .8s var(--ease);
}
.fx-fade.is-in {
  opacity: 1;
  transform: none;
}
/* スタガード（順次入場）: card-grid 直下のカードに段階的にdelay */
.card-grid > .fx-fade:nth-child(1)  { transition-delay: 0ms; }
.card-grid > .fx-fade:nth-child(2)  { transition-delay: 120ms; }
.card-grid > .fx-fade:nth-child(3)  { transition-delay: 240ms; }
.card-grid > .fx-fade:nth-child(4)  { transition-delay: 360ms; }
.card-grid > .fx-fade:nth-child(5)  { transition-delay: 480ms; }
.card-grid > .fx-fade:nth-child(6)  { transition-delay: 600ms; }

/* 課題グリッド・製品グリッドにも同様のstagger */
.issue-grid > .fx-fade:nth-child(1) { transition-delay: 0ms; }
.issue-grid > .fx-fade:nth-child(2) { transition-delay: 140ms; }
.issue-grid > .fx-fade:nth-child(3) { transition-delay: 280ms; }
.issue-grid > .fx-fade:nth-child(4) { transition-delay: 420ms; }
.product-grid > .fx-fade:nth-child(1) { transition-delay: 0ms; }
.product-grid > .fx-fade:nth-child(2) { transition-delay: 140ms; }
.stats-grid > .fx-fade:nth-child(1) { transition-delay: 0ms; }
.stats-grid > .fx-fade:nth-child(2) { transition-delay: 180ms; }
.stats-grid > .fx-fade:nth-child(3) { transition-delay: 360ms; }

/* 左右交互ブロック：左から/右からスライドイン */
.approach-block.fx-fade {
  transform: translateY(40px);
}
.approach-block.fx-fade .approach-media {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity .9s var(--ease) .15s, transform .9s var(--ease) .15s;
}
.approach-block.fx-fade .approach-body {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity .9s var(--ease) .3s, transform .9s var(--ease) .3s;
}
.approach-block.fx-fade.is-in .approach-media,
.approach-block.fx-fade.is-in .approach-body {
  opacity: 1;
  transform: none;
}
.approach-block.is-reverse.fx-fade .approach-media { transform: translateX(32px); }
.approach-block.is-reverse.fx-fade .approach-body  { transform: translateX(-32px); }

/* 数字セクションの数字：到達時にスケールしてビヨンと出る */
.stat-item.fx-fade .stat-num {
  opacity: 0;
  transform: scale(.6);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.stat-item.fx-fade.is-in .stat-num {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .fx-fade { opacity: 1; transform: none; transition: none; }
  .approach-block.fx-fade .approach-media,
  .approach-block.fx-fade .approach-body { opacity: 1; transform: none; transition: none; }
  .stat-item.fx-fade .stat-num { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- Footer SNS placeholder ---------- */
.footer-sns {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.footer-sns a {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  transition: background-color var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease);
}
.footer-sns a:hover {
  background: var(--teal);
  border-color: var(--teal);
  opacity: 1;
}

/* ---------- Copyright 強化 ---------- */
.copyright {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  letter-spacing: 0.08em;
}

/* ==========================================================================
   レスポンシブ
   ブレイクポイント:
   - 880px以下：ハンバーガーメニュー有効化（タブレット縦も含めてナビ折返しを回避）
   - 720px以下：hero圧縮・hero内2col→1col・フッター2列→1列
   - 480px以下：超小型端末向け細部調整
   ========================================================================== */

@media (max-width: 880px) {
  /* ハンバーガーメニュー有効化 */
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .header-inner { gap: 12px; flex-wrap: nowrap; }

  .gnav {
    position: fixed;
    inset: 64px 0 auto 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--t-base) var(--ease),
                opacity var(--t-base) var(--ease);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    z-index: 99;
    width: 100%;
    margin: 0;
    font-size: 15px;
  }
  .gnav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .gnav a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--gray-2, #e2e7e9);
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .gnav a:last-child { border-bottom: none; }

  /* ダーク基調案ではメニュー背景もダークに */
  body[data-theme="dark"] .gnav {
    background: #0A0A0A;
    border-top: 1px solid var(--teal);
  }
  body[data-theme="dark"] .gnav a {
    border-bottom-color: var(--gray-2, #333);
  }
}

@media (max-width: 720px) {
  /* hero 圧縮 */
  .hero { padding: 56px 0 48px; }

  /* フォーム 2col → 1col（スマホ幅でのみ） */
  .form-row.is-2col { grid-template-columns: 1fr; }

  /* タップ領域確保 */
  .btn-primary,
  .btn-secondary {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .footer-grid { gap: 24px; }
  h1 { font-size: clamp(24px, 7vw, 32px); }
  h2 { font-size: clamp(20px, 5.5vw, 26px); }
}

/* ==========================================================================
   全ページ常駐の通信網キャンバス（site-network.js が描画）
   ========================================================================== */
canvas.site-network {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  mix-blend-mode: normal;
}
body[data-theme="dark"] canvas.site-network {
  mix-blend-mode: screen;
  opacity: 0.95;
}
/* canvasの後ろに濃いネイビーの背景を敷いて、網がきれいに光って見えるようにする。
   各セクションの::afterのうっすら白オーバーレイで前面に淡い白を被せる構造。 */
body {
  background: #0a1518;
}
/* ヒーロー直下のキャンバス（Three.js背景）はより強く出す */
.hero canvas.hero-network {
  opacity: 1;
  z-index: 2;
}
/* main/section をやや透明にして網が透ける構成。
   テキスト可読性は保ちつつ「通信網が後ろに常に流れている」演出に */
.section,
.cta-section,
section.hero {
  position: relative;
  background-color: transparent !important;
  background-image: none !important;
}
/* セクション裏側にうっすら白を敷いて可読性を担保。
   完全不透明にすると網が見えなくなるので、半透明のグラデーションで端だけ網を覗かせる */
.section::after,
.cta-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(255, 255, 255, 0.95) 12%,
    rgba(255, 255, 255, 0.96) 88%,
    rgba(255, 255, 255, 0.88) 100%);
  z-index: -1;
  pointer-events: none;
}
body[data-theme="dark"] .section::after,
body[data-theme="dark"] .cta-section::after {
  background: linear-gradient(180deg,
    rgba(10,21,24,0.7) 0%,
    rgba(10,21,24,0.85) 50%,
    rgba(10,21,24,0.7) 100%);
}
/* 課題・FAQ・製品など読み物中心は濃いめ */
.issue-section::after,
.products-section::after,
.faq-section::after {
  background: linear-gradient(180deg,
    rgba(255,255,255,0.9) 0%,
    rgba(255,255,255,0.97) 20%,
    rgba(255,255,255,0.97) 80%,
    rgba(255,255,255,0.9) 100%);
}
/* 数字・事例は網が前に出るよう薄め */
.stats-section::after,
.cases-section::after {
  background: linear-gradient(180deg,
    rgba(245, 252, 246, 0.65) 0%,
    rgba(245, 252, 246, 0.82) 50%,
    rgba(245, 252, 246, 0.65) 100%);
}
/* CTA帯は網がよく見えるよう薄く */
.cta-section::after {
  background: linear-gradient(135deg, rgba(245,252,246,.55), rgba(230,247,248,.6));
}
/* carrier-strip / header / footer は通常背景のまま使う */
.carrier-strip {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.95);
}
.site-header {
  background: rgba(255, 255, 255, 0.92);
}
.site-footer {
  background: var(--ink, #1a2326);
}
/* mainやheaderなど主要要素は網より前へ */
main,
.site-footer,
.read-progress {
  position: relative;
  z-index: 1;
}
/* .site-header は sticky を維持しつつ網より前面に出す */
.site-header { z-index: 100; }
.read-progress { z-index: 200; }

@media (prefers-reduced-motion: reduce) {
  canvas.site-network { opacity: 0.35; }
}

/* ==========================================================================
   カスタムカーソル（site-cursor.js）
   - 中心ドット / 中リング / 外リング / トレイル
   - PCのみ有効（タッチ/reducedはJS側で無効化）
   ========================================================================== */
html.has-site-cursor,
html.has-site-cursor body,
html.has-site-cursor a,
html.has-site-cursor button,
html.has-site-cursor [role="button"],
html.has-site-cursor input,
html.has-site-cursor textarea,
html.has-site-cursor select,
html.has-site-cursor summary {
  cursor: none !important;
}
.site-cursor-root {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20000;
  will-change: transform;
}
.site-cursor-root.is-out { opacity: 0; transition: opacity .25s ease; }
.site-cursor-trail {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.site-cursor-dot,
.site-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}
.site-cursor-dot {
  width: 6px;
  height: 6px;
  background: radial-gradient(circle at 50% 50%, #fff 0%, #8cf0ff 60%, rgba(0,174,187,0) 100%);
  box-shadow: 0 0 12px rgba(140,240,255,.9), 0 0 28px rgba(0,174,187,.6);
}
.site-cursor-ring--mid {
  width: 28px;
  height: 28px;
  border: 1.5px solid rgba(0,174,187,.85);
  box-shadow: 0 0 14px rgba(0,174,187,.4) inset, 0 0 10px rgba(0,174,187,.35);
  animation: cursor-pulse 1.8s ease-in-out infinite;
  transition: width .25s var(--ease), height .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease), transform .04s linear;
}
.site-cursor-ring--outer {
  width: 52px;
  height: 52px;
  border: 1px dashed rgba(0,174,187,.55);
  animation: cursor-spin 6s linear infinite;
  transition: width .3s var(--ease), height .3s var(--ease), border-color .3s var(--ease), transform .04s linear;
}
@keyframes cursor-pulse {
  0%,100% { box-shadow: 0 0 10px rgba(0,174,187,.35) inset, 0 0 6px rgba(0,174,187,.25); }
  50%     { box-shadow: 0 0 18px rgba(140,240,255,.65) inset, 0 0 16px rgba(0,174,187,.55); }
}
@keyframes cursor-spin {
  /* 回転は translate3d を上書きしないよう、background を回す */
  0%   { border-style: dashed; }
  50%  { border-style: dotted; }
  100% { border-style: dashed; }
}
/* インタラクティブ要素ホバー */
.site-cursor-root.is-hover .site-cursor-ring--mid {
  width: 44px;
  height: 44px;
  border-color: #fff;
  background: radial-gradient(circle at 50% 50%, rgba(140,240,255,.18) 0%, rgba(0,174,187,0) 70%);
  box-shadow: 0 0 22px rgba(140,240,255,.65) inset, 0 0 22px rgba(0,174,187,.65);
}
.site-cursor-root.is-hover .site-cursor-ring--outer {
  width: 76px;
  height: 76px;
  border-color: rgba(255,255,255,.85);
}
.site-cursor-root.is-hover .site-cursor-dot {
  background: radial-gradient(circle at 50% 50%, #fff 0%, #fff 35%, rgba(255,255,255,0) 100%);
}
/* 押下時 */
.site-cursor-root.is-pressing .site-cursor-ring--mid {
  transform-origin: center;
  filter: brightness(1.4);
}

/* タッチ端末・reduced-motionではJS側で生成しないが念のため非表示 */
@media (hover: none) {
  .site-cursor-root { display: none; }
  html.has-site-cursor,
  html.has-site-cursor body { cursor: auto !important; }
}
@media (prefers-reduced-motion: reduce) {
  .site-cursor-root { display: none; }
}