/* ===== 13558：#lp-purchase2 固定ページ専用CSS ===== */
#lp-purchase2 * {
  box-sizing: border-box;
}

/* ===== 基本文字設定 ===== */
#lp-purchase2 {
  font-size: 18px;
  line-height: 1.8;
  color: #333;
}
#lp-purchase2 h1 {
  font-size: 30px;
  line-height: 1.4;
  color: #111;
}
#lp-purchase2 h2 {
  font-size: 22px;
  line-height: 1.3;
  color: #111;
}
#lp-purchase2 h3 {
  font-size: 18px;
  line-height: 1.35;
  color: #111;
}

/* ===== HERO セクション ===== */
#lp-purchase2 .hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
  padding: 40px 24px 60px; /* PC標準 */
}
#lp-purchase2 .hero .eyebrow {
  line-height: 1;
  margin: 0 0 6px;
}
#lp-purchase2 .hero .title {
  line-height: 1.15;
  margin: 0.1em 0 0.25em;
}
#lp-purchase2 .hero .subtitle {
  line-height: 1.25;
  margin: 0 0 12px;
}
#lp-purchase2 .hero .intro {
  max-width: 860px;
  margin: 0 auto 14px;
  line-height: 1.6;
  font-size: 16px;
  color: #333;
}
#lp-purchase2 .hero .cta {
  margin-top: 8px;
  gap: 10px;
}
#lp-purchase2 .hero .btn {
  line-height: 1;
  padding: 14px 28px;
}
#lp-purchase2 .hero .note {
  margin-top: 8px;
  font-size: 0.92em;
  line-height: 1.3;
  color: #6b7280;
}

/* PC幅 */
@media (min-width: 601px) {
  #lp-purchase2 .hero {
    min-height: 500px;
    padding-bottom: 60px;
  }
}

/* スマホ幅 */
@media (max-width: 600px) {
  #lp-purchase2 .hero {
    min-height: 60vh;
    padding: 80px 20px 360px !important;
  }
  #lp-purchase2 .hero .title,
  #lp-purchase2 .hero .eyebrow {
    margin-top: 0 !important;
    position: static !important;
    top: auto !important;
  }
}

/* ===== 価値訴求カード ===== */
#lp-purchase2 .card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 28px 0 12px;
}
#lp-purchase2 .card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: center;
}
#lp-purchase2 .card .icon {
  font-size: 72px;
  margin-bottom: 10px;
  font-family: 'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif;
}

/* ===== ニーズ喚起リスト ===== */
#lp-purchase2 .cases.panel {
  background: #fafafa;
  padding: 30px 20px;
  border-radius: 12px;
}
#lp-purchase2 .cases h2 {
  margin-bottom: 16px;
}
#lp-purchase2 .cases .list {
  padding-left: 20px;
  margin-bottom: 20px;
}
#lp-purchase2 .cases .list li {
  margin-bottom: 8px;
}

/* ===== ご相談の流れ ===== */
#lp-purchase2 .flow.panel {
  background: #fff;
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
#lp-purchase2 .steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
#lp-purchase2 .steps li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}
#lp-purchase2 .steps .num {
  background: #c19d53;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
}

/* ===== 呼びかけ ===== */
#lp-purchase2 .call.panel {
  background: #fafafa;
  padding: 30px 20px;
  border-radius: 12px;
  text-align: center;
}
#lp-purchase2 .call .lead {
  font-size: 20px;
  margin-bottom: 10px;
}
#lp-purchase2 .call .text {
  margin-bottom: 16px;
}
#lp-purchase2 .call .cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ===== 信頼情報 ===== */
#lp-purchase2 .trust {
  margin-top: 20px;
  font-size: 0.92em;
  color: #555;
}
#lp-purchase2 .trust ul {
  padding-left: 20px;
}
#lp-purchase2 .trust li {
  margin-bottom: 6px;
}

/* ===== CTAボタン ===== */
#lp-purchase2 .btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
}
#lp-purchase2 .btn-deep {
  background: #1f2937;
  color: #fff;
}
#lp-purchase2 .btn-gold {
  background: #c19d53;
  color: #fff;
}
#lp-purchase2 .btn:hover {
  opacity: 0.9;
}
/* === hero の2ボタン間隔を強制（PC/SP両方） === */
#lp-purchase2 .hero .cta{
  display:flex !important;
  justify-content:center;
  align-items:stretch;
  flex-wrap:wrap;
  gap:12px !important;           /* まず gap で空ける */
}
#lp-purchase2 .hero .cta .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:14px 28px;
  border-radius:999px;
  margin:0 !important;           /* 余計な margin をリセット */
  white-space:normal;
}

/* PC：横並び＋fallback（gap非対応対策） */
@media (min-width:601px){
  #lp-purchase2 .hero .cta{ flex-direction:row; }
  #lp-purchase2 .hero .cta .btn + .btn{ margin-left:12px; } /* gapが効かない環境用 */
}

/* SP：縦並びで上下に余白＋幅100% */
@media (max-width:600px){
  #lp-purchase2 .hero .cta{ flex-direction:column; }
  #lp-purchase2 .hero .cta .btn{ width:100%; max-width:520px; margin:0 auto; }
  #lp-purchase2 .hero .cta .btn + .btn{ margin-top:10px; }  /* gapが効かない環境用 */
}
/* === hero と call 共通の2ボタン間隔設定 === */
#lp-purchase2 .hero .cta,
#lp-purchase2 .call .cta{
  display:flex !important;
  justify-content:center;
  align-items:stretch;
  flex-wrap:wrap;
  gap:12px !important;           /* gapで空ける */
}

#lp-purchase2 .hero .cta .btn,
#lp-purchase2 .call .cta .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:14px 28px;
  border-radius:999px;
  margin:0 !important;           /* 余計な margin をリセット */
  white-space:normal;
}

/* PC：横並び（gap効かない環境用fallback） */
@media (min-width:601px){
  #lp-purchase2 .hero .cta,
  #lp-purchase2 .call .cta{ flex-direction:row; }
  #lp-purchase2 .hero .cta .btn + .btn,
  #lp-purchase2 .call .cta .btn + .btn{ margin-left:12px; }
}

/* SP：縦並び＋幅100% */
@media (max-width:600px){
  #lp-purchase2 .hero .cta,
  #lp-purchase2 .call .cta{ flex-direction:column; }
  #lp-purchase2 .hero .cta .btn,
  #lp-purchase2 .call .cta .btn{ width:100%; max-width:520px; margin:0 auto; }
  #lp-purchase2 .hero .cta .btn + .btn,
  #lp-purchase2 .call .cta .btn + .btn{ margin-top:10px; }
}
/* ===== タイトル位置調整 ===== */

/* PC用（幅601px以上） */
@media (min-width: 601px) {
  #lp-purchase2 .hero .title {
    margin-top: -10px; /* 上方向に10px移動 */
  }
  #lp-purchase2 .hero .eyebrow {
    margin-bottom: 4px; /* タイトルとの間を詰める */
  }
}

/* スマホ用（幅600px以下） */
@media (max-width: 600px) {
  #lp-purchase2 .hero .title {
    margin-top: -28px;
  }
  #lp-purchase2 .hero .eyebrow {
    margin-bottom: 2px;
  }
}
/* HERO背景：最終上書き（PC/スマホ両方） */
#lp-purchase2 .hero{
  background: linear-gradient(135deg, #fdfcfb 0%, #e6ebf0 100%) !important;
}
@media (max-width:600px){
  #lp-purchase2 .hero{
    background: linear-gradient(135deg, #fdfcfb 0%, #e6ebf0 100%) !important;
  }
}
/* HERO背景：淡く華やかな3色グラデーション */
#lp-purchase2 .hero {
  background: linear-gradient(
    135deg,
    #fef8f5 0%,   /* ややピンク寄りの温かい白 */
    #e3f0ff 45%,  /* 透明感ある淡ブルー */
    #f0f8e8 100%  /* ほのかなグリーンで落ち着き */
  ) !important;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
/* ===== SP幅（Galaxy含む）でのhero調整 ===== */
@media (max-width: 600px){
  /* タイトルの負マージンをリセット */
  #lp-purchase2 .hero .title{
    margin-top: 0 !important;
    position: static !important;
    top: auto !important;
    line-height: 1.2 !important;
  }

  /* タイトル直上のラベル余白を調整 */
  #lp-purchase2 .hero .eyebrow{
    margin-bottom: 6px !important;
  }

  /* hero上下のパディングをバランス取り */
  #lp-purchase2 .hero{
    padding-top: calc(148px + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: 50px !important; /* 下余白を詰める */
  }
}
/* ===== 13558 専用：SPのドロワーメニューを最前面に固定 ===== */
@media (max-width: 980px){
  /* ヘッダーとメニューを最前面に */
  body.page-id-13558 .site-header,
  body.page-id-13558 header.site-header,
  body.page-id-13558 header[role="banner"],
  body.page-id-13558 .l-header {
    position: relative;
    z-index: 10000;
  }

  /* メニュー本体（候補を網羅）を画面最上に固定表示 */
  body.page-id-13558 .mobile-menu,
  body.page-id-13558 .sp-nav,
  body.page-id-13558 .global-nav,
  body.page-id-13558 .drawer,
  body.page-id-13558 nav[aria-label="Primary"] {
    position: fixed !important;
    top: 0 !important;
    left: 0; right: 0;
    z-index: 10001 !important;
    background: #fff;                /* 背景を必ず白で塗る */
    max-height: 100vh;
    overflow:auto;
    -webkit-overflow-scrolling: touch;
  }

  /* hero 側は下層でOK（重なり順の基準を明示） */
  body.page-id-13558 #lp-purchase2 .hero{
    position: relative;
    z-index: 1;
  }

  /* メニュー展開中の画面スクロール抑止（テーマが body に .menu-open 等を付ける想定） */
  body.menu-open,
  body.nav-open,
  body.drawer-open{
    overflow: hidden;
    touch-action: none;
  }
}
/* ===== SP：popupNavi を最前面に（重なり順Fix）===== */
@media (max-width: 980px){
  /* メニュー本体（クラス/IDどちらにも対応） */
  .popupNavi,
  #popupNavi{
    position: fixed !important;
    top: 0 !important;
    left: 0; right: 0;
    z-index: 10050 !important;
    width: 100%;
    background: #fff;
    max-height: 100vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    /* テーマが transform で隠す場合のにじみ防止 */
    will-change: transform;
  }

  /* ヘッダーも前面（トグルが隠れないように） */
  .site-header,
  header.site-header,
  header[role="banner"],
  .l-header{
    position: relative;
    z-index: 10049;
  }

  /* LP hero は背面でOK（重なり順を明示） */
  #lp-purchase2 .hero{
    position: relative;
    z-index: 1;
  }

  /* メニュー展開中はスクロールを止める（テーマのフラグに合わせて適宜変更） */
  body.menu-open,
  body.nav-open,
  body.drawer-open,
  body.popupNavi-open{
    overflow: hidden;
    touch-action: none;
  }
}
/* ===2025.08.12 SP（～600px）でheroを画面高ベースに・中央寄せ === */
@media (max-width: 600px){
  /* 余白ダミーを無効化 */
  #lp-purchase2 .hero .spp { display:none !important; }
  #lp-purchase2 .hero { 
    /* まずは画面高を最低高さに */
    min-height: 100vh;
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    gap: 10px;
    padding: 24px 16px 56px !important; /* 下にCTA余白を確保 */
    box-sizing: border-box;
    overflow: visible;
  }
  /* 新しいビューポート単位で上書き（対応端末はこっちが効く） */
  @supports (height: 100dvh){
    #lp-purchase2 .hero { min-height: calc(100dvh - var(--sp-header, 0px)); }
  }
  @supports (height: 100svh){
    #lp-purchase2 .hero { min-height: calc(100svh - var(--sp-header, 0px)); }
  }

  /* タイトルの負マージン＆位置指定をリセット */
  #lp-purchase2 .hero .title{
    margin-top: 0 !important;
    position: static !important;
    top: auto !important;
    line-height: 1.2 !important;
  }
  /* 文字サイズも少しだけ上げて見栄え調整（任意） */
  #lp-purchase2 .hero .title    { font-size: clamp(26px, 7vw, 34px); }
  #lp-purchase2 .hero .eyebrow  { margin-bottom: 6px !important; }
  #lp-purchase2 .hero .subtitle { font-size: clamp(14px, 4.2vw, 18px); }
  #lp-purchase2 .hero .intro    { font-size: clamp(13px, 3.8vw, 16px); line-height: 1.75; }

  /* CTAは固定UIに飲まれないよう独立させる */
  #lp-purchase2 .hero .cta{ 
    position: static !important; 
    margin-top: 8px;
  }
}

/* PC側（任意）：最低高さを与えて安定させる */
@media (min-width: 601px){
  #lp-purchase2 .hero{
    min-height: 520px; /* 適宜 480〜560で微調整 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 42px 24px;
  }
}