/* ============================================================
   Sol Home – 画像LP専用スタイル
   Prefix: sol-lp-
   対応ページ: /solar /battery /ecocute /anker /paint
   ============================================================ */

/* ── ページ全体 SWELL上書き ── */
.sol-lp-page {
  padding-top: 0 !important;
}

/* SWELLのコンテンツ幅制限を解除 */
.sol-lp-page .l-main__inner,
.sol-lp-page .l-article {
  max-width: none !important;
  padding: 0 !important;
  width: 100% !important;
}

/* ================================================================
   LP コンテンツ ラッパー
================================================================ */
.sol-lp-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  background: #fff;
}

/* ── clp ブロックコンテンツ ── */
.sol-lp-content {
  line-height: 0; /* img下の隙間を除去 */
  font-size: 0;
  display: block;
}

/* Gutenberg wp:image ブロックの余白をリセット */
.sol-lp-content figure.wp-block-image,
.sol-lp-content .wp-block-image {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  font-size: 0 !important;
  display: block !important;
}

/* catch_the_lptools のクラスリセット */
.sol-lp-content .ctwlpt-mt-default,
.sol-lp-content .ctwlpt-mb-default,
.sol-lp-content .ctwlpt-pa-default {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
}

/* LP 画像 */
.sol-lp-content figure.wp-block-image img,
.sol-lp-content .wp-block-image img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: top !important;
}

/* ================================================================
   画像未生成時フォールバック LP
   （clp に wp:image がない場合に表示）
================================================================ */
.sol-lp-fallback-page {
  width: 100%;
}

/* ── フォールバック ヒーロー ── */
.sol-lp-fb-hero {
  background: linear-gradient(160deg, #0a1a0a 0%, #1a2e10 60%, #0a1a0a 100%);
  padding: 5rem 1.5rem 4.5rem;
  text-align: center;
}
.sol-lp-fb-hero__inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}
.sol-lp-fb-hero__eyebrow {
  font-size: .8rem;
  font-weight: 700;
  color: rgba(255, 155, 50, .85);
  letter-spacing: .12em;
  margin: 0;
  text-transform: uppercase;
}
.sol-lp-fb-hero__title {
  font-size: clamp(1.75rem, 5.5vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.35;
  margin: 0;
  letter-spacing: -.01em;
}
.sol-lp-fb-hero__title strong {
  color: #ffb347;
  display: block;
}
.sol-lp-fb-hero__sub {
  font-size: .93rem;
  color: rgba(255, 255, 255, .65);
  line-height: 1.8;
  margin: 0;
}
.sol-lp-fb-hero__cta {
  margin-top: .5rem;
  font-size: 1.1rem;
  padding: 1.15rem 2.5rem;
  min-width: 260px;
}

/* ── フォールバック 特徴3点 ── */
.sol-lp-fb-features {
  background: #f8fbf9;
  padding: 3.5rem 1.5rem;
}
.sol-lp-fb-features__inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.sol-lp-fb-feature {
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.sol-lp-fb-feature__icon {
  font-size: 2rem;
  line-height: 1;
}
.sol-lp-fb-feature__title {
  font-size: 1rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
  line-height: 1.4;
}
.sol-lp-fb-feature__copy {
  font-size: .85rem;
  color: #64748b;
  line-height: 1.75;
  margin: 0;
}

/* スマホ: 特徴を1列に */
@media (max-width: 640px) {
  .sol-lp-fb-features__inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .sol-lp-fb-hero {
    padding: 3.5rem 1.25rem 3rem;
  }
  .sol-lp-fb-hero__cta {
    width: 100%;
    min-width: unset;
  }
}

/* ================================================================
   フッター LINE CTA
================================================================ */
.sol-lp-footer-cta {
  background: linear-gradient(160deg, #0d1f0d 0%, #162b16 55%, #0d1f0d 100%);
  padding: 4rem 1.5rem;
}

.sol-lp-footer-cta__inner {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

/* Eyebrow */
.sol-lp-footer-cta__eyebrow {
  font-size: .78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .55);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0;
}

/* タイトル */
.sol-lp-footer-cta__title {
  font-size: clamp(1.15rem, 3.5vw, 1.55rem);
  font-weight: 800;
  color: rgba(255, 255, 255, .92);
  line-height: 1.6;
  margin: 0;
}
.sol-lp-footer-cta__title strong {
  color: #ffb347;
}

/* サブコピー */
.sol-lp-footer-cta__sub {
  font-size: .82rem;
  color: rgba(255, 255, 255, .50);
  margin: 0;
  line-height: 1.7;
}

/* ボタングループ */
.sol-lp-footer-cta__btns {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  width: 100%;
  max-width: 420px;
  margin-top: .25rem;
}

/* ── CTA ボタン共通 ── */
.sol-lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: 1.1rem 2rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  min-height: 58px;
  width: 100%;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: .02em;
  transition: opacity .2s ease, transform .18s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.sol-lp-btn:hover {
  opacity: .9;
  transform: translateY(-2px);
}

/* LINE ボタン（オレンジ）*/
.sol-lp-btn--line {
  background: linear-gradient(135deg, #ff7a00, #ff9c42);
  color: #fff !important;
  box-shadow: 0 10px 32px rgba(255, 122, 0, .40);
}
.sol-lp-btn--line:hover {
  box-shadow: 0 14px 44px rgba(255, 122, 0, .58);
  color: #fff;
}

/* 電話ボタン（セミトランスペアレント）*/
.sol-lp-btn--tel {
  background: rgba(255, 255, 255, .08);
  border: 1.5px solid rgba(255, 255, 255, .25);
  color: #fff !important;
  font-size: .95rem;
}
.sol-lp-btn--tel:hover {
  background: rgba(255, 255, 255, .14);
  color: #fff;
}
.sol-lp-btn__tel-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .1rem;
}
.sol-lp-btn__tel-inner small {
  font-size: .7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .55);
}

/* 注記 */
.sol-lp-footer-cta__note {
  font-size: .7rem;
  color: rgba(255, 255, 255, .30);
  margin: 0;
  line-height: 1.8;
}

/* ================================================================
   フローティング LINE ボタン
================================================================ */
.sol-lp-float {
  position: fixed;
  bottom: 104px;    /* scroll-to-top と被らないよう微調整 */
  right: 16px;
  z-index: 9970;
  display: none;    /* JS で制御 */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7a00, #ff9c42);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(255, 122, 0, .50);
  font-size: .58rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  transition: opacity .28s ease, transform .22s ease, box-shadow .22s ease;
  opacity: 0;
  pointer-events: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.sol-lp-float.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.sol-lp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 36px rgba(255, 122, 0, .65);
  color: #fff;
}
.sol-lp-float svg {
  flex-shrink: 0;
}

/* ================================================================
   PC（769px以上）
================================================================ */
@media (min-width: 769px) {
  .sol-lp-footer-cta__btns {
    flex-direction: row;
    justify-content: center;
    max-width: none;
  }

  .sol-lp-btn {
    width: auto;
    min-width: 200px;
  }

  .sol-lp-btn--tel {
    flex-direction: row;
  }
  .sol-lp-btn__tel-inner {
    align-items: flex-start;
  }

  .sol-lp-float {
    width: 70px;
    height: 70px;
    font-size: .62rem;
    bottom: 110px;
    right: 20px;
  }
}

/* ================================================================
   スマホ小型（480px以下）
================================================================ */
@media (max-width: 480px) {
  .sol-lp-footer-cta {
    padding: 3rem 1.1rem;
  }

  .sol-lp-float {
    width: 58px;
    height: 58px;
    font-size: .55rem;
    bottom: 88px;
    right: 12px;
  }
}

/* ================================================================
   アクセシビリティ
================================================================ */
.sol-lp-float:focus-visible,
.sol-lp-btn:focus-visible {
  outline: 3px solid #ff7a00;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .sol-lp-btn,
  .sol-lp-float {
    transition: opacity .28s ease;
  }
}
