/* ================================================================
   Immortelle Face Serum LP — 画像型
   flatsome-child/イモーテル/style.css
   ================================================================ */

/* ── Flatsome テーマのコンテナ幅をリセット ─────────────── */
body:has(.im-lp) .page-wrapper {
  padding: 0 !important;
}
body:has(.im-lp) #main,
body:has(.im-lp) #page-content,
body:has(.im-lp) .container,
body:has(.im-lp) .row:not(.im-strip),
body:has(.im-lp) .col {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
body:has(.im-lp) .entry-content,
body:has(.im-lp) .page-content {
  padding: 0 !important;
  margin: 0 !important;
}
body:has(.im-lp) .page-title-inner,
body:has(.im-lp) .breadcrumb-container {
  display: none !important;
}

/* ── LP ラッパー ─────────────────────────────────────────── */
.im-lp {
  background: #fdf8f2;
  margin: 0;
  padding: 0;
}

/* ── 画像ストリップ ──────────────────────────────────────── */
.im-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0;
  margin: 0;
  line-height: 0;
  font-size: 0;
}

.im-strip__img {
  display: block;
  width: 100%;
  max-width: 1024px;
  height: auto;
  margin: 0 auto;
  /* PC で1024px以上の場合にわずかな区切りを防ぐ */
  vertical-align: bottom;
}

/* ── 購入セクション ──────────────────────────────────────── */
.im-purchase {
  max-width: 1024px;
  margin: 0 auto;
  padding: 72px 24px 88px;
  text-align: center;
  background: #1e2e22;
  color: #fff;
  /* 画像ストリップとの間に継ぎ目が出ないよう line-height をリセット */
  line-height: normal;
  font-size: 1rem;
}

.im-purchase__eyebrow {
  margin: 0 0 10px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #c3d0ba;
}

.im-purchase__name {
  margin: 0 0 20px;
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 700;
  line-height: 1.45;
  color: #fff;
}

.im-purchase__vol {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.58);
  letter-spacing: 0.05em;
}

.im-purchase__price {
  margin: 6px 0 36px;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(40px, 10vw, 62px);
  font-weight: 700;
  color: #c9a34e;
  line-height: 1.1;
}

.im-purchase__price span {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.42em;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.62);
  vertical-align: baseline;
  margin-left: 2px;
}

/* 購入ボタン */
.im-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  padding: 16px 48px;
  background: linear-gradient(135deg, #c9a34e 0%, #e8c870 52%, #8a6d2e 100%);
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  letter-spacing: 0.04em;
  box-shadow: 0 18px 48px rgba(138, 109, 46, 0.42);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.im-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 60px rgba(138, 109, 46, 0.58);
}

.im-purchase__note {
  margin: 20px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.48);
  letter-spacing: 0.03em;
}

/* ── スティッキーCTA ─────────────────────────────────────── */
.im-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 12px 20px;
  background: rgba(20, 32, 24, 0.97);
  border-top: 1px solid rgba(201, 163, 78, 0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  /* 最初は非表示 */
  transform: translateY(100%);
  opacity: 0;
  transition: transform 250ms ease, opacity 250ms ease;
  /* 幅を画像ストリップに揃える */
  max-width: 1024px;
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  border-radius: 0;
}

/* スクロール後に表示 */
.im-sticky--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.im-sticky__label {
  flex: 1;
  min-width: 0;
  color: rgba(255, 255, 255, 0.78);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.im-sticky__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  background: linear-gradient(135deg, #c9a34e, #e8c870);
  color: #1e2e22;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 180ms ease;
}

.im-sticky__btn:hover {
  transform: translateY(-1px);
}

/* ── PC: 画像両サイドの余白を埋める ─────────────────────── */
@media (min-width: 1025px) {
  .im-lp {
    background: #1e2e22; /* 1024px超の背景色をダーク系に */
  }
  /* ストリップ自体は白背景 */
  .im-strip {
    background: #fdf8f2;
    max-width: 1024px;
    margin: 0 auto;
  }
  /* 購入セクションも最大幅を揃える */
  .im-purchase {
    width: 1024px;
  }
}

/* ── モバイル ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  .im-purchase {
    padding: 56px 16px 76px;
  }
  .im-btn {
    width: 100%;
    min-height: 58px;
    font-size: 15px;
  }
  .im-sticky {
    left: 0;
    transform: translateX(0) translateY(100%);
    max-width: none;
  }
  .im-sticky--visible {
    transform: translateX(0) translateY(0);
  }
  .im-sticky__label {
    font-size: 11px;
  }
  .im-sticky__btn {
    font-size: 13px;
    padding: 10px 18px;
  }
}
