/* =========================================================
   ウマターミナル LP 魔改造レイヤー (2026-11-15 Muse)
   既存デザインの上に追加で読み込む上書きCSS。本文・機能には触らない。
   ========================================================= */

:root {
  --mk-emerald: #059669;
  --mk-teal: #0d9488;
  --mk-sky: #0284c7;
  --mk-amber: #f59e0b;
  --mk-carrot: #ea580c;
  --mk-grad: linear-gradient(92deg, #059669 0%, #0d9488 30%, #0284c7 55%, #7c3aed 80%, #ea580c 110%);
}

/* ---- ページ全体：うっすら漂うグラデーションの光 ---- */
body::before,
body::after {
  content: "";
  position: fixed;
  width: 55vmax;
  height: 55vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}
body::before {
  background: radial-gradient(circle at 35% 35%, #34d399, transparent 65%);
  top: -18vmax;
  left: -14vmax;
  animation: mk-drift-a 26s ease-in-out infinite alternate;
}
body::after {
  background: radial-gradient(circle at 60% 60%, #fbbf24, transparent 65%);
  bottom: -20vmax;
  right: -14vmax;
  animation: mk-drift-b 32s ease-in-out infinite alternate;
}
@keyframes mk-drift-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(9vmax, 6vmax) scale(1.15); }
}
@keyframes mk-drift-b {
  from { transform: translate(0, 0) scale(1.1); }
  to   { transform: translate(-8vmax, -5vmax) scale(0.95); }
}

/* パーティクル用キャンバス（JSが挿入） */
#mk-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ---- ヒーロー：流れるグラデーション背景 ---- */
.wy-hero {
  background:
    linear-gradient(115deg, rgba(236, 253, 245, 0.92) 0%, rgba(240, 249, 255, 0.88) 38%, rgba(255, 251, 235, 0.9) 72%, rgba(255, 247, 237, 0.92) 100%);
  background-size: 220% 220%;
  animation: mk-hero-flow 18s ease-in-out infinite alternate;
}
@keyframes mk-hero-flow {
  from { background-position: 0% 40%; }
  to   { background-position: 100% 60%; }
}
.wy-hero .container { position: relative; z-index: 2; }

/* ヒーロータイトルのハイライト：グラデーション文字＋光の帯 */
.wy-hero-title .highlight-text {
  background: linear-gradient(92deg, #047857, #0d9488 35%, #0284c7 65%, #059669);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: mk-shine-text 7s linear infinite;
  position: relative;
}
@keyframes mk-shine-text {
  from { background-position: 0% 0; }
  to   { background-position: 220% 0; }
}

/* バッジピル：ドットを鼓動させる */
.wy-badge-pill {
  box-shadow: 0 0 0 1px rgba(5, 150, 105, 0.25), 0 6px 18px -8px rgba(5, 150, 105, 0.55);
}
.wy-badge-pill .dot {
  animation: mk-pulse-dot 1.6s ease-in-out infinite;
}
@keyframes mk-pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.55); opacity: 0.65; }
}

/* ---- CTAボタン：光沢スイープ＋ホバーで浮く ---- */
.btn-main-cta, .btn-sub-cta {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}
.btn-main-cta:hover, .btn-sub-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 28px -12px rgba(4, 120, 87, 0.55);
}
.btn-main-cta::after, .btn-sub-cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  animation: mk-sheen 3.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes mk-sheen {
  0%, 55% { left: -80%; }
  85%, 100% { left: 130%; }
}

/* ---- ヒーローの数値：グラデーション文字 ---- */
.wy-stat-val {
  background: linear-gradient(92deg, #047857, #0d9488 60%, #0284c7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* プレビューカード＆チャット窓：影をリッチに（浮遊はJS） */
.wy-portal-preview-card {
  box-shadow: 0 30px 60px -25px rgba(4, 120, 87, 0.45), 0 12px 24px -12px rgba(2, 132, 199, 0.25) !important;
  will-change: transform;
}
.wy-chat-window {
  box-shadow: 0 26px 50px -22px rgba(15, 23, 42, 0.5) !important;
  will-change: transform;
}

/* ---- ティッカー（JSがヒーロー直後に挿入） ---- */
.mk-ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: #052e22;
  border-top: 1px solid #065f46;
  border-bottom: 1px solid #065f46;
  padding: 9px 0;
  white-space: nowrap;
}
.mk-ticker-track {
  display: inline-flex;
  gap: 0;
  animation: mk-ticker-move 36s linear infinite;
  will-change: transform;
}
.mk-ticker span {
  display: inline-block;
  padding: 0 26px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #a7f3d0;
}
.mk-ticker span b { color: #fbbf24; font-weight: 900; }
@keyframes mk-ticker-move {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- セクション見出し：グラデーションの下線バー ---- */
.sec-title {
  position: relative;
  padding-bottom: 14px;
}
.sec-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 120px;
  height: 4px;
  border-radius: 999px;
  background: var(--mk-grad);
  background-size: 220% 100%;
  animation: mk-shine-text 6s linear infinite;
}

/* ---- 特長カード：ホバーで浮上＋枠が光る ---- */
.feature-item {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 38px -18px rgba(4, 120, 87, 0.45);
  border-color: rgba(5, 150, 105, 0.55);
}
.feature-icon-box {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.feature-item:hover .feature-icon-box {
  transform: scale(1.12) rotate(-4deg);
}

/* FAQ：開閉をなめらかに */
.faq-item {
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.faq-item:hover {
  border-color: rgba(5, 150, 105, 0.5);
  box-shadow: 0 12px 26px -16px rgba(4, 120, 87, 0.4);
}

/* ---- スクロールバー＆選択色 ---- */
::selection { background: #059669; color: #ffffff; }
html { scrollbar-color: #059669 #ecfdf5; }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #ecfdf5; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #059669, #0284c7);
  border-radius: 999px;
  border: 2px solid #ecfdf5;
}

/* JSリビール前の初期状態（JSが付与・解除する） */
.mk-pre {
  opacity: 0;
  transform: translateY(26px);
}

/* ---- モーション軽減設定を尊重 ---- */
@media (prefers-reduced-motion: reduce) {
  body::before, body::after,
  .wy-hero, .wy-hero-title .highlight-text,
  .wy-badge-pill .dot, .btn-main-cta::after, .btn-sub-cta::after,
  .mk-ticker-track, .sec-title::after {
    animation: none !important;
  }
  .feature-item, .btn-main-cta, .btn-sub-cta { transition: none; }
  .mk-pre { opacity: 1; transform: none; }
}
