/* ============================================================
   Leap beauty clinic / パール美肌LP（LINE登録訴求）
   leap_bihada_lp.html / leap_bihada_lp.js とセット
   ============================================================ */

:root {
  --page-bg: #f7f4f4;
  --ink: #33383c;
  --ink-soft: #6b7378;
  --line-1: #e4dcd8;
  --gold: #c8a96a;
  --shell-max: 500px;

  /* 固定CTAのカラー（LINEグリーン。
     予約フォーム訴求版にする場合は下の4値をピンク系に差し替え）
     --cta-from:#f2828a; --cta-to:#dc4459;
     --cta-shadow:rgba(200,60,80,.34); --cta-ring:rgba(220,68,89,.28); */
  --cta-from: #4fc86f;
  --cta-to: #12a04a;
  --cta-shadow: rgba(16, 140, 62, .34);
  --cta-ring: rgba(18, 160, 74, .28);
  --lead: #1b8347;
}

/* リセットはLP内だけに限定（WP管理バー等に影響させない） */
.lpb-shell, .lpb-shell *, .lpb-shell *::before, .lpb-shell *::after,
.lpb-foot,  .lpb-foot *,  .lpb-foot *::before,  .lpb-foot *::after,
.lpb-fixed, .lpb-fixed *, .lpb-fixed *::before, .lpb-fixed *::after {
  box-sizing: border-box;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic",
               "YuGothic", "Noto Sans JP", "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.75;
  letter-spacing: .02em;
  /* 下部固定CTAぶんの余白 */
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}

/* デスクトップは淡いパール背景の中央にLP1カラムを置く */
@media (min-width: 768px) {
  body {
    background:
      radial-gradient(60% 40% at 15% 8%,  rgba(214, 232, 244, .55), transparent 70%),
      radial-gradient(55% 45% at 88% 22%, rgba(248, 219, 227, .55), transparent 70%),
      radial-gradient(70% 50% at 50% 95%, rgba(240, 236, 228, .6),  transparent 70%),
      #f2eeee;
  }
}

.lpb-shell img { max-width: 100%; }

.lpb-sr {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- LPシェル ---------- */
.lpb-shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  background: #fdfbfb;
  overflow: hidden;
}
@media (min-width: 768px) {
  .lpb-shell {
    box-shadow: 0 18px 60px rgba(90, 70, 70, .13);
    border-radius: 6px;
  }
}

/* ---------- 画像セクション ---------- */
.lpb-sec { position: relative; display: block; }
.lpb-sec > picture { display: block; line-height: 0; }
.lpb-sec > img,
.lpb-sec > picture > img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  /* 継ぎ目のサブピクセル隙間対策 */
  margin-bottom: -1px;
}

/* スクロールイン */
.lpb-reveal { opacity: 0; transform: translateY(18px); }
.lpb-reveal.lpb-is-in {
  opacity: 1; transform: none;
  transition: opacity .7s ease, transform .7s cubic-bezier(.22,.68,.32,1);
}

/* ---------- 画像内ボタンのホットスポット ---------- */
.lpb-hot {
  display: block;
  border: 0;
  background: none;
  text-decoration: none;
  position: absolute;
  top: var(--t); left: var(--l);
  right: calc(100% - var(--r));
  bottom: calc(100% - var(--b));
  border-radius: 999px;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  overflow: hidden;
  transition: transform .18s ease, filter .18s ease;
}
.lpb-hot:active { transform: scale(.985); filter: brightness(1.06); }
.lpb-hot:focus-visible {
  outline: 3px solid var(--cta-ring);
  outline-offset: 3px;
}

/* ボタン上を走る光沢（主要CTAのみ） */
.lpb-hot.lpb-shine::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg,
    rgba(255,255,255,0) 38%,
    rgba(255,255,255,.55) 50%,
    rgba(255,255,255,0) 62%);
  transform: translateX(-120%);
  animation: sweep 4.4s cubic-bezier(.4,0,.2,1) 1.6s infinite;
  mix-blend-mode: overlay;
  pointer-events: none;
}
@keyframes sweep {
  0%   { transform: translateX(-120%); }
  38%  { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}

/* ---------- 下部固定CTA ---------- */
.lpb-fixed {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  padding: 9px 14px calc(11px + env(safe-area-inset-bottom, 0px));
  background: rgba(253, 251, 251, .92);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-top: 1px solid rgba(200, 169, 106, .3);
  box-shadow: 0 -6px 22px rgba(90, 70, 70, .1);
  transition: transform .34s cubic-bezier(.22,.68,.32,1), opacity .28s ease;
}
.lpb-fixed__inner { max-width: var(--shell-max); margin: 0 auto; }

/* JS有効時は初期状態を隠し、スクロールで .lpb-is-shown を付与
   （JS無効でもCTAは常時表示されるフォールバック） */
.lpb-js .lpb-fixed {
  transform: translateY(115%);
  opacity: 0;
  pointer-events: none;
}
.lpb-js .lpb-fixed.lpb-is-shown {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.lpb-fixed__lead {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  margin: 0 0 7px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--lead);
}
.lpb-fixed__lead::before,
.lpb-fixed__lead::after {
  content: ""; width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
/* ボタン本体 */
.lpb-btn {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  border: 0;
  margin: 0;
  max-width: none;
  min-width: 0;
  width: 100%;
  text-transform: none;
  font-family: inherit;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 10px 34px 10px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cta-from), var(--cta-to));
  box-shadow: 0 6px 0 -1px var(--cta-shadow), 0 10px 22px rgba(0,0,0,.14);
  color: #fff;
  /* 1行に収まるようビューポート幅に追従（375pxで約15px） */
  font-size: clamp(13.5px, 4.05vw, 17px);
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition: transform .16s ease, box-shadow .16s ease;
}
.lpb-btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 -1px var(--cta-shadow), 0 5px 12px rgba(0,0,0,.14);
}
.lpb-btn::before { /* 光沢 */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg,
    rgba(255,255,255,0) 38%, rgba(255,255,255,.42) 50%, rgba(255,255,255,0) 62%);
  transform: translateX(-120%);
  animation: sweep 4.4s cubic-bezier(.4,0,.2,1) 1.2s infinite;
  pointer-events: none;
}
.lpb-btn::after { /* 矢印 */
  content: "";
  position: absolute; top: 50%; right: 16px;
  width: 8px; height: 8px;
  margin-top: -4px;
  border-top: 2px solid rgba(255,255,255,.95);
  border-right: 2px solid rgba(255,255,255,.95);
  transform: rotate(45deg);
}
/* テーマの svg{width:100%!important} 等に潰されないよう固定サイズを明示 */
.lpb-btn__icon {
  flex: 0 0 24px;
  width: 24px; height: 24px;
  min-width: 24px; max-width: 24px;
  min-height: 24px; max-height: 24px;
  overflow: hidden;
}
.lpb-btn__icon svg {
  display: block;
  width: 24px; height: 24px;
  max-width: 24px; max-height: 24px;
}

@media (max-width: 359px) {
  .lpb-btn { min-height: 52px; }
}
/* シェル最大幅に達したら固定サイズに */
@media (min-width: 500px) {
  .lpb-btn { font-size: 17px; }
}

/* ---------- フッター ---------- */
.lpb-foot {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 26px 20px 30px;
  background: #fdfbfb;
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.85;
}
@media (min-width: 768px) {
  .lpb-foot { border-radius: 0 0 6px 6px; box-shadow: 0 18px 60px rgba(90,70,70,.13); }
}

.lpb-foot__brand {
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-1);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: center;
}

.lpb-info { margin: 0 0 18px; }
.lpb-info div {
  display: flex; gap: 10px;
  padding: 5px 0;
  border-bottom: 1px dotted var(--line-1);
}
.lpb-info dt {
  flex: 0 0 74px;
  color: var(--ink);
  font-weight: 700;
}
.lpb-info dd { margin: 0; flex: 1; }

.lpb-notes {
  margin: 0 0 16px;
  padding: 13px 14px;
  border: 1px solid var(--line-1);
  border-radius: 8px;
  background: #faf7f6;
  list-style: none;
  font-size: 11px;
  line-height: 1.8;
}
.lpb-notes > li { padding-left: 1.1em; text-indent: -1.1em; }
.lpb-notes > li + li { margin-top: 5px; }
.lpb-notes__ttl {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
}

.lpb-copy {
  margin: 0;
  text-align: center;
  font-size: 10.5px;
  letter-spacing: .06em;
  color: #98a0a5;
}

/* ---------- モーション配慮 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lpb-reveal { opacity: 1; transform: none; transition: none; }
  .lpb-hot.lpb-shine::after, .lpb-btn::before { animation: none; display: none; }
  .lpb-fixed { transition: none; }
}
