/* =========================================================
 * style.css — 画像スタック方式 LP テンプレ（v3.1.0 既定）
 *
 * 設計方針：
 *   - モバイル基準幅 480px を念頭にデザイン画像を受領
 *   - PC は --lp-max-width（既定 600px）に中央寄せし、両脇は
 *     --color-bg-pc の背景色で埋める。コンテンツは引き伸ばさない
 *   - 各セクションは <section class="lp-section"> + 1枚の <img>
 *   - フローティングCTAバーとの重なり回避に padding-bottom を確保
 *
 * 案件カスタマイズ：
 *   :root の CSS 変数を上書きすれば最大幅・PC背景色を調整できる
 * ========================================================= */

:root {
  --lp-max-width:    600px;          /* PC時の表示幅。案件で上書き可 */
  --color-bg-pc:     #E3E8EE;        /* PC両脇の背景色。案件で上書き */
  --color-bg-page:   #ffffff;        /* コンテンツ領域の背景 */

  --color-line:      #06C755;        /* LINE緑 */
  --color-reserve:   #1E6FFF;        /* 予約青 */
  --color-tel:       #0F2A44;        /* 電話紺 */

  --floating-cta-h:  64px;           /* フローティングCTAバー高さ */
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-bg-pc);
  color: #1f2937;
  font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
  line-height: 1.7;
}

/* スマホ版コンテンツ領域（PC時はこれが中央寄せされ、両脇は body の背景色） */
.lp {
  max-width: var(--lp-max-width);
  margin: 0 auto;
  background: var(--color-bg-page);
  padding-bottom: var(--floating-cta-h);  /* フローティングCTAとの重なり回避 */
  overflow: hidden;                       /* 画像CTAのはみ出し防止 */
}

/* セクション：1セクション = 1枚の画像 */
.lp-section {
  position: relative;       /* 画像CTAを %座標で重ねるための基準 */
  font-size: 0;             /* インライン要素の隙間を消す */
  line-height: 0;
}
.lp-section > img {
  display: block;
  width: 100%;
  height: auto;
}

/* =========================================================
 * セクション間スペーサー（画像と画像の間に色付きの余白を挟む）
 *   - 高さ・背景色は個別指定できる（既定は下記）
 *   - 個別指定する場合は HTML 側で style="" に CSS変数を渡す：
 *       <div class="lp-spacer"
 *            style="--spacer-h:40px; --spacer-bg:#FFF3E0;"
 *            aria-hidden="true"></div>
 *   - 装飾要素なので aria-hidden="true" を付ける
 * ========================================================= */
.lp-spacer {
  width: 100%;
  height: var(--spacer-h, 15px);          /* 既定の高さ */
  background: var(--spacer-bg, #011533);   /* 既定の背景色 */
}

/* =========================================================
 * 画像CTA オーバーレイ（<a><img></a> を画像上に絶対配置）
 *   - left/top/width は HTML 側で style="" で個別指定（%座標）
 *   - hover効果は付けない（halo 防止の鉄則）
 *   - 矩形クロップに残る背景色の角を border-radius でクリップ
 * ========================================================= */
.cta-overlay {
  position: absolute;
  display: block;
  cursor: pointer;
  /* line-height: 0 は親で設定済み */
}
.cta-overlay > img {
  display: block;
  width: 100%;
  height: auto;
}
.cta-overlay[data-cta="line"]    > img { border-radius: 9999px; }   /* ピル形 */
.cta-overlay[data-cta="reserve"] > img { border-radius: 14px; }    /* 角丸矩形 */
.cta-overlay[data-cta="tel"]     > img { border-radius: 18px; }    /* 角丸矩形 */

/* =========================================================
 * フローティング常時CTAバー（3分割）
 * ========================================================= */
.floating-cta {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--lp-max-width);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 100;
  font-family: inherit;
}
.floating-cta__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: var(--floating-cta-h);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
}
.floating-cta__btn--line    { background: var(--color-line); }
.floating-cta__btn--reserve { background: var(--color-reserve); }
.floating-cta__btn--tel     { background: var(--color-tel); }
.floating-cta__icon {
  width: 24px;
  height: 24px;
  display: block;
}
.floating-cta__label { display: block; }

/* =========================================================
 * スクリーンリーダー専用テキスト（厳密一致テキストの正本）
 * ========================================================= */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
