/* =====================================================================
   FormAuto AI (form-auto.jp) - main.css
   静的1ページLP / Critical CSS は index.html 側に inline 配置
   ===================================================================== */

/* ----- Design Tokens ----- */
:root {
  --bg-deep:      #0b0d1a;
  --bg-dark:      #131628;
  --bg-card:      #1a1d35;
  --bg-light:     #f7f8fc;
  --bg-white:     #ffffff;

  --text-on-dark:    #f1f3f9;
  --text-on-dark-2:  #b3b8d4;
  --text-on-light:   #1a1d35;
  --text-on-light-2: #4a5072;

  --brand-1:      #6366f1;   /* indigo */
  --brand-2:      #8b5cf6;   /* violet */
  --accent-1:     #fb923c;   /* orange */
  --accent-2:     #06b6d4;   /* cyan */
  --success:      #10b981;
  --warn:         #f59e0b;
  --danger:       #ef4444;

  --border-dark:  #2a2f4a;
  --border-light: #e3e6f0;

  --grad-brand:   linear-gradient(135deg, #1350eb 0%, #2d68cc 50%, #06b6d4 100%);
  --grad-accent:  linear-gradient(135deg, #fb923c 0%, #f43f5e 100%);
  --grad-card:    linear-gradient(180deg, rgba(99,102,241,.04) 0%, rgba(255,255,255,1) 100%);

  --radius-sm:  6px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --shadow-sm:  0 1px 3px rgba(15,15,30,.08), 0 1px 2px rgba(15,15,30,.06);
  --shadow:     0 6px 24px rgba(15,15,30,.10), 0 2px 8px rgba(15,15,30,.06);
  --shadow-lg:  0 20px 40px rgba(15,15,30,.18), 0 4px 16px rgba(15,15,30,.10);

  --container:   1200px;
  --container-w: 1280px;

  --easing: cubic-bezier(.22,1,.36,1);
}

/* ----- Reset / Base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-on-light);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, picture, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-1); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-2); }
button { font: inherit; cursor: pointer; border: 0; background: none; }
ul, ol { padding-left: 1.25em; }
table { border-collapse: collapse; width: 100%; }

/* ----- Typography Scale ----- */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.25; letter-spacing: -.02em; margin: 0 0 .5em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; font-weight: 700; }

.h-eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-1);
  margin-bottom: 1rem;
}
.h-eyebrow.on-dark { color: var(--accent-1); }

/* ----- Layout ----- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section.dark { background: var(--bg-deep); color: var(--text-on-dark); }
.section.deep {
  background: radial-gradient(ellipse 80% 60% at 50% 0%, #1c2046 0%, var(--bg-deep) 60%);
  color: var(--text-on-dark);
}
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head p { color: var(--text-on-light-2); font-size: 1.05rem; }
.section-head-sub { font-size: .95rem !important; line-height: 1.85; margin-top: 16px; }
.section-head-sub strong { color: #0b1429; font-weight: 700; }

/* マーカー風強調（蛍光ペンが左→右へ走る） */
.badge-highlight {
  display: inline;
  background: linear-gradient(120deg, #ffe599 0%, #ffd54f 100%);
  background-repeat: no-repeat;
  background-size: 0% 60%;
  background-position: 0 88%;
  color: #0b1429;
  font-weight: 700;
  font-size: 1rem;
  padding: 0 4px;
  animation: markerSwipeY 2.6s cubic-bezier(.65,.05,.36,1) infinite;
}
@keyframes markerSwipeY {
  0%       { background-size: 0% 60%; }
  35%, 80% { background-size: 100% 60%; }
  100%     { background-size: 100% 60%; opacity: 1; }
}

/* Problem&Solution の強調（下線スワイプ + マーカー） */
.hero-highlight { margin-top: 18px !important; }
.badge-emph {
  display: inline-block;
  position: relative;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: .02em;
  color: #0b1429;
  padding: 4px 6px 6px;
  background: linear-gradient(120deg, transparent 0%, transparent 100%);
  background-repeat: no-repeat;
  background-size: 0% 35%;
  background-position: 0 88%;
  background-image: linear-gradient(120deg, #ffeb3b 0%, #ffc107 100%);
  animation: markerSwipeR 2.6s cubic-bezier(.65,.05,.36,1) infinite;
}
.badge-emph::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  background: linear-gradient(90deg, #ee2c5b, #ff6b6b);
  border-radius: 2px;
  transform-origin: left;
  animation: underlineSwipe 2.6s cubic-bezier(.65,.05,.36,1) infinite;
}
@keyframes markerSwipeR {
  0%       { background-size: 0% 35%; }
  35%, 80% { background-size: 100% 35%; }
  100%     { background-size: 100% 35%; }
}
@keyframes underlineSwipe {
  0%       { transform: scaleX(0); }
  35%, 80% { transform: scaleX(1); }
  100%     { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  .badge-highlight, .badge-emph { animation: none; background-size: 100% !important; }
  .badge-emph::after { animation: none; transform: scaleX(1); }
}
.section.dark .section-head p, .section.deep .section-head p { color: var(--text-on-dark-2); }

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .section-tight { padding: 48px 0; }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  transition: transform .2s var(--easing), box-shadow .2s var(--easing), opacity .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-brand); color: #fff !important;
  box-shadow: 0 6px 24px rgba(99,102,241,.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(99,102,241,.5); color: #fff !important; }
.btn-ghost {
  background: rgba(255,255,255,.08); color: var(--text-on-dark) !important;
  border: 1px solid rgba(255,255,255,.16);
}
.btn-ghost:hover { background: rgba(255,255,255,.14); color: var(--text-on-dark) !important; }
.btn-outline {
  background: transparent; color: var(--brand-1) !important;
  border: 1.5px solid var(--brand-1);
}
.btn-outline:hover { background: var(--brand-1); color: #fff !important; }
.btn-lg { padding: 18px 36px; font-size: 1.0625rem; }

/* ----- Sticky Nav (light theme) ----- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: rgba(238, 243, 255, .78); color: #0b1429;
  border-bottom: 1px solid rgba(99, 102, 241, .12);
  transition: transform .25s ease;
}
/* スマホ: 初期は隠し、スクロール時に表示 */
@media (max-width: 768px) {
  .nav {
    position: fixed; left: 0; right: 0; top: 0;
    transform: translateY(-100%);
  }
  .nav.is-visible { transform: translateY(0); }
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: var(--container-w); margin: 0 auto;
}
.nav-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.05rem; color: #0b1429 !important;
}
.nav-brand .nb-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--grad-brand);
  box-shadow: 0 4px 12px rgba(99,102,241,.4);
}
.nav-brand .nb-sub { font-size: .72rem; font-weight: 500; color: #5a6585; margin-left: 4px; }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a:not(.btn) { color: #3a4768 !important; font-size: .92rem; padding: 8px 12px; }
.nav-links a:not(.btn):hover { color: #0b1429 !important; }
.nav-cta { padding: 10px 20px !important; font-size: .92rem !important; }
@media (max-width: 768px) {
  .nav-links a:not(.btn) { display: none; }
}

/* ----- Hero (KV) — Aurora background (aceternity-inspired) ----- */
.hero {
  position: relative; overflow: hidden;
  min-height: auto;
  padding: 28px 0 24px;
  background: #f8fafc;        /* 明るいベース */
  color: #0b1429;
  text-align: left;
  display: flex; flex-direction: column; align-items: stretch;
  isolation: isolate;
}
.hero > .container { width: 100%; }
.hero > .top-client-section { width: 100%; }
.hero-bg-video { display: none; }
.hero-bg-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 30%, rgba(255,255,255,.4) 0%, transparent 70%);
}

/* Aurora Background (aceternity 風) — 流れる虹色オーロラ */
.aurora {
  position: absolute; inset: -10%;
  z-index: 0; pointer-events: none;
  filter: blur(10px);
  opacity: .55;
  background-image:
    repeating-linear-gradient(100deg,
      #ffffff 0%, #ffffff 7%,
      transparent 10%, transparent 12%,
      #ffffff 16%),
    repeating-linear-gradient(100deg,
      #93c5fd 10%,
      #c4b5fd 15%,
      #fbcfe8 20%,
      #a7f3d0 25%,
      #6366f1 30%);
  background-size: 300%, 200%;
  background-position: 50% 50%, 50% 50%;
  mask-image: radial-gradient(ellipse at 100% 0%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 100% 0%, black 10%, transparent 70%);
  animation: auroraMove 60s linear infinite;
  will-change: background-position;
}
@keyframes auroraMove {
  from { background-position: 50% 50%, 50% 50%; }
  to   { background-position: 350% 50%, 350% 50%; }
}
@media (prefers-reduced-motion: reduce) { .aurora { animation: none; } }

.hero .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: 48px;
}
.hero-text { max-width: 600px; }

.hero-visual {
  display: flex; align-items: center; justify-content: center;
  position: relative;
  min-height: 460px;
  padding: 0 20px;
}
/* KV画像スタック: 3枚を重ねて、グリッチでクロスフェード切替（早めのテンポ） */
.hero-visual-stack {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  z-index: 1;
}
.hero-visual-stack .kv-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 60px rgba(60,90,200,.35)) drop-shadow(0 0 80px rgba(120,150,255,.25));
  opacity: 0;
  animation: kvCycle 4.5s steps(1, end) infinite;
}
.hero-visual-stack .kv-img-1 { animation-delay: 0s; }
.hero-visual-stack .kv-img-2 { animation-delay: -3s; }
.hero-visual-stack .kv-img-3 { animation-delay: -1.5s; }

/* 各画像は4.5秒サイクルのうち1.5秒だけ表示（直前/直後にグリッチ） */
@keyframes kvCycle {
  /* 0〜1.5s: 表示中 */
  0%   { opacity: 1; transform: translate(0, 0); filter: drop-shadow(0 20px 60px rgba(60,90,200,.35)) drop-shadow(0 0 80px rgba(120,150,255,.25)); clip-path: none; }
  26%  { opacity: 1; transform: translate(0, 0); }
  /* 27〜33%: 切り替え時のグリッチ（短く激しく） */
  27%  { opacity: 1; transform: translate(-4px, 1px); filter: drop-shadow(3px 0 0 rgba(255,0,128,.85)) drop-shadow(-3px 0 0 rgba(0,200,255,.85)); }
  28%  { opacity: 1; transform: translate(4px, -2px); clip-path: inset(15% 0 60% 0); filter: hue-rotate(120deg) contrast(1.6); }
  29%  { opacity: 1; transform: translate(-3px, 0); clip-path: inset(55% 0 20% 0); filter: hue-rotate(-120deg) brightness(1.3); }
  30%  { opacity: 1; transform: translate(2px, 0); clip-path: inset(75% 0 5% 0); filter: invert(.1) contrast(1.3); }
  31%  { opacity: 1; transform: translate(-1px, 1px); clip-path: none; filter: drop-shadow(2px 0 0 rgba(0,200,255,.7)) drop-shadow(-2px 0 0 rgba(255,0,128,.7)); }
  /* 33%以降: 非表示 */
  33%  { opacity: 0; transform: translate(0, 0); clip-path: none; filter: drop-shadow(0 20px 60px rgba(60,90,200,.35)); }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-visual-stack .kv-img { animation: none; opacity: 0; }
  .hero-visual-stack .kv-img-1 { opacity: 1; }
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0; margin: 0;
  background: none; border: 0; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  color: #0b1429;
  font-size: .8rem; font-weight: 600; letter-spacing: .02em;
}
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #6366f1; box-shadow: 0 0 8px rgba(99,102,241,.7); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  max-width: 18ch;
  color: #0b1429;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}
.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: #3a4768;
  font-weight: 500;
  max-width: 56ch; margin: 0 0 36px;
  line-height: 1.7;
}
.hero-sub strong { color: #0b1429; font-weight: 700; }

.hero-cta {
  display: flex; gap: 14px; flex-wrap: wrap;
  justify-content: flex-start;
  margin-bottom: 48px;
}
.hero-cta .btn-primary {
  background: linear-gradient(135deg, #1350eb 0%, #2d68cc 50%, #06b6d4 100%);
  color: #ffffff !important;
  border: 0;
  padding: 16px 32px 16px 28px;
  font-weight: 700; letter-spacing: .02em;
  position: relative;
  box-shadow:
    0 8px 24px rgba(19, 80, 235, 0.4),
    0 0 0 1px rgba(19, 80, 235, 0.1);
  animation: ctaJiggle 2.4s ease-in-out infinite;
  transform-origin: center;
}
.hero-cta .btn-primary::after { content: "→"; margin-left: 6px; font-weight: 700; }
.hero-cta .btn-primary:hover {
  animation-play-state: paused;
  transform: translateY(-1px);
  box-shadow:
    0 12px 32px rgba(19, 80, 235, 0.5),
    0 0 0 1px rgba(19, 80, 235, 0.2);
}
/* 小刻み揺れ（注意喚起）アニメーション */
@keyframes ctaJiggle {
  0%, 60%, 100% { transform: translate(0, 0) rotate(0deg); }
  62% { transform: translate(-2px, 0) rotate(-1deg); }
  64% { transform: translate(2px, 0) rotate(1deg); }
  66% { transform: translate(-2px, -1px) rotate(-1deg); }
  68% { transform: translate(2px, 0) rotate(1deg); }
  70% { transform: translate(-1px, 0) rotate(-.5deg); }
  72% { transform: translate(1px, 0) rotate(.5deg); }
  74% { transform: translate(0, 0) rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-cta .btn-primary { animation: none; }
}
.hero-cta .btn-ghost {
  background: rgba(255, 255, 255, 0.65);
  color: #1a2944 !important;
  border: 1px solid rgba(99, 102, 241, 0.2);
  padding: 16px 28px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-weight: 600;
}
.hero-cta .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(99, 102, 241, 0.4);
}

.hero-meta {
  display: flex; gap: 6px 20px; flex-wrap: wrap;
  justify-content: flex-start;
  color: #3a4768;
  font-size: .88rem; font-weight: 600;
  padding: 0; margin: 0 0 22px;
}
.hero-meta li {
  list-style: none;
  display: inline-flex; align-items: center; gap: 6px;
  background: #ffeff8;
  border: 1px solid #ffb0dc;
  padding: 2px;
}
.hero-meta li::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  background: rgba(19, 80, 235, .12);
  border: 1px solid rgba(19, 80, 235, .5);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2.5 6L5 8.5L9.5 4' stroke='%231350eb' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: center; background-size: 10px 10px;
  flex-shrink: 0;
}

/* レスポンシブ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { order: 1; width: 100%; max-width: 380px; margin: 0 auto; }
  .hero-text { order: 0; max-width: 100%; }
}
@media (max-width: 768px) {
  .hero { min-height: auto; padding: 16px 0 24px; }
  .hero h1 { font-size: clamp(1.5rem, 6.5vw, 2.25rem); max-width: 100%; margin-bottom: 12px; }
  .hero-eyebrow { display: none; }              /* eyebrow をスマホで非表示 */
  .hero-sub { font-size: .92rem; margin-bottom: 20px; }
  .hero-cta { margin-bottom: 20px; }
  .hero-cta .btn-primary, .hero-cta .btn-ghost { padding: 12px 20px; font-size: .92rem; }
  .hero-meta { gap: 6px 16px; font-size: .76rem; margin-bottom: 16px; }
  .hero-grid { gap: 16px; }
  .hero-visual {
    width: 100%;
    max-width: 320px;
    min-height: 320px;
    margin: 0 auto;
    padding: 0;
  }
  .hero-visual-stack { width: 100%; max-width: 280px; }
}

/* ----- Trust Bar ----- */
.trust {
  background: var(--bg-dark); color: var(--text-on-dark);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 48px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  text-align: center;
}
.trust-grid .t-num {
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1.1;
}
.trust-grid .t-lbl { color: var(--text-on-dark-2); font-size: .82rem; margin-top: 6px; }
@media (max-width: 1024px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px)  { .trust-grid { grid-template-columns: repeat(2, 1fr); } }

/* ----- Problem / Solution ----- */
.psg {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: stretch;
}
.psg-card {
  background: var(--bg-white); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm);
}
.psg-card.problem { border-color: rgba(239,68,68,.2); background: linear-gradient(180deg, rgba(254,242,242,.5) 0%, #fff 100%); }
.psg-card.solution { border-color: rgba(99,102,241,.25); background: linear-gradient(180deg, rgba(238,242,255,.6) 0%, #fff 100%); }
.psg ul { list-style: none; padding: 0; margin: 16px 0 0; }
.psg li {
  position: relative; padding: 12px 0 12px 32px;
  border-top: 1px dashed var(--border-light);
}
.psg li:first-child { border-top: 0; }
.psg-card.problem li::before { content: "✕"; position: absolute; left: 8px; top: 14px; color: var(--danger); font-weight: 800; }
.psg-card.solution li::before { content: "✓"; position: absolute; left: 8px; top: 14px; color: var(--success); font-weight: 800; }
@media (max-width: 768px) { .psg { grid-template-columns: 1fr; gap: 24px; } .psg-card { padding: 28px; } }

/* ----- Tabs (7機能の概観) ----- */
.tabs-nav {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 32px;
}
.tab-btn {
  padding: 10px 20px; border-radius: 999px;
  background: var(--bg-light); color: var(--text-on-light-2);
  font-weight: 600; font-size: .92rem;
  transition: all .2s;
}
.tab-btn[aria-selected="true"] {
  background: var(--grad-brand); color: #fff;
  box-shadow: 0 4px 16px rgba(99,102,241,.3);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn .25s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tab-panel-card {
  background: var(--bg-white); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 40px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center;
}
.tab-panel-visual {
  background: var(--grad-card); border-radius: var(--radius); padding: 32px;
  min-height: 220px; display: grid; place-items: center;
  border: 1px solid var(--border-light);
}
.tab-panel-visual svg { max-width: 160px; opacity: .9; }
@media (max-width: 768px) { .tab-panel-card { grid-template-columns: 1fr; padding: 24px; } }

/* ----- Deep Dive (kirki sticky-tab style) ----- */
.dd-section { padding: 96px 0 120px; }
.dd-grid {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 64px;
  align-items: flex-start;
}

/* 左: sticky コンパクトタブナビ */
.dd-list {
  position: sticky;
  top: 96px;
  align-self: start;
  display: flex; flex-direction: column;
  gap: 4px;
  padding: 12px 0;
}
.dd-item {
  display: block;
  padding: 14px 0 14px 20px;
  border-left: 2px solid transparent;
  cursor: pointer;
  transition: border-color .25s ease, opacity .25s ease, transform .25s ease;
  opacity: .55;
}
.dd-item.is-active {
  border-left-color: var(--brand-1);
  opacity: 1;
  transform: translateX(2px);
}
.dd-num {
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-1); font-weight: 700; margin-bottom: 4px;
  display: block;
}
.dd-title {
  font-size: 1.05rem;
  font-weight: 700; letter-spacing: -.01em;
  color: var(--text-on-light); margin: 0;
  line-height: 1.4;
}
.dd-desc, .dd-tags { display: none; }                 /* タブ表示時は非表示 */
.dd-item.is-active .dd-desc {
  display: block;
  color: var(--text-on-light-2); font-size: .88rem; line-height: 1.7;
  margin: 8px 0 10px;
}
.dd-item.is-active .dd-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.dd-tags span {
  background: var(--bg-light); color: var(--text-on-light-2);
  padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 600;
  border: 1px solid var(--border-light);
}

/* 右: 通常フロー、7 mockup を縦並び */
.dd-visual {
  display: flex; flex-direction: column;
  gap: 80px;
}
.dd-mock {
  display: flex; align-items: center; justify-content: center;
  min-height: 60vh;
  margin-top: 40px;
  scroll-margin-top: 100px;
}
.dd-mock > .capability-mock-wrap {
  width: 100%;
  max-width: 760px;
}

/* レスポンシブ — kirki パターン: スマホでは右mockup非表示、左タブのみ縦並び表示 */
@media (max-width: 1024px) {
  .dd-grid { grid-template-columns: 1fr; gap: 0; }
  .dd-list {
    position: relative; top: auto;
    flex-direction: column;
    gap: 32px;
    padding: 0;
  }
  .dd-item {
    opacity: 1;
    padding: 20px 0 20px 20px;
    border-left: 3px solid var(--border-light);
  }
  .dd-item.is-active {
    border-left-color: var(--brand-1);
    transform: none;
  }
  /* 各タブで説明文・タグを常時表示（kirki スマホ版と同じ） */
  .dd-desc, .dd-item.is-active .dd-desc {
    display: block;
    color: var(--text-on-light-2); font-size: .9rem; line-height: 1.7;
    margin: 8px 0 12px;
  }
  .dd-tags, .dd-item.is-active .dd-tags {
    display: flex; flex-wrap: wrap; gap: 6px;
  }
  /* 右mockup は非表示（kirki と同じ） */
  .dd-visual { display: none; }
}

/* ----- Feature Sticky Scroll ----- */
.feat-grid {
  display: grid; grid-template-columns: 360px 1fr; gap: 64px;
  align-items: start;
}
.feat-side {
  position: sticky; top: 96px;
  background: var(--bg-card); color: var(--text-on-dark);
  border-radius: var(--radius-lg); padding: 32px;
}
.feat-side h3 { color: #fff; }
.feat-side p { color: var(--text-on-dark-2); font-size: .95rem; }
.feat-list { display: flex; flex-direction: column; gap: 24px; }
.feat-item {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px;
  background: var(--bg-white); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 28px; transition: all .2s;
}
.feat-item:hover { border-color: var(--brand-1); box-shadow: var(--shadow); transform: translateY(-2px); }
.feat-item .feat-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--grad-brand); display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 1.1rem;
}
.feat-item .feat-num { font-size: .85rem; color: var(--brand-1); font-weight: 700; }
.feat-item h4 { margin: 4px 0 8px; }
.feat-item .feat-bul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.feat-item .feat-bul span {
  background: var(--bg-light); color: var(--text-on-light-2);
  padding: 4px 10px; border-radius: 999px; font-size: .8rem;
}
@media (max-width: 1024px) {
  .feat-grid { grid-template-columns: 1fr; gap: 32px; }
  .feat-side { position: static; }
}

/* ----- HowTo 6-step Flow ----- */
.flow {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
  counter-reset: stepc;
}
.flow-step {
  background: var(--bg-card); color: var(--text-on-dark);
  border-radius: var(--radius); padding: 24px;
  position: relative;
  border: 1px solid rgba(255,255,255,.06);
}
.flow-step::before {
  counter-increment: stepc; content: "STEP " counter(stepc);
  display: inline-block;
  font-size: .72rem; letter-spacing: .12em; font-weight: 700;
  color: var(--accent-1); margin-bottom: 12px;
}
.flow-step h4 { color: #fff; font-size: 1rem; margin-bottom: 8px; }
.flow-step p { color: var(--text-on-dark-2); font-size: .85rem; line-height: 1.6; margin: 0; }
@media (max-width: 1024px) { .flow { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .flow { grid-template-columns: repeat(2, 1fr); } }

/* ----- Cases (導入事例) ----- */
.cases {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.case-card {
  background: var(--bg-white); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column;
}
.case-logo { font-weight: 700; color: var(--brand-1); margin-bottom: 12px; }
.case-card h4 { font-size: 1rem; margin: 0 0 12px; line-height: 1.5; }
.case-card .case-quote { color: var(--text-on-light-2); font-size: .92rem; flex-grow: 1; }
.case-card .case-stats {
  display: flex; gap: 16px; margin-top: 16px; padding-top: 16px;
  border-top: 1px dashed var(--border-light);
}
.case-card .case-stats div { font-size: .82rem; color: var(--text-on-light-2); }
.case-card .case-stats strong { display: block; font-size: 1.1rem; color: var(--brand-1); font-weight: 800; }
@media (max-width: 1024px) { .cases { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cases { grid-template-columns: 1fr; } }

/* ----- ROI Calculator ----- */
.roi {
  background: linear-gradient(135deg, var(--bg-deep) 0%, #1a1d35 100%);
  color: var(--text-on-dark);
  border-radius: var(--radius-xl); padding: 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.roi h3 { color: #fff; margin-bottom: 8px; }
.roi p { color: var(--text-on-dark-2); }
.roi-form { display: grid; gap: 20px; }
.roi-field {
  background: rgba(255,255,255,.06); padding: 16px 20px; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.1);
}
.roi-field label { display: block; font-size: .82rem; color: var(--text-on-dark-2); margin-bottom: 6px; }
.roi-field input[type="range"] { width: 100%; accent-color: var(--brand-1); }
.roi-field .roi-val { font-size: 1.5rem; font-weight: 800; color: #fff; }
.roi-result {
  background: var(--grad-brand); border-radius: var(--radius);
  padding: 32px; text-align: center;
  box-shadow: 0 16px 32px rgba(99,102,241,.3);
}
.roi-result .roi-r-lbl { font-size: .82rem; color: rgba(255,255,255,.85); }
.roi-result .roi-r-num { font-size: 3rem; font-weight: 900; color: #fff; line-height: 1; margin: 8px 0; }
.roi-result .roi-r-sub { font-size: .92rem; color: rgba(255,255,255,.85); }
@media (max-width: 768px) { .roi { grid-template-columns: 1fr; padding: 32px; } }

/* ----- Compare Table ----- */
.cmp {
  width: 100%; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.cmp th, .cmp td {
  padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--border-light);
}
.cmp thead th {
  background: var(--bg-deep); color: var(--text-on-dark);
  font-size: .92rem; font-weight: 700;
}
.cmp thead th:first-child { background: transparent; color: var(--text-on-light); }
.cmp tbody th { font-weight: 600; color: var(--text-on-light); background: var(--bg-light); }
.cmp tbody td { background: var(--bg-white); font-size: .92rem; }
.cmp tbody td.win { background: linear-gradient(180deg, rgba(99,102,241,.06) 0%, #fff 100%); font-weight: 700; color: var(--brand-1); }
.cmp tbody td .check { color: var(--success); font-weight: 800; }
.cmp tbody td .cross { color: var(--text-on-light-2); }
@media (max-width: 768px) { .cmp { font-size: .85rem; } .cmp th, .cmp td { padding: 12px 10px; } }

/* ----- Pricing (21st.dev style) ----- */
.pricing-card {
  max-width: 1080px; margin: 0 auto;
  background: linear-gradient(180deg, #ffffff 0%, #f9fafe 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 60px rgba(15,23,42,.08), 0 4px 12px rgba(15,23,42,.04);
  padding: 48px;
  overflow: hidden;
}
.pricing-grid {
  display: grid; grid-template-columns: 460px 1fr; gap: 56px;
  align-items: stretch;
}
.pricing-left { display: flex; flex-direction: column; gap: 20px; }
.pricing-right {
  background: linear-gradient(180deg, #f4f7ff 0%, #eef2ff 100%);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex; flex-direction: column;
}

/* Toggle group */
.toggle-group { display: flex; flex-direction: column; gap: 8px; }
.toggle-label {
  font-size: .82rem; font-weight: 700; color: var(--text-on-light-2);
  margin: 0; letter-spacing: .04em;
}
.toggle-pill {
  position: relative;
  display: inline-flex; align-items: stretch;
  background: #f1f5f9; border-radius: 999px;
  padding: 4px; gap: 0;
  width: fit-content; max-width: 100%;
}
.toggle-pill input[type="radio"] {
  position: absolute; opacity: 0; pointer-events: none;
  width: 0; height: 0;
}
.toggle-pill label {
  position: relative; z-index: 2;
  padding: 10px 22px;
  font-size: .92rem; font-weight: 600;
  color: var(--text-on-light-2);
  border-radius: 999px;
  cursor: pointer;
  transition: color .25s ease;
  white-space: nowrap;
  user-select: none;
}
.toggle-pill input[type="radio"]:checked + label {
  color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 6px 16px rgba(19,80,235,.28);
}
.toggle-pill input[type="radio"]:focus-visible + label {
  outline: 2px solid var(--brand-1); outline-offset: 2px;
}
.toggle-pill label:hover { color: var(--text-on-light); }
.toggle-pill input[type="radio"]:checked + label:hover { color: #fff; }

/* Price block */
.pricing-price-block {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  display: flex; flex-direction: column; gap: 6px;
}
.pricing-price-strike {
  font-size: .9rem; color: var(--text-on-light-2);
  text-decoration: line-through; min-height: 1.4em;
  opacity: 0; transition: opacity .25s ease;
}
.pricing-price-strike[data-active="1"] { opacity: 1; }
.pricing-price-main {
  display: flex; align-items: baseline; gap: 8px;
}
.pricing-price-amount {
  font-size: 2.6rem; font-weight: 900; letter-spacing: -.02em;
  color: var(--text-on-light);
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.pricing-price-suffix { font-size: .92rem; color: var(--text-on-light-2); font-weight: 500; }
.pricing-price-meta { font-size: .92rem; color: var(--text-on-light); font-weight: 600; margin: 0; }
.pricing-price-note {
  font-size: .82rem; color: var(--success); font-weight: 700; margin: 0;
  min-height: 1.2em;
}

.pricing-cta { margin-top: 8px; padding: 14px 24px; font-size: 1rem; }

/* Features panel */
.pricing-inside-title {
  font-size: 1.15rem; font-weight: 800; color: var(--text-on-light);
  margin: 0 0 4px;
}
.pricing-inside-sub {
  font-size: .85rem; color: var(--text-on-light-2);
  margin: 0 0 20px;
}
.pricing-features {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.pricing-features li {
  position: relative;
  padding-left: 32px;
  font-size: .94rem; color: var(--text-on-light); font-weight: 500;
  line-height: 1.4;
  animation: pricingFeatureIn .35s ease both;
}
.pricing-features li::before {
  content: "";
  position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--grad-brand);
  display: inline-block;
}
.pricing-features li::after {
  content: "✓";
  position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .78rem; font-weight: 800;
}
@keyframes pricingFeatureIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Tablet */
@media (max-width: 1024px) {
  .pricing-card { padding: 36px; }
  .pricing-grid { grid-template-columns: 340px 1fr; gap: 36px; }
  .pricing-price-amount { font-size: 2.2rem; }
}

/* Mobile */
@media (max-width: 768px) {
  .pricing-card { padding: 24px; border-radius: var(--radius-lg); }
  .pricing-grid { grid-template-columns: 1fr; gap: 28px; }
  .pricing-right { padding: 24px; }
  .toggle-pill { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .toggle-pill::-webkit-scrollbar { display: none; }
  .toggle-pill label { flex: 1 0 auto; text-align: center; padding: 10px 16px; font-size: .88rem; }
  .pricing-price-amount { font-size: 2rem; }
  .pricing-cta { width: 100%; }
}

/* ----- FAQ ----- */
.faq { max-width: 860px; margin: 0 auto; }
.faq-item {
  background: var(--bg-white); border: 1px solid var(--border-light);
  border-radius: var(--radius); margin-bottom: 12px; overflow: hidden;
}
.faq-q {
  width: 100%; padding: 20px 24px; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-weight: 700; color: var(--text-on-light); font-size: 1rem;
}
.faq-q:hover { background: var(--bg-light); }
.faq-q .faq-i {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--bg-light); display: grid; place-items: center;
  color: var(--brand-1); font-size: 1.1rem; font-weight: 700;
  transition: transform .2s;
}
.faq-item.open .faq-q .faq-i { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .3s var(--easing), padding .3s;
  padding: 0 24px; color: var(--text-on-light-2); font-size: .95rem; line-height: 1.8;
}
.faq-item.open .faq-a { max-height: 600px; padding: 0 24px 20px; }

/* ----- Big CTA ----- */
.bigcta {
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(99,102,241,.3) 0%, transparent 70%),
    var(--bg-deep);
  color: var(--text-on-dark);
  text-align: center; padding: 96px 24px;
  border-radius: var(--radius-xl);
  position: relative; overflow: hidden;
}
.bigcta::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 30%, transparent 80%);
  pointer-events: none;
}
.bigcta h2 {
  font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .5em;
  background: linear-gradient(180deg, #fff 0%, #b3b8ff 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bigcta p { color: var(--text-on-dark-2); font-size: 1.05rem; margin-bottom: 32px; }
.bigcta .btn { padding: 18px 40px; font-size: 1.1rem; }

/* ----- Footer ----- */
.footer {
  background: #06070f; color: var(--text-on-dark-2); padding: 64px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer-brand { font-size: 1.05rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-desc { font-size: .9rem; color: var(--text-on-dark-2); margin-bottom: 16px; max-width: 36ch; }
.footer-col h5 { color: #fff; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.footer-col ul li { padding: 4px 0; }
.footer-col a { color: var(--text-on-dark-2); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,.08);
  font-size: .82rem; color: var(--text-on-dark-2);
}
.footer-bottom small { font-size: .82rem; }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ===== Floating Cards around hero-visual (apply.html 踏襲) ===== */
.apply-kv-card {
  position: absolute; z-index: 4;
  box-shadow: 0 18px 40px rgba(15,23,42,0.12);
  border-radius: 14px;
  font-family: 'Noto Sans JP', sans-serif;
}
.apply-kv-card-accuracy {
  top: 30px; right: 0;
  background: rgba(255, 255, 255, 0.37);
  color: #0b1429;
  padding: 18px 22px;
  min-width: 180px;
  animation: applyFloat 4.5s ease-in-out infinite;
}
.apply-kv-card-accuracy .ring {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2.5px solid #ec4899;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px; font-size: 18px; color: #ec4899;
}
.apply-kv-card-accuracy .num { font-size: 22px; font-weight: 800; line-height: 1; margin: 0 0 4px; color: #0b1429; }
.apply-kv-card-accuracy .lbl { font-size: 11px; color: #475569; margin: 0; }

.apply-kv-card-companies {
  bottom: 40px; right: -10px;
  background: rgba(255, 255, 255, 0.37);
  padding: 18px 22px;
  min-width: 220px;
  animation: applyFloat 6s ease-in-out infinite;
  animation-delay: -2.5s;
}
.apply-kv-card-companies .num {
  font-size: 18px; font-weight: 800; color: #0f172a;
  line-height: 1.2; margin: 0;
  letter-spacing: -.01em; white-space: nowrap;
}
.apply-kv-card-companies .lbl { font-size: 12px; color: #1e293b; margin: 4px 0 8px; font-weight: 600; }
.apply-kv-card-companies .av { display: flex; gap: 4px; }
.apply-kv-card-companies .av span { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; }
.apply-kv-card-companies .av span:nth-child(1) { background: #fbbf24; }
.apply-kv-card-companies .av span:nth-child(2) { background: #60a5fa; }
.apply-kv-card-companies .av span:nth-child(3) { background: #ec4899; }

.apply-kv-card-leadscore {
  position: absolute;
  bottom: 200px; left: -16px;
  background: rgba(255, 255, 255, 0.37);
  padding: 14px 16px;
  width: 240px;
  z-index: 4;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15,23,42,0.18);
  font-family: 'Noto Sans JP', sans-serif;
  animation: applyFloat 5.5s ease-in-out infinite;
}
.apply-kv-card-leadscore .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.apply-kv-card-leadscore h4 { font-size: 13px; color: #0f172a; font-weight: 700; margin: 0; }
.apply-kv-card-leadscore .arrows { display: flex; gap: 4px; }
.apply-kv-card-leadscore .arrows span { width: 20px; height: 20px; border: 1px solid #cbd5e1; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; color: #64748b; }
.apply-kv-card-leadscore .desc { font-size: 11px; color: #475569; margin: 0 0 8px; line-height: 1.5; }
.apply-kv-card-leadscore .chart { height: 56px; width: 100%; }

@keyframes applyFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .apply-kv-card-accuracy, .apply-kv-card-companies, .apply-kv-card-leadscore { animation: none; }
}
/* モバイルでもカードを表示（縮小して画像周りに） */
@media (max-width: 1023px) {
  .apply-kv-card-accuracy {
    top: 10px; right: -8px;
    padding: 12px 14px;
    min-width: auto;
    transform: scale(.85); transform-origin: top right;
  }
  .apply-kv-card-accuracy .ring { width: 32px; height: 32px; font-size: 14px; margin-bottom: 4px; }
  .apply-kv-card-accuracy .num { font-size: 18px; }
  .apply-kv-card-accuracy .lbl { font-size: 10px; }

  .apply-kv-card-companies {
    bottom: 10px; right: -8px;
    padding: 10px 14px;
    min-width: auto;
    transform: scale(.85); transform-origin: bottom right;
  }
  .apply-kv-card-companies .num { font-size: 14px; }
  .apply-kv-card-companies .lbl { font-size: 11px; }
  .apply-kv-card-companies .av span { width: 18px; height: 18px; }

  .apply-kv-card-leadscore {
    bottom: 30px; left: -16px;
    width: 200px;
    padding: 10px 12px;
    transform: scale(.85); transform-origin: bottom left;
  }
  .apply-kv-card-leadscore h4 { font-size: 11px; }
  .apply-kv-card-leadscore .desc { font-size: 10px; }
  .apply-kv-card-leadscore .chart { height: 44px; }
}

/* ===== Testimonials Slider (Splide) — feature/index.html 踏襲 ===== */
.testimonials-section { overflow-x: hidden; }
.testimonials-section .splide__slide { padding: 6px; height: auto; }
.testimonials-section .splide__arrow {
  background: rgba(15, 23, 42, 0.88);
  width: 40px; height: 40px;
  opacity: 0.95;
  transition: background 0.2s, transform 0.2s;
}
.testimonials-section .splide__arrow svg { fill: #fff; width: 14px; height: 14px; }
.testimonials-section .splide__arrow:hover { background: linear-gradient(135deg, #1350eb, #06b6d4); transform: translateY(-50%) scale(1.06); }
.testimonials-section .splide__arrow:disabled { opacity: 0.3; }

.t-card {
  display: flex; flex-direction: column; height: 100%;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 3px 14px rgba(15, 23, 42, 0.04);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s, border-color 0.3s;
}
.t-card:hover {
  transform: translateY(-4px);
  border-color: rgba(19, 80, 235, 0.4);
  box-shadow: 0 16px 40px rgba(19, 80, 235, 0.12);
}
.t-img { display: block; position: relative; aspect-ratio: 16/9; overflow: hidden; background: #f1f5f9; }
.t-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.t-card:hover .t-img img { transform: scale(1.06); }
.t-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(19,80,235,0.88), rgba(6,182,212,0.88));
  color: #fff; display: flex; align-items: center; justify-content: center; gap: 6px;
  font-weight: 700; font-size: 13px; letter-spacing: 0.05em;
  opacity: 0; transition: opacity 0.3s;
}
.t-card:hover .t-img-overlay { opacity: 1; }

.t-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.t-meta { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #1e293b; font-weight: 700; flex-wrap: wrap; line-height: 1.35; }
.t-meta-icon {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
  color: #1350eb;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.t-meta-icon svg { width: 11px; height: 11px; }
.t-meta-role { color: #64748b; font-weight: 500; font-size: 10px; display: block; margin-top: 1px; }
.t-headline { font-size: 14px; font-weight: 700; color: #0f131c; line-height: 1.45; letter-spacing: -0.01em; margin: 0; }
.t-detail { font-size: 11.5px; color: #475569; line-height: 1.65; flex: 1; margin: 0; }
.t-detail b { color: #1e293b; font-weight: 700; }
.t-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; color: #1350eb; text-decoration: none;
  margin-top: auto; padding-top: 4px;
  transition: gap 0.2s, color 0.2s;
}
.t-link svg { width: 12px; height: 12px; }
.t-link:hover { color: #0c3fb8; gap: 9px; }

@media (max-width: 767px) {
  .testimonials-section .splide__arrow { display: none; }
  .testimonials-section .splide__slide { padding: 4px; }
  .t-card { border-radius: 16px; }
  .t-body { padding: 12px 14px 14px; gap: 7px; }
  .t-headline { font-size: 13.5px; }
  .t-detail { font-size: 11px; }
}

/* ===== Top Client logo carousel (feature/ 踏襲・フルブリード) ===== */
.top-client-section { position: relative; z-index: 3; }
.top-client {
  margin-top: 0;
  padding-top: 0.25rem;
  overflow: hidden;
  position: relative;
}
.top-client::before, .top-client::after {
  content: ''; position: absolute;
  top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none;
}
.top-client::before { left: 0;  background: linear-gradient(to right, #f8fafc, transparent); }
.top-client::after  { right: 0; background: linear-gradient(to left,  #f8fafc, transparent); }

.top-client .tc-label {
  text-align: center;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-family: 'Noto Sans JP', sans-serif;
}
.top-client .tc-track {
  display: flex; align-items: center; gap: 32px;
  width: max-content;
  animation: applyTcScroll 40s linear infinite;
}
.top-client:hover .tc-track { animation-play-state: paused; }
@keyframes applyTcScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.top-client .tc-item {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  height: 32px;
}
.top-client .tc-item img {
  max-height: 28px; max-width: 120px;
  width: auto; height: auto;
  object-fit: contain; opacity: 1; filter: none;
}
@media (max-width: 640px) {
  .top-client::before, .top-client::after { width: 30px; }
  .top-client .tc-track { gap: 24px; animation-duration: 30s; }
  .top-client .tc-item img { max-height: 22px; max-width: 90px; }
}
@media (prefers-reduced-motion: reduce) { .top-client .tc-track { animation: none; } }

/* ----- Utility ----- */
.text-grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.muted { color: var(--text-on-light-2); }
.muted-d { color: var(--text-on-dark-2); }

/* prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
