/* =========================================================
   seo.css — SEO・MEO・AI検索対策 詳細ページ専用スタイル
   ========================================================= */

/* ---------- 3チャネルセクション ---------- */
.seo-approach {
  background: var(--bg);
}
.seo-approach__head {
  text-align: center;
  margin-bottom: 20px;
}
.seo-approach__lead {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin: 8px 0 56px;
}
.seo-approach__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.seo-approach-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition:
    transform 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.seo-approach-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity 0.3s;
}
.seo-approach-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-1);
  box-shadow: 0 16px 48px rgba(31, 108, 255, 0.12);
}
.seo-approach-card:hover::before {
  opacity: 1;
}
.seo-approach-card__icon {
  width: 64px;
  height: 64px;
  color: var(--brand-1);
  position: relative;
  z-index: 1;
}
.seo-approach-card__icon svg {
  width: 100%;
  height: 100%;
}
.seo-approach-card__badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 4px 12px;
  border-radius: 40px;
  background: var(--grad);
  color: #fff;
  align-self: flex-start;
  position: relative;
  z-index: 1;
}
.seo-approach-card__badge--meo {
  background: linear-gradient(135deg, #00b248, #00e676);
}
.seo-approach-card__badge--aio {
  background: linear-gradient(135deg, #6a3cff, #a66cff);
}
.seo-approach-card__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  position: relative;
  z-index: 1;
}
.seo-approach-card__desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.85;
  margin: 0;
  flex: 1;
  position: relative;
  z-index: 1;
}
.seo-approach-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  position: relative;
  z-index: 1;
}
.seo-approach-card__list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.03em;
  color: var(--brand-1);
  font-weight: 600;
}
.seo-approach-card__list li::before {
  content: "→";
  font-size: 11px;
}

/* ---------- SVGアニメーション ---------- */

/* カード1: SEO — 検索結果の出現 + 上昇矢印 */
.seo-rg1 { opacity: 0; animation: seo-fade-up 0.5s 0.2s ease both; }
.seo-rg2 { opacity: 0; animation: seo-fade-up 0.5s 0.6s ease both; }
.seo-rg3 { opacity: 0; animation: seo-fade-up 0.5s 1.0s ease both; }
.seo-up-arrow { opacity: 0; animation: seo-fade-up 0.4s 1.3s ease both; }

@keyframes seo-fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* カード2: MEO — ピンのバウンスイン + 波紋のパルス */
.meo-pin {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: meo-bounce 0.7s 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.meo-wave1 {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: meo-ripple 2s 1.0s ease-out infinite;
}
.meo-wave2 {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: meo-ripple 2s 1.5s ease-out infinite;
}
.meo-wave3 {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: meo-ripple 2s 2.0s ease-out infinite;
}

@keyframes meo-bounce {
  0%   { opacity: 0; transform: translateY(-16px) scaleY(0.6); }
  60%  { opacity: 1; transform: translateY(3px)   scaleY(1.05); }
  80%  { transform: translateY(-2px) scaleY(0.98); }
  100% { opacity: 1; transform: translateY(0)     scaleY(1); }
}
@keyframes meo-ripple {
  0%   { opacity: 0.7; transform: scale(0.6); }
  100% { opacity: 0;   transform: scale(1.8); }
}

/* カード3: AIO — チャット吹き出し + カーソル点滅 */
.aio-q  { opacity: 0; animation: seo-fade-up 0.4s 0.3s ease both; }
.aio-a1 { opacity: 0; animation: seo-fade-up 0.4s 0.8s ease both; }
.aio-a2 { opacity: 0; animation: seo-fade-up 0.4s 1.2s ease both; }
.aio-cursor {
  opacity: 0;
  animation: aio-blink 0.8s 1.2s step-end infinite;
}

@keyframes aio-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 860px) {
  .seo-approach__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .seo-approach-card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }
}
@media (max-width: 640px) {
  .seo-approach__grid {
    grid-template-columns: 1fr;
  }
  .seo-approach-card:nth-child(3) {
    grid-column: auto;
    max-width: none;
  }
  .seo-approach-card {
    padding: 28px 24px;
  }
}
