/* ============================================
   AI DM LP — minimal overrides on moderation.css
   依存: style.css → moderation.css → ai-dm.css
   ============================================ */

/* スマホのみ改行（PCでは非表示） */
.sp-br { display: none; }
@media (max-width: 767px) {
  .sp-br { display: block; }
}

/* カード・リスト・表の中身は常に左揃え */
.m-pain-card,
.m-detect-list,
.m-detect-item,
.m-plan-feats,
.m-faq-item,
.a-diff-table,
.m-more-card {
  text-align: left;
}

/* ── HERO: dark indigo override（IG gradientを上書き） ── */
@keyframes aiGradientFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.m-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 25%, #312e81 55%, #1e40af 80%, #0f172a 120%);
  background-size: 300% 300%;
  animation: aiGradientFlow 6s ease infinite;
}

.m-hero::before {
  background: radial-gradient(circle at 70% 20%, rgba(99, 102, 241, .3) 0%, transparent 60%);
}

.m-hero::after {
  background: radial-gradient(circle at 30% 80%, rgba(59, 130, 246, .2) 0%, transparent 55%);
}

/* Hero h1 em: ゴールド → 青紫グラデ */
.m-h1 em {
  background: linear-gradient(90deg, #a5b4fc, #60a5fa, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

/* Hero CTAボタン: indigo text（IG pinkを上書き） */
.m-hero .btn-solid {
  background: #fff !important;
  color: #4f46e5 !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .25);
}

/* ── Pain grid: 3列→2×2に変更 ── */
.m-pain-grid {
  grid-template-columns: repeat(2, 1fr);
}

/* ── detect items: title + description layout ── */
.a-detect-item {
  align-items: flex-start;
}

.a-detect-item strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.a-detect-item p {
  font-size: 13px;
  color: var(--mid);
  margin: 0;
  line-height: 1.6;
}

/* detect badge: indigo tint（IG pink を上書き） */
.a-badge {
  background: #eef2ff;
  color: #6366f1;
}

/* ── Screenshot placeholder ── */
.a-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #e0e7ff 0%, #dbeafe 50%, #ede9fe 100%);
  border-radius: 20px;
  border: 2px dashed #a5b4fc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6366f1;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  line-height: 1.6;
}

/* ── Featured plan card: dark indigo theme ── */
.m-plan-card.featured {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  border-color: #4f46e5;
}

.m-plan-card.featured .m-plan-name,
.m-plan-card.featured .m-plan-price,
.m-plan-card.featured .m-plan-limit {
  color: #fff;
}

.m-plan-card.featured .m-plan-price span {
  color: rgba(255, 255, 255, .6);
}

.m-plan-card.featured .m-plan-feats li {
  color: rgba(255, 255, 255, .85);
}

.m-plan-card.featured .m-plan-feats li.na {
  color: rgba(255, 255, 255, .3);
}

.m-plan-card.featured .m-plan-feats li.na::before {
  color: rgba(255, 255, 255, .3);
}

.m-plan-card.featured .m-plan-feats li::before {
  color: #a5b4fc;
}

.m-plan-card.featured .m-plan-rec {
  background: rgba(255, 255, 255, .15);
  color: #fff;
}

/* ── Steps: 画像付きレイアウト ── */
.a-steps-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 32px;
  margin-top: 52px;
}

/* Desktop: 画像を1行目・半幅（中央揃え） */
.a-step-img {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  justify-content: center;
}

.a-step-img img {
  width: 50%;
  display: block;
  border-radius: 20px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, .12);
}

.a-step--1 { grid-column: 1; grid-row: 2; }
.a-step--2 { grid-column: 2; grid-row: 2; }
.a-step--3 { grid-column: 3; grid-row: 2; }

/* Mobile: 2カラム（Steps左 / 画像右・3行すべてにわたる） */
@media (max-width: 767px) {
  .a-steps-layout {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "step1 img"
      "step2 img"
      "step3 img";
    gap: 14px;
    align-items: start;
  }
  .a-step-img  { grid-area: img; align-self: start; }
  .a-step--1   { grid-area: step1; }
  .a-step--2   { grid-area: step2; }
  .a-step--3   { grid-area: step3; }

  .a-step-img img {
    width: 100%;
    height: auto;
    border-radius: 14px;
  }
}

/* ── ALL FEATURES: 全機能一覧 ── */
.a-features {
  padding: 100px 40px;
  background: #f7f7fb;
}

.a-features-inner {
  max-width: 960px;
  margin: 0 auto;
}

/* 比較表ラッパー（モバイルは横スクロール） */
.a-feat-table-wrap {
  margin-top: 52px;
  overflow-x: auto;
  border-radius: 20px;
  box-shadow: 0 8px 48px rgba(0, 0, 0, .12);
}

/* グリッド: 機能名 2fr / プラン3列 各1fr */
.a-feat-table {
  display: grid;
  grid-template-columns: minmax(170px, 2fr) repeat(3, minmax(120px, 1fr));
  min-width: 520px;
  border-radius: 20px;
  overflow: hidden;
}

/* ヘッダー行: ダーク */
.a-feat-th {
  padding: 22px 14px 20px;
  text-align: center;
  background: #18181b;
  border-bottom: none;
}
/* Business列: 濃いインディゴ + 上部グラデーションアクセント */
.a-feat-th.a-feat-col--biz {
  background: #1e1b4b;
  position: relative;
}
.a-feat-th.a-feat-col--biz::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #818cf8, #c4b5fd, #818cf8);
}
.a-feat-th-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #c4b5fd;
  background: rgba(196, 181, 253, .15);
  border: 1px solid rgba(196, 181, 253, .3);
  padding: 2px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
  letter-spacing: .04em;
}
.a-feat-th-name {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.a-feat-th-price {
  font-size: 12px;
  color: rgba(255, 255, 255, .45);
  margin-top: 5px;
}
.a-feat-th-price strong {
  font-size: 15px;
  color: rgba(255, 255, 255, .85);
  font-weight: 700;
}

/* カテゴリ行（全列スパン） */
.a-feat-cat {
  grid-column: 1 / -1;
  padding: 9px 18px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6366f1;
  background: #eef2ff;
  border-top: 1px solid #e0e7ff;
  border-bottom: 1px solid #e0e7ff;
}

/* 機能名セル */
.a-feat-label {
  padding: 14px 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: #333;
  background: #fff;
  border-bottom: 1px solid #f0f0f6;
  display: flex;
  align-items: center;
}

/* 値セル */
.a-feat-cell {
  padding: 14px 10px;
  font-size: 13px;
  text-align: center;
  background: #fff;
  border-bottom: 1px solid #f0f0f6;
  border-left: 1px solid #f0f0f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  line-height: 1.4;
}
/* Business列: 薄い紫背景 + 左右に細い border */
.a-feat-cell.a-feat-col--biz {
  background: #fbf8ff;
  border-left: 1px solid #e9e0ff;
}

/* ✓ チェック: SVG風の緑 */
.a-feat-check {
  color: #059669;
  font-size: 17px;
  font-weight: 800;
}

/* — 非対応 */
.a-feat-none {
  color: #d1d5db;
  font-size: 18px;
}

/* ── CASES: 導入事例 ── */
.a-cases {
  padding: 100px 40px;
  background: #fff;
}

.a-cases-inner {
  max-width: 960px;
  margin: 0 auto;
}

.a-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
}

.a-case-card {
  border: 1.5px solid #eee;
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.a-case-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.a-case-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.a-case-avatar--indigo { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.a-case-avatar--rose   { background: linear-gradient(135deg, #f43f5e, #e11d48); }
.a-case-avatar--teal   { background: linear-gradient(135deg, #06b6d4, #0891b2); }

.a-case-name {
  font-size: 14px;
  font-weight: 700;
  color: #111;
}

.a-case-type {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}

.a-case-kl-label {
  font-size: 10px;
  font-family: var(--ff-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #6366f1;
  margin-bottom: 8px;
}

.a-case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.a-case-tags span {
  background: #eef2ff;
  color: #4338ca;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
}

.a-case-result {
  background: linear-gradient(135deg, #eef2ff, #ede9fe);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.a-case-stat {
  font-family: var(--ff-display);
  font-size: 30px;
  font-weight: 900;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.a-case-stat-label {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

.a-case-quote {
  font-size: 14px;
  line-height: 1.75;
  color: #555;
  margin: 0;
  border-left: 3px solid #e0e7ff;
  padding-left: 12px;
  flex-grow: 1;
}

/* モバイル: 1列 */
@media (max-width: 767px) {
  .a-cases { padding: 48px 16px; }
  .a-cases-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
  }

  /* All Features モバイル（横スクロール） */
  .a-features { padding: 56px 16px; }
  .a-feat-table-wrap { border-radius: 12px; }
  .a-feat-label { font-size: 12.5px; padding: 12px 14px; }
  .a-feat-cell { font-size: 12px; padding: 12px 8px; }
  .a-feat-th-name { font-size: 14px; }
  .a-feat-cat { font-size: 10px; padding: 8px 14px; }
}

/* ── DIFF: 他のAI DMとの違い ── */
.a-diff {
  background: #f8fafc;
  padding: 100px 40px;
}

.a-diff-inner {
  max-width: 960px;
  margin: 0 auto;
}

.a-diff-table {
  margin-top: 52px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .10);
}

/* ヘッダー行 */
.a-diff-head {
  display: grid;
  grid-template-columns: 160px 1fr 1fr;
  background: #0d0d0d;
}

.a-diff-head-label {
  padding: 20px 24px;
}

.a-diff-head-bad {
  padding: 20px 24px;
  font-family: var(--ff-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .35);
  border-left: 1px solid rgba(255, 255, 255, .06);
}

/* AutoDM列ヘッダー: IGグラデ */
.a-diff-head-good {
  padding: 20px 24px;
  font-family: var(--ff-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ig-grad);
}

/* データ行 */
.a-diff-row {
  display: grid;
  grid-template-columns: 160px 1fr 1fr;
  border-top: 1px solid #eee;
  background: #fff;
}

.a-diff-tag {
  padding: 24px;
  font-family: var(--ff-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #333;
  background: #f7f7f7;
  display: flex;
  align-items: center;
  border-right: 1px solid #eee;
}

.a-diff-bad,
.a-diff-good {
  padding: 24px 28px;
  font-family: var(--ff-body);
  font-size: 15px;
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 12px;
}

.a-diff-bad {
  color: #aab;
  background: #fff;
  border-right: 1px solid #eee;
  text-decoration: line-through;
  text-decoration-color: #dde;
}

/* AutoDM列: IGグラデのtint背景 */
.a-diff-good {
  color: #111;
  font-weight: 600;
  background: linear-gradient(to right, rgba(249, 67, 90, .05), rgba(131, 58, 180, .06));
}

.a-diff-good--copy {
  font-weight: 700;
  font-size: 16px;
  color: #0d0d0d;
}

/* アイコン */
.a-diff-bad::before {
  content: '✕';
  font-size: 16px;
  color: #ccc;
  font-weight: 700;
  flex-shrink: 0;
}

.a-diff-good::before {
  content: '✓';
  font-size: 18px;
  font-weight: 700;
  background: var(--ig-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

/* ============================================
   MOBILE RESPONSIVE — ai-dm.html overrides
   ベース: 375px / 8ptグリッド / 16px横余白
   ============================================ */

/* ── 全モバイル共通 (≤767px) ── */
@media (max-width: 767px) {

  /* セクション見出し・ラベル・サブテキストを中央揃え */
  .m-pain-inner,
  .m-solution-inner,
  .m-plan-inner,
  .m-more-inner,
  .m-faq-inner,
  .a-diff-inner,
  .a-cases-inner,
  .a-features-inner {
    text-align: center;
  }

  /* 比較表の中身は左・中央揃えを各セルに委ねる */
  .a-feat-label,
  .a-feat-cat {
    text-align: left;
  }

  /* 料金カード: 名前・価格・件数を中央揃え（featsリストは左のまま） */
  .m-plan-card {
    text-align: center;
  }

  /* セクション: 縦48〜64px / 横16px */
  .m-hero      { padding: 96px 16px 56px; }
  .m-pain      { padding: 48px 16px; }
  .m-solution  { padding: 48px 16px; }
  .m-steps     { padding: 48px 16px; }
  .m-plan      { padding: 48px 16px; }
  .m-more      { padding: 48px 0 0; }
  .m-more-inner{ padding: 0 16px 36px; }
  .m-more-scroll { padding: 8px 16px 20px; }
  .m-faq       { padding: 48px 16px; }
  .m-cta       { padding: 56px 16px; }
  .m-footer    { padding: 32px 16px; }
  .a-diff      { padding: 48px 16px; }

  /* H1: 36〜46px */
  .m-h1 {
    font-size: clamp(36px, 10vw, 46px);
    line-height: 1.15;
  }

  /* H2: 24〜34px（全セクション統一） */
  .m-sec-h2 {
    font-size: clamp(24px, 7vw, 34px);
    line-height: 1.25;
  }

  /* 本文: 16px最低ライン */
  .m-desc     { font-size: 16px; line-height: 1.7; }
  .m-sec-sub  { font-size: 15px; line-height: 1.7; }
  .m-pain-body{ font-size: 15px; line-height: 1.65; }

  /* CTAボタン: 56px height */
  .btn-xl {
    min-height: 56px !important;
    font-size: 16px !important;
  }

  /* モバイルStickyに安全域（iPhoneホームバー対策） */
  .mobile-sticky-cta {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }

  /* Chrome動的ツールバー収縮時の下部gap対策: ::afterで背景を下に延長 */
  .mobile-sticky-cta::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 60px;
    background: rgba(255, 255, 255, .96);
    pointer-events: none;
  }

  /* diff table: タグ全幅 + bad/good横並び */
  .a-diff-head {
    grid-template-columns: 1fr 1fr;
  }

  .a-diff-head-label { display: none; }

  .a-diff-head-bad {
    border-left: none;
    padding: 12px 14px;
    font-size: 11px;
  }

  .a-diff-head-good {
    padding: 12px 14px;
    font-size: 11px;
  }

  .a-diff-row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "tag tag"
      "bad good";
  }

  .a-diff-tag {
    grid-area: tag;
    border-right: none;
    border-bottom: 1px solid #eee;
    font-size: 11px;
    padding: 10px 14px;
    letter-spacing: .04em;
  }

  .a-diff-bad  { grid-area: bad; }
  .a-diff-good { grid-area: good; }

  .a-diff-bad,
  .a-diff-good {
    padding: 14px 14px;
    font-size: 13px;
    align-items: flex-start;
  }

  .a-diff-bad {
    border-right: 1px solid #eee;
    border-bottom: none;
    text-decoration: none;
    color: #bbb;
  }

  .a-diff-good--copy { font-size: 13px; }
}

/* ── ≤389px: Android標準 / iPhone 12以下 ── */
@media (max-width: 389px) {
  .m-h1     { font-size: clamp(32px, 9vw, 38px); }
  .m-sec-h2 { font-size: clamp(22px, 6.5vw, 28px); }
  .m-pain-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* ── ≤359px: iPhone SE等（最小サイズ） ── */
@media (max-width: 359px) {
  .m-hero     { padding: 88px 16px 48px; }
  .m-h1       { font-size: 30px; }
  .m-sec-h2   { font-size: 22px; }
  .m-pain, .m-solution, .m-steps,
  .m-plan, .m-faq, .a-diff { padding: 40px 16px; }
  .m-cta      { padding: 48px 16px; }
  .m-more-inner { padding: 0 16px 32px; }
  .m-more-scroll { padding: 8px 16px 16px; }
}


/* ── CTA h2 em: IGグラデ（moderation.cssのvar(--ig-grad)をそのまま使用） ── */
