/* ============================================================
   OPCON LP CV改善 v20260430
   - 直近1週間 (2026-04-23〜29) Clarity観測:
       平均スクロール深度 40%, 上位デッドクリック「セキュリティ本場アメリカ発...」21件
       PC PaidSearch エンゲージメント 19.95s（モバイル63.88s に対して極端に低い）
   - GA4: cta_click 186 / 1024 LP PV = 18.2% (目標40%)
   - GA4: purchase 1 件 (CVR 0.1%, 目標 10%)
   - tldv 3/26 合意の方針継続: 価格訴求の調整・無料/低圧CTA・モーダル決済
   ============================================================ */

/* --- 1. デッドクリック対策: タップで「もっと見る」風の触感 --- */
.poor-card__item,
.feature-card__item {
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

@media (hover: none) and (pointer: coarse) {
  .poor-card__item:active,
  .feature-card__item:active {
    transform: scale(0.985);
    box-shadow: 0 0 0 2px rgba(0, 233, 97, 0.35) inset;
  }
}

@media screen and (max-width: 767px) {
  .poor-card__item .text,
  .feature-card__item .text {
    max-height: 4.8em;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
  }
  .poor-card__item.is-expanded .text,
  .feature-card__item.is-expanded .text {
    max-height: 30em;
  }
  .poor-card__item .text::after,
  .feature-card__item .text::after {
    content: "続きを読む \25BC";
    display: block;
    color: #00E961;
    font-size: 0.85rem;
    margin-top: 0.5em;
    font-weight: 700;
  }
  .poor-card__item.is-expanded .text::after,
  .feature-card__item.is-expanded .text::after {
    content: "閉じる \25B2";
  }
}

/* --- 2. FAQ: タップ領域拡大 + 視覚的アフォーダンス --- */
.faq-list__item--q {
  padding: 1rem 0.5rem;
  min-height: 56px;
  align-items: center;
  border-radius: 4px;
}
.faq-list__item--q:active {
  background: rgba(0, 233, 97, 0.08);
}
.js-faq-toggle .main-text::after {
  font-weight: 800;
  background: rgba(0, 233, 97, 0.12);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  right: 4px;
}

/* --- 3. メインCTA: モバイルでの存在感とタップ性向上 --- */
.fixed-cta {
  z-index: 9998;
}
.fixed-cta__btn {
  min-height: 56px;
  font-weight: 800;
  position: relative;
}
.fixed-cta__btn:not(.fixed-cta__btn--sub)::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(0, 233, 97, 0.6);
  animation: cta-pulse 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  pointer-events: none;
}
@keyframes cta-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 233, 97, 0.5); }
  70%  { box-shadow: 0 0 0 14px rgba(0, 233, 97, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 233, 97, 0); }
}

/* --- 4. メインビジュアルCTAをモバイル時に最低56px確保 --- */
@media screen and (max-width: 767px) {
  .mv-btn__area .btn a {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: 0.02em;
  }
}

/* --- 5. 動画見出しのクリック誘導 --- */
.video-section .section-title h2 {
  cursor: pointer;
  display: inline-block;
}
.video-section .section-title h2:hover .green-text,
.video-section .section-title h2:active .green-text {
  text-decoration: underline;
}

/* --- 6. 競合比較ストリップ --- */
.competitor-strip {
  background: linear-gradient(135deg, #1a1a23 0%, #26272F 100%);
  border: 1px solid rgba(0, 233, 97, 0.25);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.5rem auto;
  max-width: 920px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  text-align: center;
}
.competitor-strip__item {
  color: #fff;
  font-size: 0.85rem;
  line-height: 1.5;
}
.competitor-strip__item strong {
  display: block;
  color: #00E961;
  font-size: 1.25rem;
  margin-bottom: 2px;
}
.competitor-strip__note {
  grid-column: 1 / -1;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.25rem;
}

/* --- 7. 実績カードのデッドクリック対策 ---
   Clarity 上位デッドクリック先 (.achievement-card__title「セキュリティ本場アメリカ発…」)
   をタップ可能化し、比較表または料金プランへスクロールさせる */
.achievement-card {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.achievement-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 233, 97, 0.12);
}
.achievement-card:active {
  transform: scale(0.99);
}
.achievement-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #00B84D;
  letter-spacing: 0.01em;
}
.achievement-card__cta::after {
  content: "›";
  font-size: 1rem;
  line-height: 1;
}
.achievements-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.achievements-cta-row .btn-ghost a,
.achievements-cta-row .btn-green a {
  min-height: 48px;
  padding: 0 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* --- 8. GW特価カウントダウン (PCで離脱が早い問題への打ち手) ---
   PC PaidSearch エンゲージメント 19.95s対策。視認性を高めて即離脱を抑止 */
.gw-countdown {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-left: 0.5rem;
  padding: 0.15rem 0.5rem;
  background: rgba(255, 107, 53, 0.12);
  border-radius: 999px;
  color: #ff6b35;
  font-weight: 800;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}
.gw-countdown__num {
  font-size: 1rem;
}
.gw-countdown__label {
  font-size: 0.7rem;
  opacity: 0.85;
}
@media screen and (max-width: 767px) {
  .gw-countdown {
    margin-left: 0;
    margin-top: 0.25rem;
  }
}

/* --- 9. PC上部に固定する軽量CTA帯 (PCの平均19.95秒対策) ---
   既存の fixed-cta はモバイル限定。PCにはトップに細い特価バナーを常駐させる */
.pc-top-bar {
  display: none;
}
@media screen and (min-width: 1024px) {
  .pc-top-bar {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 9997;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(90deg, #0e1117 0%, #1a1d24 100%);
    color: #fff;
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(0, 233, 97, 0.25);
  }
  .pc-top-bar__price {
    color: #00E961;
    font-weight: 800;
  }
  .pc-top-bar__cta {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    background: #00E961;
    color: #0a0a10;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    transition: background 0.15s ease;
  }
  .pc-top-bar__cta:hover {
    background: #21f377;
  }
  .pc-top-bar__close {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: none;
    font-size: 1rem;
    cursor: pointer;
  }
  .pc-top-bar__close:hover { color: #fff; }
}
.pc-top-bar.is-hidden { display: none !important; }

/* --- 10. Voice card 横並びのスクロールヒント (PCで気付かれにくい問題対応) --- */
@media screen and (min-width: 1024px) {
  .voice-scroll {
    scroll-behavior: smooth;
  }
}
