/* ============================================================
   main-lp.css — メインLP（プライマリーLP・セカンダリーLP）専用スタイル
   依存：common.css（先に読み込むこと）

   ■ z-index 管理表
     1000 : .floating-cta（固定CTAボタン）

   ■ ブランドカラー
     #623ca8 : メインブランドカラー（紫）
     #05a346 : LINE CTAカラー（緑）
     #d4a017 : 比較表ハイライト・注記タイトル（ゴールド）
     #2e155f : 料金キャンペーン価格（ダークパープル）
     #fdfbf7 : ボックス背景（ベージュ白）
     #f4f7f9 : box-blue背景（ブルーグレー）

   ============================================================ */

/* ============================================================
   1. 基本設定
   ============================================================ */

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  line-height: 1.75;
  color: #333;
  background-color: #fff;
  padding-bottom: 80px; /* floating-ctaがコンテンツを隠さないための余白 */
}

/* メインコンテンツ幅（最小320px・推奨95%・最大850px） */
.container {
  width: clamp(320px, 95%, 850px);
  padding: 24px;
  margin: 0 auto;
  overflow-x: hidden;
}

/* ============================================================
   2. 汎用レイアウト
   ============================================================ */

/* 幅・中央寄せをボックス系と共通化 */
.center-content,
.box,
.box-outline,
.box-blue {
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* 画像：最大600px・中央寄せ・角丸 */
.img-fluid {
  max-width: min(600px, 100%);
  height: auto;
  border-radius: 24px;
  display: block;
  margin: 0 auto;
}

/* 画像：LINEボタン横並び想定の小サイズ画像用 */
.img-line {
  height: auto;
  width: 100%;
  max-width: 360px;
  padding: 10px;
  margin: 24px auto;
  border-radius: 24px;
  box-sizing: border-box;
}

/* ============================================================
   3. タイポグラフィ
   ============================================================ */

/* セクション見出し
   構造：<h2><small>ラベル</small>タイトル本文</h2>
   smallは文脈ラベル（12px紫）、h2本文は読み手への主張 */
h2 {
  font-size: 19px;
  font-weight: bold;
  border-left: 3px solid #623ca8;
  padding: 2px 0 2px 12px;
  margin-top: 60px;
  text-align: left;
  line-height: 1.5;
}
h2::before {
  content: none; /* common.css等で::before が付く場合の無効化保険 */
}
h2 small {
  display: block;
  font-size: 12px;
  font-weight: bold;
  color: #623ca8;
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

/* h2直下の補足テキスト（例：アクセスセクションの雰囲気文） */
.h2-lead {
  margin-top: 0.5rem;
  margin-left: 0.5em;
  color: #555;
  font-size: 0.9rem;
  text-align: left;
}

/* サブセクション見出し（紫・左ボーダー） */
h3 {
  font-size: 16px;
  font-weight: bold;
  color: #623ca8;
  border-left: 2px solid #623ca8;
  padding-left: 10px;
  margin: 24px 0 8px;
  line-height: 1.5;
}

/* ブランドカラー強調テキスト（引用・小見出し等） */
.message-highlight {
  text-align: center;
  font-weight: bold;
  color: #623ca8;
}

/* マーカーハイライト（橙背景・下線風） */
.highlight {
  font-weight: 500;
  background: linear-gradient(transparent 70%, #fff3e0 70%);
  padding: 0 0.2em;
  display: inline;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* 段落 */
p {
  margin: 20px 0;
  overflow-wrap: break-word;
  word-break: auto-phrase;
}

/* リスト */
ul {
  padding-left: 20px;
  margin: 16px 0;
  display: inline-block;
  text-align: left;
}
li {
  margin: 10px 0;
}

/* 定義リスト（料金・FAQ等） */
dd {
  font-size: 0.93rem;
  margin-inline-start: 30px;
  margin-bottom: 10px;
}

/* ============================================================
   4. 汎用ボックス
   ============================================================ */

/* 共通パディング・角丸・シャドウ */
.box,
.box-outline,
.box-blue {
  padding: 24px;
  margin-top: 24px;
  margin-bottom: 24px;
  border-radius: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* 塗りつぶしボックス（コンテンツ系） */
.box {
  background: #fdfbf7;
  border: 1px solid #e8e0d5;
}

/* 枠線ボックス（強調・引用系） */
.box-outline {
  background: #fffdfb;
  border: 2px solid #f9f6f0;
}

/* ブルーグレーボックス（情報・比較系） */
.box-blue {
  background: #f4f7f9;
  border: 1px solid #e1e8ed;
}

/* ============================================================
   5. KV（キービジュアル）
   ============================================================ */

/* KVコンテナ：背景画像と overlayを重ねる基盤 */
.main-visual {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 40px;
  overflow: hidden;
  border-radius: 24px;
}

/* 背景画像（pictureタグ内のimgを全面に敷く） */
.main-visual-bg {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* テキストオーバーレイ（画像全面に半透明暗幕） */
.main-visual-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* overlay内コンテンツ幅制御 */
.main-visual-content {
  color: #eee;
  padding: 20px;
  width: 90%;
}

/* KV h1 */
.main-visual-content h1 {
  font-size: 36px;
  font-weight: bold;
  margin: 0;
  line-height: 1.3;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.05em;
}

/* KV h1上に表示するlead文（spanタグで使用） */
.main-visual-lead {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}

/* KV内のp要素（店名・地区等） */
.main-visual-content p {
  font-size: 18px;
  margin: 15px 0 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* ============================================================
   6. 利用者の声
   ============================================================ */

/* 2列グリッド（SP：1列に変更 → @media参照） */
.voice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

/* 声カード1枚 */
.voice-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
}

/* 声本文 */
.voice-text {
  font-size: 14px;
  line-height: 1.8;
  margin: 0 0 16px;
  color: #333;
  flex-grow: 1;
}

/* 声のメタ情報（年齢・職業） */
.voice-meta {
  font-size: 12px;
  color: #999;
  text-align: right;
  margin: 0;
}

/* ============================================================
   7. ステップリスト（通院計画）
   ============================================================ */

.step-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 各ステップカード */
.step-list li {
  position: relative;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 10px 20px 0 20px;
  margin-bottom: 30px;
}

/* ステップ間の矢印（下向き三角）：外側（ボーダー色） */
.step-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid #e0e0e0;
  z-index: 1;
}

/* ステップ間の矢印（下向き三角）：内側（白抜き） */
.step-list li:not(:last-child)::before {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 11px solid #fff;
  z-index: 2;
}

/* ============================================================
   8. 比較表
   ============================================================ */

.comparison-table {
  width: 100%;
  max-width: clamp(320px, 100%, 750px);
  margin: 32px auto;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 14px;
  table-layout: fixed;
}

.comparison-table th,
.comparison-table td {
  border: 1px solid #e1e8ed;
  padding: 16px 8px;
  text-align: center;
  vertical-align: middle;
}

.comparison-table th {
  background: #f8f9fa;
  font-weight: bold;
}

/* 比較軸の行ラベル列 */
.comparison-table .feature-col {
  background: #fafafa;
  font-weight: bold;
  width: 20%;
}

/* 他院列 */
.comparison-table .other-col {
  width: 32%;
}

/* Erz列（ゴールドボーダー・ハイライト背景） */
.comparison-table td:nth-child(3),
.comparison-table th:nth-child(3) {
  border: 3px solid #d4a017;
  background: #fffef5;
  width: 40%;
}

/* ============================================================
   9. 料金
   ============================================================ */

/* キャンペーン価格（ダークパープル太字） */
.campaign-price {
  color: #2e155f;
  font-weight: 700;
}

/* 取り消し線付きの通常価格 */
.normal-price {
  margin-left: 0.5em;
  font-size: 0.9rem;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: #999;
}

/* ============================================================
   10. CTAエリア
   ============================================================ */

.cta {
  text-align: center;
}

/* LINEメインCTAボタン（緑） */
.cta-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 400px;
  margin: 16px auto;
  padding: 16px 20px;
  box-sizing: border-box;
  background-color: #05a346;
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 50px;
  border: 1.5px solid #ffffff;
  outline: 2px solid #05a346;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition:
    opacity 0.3s ease,
    transform 0.2s ease;
}
.cta-button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.cta-button:active {
  transform: translateY(0);
}
/* ボタン内サブテキスト */
.cta-button small {
  display: block;
  font-size: 13px;
  font-weight: normal;
  margin-top: 4px;
}

/* CTA下の安心注記ボックス（「無理な勧誘なし」等） */
.info-note {
  background: #fdfbf7;
  padding: 20px;
  margin: 24px auto;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  border: 1px solid #eee;
  display: inline-block;
  text-align: left;
  max-width: 500px;
}
.note-title {
  font-weight: bold;
  color: #d4a017;
  margin: 0;
}

/* ============================================================
   11. 電話お問い合わせ
   PC：pointer-events:none（表示のみ）
   SP：pointer-events:auto に切り替え（@media参照）
   ============================================================ */

.tel-container {
  margin: 24px auto;
  width: 90%;
  max-width: 400px;
}
.tel-guide-text {
  margin: 0 0 8px;
  font-weight: bold;
  color: #666;
  font-size: 13px;
  text-align: center;
}
.tel-btn {
  pointer-events: none; /* PCでは電話リンクを無効化 → SPで有効化 */
  cursor: default;
  display: block;
  background: #fff;
  border: 1px solid #333;
  padding: 12px;
  border-radius: 8px;
  color: #333;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
}
.tel-number {
  display: block;
  font-size: 16px;
  font-weight: bold;
}
.tel-btn small {
  display: block;
  font-size: 11px;
  font-weight: normal;
  margin-top: 4px;
}

/* ============================================================
   12. 地図・アクセス
   ============================================================ */

.map-container {
  width: 100%;
  margin: 16px 0;
}
.map-iframe {
  width: 100%;
  height: 350px;
  border: 0;
  border-radius: 8px;
}
.map-link {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background: #f0f0f0;
  border-radius: 5px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
}

/* ============================================================
   13. フッター
   ============================================================ */

footer {
  margin-top: 50px;
  border-top: 1px solid #eee;
}
footer a {
  color: #666;
}

/* ============================================================
   14. フローティングCTA
   スクロール量に関わらず常時表示
   z-index: 1000（※z-index管理表参照）
   ============================================================ */

.floating-cta {
  position: fixed;
  bottom: calc(8px + env(safe-area-inset-bottom)); /* iPhoneホームバー対応 */
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none; /* コンテナ自体はクリック透過 */
}

/* フローティングボタン本体 */
.floating-cta-button {
  pointer-events: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90%;
  max-width: 400px;
  margin: 0 auto;
  padding: 8px 0;
  background-color: rgba(5, 163, 70, 0.95);
  color: #ffffff;
  text-align: center;
  font-size: 16px;
  text-decoration: none;
  line-height: 1.5;
  font-weight: 500;
  border-radius: 50px;
  border: 1.5px solid #ffffff;
  outline: 2.5px solid #05a346;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  -webkit-appearance: none;
  transition:
    opacity 0.3s ease,
    transform 0.2s ease;
}
.floating-cta-button:hover,
.floating-cta-button:active {
  opacity: 0.9;
  transform: scale(0.98);
}

/* ============================================================
   15. セカンダリーLP誘導リンク（site-link-card）
   CTAセクション末尾の「もっと詳しく知りたい方」向け補助導線
   ============================================================ */

.site-link-container {
  margin: 32px auto;
  width: 100%;
  max-width: 400px;
}
.site-link-card {
  display: block;
  background: #fff;
  border: 1px solid #d1c4e9;
  padding: 20px;
  border-radius: 8px;
  color: #623ca8;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  transition: all 0.2s ease;
}
.site-link-title {
  display: block;
  font-size: 15px;
  font-weight: bold;
}

/* ============================================================
   16. モバイル最適化（max-width: 480px）
   ============================================================ */

@media (max-width: 480px) {
  /* コンテナ横パディングを縮小 */
  .container {
    padding: 16px 12px;
  }

  /* 見出しサイズ縮小 */
  h2 {
    font-size: 16px;
  }

  /* 本文・リストの行高調整 */
  p,
  li {
    line-height: 1.9;
  }

  /* KV関連 */
  .main-visual-content {
    padding: 10px;
  }
  .main-visual-content h1 {
    font-size: 24px;
  }
  .main-visual-content p {
    font-size: 13px;
    line-height: 1.5;
  }
  .main-visual-lead {
    font-size: 14px;
  }
  .main-visual-bg {
    height: 50vw; /* SP表示でKV高さを画面比率で制御 */
  }

  /* ボックスのパディング縮小 */
  .box,
  .box-outline,
  .box-blue {
    padding: 16px;
    margin-top: 24px;
    margin-bottom: 24px;
  }
  /* SP幅では<br>をインライン扱い（過剰な改行を防ぐ） */
  .box br,
  .box-outline br,
  .box-blue br {
    display: inline;
  }

  /* 電話リンクをSPのみ有効化 */
  .tel-btn {
    border: 1px solid #666;
    pointer-events: auto;
    cursor: pointer;
  }

  /* 比較表フォント縮小（横幅不足対策） */
  .comparison-table {
    font-size: 12px;
  }

  /* 声グリッドを1列に変更 */
  .voice-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
