:root {
  --color-primary: #003366;
  --color-secondary: #0055cc;
  --color-accent: #00a896;
  --color-accent-2: #00b894;
  --color-bg: #f8f9ff;
  --color-soft: #f4f7fd;
  --color-surface: #ffffff;
  --color-border: #d9d9e3;
  --color-text: #1a1a1a;
  --color-muted: #666666;
  --color-footer: #002d66;
  --container-max: 1200px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 14px 34px rgba(0, 51, 102, 0.08);
  --shadow-hero: 0 18px 48px rgba(0, 51, 102, 0.10);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; }

a:hover { text-decoration: none; }

.uk-container { max-width: var(--container-max); }

/* Header */
.lp-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(217,217,227,0.85);
}

.lp-header-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.lp-logo { display: inline-flex; align-items: center; }
.lp-logo img { width: 160px; height: auto; display: block; }

.lp-header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lp-tel {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-primary);
  white-space: nowrap;
}

.lp-tel-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef4ff;
  color: var(--color-secondary);
}

.lp-tel-number { font-weight: 800; font-size: 18px; line-height: 1.1; }
.lp-tel-hours { color: var(--color-muted); font-size: 12px; line-height: 1.1; margin-top: 4px; }

/* Buttons */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease, background .18s ease;
}

.lp-btn:hover { transform: translateY(-1px); }
.lp-btn-primary {
  background: var(--color-secondary);
  color: #fff;
  box-shadow: 0 12px 24px rgba(0,85,204,.18);
}
.lp-btn-primary:hover { color: #fff; background: #0048ab; }
.lp-btn-accent {
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2));
  color: #fff;
  box-shadow: 0 14px 26px rgba(0,168,150,.22);
}
.lp-btn-accent:hover { color:#fff; opacity:.96; }
.lp-btn-secondary {
  background: #fff;
  color: var(--color-secondary);
  border: 1px solid rgba(0,85,204,.38);
}
.lp-btn-secondary:hover { color: var(--color-secondary); background: #f4f8ff; }
.lp-btn-large { min-height: 60px; padding-inline: 30px; font-size: 17px; }

/* Sections */
.lp-section { padding: 86px 0; }
.lp-section-soft { background: var(--color-soft); }
.lp-section-white { background: #fff; }

.lp-section-heading {
  max-width: 780px;
  margin: 0 auto 42px;
  text-align: center;
}

.lp-section-label {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--color-secondary);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 14px;
}

.lp-section-heading h2 {
  margin: 0 0 12px;
  color: var(--color-primary);
  font-size: 38px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: .02em;
}

.lp-section-heading p {
  margin: 0;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.9;
}

.text-accent { color: var(--color-accent); }
.text-primary { color: var(--color-primary); }

/* Hero */
.lp-hero {
  position: relative;
  padding: 78px 0 76px;
  overflow: hidden;
  background:
    radial-gradient(circle at right top, rgba(0,85,204,.10), transparent 32%),
    radial-gradient(circle at left bottom, rgba(0,168,150,.12), transparent 30%),
    linear-gradient(180deg, #f7f9ff 0%, #ffffff 100%);
}

.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(120deg, rgba(0,85,204,.05) 1px, transparent 1px),
    linear-gradient(35deg, rgba(0,168,150,.05) 1px, transparent 1px);
  background-size: 120px 120px, 160px 160px;
  opacity: .5;
}

.lp-hero .uk-container { position: relative; z-index: 1; }
.lp-hero-copy { max-width: 585px; }

.lp-hero-label {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 15px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: var(--color-primary);
  background: #eef4ff;
  font-size: 13px;
  font-weight: 800;
}

.lp-hero-title {
  margin: 0 0 22px;
  color: var(--color-primary);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.lp-hero-title .title-small {
  display: block;
  font-size: clamp(25px, 2.8vw, 36px);
  letter-spacing: .02em;
  margin-bottom: 8px;
}

.lp-hero-text {
  margin: 0 0 18px;
  color: #34435d;
  font-size: 17px;
  line-height: 1.95;
  font-weight: 500;
}

.lp-company-text {
  margin: 0 0 28px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.9;
}

.lp-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.lp-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lp-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #dbe4f8;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(0, 51, 102, .04);
}

.lp-hero-visual {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-hero);
  background: #fff;
}

.lp-hero-visual img {
  display: block;
  width: 100%;
  height: 480px;
  object-fit: cover;
}

/* Cards */
.lp-card {
  height: 100%;
  padding: 26px 22px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid rgba(217,217,227,.78);
  box-shadow: var(--shadow-soft);
}

.lp-icon {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: #eef4ff;
  color: var(--color-secondary);
  font-size: 26px;
}

.lp-problem-card { text-align: center; }
.lp-problem-card h3,
.lp-feature-card h3,
.lp-step-card h3 {
  margin: 0 0 9px;
  color: var(--color-primary);
  font-size: 20px;
  line-height: 1.45;
  font-weight: 800;
}
.lp-problem-card p,
.lp-feature-card p,
.lp-step-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.85;
}

/* Feature strip */
.lp-support-strip {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid #dbe4f8;
  box-shadow: var(--shadow-card);
}

.lp-support-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.lp-support-icon {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef4ff;
  color: var(--color-secondary);
  font-size: 24px;
}

.lp-support-item h3 {
  margin: 0 0 5px;
  color: var(--color-primary);
  font-size: 17px;
  font-weight: 800;
}

.lp-support-item p { margin: 0; color: var(--color-muted); font-size: 13px; line-height: 1.75; }

/* Flow */
.lp-step-card { position: relative; padding-top: 30px; }
.lp-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(0,85,204,.16);
}

.lp-step-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
  background: #f7f9ff;
  border: 1px solid #e4ebf7;
}

/* Pricing */
.lp-price-grid { align-items: stretch; }
.lp-price-card {
  position: relative;
  height: 100%;
  padding: 30px 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(217,217,227,.82);
  box-shadow: var(--shadow-soft);
}

.lp-price-card.is-featured {
  border: 2px solid rgba(0,85,204,.8);
  box-shadow: 0 18px 46px rgba(0,85,204,.13);
  transform: translateY(-8px);
}

.lp-price-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 16px;
  border-radius: 999px;
  background: var(--color-secondary);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.lp-price-name { margin: 0 0 6px; color: var(--color-primary); font-size: 22px; font-weight: 900; }
.lp-price-sub { margin: 0 0 20px; color: var(--color-muted); font-size: 13px; }
.lp-price-block { margin-bottom: 18px; }
.lp-price-label { color: var(--color-muted); font-size: 13px; font-weight: 700; }
.lp-price-value { color: var(--color-secondary); font-size: 32px; line-height: 1.2; font-weight: 900; }
.lp-price-value small { color: var(--color-muted); font-size: 13px; font-weight: 700; }
.lp-price-list { margin: 20px 0 0; padding: 0; list-style: none; }
.lp-price-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: #34435d;
  font-size: 14px;
  line-height: 1.6;
}
.lp-price-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: 900;
}
.lp-price-note { color: var(--color-muted); font-size: 12px; line-height: 1.8; margin-top: 18px; }

/* Compare */
.lp-compare-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  background: #fff;
}
.lp-compare-table { min-width: 760px; margin: 0; }
.lp-compare-table th {
  background: #eef4ff;
  color: var(--color-primary);
  font-weight: 900;
  font-size: 14px;
  text-transform: none;
  border: 1px solid rgba(217,217,227,.85);
}
.lp-compare-table td {
  border: 1px solid rgba(217,217,227,.85);
  color: #34435d;
  font-size: 14px;
  line-height: 1.75;
}
.lp-compare-good { color: var(--color-secondary); font-weight: 800; }
.lp-compare-weak { color: #777; }

/* Consultation */
.lp-consult {
  position: relative;
  overflow: visible;
  background:
    radial-gradient(circle at right top, rgba(255, 255, 255, .30), transparent 28%),
    linear-gradient(135deg, #003366 0%, #0055cc 55%, #00a896 100%);
  color: #fff;
}

.lp-consult .uk-container {
  position: relative;
  z-index: 1;
}

.lp-consult .lp-section-heading h2,
.lp-consult .lp-section-heading p {
  color: #fff;
}

.lp-consult .lp-section-label {
  background: rgba(255, 255, 255, .16);
  color: #fff;
}

/* クロージングカード → フォームの縦積み */
.lp-consult-stack {
  display: grid;
  gap: 76px;
}

/* AI社員クロージングカード */
.lp-consult-side {
  height: auto;
}

.lp-consult-side-with-hotaru {
  position: relative;
  z-index: 2;
  overflow: hidden;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 52px 60px 50px;
  border-radius: 30px;
  background: linear-gradient(135deg, #0d4fae 0%, #246fd1 100%);
  color: #fff;
  box-shadow: 0 22px 48px rgba(0, 45, 120, 0.22);
}

.lp-consult-side-with-hotaru::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 29px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.lp-consult-hotaru-wrap {
  display: grid;
  grid-template-columns: minmax(180px, 300px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 58px);
  align-items: center;
  position: relative;
  z-index: 2;
}

.lp-consult-hotaru {
  align-self: end;
  display: flex;
  justify-content: center;
}

.lp-consult-hotaru img {
  display: block;
  width: min(100%, 280px);
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(0, 20, 70, 0.30));
}

.lp-consult-content {
  align-self: center;
  max-width: 760px;
}

.lp-consult-content h3 {
  margin: 0 0 30px;
  color: #fff;
  font-size: clamp(2.05rem, 4vw, 3.1rem);
  line-height: 1.42;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.lp-consult-side-with-hotaru .lp-consult-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
}

.lp-consult-side-with-hotaru .lp-consult-list li {
  position: relative;
  padding-left: 34px;
  margin: 0;
  color: #fff;
  font-size: 1.06rem;
  line-height: 1.65;
  font-weight: 800;
}

.lp-consult-side-with-hotaru .lp-consult-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: #fff;
  font-weight: 900;
  font-size: 1.18em;
}

.lp-consult-hotaru-message {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-top: 24px;
  padding: 18px 24px;
  border-radius: 20px;
  background: #ffffff;
  color: #063b7a;
  font-size: 1.12rem;
  line-height: 1.65;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(0, 25, 80, 0.18);
}

.lp-consult-hotaru-message::before {
  content: "";
  position: absolute;
  left: -10px;
  bottom: 24px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 4px;
  transform: rotate(45deg);
}

.lp-consult-hotaru-message p {
  margin: 0;
}

/* Jotformエリア：カードとは重ねず次段に分離 */
.lp-consult-form-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  clear: both;
}

.lp-consult-card {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 34px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .96);
  color: var(--color-text);
  box-shadow: 0 22px 54px rgba(0, 0, 0, .18);
}

.lp-consult-card-wide {
  padding: clamp(28px, 4vw, 42px);
}

.lp-consult-form-heading {
  display: block;
  margin-bottom: 22px;
  text-align: left;
}

.lp-form-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--color-secondary);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
}

.lp-consult-form-heading h3 {
  margin: 12px 0 8px;
  color: var(--color-primary);
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  line-height: 1.45;
  font-weight: 900;
}

.lp-consult-form-heading p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.8;
}

.lp-jotform-dummy {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid #d9e4f5;
}

/* 旧アバター構造が残っていても崩れないように残す */
.lp-consult-avatar {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 22px;
}

.lp-consult-avatar img {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  object-fit: cover;
  background: #fff;
}

.lp-consult-balloon {
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff;
  color: var(--color-primary);
  font-weight: 800;
  line-height: 1.6;
}

/* 念のため、重なりの原因になりやすい指定を打ち消し */
.lp-consult-card,
.lp-consult-form-wrap,
.lp-consult-side-with-hotaru {
  transform: none !important;
}

/* FAQ */
.lp-faq .uk-accordion-title {
  padding: 18px 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(217,217,227,.82);
  color: var(--color-primary);
  font-weight: 800;
  font-size: 16px;
}
.lp-faq .uk-accordion-content {
  padding: 0 20px 20px;
  color: var(--color-muted);
  line-height: 1.9;
}

/* Footer */
.lp-footer { padding: 42px 0 28px; background:#fff; border-top:1px solid rgba(217,217,227,.85); }
.lp-footer-logo { width: 168px; margin-bottom: 18px; }
.lp-footer-text { color: var(--color-muted); font-size: 13px; line-height: 1.9; margin: 0; }
.lp-footer-contact { color: var(--color-primary); font-weight: 800; }
.lp-footer-small { margin-top: 26px; padding-top: 20px; border-top:1px solid #e5e9f2; color:#888; font-size:12px; }

/* Responsive */
@media (max-width: 959px) {
  .lp-header-inner { min-height: 64px; }
  .lp-logo img { width: 136px; }
  .lp-tel { display:none; }
  .lp-hero { padding: 54px 0 58px; }
  .lp-hero-visual { margin-top: 28px; }
  .lp-hero-visual img { height: 390px; }
  .lp-section { padding: 64px 0; }
  .lp-section-heading h2 { font-size: 31px; }
  .lp-price-card.is-featured { transform:none; }
}

@media (max-width: 639px) {
  .lp-header-actions .lp-btn { min-height: 42px; padding:0 14px; font-size: 12px; }
  .lp-hero-title { font-size: 36px; }
  .lp-hero-title .title-small { font-size: 22px; }
  .lp-hero-text { font-size: 15px; }
  .lp-hero-buttons .lp-btn { width: 100%; }
  .lp-hero-visual img { height: 300px; }
  .lp-section-heading h2 { font-size: 28px; }
  .lp-card, .lp-price-card, .lp-consult-card, .lp-consult-side { padding: 22px 18px; }
  .lp-support-item { flex-direction: column; }
}

/* =========================================================
   Consultation Stacked Layout - Final Responsive Override
   フォーム重なり防止・スマホ最終調整
========================================================= */
@media (max-width: 959px) {
  .lp-consult-stack {
    gap: 56px;
  }

  .lp-consult-side-with-hotaru {
    max-width: 100%;
    padding: 38px 30px 34px !important;
  }

  .lp-consult-hotaru-wrap {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 24px;
  }

  .lp-consult-hotaru img {
    width: 150px;
  }

  .lp-consult-content h3 {
    font-size: 1.95rem;
  }

  .lp-consult-side-with-hotaru .lp-consult-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .lp-consult-side-with-hotaru .lp-consult-list li {
    font-size: 1rem;
    padding-left: 30px;
  }

  .lp-consult-hotaru-message {
    font-size: 1rem;
    padding: 15px 18px;
  }

  .lp-consult-card-wide {
    padding: 28px !important;
  }
}

@media (max-width: 639px) {
  .lp-consult-stack {
    gap: 44px;
  }

  .lp-consult-side-with-hotaru {
    padding: 30px 22px 28px !important;
    border-radius: 24px;
  }

  .lp-consult-hotaru-wrap {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .lp-consult-hotaru {
    order: 2;
  }

  .lp-consult-hotaru img {
    width: 150px;
    margin: 0 auto;
  }

  .lp-consult-content {
    order: 1;
  }

  .lp-consult-content h3 {
    font-size: 1.55rem;
    line-height: 1.55;
  }

  .lp-consult-side-with-hotaru .lp-consult-list li {
    font-size: 0.96rem;
    line-height: 1.7;
  }

  .lp-consult-hotaru-message {
    display: block;
    margin-top: 20px;
    font-size: 0.95rem;
  }

  .lp-consult-hotaru-message::before {
    display: none;
  }

  .lp-consult-card-wide {
    padding: 22px !important;
    border-radius: 20px;
  }
}

/* =========================================================
   Jotform Embed
   ダミーSVGからJotform埋め込みへ差し替え
========================================================= */

.lp-jotform-embed {
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid #d9e4f5;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(0, 51, 102, 0.02);
}

.lp-jotform-embed iframe {
  display: block;
  width: 100%;
  min-height: 780px;
  border: 0;
  background: #ffffff;
}

@media (max-width: 959px) {
  .lp-jotform-embed iframe {
    min-height: 840px;
  }
}

@media (max-width: 639px) {
  .lp-jotform-embed {
    border-radius: 16px;
  }

  .lp-jotform-embed iframe {
    min-height: 920px;
  }
}


/* =========================================================
   Image Icon Assets - Problem / Solution / Flow
   生成画像アイコンの当て込み調整
========================================================= */

.lp-problem-card .lp-icon {
  width: 74px;
  height: 74px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 18px;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  font-size: 0;
}

.lp-problem-card .lp-icon img {
  display: block;
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.lp-support-icon {
  width: 64px;
  height: 64px;
  background: transparent;
  border-radius: 0;
  font-size: 0;
  overflow: visible;
}

.lp-support-icon img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.lp-step-image {
  display: block;
  width: 100%;
  height: 140px;
  padding: 0;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 16px;
  background: #f7f9ff;
  border: 1px solid #e4ebf7;
}

@media (max-width: 639px) {
  .lp-problem-card .lp-icon,
  .lp-problem-card .lp-icon img {
    width: 68px;
    height: 68px;
  }

  .lp-support-icon,
  .lp-support-icon img {
    width: 58px;
    height: 58px;
  }

  .lp-step-image {
    height: 132px;
  }
}


/* =========================================================
   Pricing Boundary / API Notes
   料金・API費用・作業範囲の明確化
========================================================= */
.lp-price-value-muted {
  color: #7b8797;
  font-size: 26px;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(0, 51, 102, 0.35);
}

.lp-price-block-campaign {
  margin-bottom: 20px;
}

.lp-campaign-price {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #fff6e5;
  color: #9a5a00;
  font-weight: 900;
  line-height: 1.35;
  border: 1px solid rgba(212, 107, 0, 0.16);
}

.lp-campaign-price span {
  color: #9a5a00;
  font-size: 12px;
  letter-spacing: .02em;
}

.lp-campaign-price strong {
  color: #d46b00;
  font-size: 18px;
  letter-spacing: .01em;
}

.lp-price-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 22px;
  margin-top: 34px;
}

.lp-price-info-card {
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  background: #f8fbff;
  border: 1px solid #dbe4f8;
  box-shadow: var(--shadow-soft);
}

.lp-price-info-card-accent {
  background: linear-gradient(135deg, #f3fbff 0%, #f2fffb 100%);
  border-color: rgba(0, 168, 150, 0.28);
}

.lp-price-info-card h3 {
  margin: 0 0 14px;
  color: var(--color-primary);
  font-size: 20px;
  line-height: 1.45;
  font-weight: 900;
}

.lp-price-info-card p {
  margin: 0 0 12px;
  color: #34435d;
  font-size: 14px;
  line-height: 1.9;
}

.lp-price-info-card p:last-child {
  margin-bottom: 0;
}

.lp-price-info-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-price-info-card li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 9px;
  color: #34435d;
  font-size: 14px;
  line-height: 1.75;
}

.lp-price-info-card li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: 900;
}

.lp-price-notes {
  margin-top: 24px;
  padding: 18px 22px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(217, 217, 227, .86);
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.8;
  box-shadow: 0 8px 22px rgba(0, 51, 102, 0.04);
}

.lp-price-notes p {
  margin: 0 0 4px;
}

.lp-price-notes p:last-child {
  margin-bottom: 0;
}

@media (max-width: 959px) {
  .lp-price-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 639px) {
  .lp-price-info-card {
    padding: 22px 18px;
  }

  .lp-campaign-price {
    display: flex;
    width: fit-content;
    max-width: 100%;
    white-space: normal;
    line-height: 1.4;
    padding: 7px 12px;
  }
}


/* =========================================================
   Pricing Campaign Badge - Final Adjustment
   導入実績づくり特別価格の表示強化
========================================================= */
@media (max-width: 639px) {
  .lp-campaign-price {
    width: 100%;
    box-sizing: border-box;
  }

  .lp-campaign-price strong {
    font-size: 16px;
  }
}

/* =========================================================
   LP AI Chatbot Widget - Hotaru Diagnosis
   右下AI社員ほたる：3分診断UI
========================================================= */

.lp-btn-ghost {
  background: transparent;
  color: var(--color-secondary);
  border: 1px solid rgba(0, 85, 204, .22);
}

.lp-btn-ghost:hover {
  color: var(--color-secondary);
  background: rgba(0, 85, 204, .06);
}

.lp-consult-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}

.lp-chat-widget {
  position: fixed;
  right: 24px;
  bottom: 32px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}

.lp-chat-bubble {
  position: relative;
  width: min(300px, calc(100vw - 48px));
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: #ffffff;
  color: var(--color-primary);
  box-shadow: 0 18px 42px rgba(0, 34, 96, .20);
  border: 1px solid rgba(217, 228, 245, .95);
  opacity: 0;
  transform: translateY(10px) scale(.98);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: auto;
}

.lp-chat-bubble.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.lp-chat-bubble::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: -9px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-right: 1px solid rgba(217, 228, 245, .95);
  border-bottom: 1px solid rgba(217, 228, 245, .95);
  transform: rotate(45deg);
}

.lp-chat-bubble p {
  margin: 0 0 12px;
  font-weight: 900;
  font-size: 15px;
  line-height: 1.65;
}

.lp-chat-bubble-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2));
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(0, 168, 150, .20);
}

.lp-chat-bubble-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--color-primary);
  font-weight: 900;
  cursor: pointer;
}

.lp-chat-launcher {
  position: relative;
  width: 76px;
  height: 76px;
  padding: 0;
  border: 3px solid #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, #eaf4ff 0%, #ffffff 100%);
  box-shadow: 0 18px 42px rgba(0, 34, 96, .24);
  cursor: pointer;
  overflow: hidden;
  pointer-events: auto;
}

.lp-chat-launcher:hover {
  transform: translateY(-2px);
}

.lp-chat-launcher-img {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.lp-chat-launcher-img img {
  width: 86px;
  max-width: none;
  transform: translateY(9px);
}

.lp-chat-launcher-dot {
  position: absolute;
  right: 4px;
  bottom: 8px;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: var(--color-accent);
  border: 3px solid #fff;
}

.lp-chat-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: none;
}

.lp-chat-modal.is-open {
  display: block;
}

.lp-chat-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 21, 52, .52);
  backdrop-filter: blur(4px);
}

.lp-chat-panel {
  position: absolute;
  right: 24px;
  bottom: 32px;
  width: min(430px, calc(100vw - 32px));
  height: min(720px, calc(100vh - 48px));
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  overflow: hidden;
  border-radius: 26px;
  background: #f7f9ff;
  box-shadow: 0 28px 80px rgba(0, 20, 70, .36);
}

.lp-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.lp-chat-agent {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lp-chat-agent-avatar {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  border: 2px solid rgba(255,255,255,.82);
  flex: 0 0 auto;
}

.lp-chat-agent-avatar img {
  width: 62px;
  max-width: none;
  transform: translate(-4px, 5px);
}

.lp-chat-header h2 {
  margin: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
}

.lp-chat-header p {
  margin: 2px 0 0;
  color: rgba(255,255,255,.86);
  font-size: 12px;
  line-height: 1.45;
}

.lp-chat-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.lp-chat-body {
  padding: 18px;
  overflow-y: auto;
}

.lp-chat-row {
  display: flex;
  margin-bottom: 12px;
}

.lp-chat-row.is-user {
  justify-content: flex-end;
}

.lp-chat-message {
  max-width: 86%;
  padding: 12px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  box-shadow: 0 8px 18px rgba(0, 34, 96, .06);
}

.lp-chat-row.is-bot .lp-chat-message {
  color: #173557;
  background: #fff;
  border: 1px solid #e2e9f6;
  border-bottom-left-radius: 6px;
}

.lp-chat-row.is-user .lp-chat-message {
  color: #fff;
  background: linear-gradient(135deg, var(--color-secondary), #2274e9);
  border-bottom-right-radius: 6px;
}

.lp-chat-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 14px;
}

.lp-chat-option {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid #d5e1f3;
  border-radius: 999px;
  background: #fff;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.lp-chat-option:hover,
.lp-chat-option.is-selected {
  border-color: var(--color-secondary);
  background: #eef4ff;
}

.lp-chat-option.is-primary {
  border-color: transparent;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2));
  color: #fff;
}

.lp-chat-card {
  margin: 12px 0 14px;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #dbe4f8;
  box-shadow: 0 12px 28px rgba(0, 34, 96, .08);
}

.lp-chat-card h3 {
  margin: 0 0 6px;
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 900;
}

.lp-chat-card p {
  margin: 0;
  color: #34435d;
  font-size: 13px;
  line-height: 1.7;
}

.lp-chat-notice {
  padding: 10px 16px;
  color: #5c6b83;
  background: #eef4ff;
  font-size: 11px;
  line-height: 1.55;
  border-top: 1px solid #dde7f7;
}

.lp-chat-footer {
  display: flex;
  gap: 8px;
  padding: 14px;
  background: #fff;
  border-top: 1px solid #e2e9f6;
}

.lp-chat-input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #d5e1f3;
  border-radius: 999px;
  font-size: 14px;
}

.lp-chat-input:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(0,85,204,.10);
}

.lp-chat-send {
  flex: 0 0 auto;
  min-width: 72px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--color-secondary);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.lp-chat-send:disabled {
  opacity: .45;
  cursor: not-allowed;
}

@media (max-width: 639px) {
  .lp-chat-widget {
    right: 14px;
    bottom: 84px;
  }

  .lp-chat-launcher {
    width: 66px;
    height: 66px;
  }

  .lp-chat-launcher-img img {
    width: 76px;
    transform: translateY(8px);
  }

  .lp-chat-bubble {
    width: min(280px, calc(100vw - 28px));
  }

  .lp-chat-widget {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }

  .lp-chat-panel {
    right: 8px;
    bottom: 8px;
    width: calc(100vw - 16px);
    height: min(690px, calc(100vh - 16px));
    border-radius: 22px;
  }

  .lp-chat-message {
    max-width: 92%;
  }

  .lp-consult-actions .lp-btn {
    width: 100%;
  }
}

/* =========================================================
   AI Chatbot Visibility + Mobile Modal Fix v5
   右下アイコン表示・スマホモーダル切れ対策
========================================================= */

/* PCでも少し上に表示 */
.lp-chat-widget {
  right: 24px;
  bottom: 32px;
  z-index: 2200;
}

/* モーダル全体 */
.lp-chat-modal {
  position: fixed;
  inset: 0;
  z-index: 2300;
  display: none;
  padding:
    max(8px, env(safe-area-inset-top, 0px))
    max(8px, env(safe-area-inset-right, 0px))
    max(8px, env(safe-area-inset-bottom, 0px))
    max(8px, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
}

.lp-chat-modal.is-open {
  display: block;
}

.lp-chat-panel {
  position: absolute;
  right: 24px;
  bottom: 32px;
  width: min(430px, calc(100vw - 32px));
  height: min(720px, calc(100dvh - 48px));
  max-height: min(720px, calc(100dvh - 48px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  overflow: hidden;
}

.lp-chat-body {
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* スマホ表示時：アイコンを見つけやすく、モーダルを画面内に収める */
@media (max-width: 639px) {
  .lp-chat-widget {
    right: 14px;
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }

  .lp-chat-launcher {
    width: 66px;
    height: 66px;
  }

  .lp-chat-launcher-img img {
    width: 76px;
    transform: translateY(8px);
  }

  .lp-chat-bubble {
    width: min(280px, calc(100vw - 28px));
  }

  .lp-chat-panel {
    left: 8px;
    right: 8px;
    bottom: 8px;
    width: auto;
    height: calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    border-radius: 22px;
  }

  .lp-chat-header {
    padding: 14px 14px 12px;
    gap: 10px;
  }

  .lp-chat-agent {
    gap: 10px;
    min-width: 0;
  }

  .lp-chat-agent-avatar {
    width: 46px;
    height: 46px;
  }

  .lp-chat-agent-avatar img {
    width: 54px;
    transform: translate(-3px, 4px);
  }

  .lp-chat-header h2 {
    font-size: 16px;
  }

  .lp-chat-header p {
    font-size: 11px;
    line-height: 1.4;
  }

  .lp-chat-body {
    padding: 14px;
  }

  .lp-chat-message {
    max-width: 94%;
    font-size: 13px;
    line-height: 1.65;
  }

  .lp-chat-options {
    gap: 8px;
  }

  .lp-chat-option {
    max-width: 100%;
    min-height: 40px;
    padding: 0 12px;
    font-size: 12px;
    line-height: 1.3;
    white-space: normal;
  }

  .lp-chat-notice {
    padding: 9px 12px;
    font-size: 10px;
    line-height: 1.5;
  }

  .lp-chat-footer {
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .lp-chat-input {
    height: 42px;
    font-size: 13px;
  }

  .lp-chat-send {
    min-width: 64px;
    height: 42px;
  }

  .lp-consult-actions .lp-btn {
    width: 100%;
  }
}


/* =========================================================
   AI Chatbot Mobile Position Fix v6
   スマホ時の右端欠け対策（さらに左へ寄せる）
========================================================= */
@media (max-width: 639px) {
  .lp-chat-widget {
    right: max(20px, calc(env(safe-area-inset-right, 0px) + 14px));
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }

  .lp-chat-launcher {
    width: 62px;
    height: 62px;
  }

  .lp-chat-launcher-img img {
    width: 72px;
    transform: translateY(7px);
  }

  .lp-chat-launcher-dot {
    right: 3px;
    bottom: 6px;
    width: 14px;
    height: 14px;
  }

  .lp-chat-bubble {
    width: min(268px, calc(100vw - 44px));
  }

  .lp-chat-bubble::after {
    right: 32px;
  }
}

/* =========================================================
   AI Chatbot Mobile Position + Bubble Color Fix v7
   右端欠け対策・吹き出しクリーム色
========================================================= */

/* 吹き出しを白からクリーム色へ変更 */
.lp-chat-bubble {
  background: #fff7e8;
  border-color: #f5dfbd;
  box-shadow: 0 18px 42px rgba(0, 34, 96, .18);
}

.lp-chat-bubble::after {
  background: #fff7e8;
  border-right-color: #f5dfbd;
  border-bottom-color: #f5dfbd;
}

/* PC表示も少し余裕を持たせる */
.lp-chat-widget {
  right: 34px;
}

/* スマホ表示時：右端からしっかり離す */
@media (max-width: 639px) {
  .lp-chat-widget {
    right: max(42px, calc(env(safe-area-inset-right, 0px) + 32px));
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }

  .lp-chat-launcher {
    width: 62px;
    height: 62px;
  }

  .lp-chat-launcher-img img {
    width: 72px;
    transform: translateY(7px);
  }

  .lp-chat-launcher-dot {
    right: 3px;
    bottom: 6px;
    width: 14px;
    height: 14px;
  }

  .lp-chat-bubble {
    width: min(268px, calc(100vw - 68px));
  }

  .lp-chat-bubble::after {
    right: 30px;
  }
}

/* かなり狭い端末では、さらに中央寄りにする */
@media (max-width: 420px) {
  .lp-chat-widget {
    right: max(46px, calc(env(safe-area-inset-right, 0px) + 36px));
  }

  .lp-chat-bubble {
    width: min(260px, calc(100vw - 76px));
  }
}

/* =========================================================
   AI Chatbot Mobile Modal Width Fix v8
   スマホ時のモーダル横幅を狭めて右切れを防止
========================================================= */

@media (max-width: 639px) {
  .lp-chat-panel {
    left: 50%;
    right: auto;
    bottom: 8px;
    transform: translateX(-50%);
    width: min(360px, calc(100vw - 48px));
    max-width: calc(100vw - 48px);
    height: calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    border-radius: 22px;
  }

  .lp-chat-close {
    flex: 0 0 34px;
  }

  .lp-chat-header {
    overflow: hidden;
  }

  .lp-chat-agent {
    min-width: 0;
    overflow: hidden;
  }

  .lp-chat-agent > div:last-child {
    min-width: 0;
  }

  .lp-chat-header h2,
  .lp-chat-header p {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 420px) {
  .lp-chat-panel {
    width: min(340px, calc(100vw - 44px));
    max-width: calc(100vw - 44px);
  }
}

@media (max-width: 360px) {
  .lp-chat-panel {
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
  }
}

/* =========================================================
   AI Chatbot Live Glow Ring v10
   擬似要素ではなく実体spanで確実に光ループを回す
========================================================= */

@keyframes lpHotaruLiveOrbit {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes lpHotaruLivePulse {
  0%, 100% {
    filter:
      drop-shadow(0 0 5px rgba(111, 228, 255, .45))
      drop-shadow(0 0 10px rgba(0, 184, 148, .20));
    opacity: .88;
  }
  50% {
    filter:
      drop-shadow(0 0 9px rgba(111, 228, 255, .80))
      drop-shadow(0 0 18px rgba(0, 184, 148, .38));
    opacity: 1;
  }
}

/* v9の擬似要素リングは重なり・環境差が出たため無効化 */
.lp-chat-launcher::before,
.lp-chat-launcher::after,
.lp-chat-agent-avatar::before,
.lp-chat-agent-avatar::after {
  content: none !important;
  display: none !important;
}

/* ランチャー・モーダル内アイコン共通 */
.lp-chat-launcher,
.lp-chat-agent-avatar {
  position: relative;
  overflow: visible !important;
  isolation: isolate;
}

/* モーダルヘッダー側でリングがクリップされないようにする */
.lp-chat-agent {
  overflow: visible !important;
}

.lp-chat-agent > div:last-child {
  min-width: 0;
  overflow: hidden;
}

/* 実際に回転する光リング */
.lp-chat-live-ring {
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
  background:
    conic-gradient(
      from 0deg,
      rgba(255,255,255,0) 0deg,
      rgba(255,255,255,0) 34deg,
      rgba(117, 229, 255, .95) 62deg,
      rgba(255,255,255, .95) 82deg,
      rgba(0, 184, 148, .95) 108deg,
      rgba(255,255,255,0) 140deg,
      rgba(255,255,255,0) 202deg,
      rgba(91, 166, 255, .95) 238deg,
      rgba(255,255,255, .90) 258deg,
      rgba(0, 184, 148, .88) 286deg,
      rgba(255,255,255,0) 326deg,
      rgba(255,255,255,0) 360deg
    );
  animation:
    lpHotaruLiveOrbit 1.45s linear infinite,
    lpHotaruLivePulse 2.2s ease-in-out infinite;
  will-change: transform, filter, opacity;
}

/* 中央を隠して「縁だけが回る」ようにする */
.lp-chat-launcher .lp-chat-live-ring {
  inset: -5px;
}

.lp-chat-agent-avatar .lp-chat-live-ring {
  inset: -2px;
}

/* 画像側をリングより上に置く */
.lp-chat-launcher-img,
.lp-chat-agent-avatar img,
.lp-chat-launcher-dot {
  position: relative;
  z-index: 2;
}

/* ランチャー内側の白い円 */
.lp-chat-launcher-img {
  inset: 5px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(135deg, #eef7ff 0%, #ffffff 62%, #f3fffc 100%);
}

/* モーダル内アバターの内側 */
.lp-chat-agent-avatar {
  background: linear-gradient(135deg, #eef7ff 0%, #ffffff 62%, #f3fffc 100%) !important;
  box-shadow:
    0 0 0 2px rgba(255,255,255,.82),
    0 0 14px rgba(111, 228, 255, .28);
}

/* 既存のreduced-motion指定に負けないように、今回の実体リングは動かす */
@media (prefers-reduced-motion: reduce) {
  .lp-chat-live-ring {
    animation:
      lpHotaruLiveOrbit 1.8s linear infinite,
      lpHotaruLivePulse 2.4s ease-in-out infinite !important;
  }
}

@media (max-width: 639px) {
  .lp-chat-live-ring {
    inset: -5px;
  }

  .lp-chat-agent-avatar .lp-chat-live-ring {
    inset: -4px;
  }
}

/* =========================================================
   AI Chatbot Avatar Image Fix v11
   胸から上のAI社員画像に差し替え・円形内に収める
========================================================= */

/* 右下ランチャー：胸から上の画像を円形アイコン内に収める */
.lp-chat-launcher {
  overflow: visible !important;
}

.lp-chat-launcher-img {
  inset: 5px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(135deg, #eef7ff 0%, #ffffff 62%, #f3fffc 100%);
}

.lp-chat-launcher-img img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover;
  object-position: center center;
  transform: none !important;
  display: block;
}

/* モーダルヘッダー内アバターも同じ画像を円形内に収める */
.lp-chat-agent-avatar {
  overflow: visible !important;
}

.lp-chat-agent-avatar img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover;
  object-position: center center;
  transform: none !important;
  border-radius: 999px;
  display: block;
}

/* リングの上に画像が乗るように再指定 */
.lp-chat-launcher-img,
.lp-chat-agent-avatar img,
.lp-chat-launcher-dot {
  position: relative;
  z-index: 2;
}

/* スマホ時も同じ収まりに固定 */
@media (max-width: 639px) {
  .lp-chat-launcher-img img,
  .lp-chat-agent-avatar img {
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
  }
}

/* =========================================================
   AI Chatbot Avatar Centering Fix v12
   リング追加後にズレたアイコン位置を再センタリング
========================================================= */

/*
  原因：
  v10の「.lp-chat-launcher-img, .lp-chat-agent-avatar img, .lp-chat-launcher-dot」
  まとめ指定で position: relative が後勝ちし、
  もともと absolute で円内に収めていた .lp-chat-launcher-img が
  通常フロー寄りになっていました。
  ここで、ランチャー内の画像枠を absolute に戻して中心固定します。
*/

.lp-chat-launcher {
  position: relative;
  overflow: visible !important;
}

/* 右下のAI社員アイコン：リングの内側に画像を完全固定 */
.lp-chat-launcher .lp-chat-launcher-img {
  position: absolute !important;
  inset: 3px !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(135deg, #eef7ff 0%, #ffffff 62%, #f3fffc 100%);
  z-index: 2;
}

.lp-chat-launcher .lp-chat-launcher-img img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover;
  object-position: center center;
  transform: none !important;
  border-radius: 999px;
}

/* 発光リングはアイコン外周に固定 */
.lp-chat-launcher .lp-chat-live-ring {
  position: absolute;
  inset: -5px;
  z-index: 0;
}

/* 通知ドットは画像より前面へ */
.lp-chat-launcher .lp-chat-launcher-dot {
  position: absolute !important;
  z-index: 3;
}

/* モーダルヘッダー内のAI社員アイコンも中心固定 */
.lp-chat-agent-avatar {
  position: relative;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
}

.lp-chat-agent-avatar .lp-chat-live-ring {
  position: absolute;
  inset: -4px;
  z-index: 0;
}

.lp-chat-agent-avatar img {
  position: absolute !important;
  inset: 2px !important;
  display: block;
  width: calc(100% - 4px) !important;
  height: calc(100% - 4px) !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center center;
  transform: none !important;
  border-radius: 999px;
  background: linear-gradient(135deg, #eef7ff 0%, #ffffff 62%, #f3fffc 100%);
  z-index: 2;
}

/* スマホ時も中央固定を維持 */
@media (max-width: 639px) {
  .lp-chat-launcher .lp-chat-launcher-img {
    inset: 3px !important;
  }

  .lp-chat-launcher .lp-chat-launcher-img img,
  .lp-chat-agent-avatar img {
    transform: none !important;
  }
}

/* =========================================================
   Pricing Plan Clarification v14
   AI社員ライトが生成AI APIなしのシナリオ型であることを明確化
========================================================= */

.lp-plan-note {
  margin-top: 28px;
  padding: 24px 28px;
  border: 1px solid #d9e6fb;
  border-radius: 22px;
  background: linear-gradient(135deg, #fffaf0 0%, #ffffff 58%, #eef9ff 100%);
  box-shadow: 0 16px 42px rgba(0, 34, 96, .08);
}

.lp-plan-note h3 {
  margin: 0 0 10px;
  color: var(--color-primary);
  font-size: 20px;
  font-weight: 900;
}

.lp-plan-note p {
  margin: 0;
  color: #34435d;
  font-size: 14px;
  line-height: 1.9;
}

.lp-plan-note p + p {
  margin-top: 8px;
}

.lp-plan-note strong {
  color: var(--color-secondary);
  font-weight: 900;
}

@media (max-width: 639px) {
  .lp-plan-note {
    margin-top: 22px;
    padding: 20px;
    border-radius: 18px;
  }

  .lp-plan-note h3 {
    font-size: 18px;
  }

  .lp-plan-note p {
    font-size: 13px;
    line-height: 1.8;
  }
}


/* =========================================================
   Chatbot API Integration v18
   ほたる確認中：吹き出し縁の光彩回転アニメーション
========================================================= */

/* 入力中は操作を一時停止 */
.lp-chat-input:disabled,
.lp-chat-send:disabled,
.lp-chat-input input:disabled,
.lp-chat-input button:disabled {
  opacity: .65;
  cursor: wait;
}

/*
  「ほたるが確認しています...」の行だけに付く .is-thinking 用の演出。
  白い吹き出し本体は固定し、縁だけに青?シアンの光が回転するように見せます。
*/
.lp-chat-row.is-thinking .lp-chat-message {
  position: relative;
  z-index: 0;
  overflow: hidden;
  color: #164676;
  background: #ffffff;
  border: none !important;
  border-radius: 20px;
  font-weight: 800;
  opacity: 1;
  isolation: isolate;
  box-shadow:
    0 10px 24px rgba(0, 34, 96, .08),
    0 0 18px rgba(0, 176, 255, .14);
}

/* 回転する光彩リング */
.lp-chat-row.is-thinking .lp-chat-message::before {
  content: "";
  position: absolute;
  inset: -4px;
  z-index: -2;
  border-radius: 24px;
  background:
    conic-gradient(
      from 0deg,
      rgba(255,255,255,0) 0deg,
      rgba(255,255,255,0) 32deg,
      rgba(106, 230, 255, .95) 58deg,
      rgba(255, 255, 255, .98) 76deg,
      rgba(0, 184, 148, .92) 104deg,
      rgba(255,255,255,0) 140deg,
      rgba(255,255,255,0) 205deg,
      rgba(72, 151, 255, .95) 235deg,
      rgba(255, 255, 255, .96) 254deg,
      rgba(0, 184, 148, .88) 284deg,
      rgba(255,255,255,0) 326deg,
      rgba(255,255,255,0) 360deg
    );
  animation: lpHotaruThinkingBorderSpin 1.35s linear infinite;
  will-change: transform;
}

/* 内側を白く塗って「縁だけが光る」状態にする */
.lp-chat-row.is-thinking .lp-chat-message::after {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  border-radius: 18px;
  background: #ffffff;
}

/* 光彩の回転 */
@keyframes lpHotaruThinkingBorderSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* 文字と吹き出し自体の微弱な呼吸感 */
.lp-chat-row.is-thinking .lp-chat-message {
  animation: lpHotaruThinkingPulse 1.55s ease-in-out infinite;
}

@keyframes lpHotaruThinkingPulse {
  0%, 100% {
    box-shadow:
      0 10px 24px rgba(0, 34, 96, .08),
      0 0 14px rgba(0, 176, 255, .12);
  }

  50% {
    box-shadow:
      0 12px 28px rgba(0, 34, 96, .10),
      0 0 26px rgba(0, 210, 255, .26);
  }
}

/* 端末側がアニメーション削減設定でも、展示演出として軽い回転は維持 */
@media (prefers-reduced-motion: reduce) {
  .lp-chat-row.is-thinking .lp-chat-message::before {
    animation: lpHotaruThinkingBorderSpin 1.8s linear infinite !important;
  }

  .lp-chat-row.is-thinking .lp-chat-message {
    animation: lpHotaruThinkingPulse 2.2s ease-in-out infinite !important;
  }
}



/* =========================================================
   Bullet Checkmark Fix
   料金プラン等の箇条書き記号が「?」で表示される問題を修正
   content は直接記号ではなく Unicode escape を使用
========================================================= */
