/* ============================================================
   融資のアイラボ sogyo.jp — 料金ページ専用デザインポリッシュCSS
   design_polish_price.css

   対象: 料金ページ（/price/）のみ
   使用方法: Lightning テーマ「外観 > カスタマイズ > 追加CSS」に
             design_polish_css_final.css の後に追加で貼り付ける
   作成日: 2026-05-18
   ============================================================ */

/* ========== 0. 追加トークン ========== */
:root {
  --price-hero-gradient-start: #063d6e;
  --price-hero-gradient-end:   #0b5faa;
  --price-section-spacing:     80px;
  --price-highlight-bg:        #fff8e6;
  --price-highlight-border:    #f0a500;
  --price-zero-color:          #0b5faa;
}

/* ========== 1. 全体の余白 ========== */
body.page-price .entry-body,
body.page-price .main-section,
body.page-price .site-body-container {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 24px;
}

body.page-price section {
  padding: var(--price-section-spacing) 0;
}

body.page-price section + section {
  border-top: none;
}

/* ========== 2. ヒーローセクション ========== */
body.page-price .hero-common {
  position: relative;
  text-align: center;
  padding: 72px 32px 56px;
  background: linear-gradient(
    160deg,
    var(--price-hero-gradient-start) 0%,
    var(--price-hero-gradient-end) 100%
  );
  color: #fff;
  border-radius: 0 0 32px 32px;
  overflow: hidden;
  margin-bottom: 48px;
}

body.page-price .hero-common::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

body.page-price .hero-common h1 {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.45;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

body.page-price .hero-common .lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.95);
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 32px;
  line-height: 1.9;
  position: relative;
  z-index: 1;
}

body.page-price .hero-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

body.page-price .hero-badges .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

body.page-price .hero-badges .badge::before {
  content: '✓';
  font-weight: 700;
  color: #7dd3fc;
}

/* ========== 3. 料金カード ========== */
body.page-price .pricing-detail {
  padding: var(--price-section-spacing) 0;
}

body.page-price .pricing-detail h2 {
  text-align: center;
  margin-bottom: 32px;
}

body.page-price .pricing-box {
  max-width: 640px;
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 44px 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
}

/* カード上部のアクセントライン */
body.page-price .pricing-detail:first-of-type .pricing-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-primary);
}

body.page-price .pricing-detail:nth-of-type(2) .pricing-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-accent);
}

/* 料金テーブル(dl) */
body.page-price .price-table {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  border-top: 1px solid var(--color-border);
}

body.page-price .price-table dt {
  padding: 20px 16px;
  background: #f5f8fc;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-primary-dark);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
}

body.page-price .price-table dd {
  padding: 20px 20px;
  margin: 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
}

body.page-price .price-table dd strong {
  font-size: 1.3rem;
  color: var(--price-zero-color);
}

/* ========== 4. 料金例ボックス ========== */
body.page-price .price-example-large {
  background: var(--price-highlight-bg);
  border: 2px solid var(--price-highlight-border);
  border-radius: 12px;
  padding: 28px 24px;
  margin-top: 28px;
  text-align: center;
}

body.page-price .price-example-large p {
  margin-bottom: 4px;
  font-size: 1.05rem;
  color: var(--color-text);
}

body.page-price .price-example-large p strong {
  font-size: 1.25rem;
  color: var(--color-primary-dark);
}

/* 料金カードの補足テキスト */
body.page-price .pricing-detail > p {
  max-width: 640px;
  margin-inline: auto;
  margin-top: 24px;
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ========== 5. 免責事項セクション ========== */
body.page-price section.disclaimer {
  max-width: 800px;
  margin-inline: auto;
  padding: 32px;
  background: var(--color-bg-light);
  border-left: 4px solid var(--color-text-muted);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

body.page-price section.disclaimer h2 {
  font-size: 1rem;
  color: var(--color-text-muted);
  border-bottom: none;
  margin-top: 0;
  margin-bottom: 12px;
}

body.page-price section.disclaimer h2::after {
  display: none;
}

body.page-price section.disclaimer p {
  margin-bottom: 0;
}

/* ========== 6. FAQ ========== */
body.page-price .faq {
  background: var(--color-bg-light);
}

body.page-price .faq h2 {
  text-align: center;
  margin-bottom: 40px;
}

body.page-price .faq-list {
  max-width: 800px;
  margin-inline: auto;
}

body.page-price .faq-list dt {
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px 12px 0 0;
  font-weight: 700;
  color: var(--color-primary-dark);
  font-size: 1.05rem;
  margin-top: 24px;
}

body.page-price .faq-list dd {
  padding: 20px 24px;
  margin: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 12px 12px;
  color: var(--color-text);
  line-height: 1.8;
}

/* ========== 7. グローバルCTA ========== */
body.page-price .global-cta {
  text-align: center;
  padding: 64px 32px;
  background: linear-gradient(
    160deg,
    var(--price-hero-gradient-start) 0%,
    var(--price-hero-gradient-end) 100%
  );
  border-radius: 24px;
  margin: 48px auto 40px;
  max-width: 1080px;
  color: #fff;
}

body.page-price .global-cta h2 {
  color: #fff;
  border-bottom: none;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  margin-bottom: 16px;
  margin-top: 0;
}

body.page-price .global-cta h2::after {
  display: none;
}

body.page-price .global-cta .cta-box {
  background: transparent;
  padding: 24px 0 0;
  margin-top: 0;
  border-radius: 0;
}

body.page-price .global-cta .cta-box p {
  color: rgba(255,255,255,0.9);
  max-width: 560px;
  margin-inline: auto;
  line-height: 1.9;
}

body.page-price .global-cta .cta-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

body.page-price .global-cta .cta-list li {
  margin: 0;
}

body.page-price .global-cta .btn-form {
  display: inline-block;
  padding: 16px 48px;
  background: #fff;
  color: var(--price-hero-gradient-end) !important;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

body.page-price .global-cta .btn-form:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

body.page-price .global-cta .btn-phone {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 999px;
  padding: 14px 32px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.page-price .global-cta .btn-phone:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

body.page-price .global-cta .btn-phone::before {
  content: '📞';
}

body.page-price .global-cta .btn-line {
  background: #06c755;
  color: #fff !important;
  border: none;
  border-radius: 999px;
  padding: 14px 32px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.page-price .global-cta .btn-line:hover {
  filter: brightness(0.9);
  transform: translateY(-2px);
}

/* ========== 8. スマホ表示調整 ========== */
@media (max-width: 768px) {
  :root {
    --price-section-spacing: 56px;
  }

  body.page-price .hero-common {
    padding: 48px 20px 40px;
    border-radius: 0 0 20px 20px;
  }

  body.page-price .hero-common h1 {
    font-size: 1.5rem;
  }

  body.page-price .hero-common .lead {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }

  body.page-price .hero-badges {
    gap: 8px;
  }

  body.page-price .hero-badges .badge {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  /* 料金テーブル 1カラム化 */
  body.page-price .price-table {
    grid-template-columns: 1fr;
  }

  body.page-price .price-table dt {
    border-radius: 0;
    padding: 14px 16px;
  }

  body.page-price .price-table dd {
    padding: 14px 16px;
  }

  body.page-price .pricing-box {
    padding: 28px 20px;
    border-radius: 16px;
  }

  body.page-price .price-example-large {
    padding: 20px 16px;
  }

  /* 免責 */
  body.page-price section.disclaimer {
    padding: 24px 20px;
  }

  /* CTA */
  body.page-price .global-cta {
    padding: 48px 20px;
    border-radius: 16px;
    margin: 32px 12px;
  }

  body.page-price .global-cta .cta-list {
    flex-direction: column;
    align-items: center;
  }

  body.page-price .global-cta .btn-form,
  body.page-price .global-cta .btn-phone,
  body.page-price .global-cta .btn-line {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  body.page-price .global-cta .btn-form {
    padding: 14px 36px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  body.page-price .hero-common h1 {
    font-size: 1.3rem;
  }

  body.page-price .price-table dd strong {
    font-size: 1.15rem;
  }
}

/* ========== 9. Lightningテーマ上書き ========== */
body.page-price .entry-body > h2 {
  border-bottom-color: var(--color-primary);
}
