/* ========================================
   Base
======================================== */

* { box-sizing: border-box; }

/* 管理バー用の余白をフロントでは消す（開発用） */
html { margin-top: 0 !important; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background: radial-gradient(circle at 20% 0%, #1e293b, #020617 60%);
  color: #e5e7eb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body { position: relative; }
canvas { display: block; }

/* ========================================
   Layout / Common
======================================== */

/* Three.jsのステージ */
.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
}

/* オーバーレイコンテンツ共通 */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.hero-inner {
  max-width: 720px;
  width: 100%;
}

/* STEP1〜5 のセクションは上寄せ＆余白統一 */
.hero-step1,
.hero-step2,
.hero-step3,
.hero-step-compare,
.hero-step4,
.hero-step5 {
  align-items: flex-start;
  padding-top: 80px;
  padding-bottom: 80px;
}

/* うっすら光のオーバーレイ */
.hero-glow {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(56, 189, 248, 0.16), transparent 55%),
    radial-gradient(circle at 85% 80%, rgba(168, 85, 247, 0.18), transparent 55%);
  mix-blend-mode: screen;
  opacity: 0.95;
}

/* ========================================
   Hero heading / buttons
======================================== */

.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: #9ca3af;
  backdrop-filter: blur(10px);
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0.3)
  );
}

.label-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #38bdf8;
}

.hero-title {
  margin: 20px 0 12px;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.2;
  letter-spacing: 0.06em;
}

.hero-title span { display: inline-block; }

/* STEP2以降のサブ見出し用 */
.hero-title-sub {
  font-size: clamp(1.8rem, 3.6vw, 2.4rem);
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.hero-highlight {
  background: linear-gradient(120deg, #38bdf8, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 24px;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.9;
  color: #cbd5f5;
  max-width: 40em;
}

/* “塊感”を消す：同クラス連続のときだけ間を作る */
.hero-lead + .hero-lead { margin-top: 1.1rem; }

/* 要約（STEP共通） */
.hero-summary {
  margin-top: 0.6rem;
  margin-bottom: 1.0rem;
  font-size: 0.95rem;
  opacity: 0.72;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 1.6rem;
  margin-bottom: 28px;
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.hero-meta-badge {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.7);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-button-main {
  appearance: none;
  border: none;
  text-decoration: none;
  cursor: pointer;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0b1120;
  background: linear-gradient(135deg, #38bdf8, #a855f7);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.65);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.hero-button-main:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
  filter: brightness(1.04);
}

.hero-button-sub {
  appearance: none;
  border-radius: 999px;
  padding: 0.7rem 1.3rem;
  font-size: 0.85rem;
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.65);
  background: radial-gradient(
    circle at 0% 0%,
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0.3)
  );
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.hero-button-sub:hover {
  border-color: #cbd5f5;
  background: radial-gradient(
    circle at 0% 0%,
    rgba(15, 23, 42, 0.95),
    rgba(15, 23, 42, 0.4)
  );
  color: #f9fafb;
}

/* ========================================
   STEP 2 専用（見た目維持の上書き）
======================================== */

.hero-step2 .hero-lead {
  max-width: 42rem;
  letter-spacing: 0.01em;
}

.hero-kicker {
  margin-top: 0.35rem;
  font-size: 0.92rem;
  opacity: 0.72;
}

/* ========================================
   STEP 3.5 比較表（PCテーブル）
======================================== */

.hero-step-compare {
  padding-top: 60px;
  padding-bottom: 80px;
}

.compare-intro {
  margin-top: 16px;
  margin-bottom: 24px;
  font-size: 0.95rem;
  line-height: 1.9;
  color: #cbd5f5;
}

.compare-table {
  margin-top: 24px;
  border-radius: 20px;
  padding: 18px 18px 8px;
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.12), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(168, 85, 247, 0.14), transparent 60%),
    rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
}

.compare-row {
  display: grid;
  grid-template-columns: minmax(120px, 1.1fr) repeat(3, minmax(140px, 1.2fr));
  gap: 12px;
  padding: 10px 8px;
  align-items: flex-start;
}

.compare-row + .compare-row {
  border-top: 1px solid rgba(51, 65, 85, 0.8);
}

.compare-row-header {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ca3af;
}

.compare-head-cell {
  font-size: 0.8rem;
  font-weight: 600;
  text-align: left;
}

.compare-head-cell--accent {
  background: linear-gradient(120deg, #38bdf8, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.compare-label {
  font-size: 0.8rem;
  color: #9ca3af;
}

.compare-cell {
  font-size: 0.85rem;
  line-height: 1.7;
  color: #e5e7eb;
}

.compare-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: #cbd5f5;
  background: rgba(15, 23, 42, 0.7);
  margin-bottom: 4px;
}

.compare-badge-good,
.compare-badge-mid,
.compare-badge-bad {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 4px;
}

.compare-badge-good {
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: #bbf7d0;
  background: rgba(22, 163, 74, 0.12);
}

.compare-badge-mid {
  border: 1px solid rgba(234, 179, 8, 0.55);
  color: #fef9c3;
  background: rgba(202, 138, 4, 0.18);
}

.compare-badge-bad {
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fecaca;
  background: rgba(185, 28, 28, 0.16);
}

/* PC/SP 初期表示 */
.compare-table-pc { display: block; }
.compare-table-sp { display: none; }

.compare-summary {
  margin-top: 20px;
  font-size: 0.9rem;
  line-height: 1.8;
  color: #cbd5f5;
  opacity: 0.9;
}

/* ========================================
   STEP 4 料金とサポート
======================================== */

.hero-step4 {
  padding-top: 80px;
  padding-bottom: 80px;
}

.hero-price-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.hero-price-card {
  border-radius: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.12), transparent 60%),
    rgba(15, 23, 42, 0.9);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.7);
}

.hero-price-card-support {
  background:
    radial-gradient(circle at 100% 0%, rgba(168, 85, 247, 0.16), transparent 60%),
    rgba(15, 23, 42, 0.9);
}

.hero-price-tag {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 6px;
}

.hero-price-main {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.hero-price-main span {
  font-size: 0.85rem;
  font-weight: 400;
  color: #9ca3af;
  margin-left: 4px;
}

.hero-price-note {
  font-size: 0.8rem;
  color: #cbd5f5;
  line-height: 1.8;
  margin-bottom: 4px;
}

.hero-price-list {
  margin: 8px 0 0;
  padding-left: 1.2em;
  font-size: 0.8rem;
  color: #cbd5f5;
  line-height: 1.7;
}

/* ========================================
   STEP 4.5 / AiMサポートプラス
======================================== */

.hero-step4-5 {
  padding-top: 80px;
  padding-bottom: 80px;
}

.hero-step4-5 .hero-lead-support { max-width: 720px; }

/* 3つの特徴カード */
.support-features-grid {
  margin-top: 32px;
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.support-feature-card--simple {
  border-radius: 18px;
  padding: 18px 16px 20px;
  text-align: center;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.14), transparent 60%),
    rgba(15, 23, 42, 0.92);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
}

.support-feature-card--simple:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.9);
  border-color: rgba(96, 165, 250, 0.9);
}

.support-feature-icon {
  width: 130px;
  height: 130px;
  border-radius: 9999px;
  background:
    radial-gradient(circle at 30% 0%, rgba(56, 189, 248, 0.5), transparent 65%),
    radial-gradient(circle at 70% 100%, rgba(168, 85, 247, 0.35), transparent 65%),
    rgba(15, 23, 42, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.support-feature-icon img {
  width: 72%;
  height: auto;
  display: block;
}

.support-feature-title {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* メインカード（料金＆中身） */
.support-main-card {
  margin-top: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.9fr);
  gap: 24px;
  padding: 24px 26px;
  border-radius: 22px;
  border: 1px solid rgba(129, 140, 248, 0.7);
  background:
    radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.32), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(147, 51, 234, 0.25), transparent 55%),
    rgba(15, 23, 42, 0.96);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

.support-main-card-left {
  border-right: 1px solid rgba(148, 163, 184, 0.5);
  padding-right: 20px;
}

.support-main-card-right {
  padding-left: 8px;
  margin-top: 45px;
}

.support-plan-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(30, 64, 175, 0.9);
  color: #e5e7eb;
  margin-bottom: 8px;
}

.support-plan-price {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.support-plan-price span {
  font-size: 1.1rem;
  margin-left: 4px;
}

.support-plan-caption {
  font-size: 0.8rem;
  color: #cbd5f5;
  line-height: 1.8;
}

.support-detail-list {
  margin: 0;
  padding-left: 1.2em;
  font-size: 0.8rem;
  color: #cbd5f5;
  line-height: 1.8;
}

.support-detail-list li + li { margin-top: 4px; }

/* AiMサポートプラス ロゴ */
.aim-support-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  background:
    radial-gradient(circle at 0% 0%, rgba(56,189,248,0.35), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(168,85,247,0.45), transparent 55%),
    rgba(15,23,42,0.95);
  border: 1px solid rgba(129,140,248,0.9);
  box-shadow: 0 10px 25px rgba(15,23,42,0.8);
  margin-bottom: 15px;
}

.aim-support-logo-mark {
  font-size: 0.9rem;
  font-weight: 700;
  color: #bfdbfe;
  background: rgba(15,23,42,0.9);
  border-radius: 9999px;
  padding: 2px 7px 3px;
  border: 1px solid rgba(129,140,248,0.9);
}

.aim-support-logo-main {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aim-support-logo-sub {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ca3af;
}

/* ロゴ中央配置（PC） */
.hero-price-card-support--logo-center {
  position: relative;
  min-height: 190px;
}

.hero-price-card-support--logo-center .aim-support-logo {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

/* ========================================
   STEP 5 進め方（縦4ステップ＋巨大番号）
======================================== */

.hero-step5 {
  padding-top: 100px;
  padding-bottom: 100px;
}

.flow-vertical {
  display: flex;
  flex-direction: column;
  gap: 70px;
  margin-top: 80px;
}

.flow-block { position: relative; }

.flow-number {
  position: absolute;
  top: -40px;
  left: 0;
  font-size: 10rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(148, 163, 184, 0.1);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  transform: translateX(-10%);
}

.flow-content {
  position: relative;
  z-index: 2;
  padding-left: 120px;
  max-width: 700px;
}

.flow-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

.flow-text {
  font-size: 1rem;
  line-height: 1.9;
  color: #cbd5f5;
  opacity: 0.95;
}

/* ========================================
   STEP 6 Q&A Accordion
======================================== */

.hero-step6 {
  padding-top: 80px;
  padding-bottom: 90px;
  align-items: flex-start;
}

.qa-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qa-item {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.12), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(168, 85, 247, 0.16), transparent 60%),
    rgba(15, 23, 42, 0.96);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.85);
  overflow: hidden;
}

.qa-question {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px 12px;
  background: transparent;
  border: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.qa-q-label {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
  background: radial-gradient(
    circle at 0% 0%,
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0.5)
  );
}

.qa-q-text {
  flex: 1 1 auto;
  font-size: 0.95rem;
  line-height: 1.7;
}

.qa-toggle {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  position: relative;
  opacity: 0.9;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.qa-toggle::before,
.qa-toggle::after {
  content: "";
  position: absolute;
  background: #e5e7eb;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.qa-toggle::before { width: 12px; height: 2px; }
.qa-toggle::after  { width: 2px; height: 12px; }

.qa-answer {
  padding: 0 18px 0;
  max-height: 0;
  overflow: hidden;
  border-top: 1px solid rgba(51, 65, 85, 0.85);
  transition: max-height 0.24s ease;
}

.qa-answer p {
  margin: 12px 0 16px;
  font-size: 0.9rem;
  line-height: 1.9;
  color: #cbd5f5;
}

.qa-item.is-open .qa-answer { max-height: 800px; }

.qa-item.is-open .qa-toggle {
  background: linear-gradient(135deg, #38bdf8, #a855f7);
  border-color: transparent;
  transform: rotate(180deg);
}

.qa-item.is-open .qa-toggle::before,
.qa-item.is-open .qa-toggle::after {
  background: #0b1120;
}

/* ========================================
   STEP7 お問い合わせ（フォームカード / CF7）
======================================== */

.hero-step-contact {
  padding-top: 100px;
  padding-bottom: 120px;
}

.contact-form {
  position: relative;
  margin-top: 32px;
  padding: 28px 28px 36px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.10), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(168, 85, 247, 0.10), transparent 60%),
    rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.85);
}

/* 内側のうっすら光（カードの質感だけ上げる） */
.contact-form::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 18px;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 0%, rgba(56, 189, 248, 0.10), transparent 55%),
    radial-gradient(circle at 85% 85%, rgba(168, 85, 247, 0.10), transparent 60%);
  opacity: 0.9;
}

/* CF7 base */
.contact-form .wpcf7 { width: 100%; }

/* form layout */
.contact-form .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* CF7が吐く p は margin を殺す */
.contact-form .wpcf7-form p { margin: 0; }

/* label運用しない（placeholder運用） */
.contact-form .wpcf7-form label { display: none; }

/* 入力共通 */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.58);
  color: #e5e7eb;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input { height: 46px; }

.contact-form textarea {
  min-height: 150px;
  padding-top: 14px;
  padding-bottom: 14px;
  resize: vertical;
}

.contact-form ::placeholder { color: rgba(203, 213, 245, 0.46); }

/* focus：世界観の光 */
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(56, 189, 248, 0.95);
  background: rgba(15, 23, 42, 0.72);
  outline: none;
  box-shadow:
    0 0 0 3px rgba(56, 189, 248, 0.18),
    0 0 0 1px rgba(168, 85, 247, 0.08);
}

/* Submit button（CF7） – hero-button-main統一 */
.contact-form .wpcf7 input[type="submit"].hero-button-main,
.contact-form .wpcf7 button.hero-button-main,
.contact-form .wpcf7 .wpcf7-submit.hero-button-main {
  appearance: none;
  border: none;
  text-decoration: none;
  cursor: pointer;
  padding: 0.7rem 1.4rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0b1120;
  background: linear-gradient(135deg, #38bdf8, #a855f7);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.65);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  width: min(420px, 100%);
  height: 56px;
  margin: 14px auto 0;
  display: block;
}

.contact-form .wpcf7 input[type="submit"].hero-button-main:hover,
.contact-form .wpcf7 button.hero-button-main:hover,
.contact-form .wpcf7 .wpcf7-submit.hero-button-main:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
  filter: brightness(1.04);
}

/* disabled */
.contact-form .wpcf7 input[type="submit"][disabled],
.contact-form .wpcf7 button[disabled] {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

/* spinner：中央下に */
.contact-form .wpcf7-spinner {
  display: block;
  margin: 10px auto 0;
}

/* Validation / response messages */
.wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: 0.75rem;
  color: rgba(252, 165, 165, 0.95);
}

.contact-form .wpcf7-response-output {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(127, 29, 29, 0.18);
  color: rgba(254, 202, 202, 0.95);
}

.contact-form .wpcf7 form.sent .wpcf7-response-output {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(30, 64, 175, 0.16);
  color: rgba(219, 234, 254, 0.95);
}

/* ※元CSSにあった強制margin：見た目維持のため残す */
.wpcf7-form-control-wrap input,
.wpcf7-form-control-wrap textarea {
  margin-bottom: 12px !important;
}

/* ========================================
   Footer
======================================== */

.site-footer {
  width: 100%;
  padding: 32px 0;
  margin-top: 60px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(6px);
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.footer-copy {
  font-size: 0.75rem;
  color: #94a3b8;
  letter-spacing: 0.06em;
}

/* ========================================
   Responsive
======================================== */

/* 900px〜：価格カード 2列 + STEP5のみ2カラム */
@media (min-width: 900px) {
  .hero-price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .flow-vertical {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 70px 60px;
    margin-top: 80px;
  }

  .flow-block { padding-left: 0; }

  .flow-number {
    top: -20px;
    left: -10px;
    font-size: 7.5rem;
    transform: translateX(0);
  }

  .flow-content {
    padding-left: 100px;
    max-width: none;
  }
}

/* 〜900px：比較表はSPカード版に統一（バグ回避） */
@media (max-width: 900px) {
  .compare-table-pc { display: none; }

  .compare-table-sp {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 18px;
  }

  .compare-group {
    border-radius: 16px;
    padding: 14px 12px 10px;
    background:
      radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.12), transparent 60%),
      rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.9);
  }

  .compare-group-label {
    font-size: 0.8rem;
    color: #e5e7eb;
    margin-bottom: 8px;
    letter-spacing: 0.08em;
  }

  .compare-group-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .compare-card {
    border-radius: 12px;
    padding: 10px 10px 8px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(30, 64, 175, 0.4);
  }

  .compare-card-aim {
    border-color: rgba(56, 189, 248, 0.7);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
  }

  .compare-card-tag {
    font-size: 0.7rem;
    margin-bottom: 4px;
    color: #9ca3af;
  }

  .compare-card-body {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.8;
    color: #e5e7eb;
  }

  .compare-badge-good,
  .compare-badge-mid,
  .compare-badge-bad {
    font-size: 0.7rem;
    margin-bottom: 4px;
  }
}

/* 〜768px：Flowやサポートプラスのグリッド調整 */
@media (max-width: 768px) {
  .flow-vertical {
    gap: 80px;
    margin-top: 48px;
  }

  .flow-number {
    font-size: 6rem;
    transform: translateX(0);
  }

  .flow-content { padding-left: 0; }

  .support-features-grid { grid-template-columns: 1fr; }

  .support-main-card {
    grid-template-columns: 1fr;
    padding: 20px 18px;
  }

  .support-main-card-left {
    border-right: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.5);
    padding-right: 0;
    padding-bottom: 16px;
    margin-bottom: 12px;
  }

  .support-main-card-right {
    padding-left: 0;
    margin-top: 0;
  }
}

/* 〜640px：共通スマホ調整 */
@media (max-width: 640px) {
  .hero { padding: 32px 18px; }
  .hero-inner { text-align: left; }

  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-step1,
  .hero-step2,
  .hero-step3,
  .hero-step-compare,
  .hero-step4,
  .hero-step5 {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .hero-title-sub {
    font-size: clamp(1.6rem, 4vw, 2rem);
    line-height: 1.5;
  }

  /* STEP5（巨大番号の控えめ版） */
  .hero-step5 {
    padding-top: 68px;
    padding-bottom: 72px;
  }

  .flow-vertical {
    gap: 56px;
    margin-top: 40px;
  }

  .flow-number {
    font-size: 4.6rem;
    top: -18px;
    transform: translateX(0);
  }

  .flow-content { padding-left: 0; }

  .flow-title {
    font-size: 1.3rem;
    margin-bottom: 6px;
  }

  .flow-text {
    font-size: 0.9rem;
    line-height: 1.9;
  }

  /* STEP 3.5 余白のみスマホ向けに微調整（カード見た目は900px側で統一済み） */
  .hero-step-compare {
    padding-top: 56px;
    padding-bottom: 64px;
  }

  /* STEP6 Q&A */
  .hero-step6 {
    padding-top: 68px;
    padding-bottom: 70px;
  }

  .qa-question {
    padding: 12px 14px 10px;
    gap: 10px;
  }

  .qa-q-label {
    width: 30px;
    height: 30px;
    font-size: 0.7rem;
  }

  .qa-q-text { font-size: 0.9rem; }

  .qa-answer p {
    font-size: 0.85rem;
    margin: 10px 0 14px;
  }

  .qa-item.is-open .qa-answer { max-height: 1000px; }

  /* STEP7 contact */
  .hero-step-contact {
    padding-top: 80px;
    padding-bottom: 90px;
  }

  .contact-form { padding: 22px 20px 28px; }

  /* AiMサポートプラス ロゴ位置 */
  .hero-price-card-support--logo-center { min-height: auto; }

  .hero-price-card-support--logo-center .aim-support-logo {
    position: static;
    transform: none;
    margin-top: 12px;
    display: flex;
    justify-content: center;
  }
}
