/* =============================================================
   LP テンプレート スタイルシート
   ─────────────────────────────────────────────────────────────
   [色] ブランドカラーは下記 CSS カスタムプロパティで一括管理。
        変更は --color-brand のみ書き換えれば全体に反映される。
   ============================================================= */

:root {
  --color-bg:     #ffffff; /* [差し替え] 背景色（ヘッダー・ボタン・ナビ） */
  --color-accent: #ff3d8b; /* [差し替え] アクセントカラー（区切り線・バッジ） */
  --color-blue:   #0076ff;
  --color-white:  #ffffff;
  --color-black:  #000000;
  --color-text:   #1a1a1a;
}

/* ─────────────────────────────────────────────────────────────
   BASE
───────────────────────────────────────────────────────────── */
.lp-body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--color-text);
  background-color: var(--color-blue);
  line-height: 1.6;
}


.lp-body * {
  box-sizing: border-box;
}

.lp-body a {
  color: inherit;
  text-decoration: none;
}

/* 全セクションで使う共通フルwidths画像 */
.lp-section__image {
  width: 100%;
  height: auto;
  display: block;
}

/* ─────────────────────────────────────────────────────────────
   HEADER
───────────────────────────────────────────────────────────── */
.lp-header {
  width: 100%;
  background: var(--color-white);
  color: var(--color-white);
}

.lp-header__inner {
  width: min(1200px, 92%);
  margin: 0 auto;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.lp-header__logo {
  font-size: 16px;
}

.lp-header__logo-image {
  display: block;
  height: 24px;  /* [差し替え] ロゴの高さ */
  width: auto;
}

/* ─────────────────────────────────────────────────────────────
   LAYOUT（3カラム: 左サイド / メイン / 右サイド）
   スマホ（980px以下）は1カラム、サイドは非表示
───────────────────────────────────────────────────────────── */
.lp-layout {
  width: min(1400px, 96%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 450px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

/* ─────────────────────────────────────────────────────────────
   SIDEBAR（左右共通）
   position: sticky でスクロールに追従
───────────────────────────────────────────────────────────── */
.lp-side {
  display: flex;
  justify-content: center;
  align-items: center;
  position: sticky;
  top: 50vh;
  transform: translateY(-50%);
  align-self: start;
}

/* 左サイド */
.lp-side--left {
  flex-direction: column;
  gap: 24px;
}

.lp-side__app-logo {
  width: min(260px, 80%);
  height: auto;
  display: block;
}

.lp-side__cta-button {
  background: var(--color-black);
  color: var(--color-white) !important;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  transition: background-color 0.2s ease;
}

/* 右サイド：ページ内ナビ */
.lp-nav {
  background: var(--color-black);
  color: var(--color-white);
  padding: 25px 0;
  border-radius: 20px;
  overflow: hidden; /* ホバー帯を角丸でクリップ */
  display: flex;
  flex-direction: column;
  min-width: 270px;
  font-weight: 700;
  text-align: center;
}

.lp-nav__link {
  display: block;
  padding: 14px 80px;
  transition: background 0.2s, color 0.2s;
  text-align: center;
}

.lp-nav__link:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

/* ─────────────────────────────────────────────────────────────
   MAIN（中央コンテンツエリア）
───────────────────────────────────────────────────────────── */
.lp-main {
  display: flex;
  justify-content: center;
}

.lp-main__frame {
  width: min(450px, 100%); /* [差し替え] メインコンテンツの最大幅 */
  margin: 0 auto;
}

/* ─────────────────────────────────────────────────────────────
   CAMPAIGN（画像ベースのキャンペーン詳細）
───────────────────────────────────────────────────────────── */
.lp-campaign {
  background: #111318;
  color: var(--color-white);
  padding: 44px 0 62px;
}

.lp-campaign__inner {
  width: min(87.5%, 400px);
  margin: 0 auto;
}

.lp-campaign__pill {
  width: fit-content;
  min-width: 250px;
  margin: 0 auto 32px;
  padding: 11px 36px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1595f8 0%, #0b86e4 100%);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.2);
  font-size: 19px;
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
}

.lp-campaign__pill--small {
  min-width: 192px;
  margin-top: 58px;
  margin-bottom: 30px;
  font-size: 18px;
  scroll-margin-top: 40px;
}

.lp-campaign__lead,
.lp-campaign__text {
  margin: 0;
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.04em;
}

.lp-campaign__lead {
  font-weight: 700;
}

.lp-campaign__divider {
  margin: 34px 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.lp-campaign__benefits {
  margin: 22px 0 22px;
  padding: 0;
  list-style: none;
}

.lp-campaign__benefits li {
  margin-bottom: 14px;
  color: #ff3793;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  display: flex;
  gap: 8px;
  position: relative;
  padding-left: 24px;
}

.lp-campaign__benefits li::before {
  content: "";
  transform: translateY(3px);
  position: absolute;
  left: 0;
  top: 0;
  width: 17px;
  height: 17px;
  background: url(../images/heart_icon@2x.png) no-repeat center center;
  background-size: contain;
}

.lp-campaign__price {
  margin-top: 62px;
  text-align: center;
}

.lp-campaign__title {
  margin: 0 0 16px;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.25;
}

.lp-campaign__amount {
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.lp-campaign__amount-value {
  font-size: 42px;
  line-height: 1;
  font-weight: 700;
}

.lp-campaign__amount-tax {
  font-size: 18px;
}

.lp-campaign__amount-tag {
  font-size: 15px;
  padding: 2px 11px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 6px;
  position: relative;
  top: -3px;
}

.lp-campaign__notes {
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.lp-campaign__notes li {
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.66;
  position: relative;
  padding-left: 15px;
}

.lp-campaign__notes li::before {
  content: "・";
  position: absolute;
  left: 0;
  top: 0;
}

.lp-campaign__bonus {
  margin: 56px 0 0;
  padding-top: 115px;
  position: relative;
}

.lp-campaign__badge {
  width: 150px;
  height: auto;
  display: block;
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.lp-campaign__bonus-card {
  border-radius: 14px;
  background: var(--color-white);
  text-align: center;
  padding: 46px 20px 28px;
}

.lp-campaign__bonus-caption {
  margin: 0;
  color: #ff3793;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.lp-campaign__bonus-highlight {
  margin: 8px 0 0;
  color: #ff3793;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.lp-campaign__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lp-campaign__step-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: center;
}

.lp-campaign__step-number {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ff3793;
  color: var(--color-white);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

.lp-campaign__step-label {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.lp-campaign__deadline {
  margin: 0 0 38px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-align: center;
}

.lp-campaign__cta {
  display: block;
  width: 100%;
  padding: 18px 24px;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-white) !important;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  transition: opacity 0.2s ease;
}

/* ホバー可能なデバイス（主にPC）でのみボタンのマウスオーバーを有効化 */
@media (hover: hover) and (pointer: fine) {
  .lp-side__cta-button:hover {
    background-color: var(--color-accent);
  }

  .lp-campaign__cta:hover {
    opacity: 0.8;
  }
}

.lp-campaign__notes--bottom {
  margin-top: 38px;
}

.lp-flow {
  display: flex;
  flex-direction: column;
  gap: 0px;
  margin-top: -70px;
  position: relative;
}

/* ─────────────────────────────────────────────────────────────
   RANKING（ランキング画像 + テキストオーバーレイ）
   ・テキスト位置は画像デザインに合わせて top / left を調整
───────────────────────────────────────────────────────────── */
.lp-ranking {
  position: relative;
  width: 100%;
}

/* ランキング内テキストの共通設定 */
.lp-ranking p {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  margin: 0;
  font-weight: 700;
  color: #111111;
}

/* [差し替え] 更新日の位置・フォントサイズ */
.lp-ranking__updated {
  top: 25%;
  font-size: 17.5px;
  color: var(--color-white) !important;
  text-align: center !important;
}

/* [差し替え] 1位・2位・3位の名前の位置・フォントサイズ */
.lp-ranking__name--1 {
  top: 37%;
  left: 74% !important;
  font-size: 43px;
  text-align: left;
}

.lp-ranking__name--2 {
  top: 57%;
  left: 74% !important;
  font-size: 43px;
  text-align: left;
}

.lp-ranking__name--3 {
  top: 76%;
  left: 74% !important;
  font-size: 43px;
  text-align: left;
}

/* ─────────────────────────────────────────────────────────────
   PROFILES（プロフィール一覧）
───────────────────────────────────────────────────────────── */
.lp-profiles {
  width: 100%;
}

.lp-profiles__head,
.lp-profile__card {
  width: 100%;
}

/* カード間の区切り線（最後のカードには不要） */
.lp-profile__card {
  position: relative;
  border-bottom: 15px solid var(--color-accent);
}

.lp-profiles .lp-profile__card:last-child {
  border-bottom: none;
}

/* プロフィール写真 */
.lp-profile__photo {
  width: 100%;
  height: auto;
  display: block;
}

/* プロフィールカード内テキストの共通設定
   ・left / width は画像デザインに合わせて調整 */
.lp-profile__card p {
  position: absolute;
  left: 44%;  /* [差し替え] テキスト開始位置（画像の右半分） */
  width: 44%; /* [差し替え] テキスト幅 */
  margin: 0;
  color: #111111;
  text-align: left;
}

/* [差し替え] 各テキストの縦位置・フォントサイズ */
.lp-profile__name-ja {
  top: 9%;
  font-size: 28px;
  font-weight: 700;
}

.lp-profile__name-en {
  top: 27%;
  font-size: 15px;
  letter-spacing: 0.08em;
}

.lp-profile__total-count {
  top: 37%;
  font-size: 20px;
  font-weight: 500;
  transform: translateX(13%);
}

.lp-profile__rank {
  top: 55%;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-white);
}

.lp-profile__rank span {
  background: var(--color-accent); /* [差し替え] ランクバッジ背景色 */
  color: var(--color-white);
  padding: 2px 8px;
  border-radius: 5px;
}

.lp-profile__comment {
  top: 68%;
  font-size: 12px;
  color: #555555;
  line-height: 1.3;
}

.lp-profile__weekly-count {
  top: 83%;
  font-size: 16px;
  font-weight: 500;
  transform: translateX(8%);
}

/* ─────────────────────────────────────────────────────────────
   FAQ
───────────────────────────────────────────────────────────── */
.lp-faq {
  background: var(--color-white);
  color: #252830;
  padding: 56px 0 48px;
}

.lp-faq__inner {
  width: min(89.5%, 420px);
  margin: 0 auto;
}

.lp-faq__title {
  margin: 0 0 50px;
  text-align: center;
  line-height: 0;
}

.lp-faq__title-image {
  width: min(58%, 220px);
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.lp-faq__item {
  padding: 0 0 42px;
  margin-bottom: 42px;
  border-bottom: 1px solid rgba(36, 40, 48, 0.44);
}

.lp-faq__item--last {
  margin-bottom: 0;
  border-bottom: none;
}

.lp-faq__question,
.lp-faq__answer {
  margin: 0;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: start;
  gap: 12px;
}

.lp-faq__question {
  color: #108fe9;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

.lp-faq__answer {
  margin-top: 8px;
  color: #292d36;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
}

.lp-faq__mark {
  line-height: 0;
  display: inline-block;
  margin-top: 2px;
}

.lp-faq__mark--q {
  width: 25px;
  margin: auto;
  text-align: center;
}

.lp-faq__mark--a {
  width: 25px;
  margin: 0 auto;
  text-align: center;
}

.lp-faq__mark-image {
  width: 100%;
  height: auto;
  display: block;
}

.lp-faq__note {
  margin: 6px 0 0 56px;
  color: #343944;
  font-size: 14px;
  line-height: 1.6;
  display: grid;
  grid-template-columns: 1em 1fr;
  column-gap: 0.06em;
  align-items: start;
}

.lp-faq__note-mark {
  line-height: 1.55;
}

.lp-faq__note-text {
  min-width: 0;
}

.lp-faq__inline-link {
  color: #1094f7 !important;
  text-decoration: none;
}

/* ─────────────────────────────────────────────────────────────
   HOW TO（参加方法）
   ・how-to.jpg の上に透明ボタンをオーバーレイ
   ・top / width / height は画像内ボタン位置に合わせて調整
───────────────────────────────────────────────────────────── */
.lp-howto {
  width: 100%;
  position: relative;
}

.lp-howto__image {
  width: 100%;
  height: auto;
  display: block;
}

/* [差し替え] 透明ボタンの位置とサイズ（画像に合わせて調整） */
.lp-howto__cta-button {
  width: 75%;
  height: 5%;
  position: absolute;
  left: 0;
  right: 0;
  top: 21.5%;
  margin: auto;
}

/* ─────────────────────────────────────────────────────────────
   TERMS LINK
───────────────────────────────────────────────────────────── */
.lp-terms {
  text-align: center;
  padding: 20px 0 20px;
  background: #fff;
}

.lp-terms__link {
  color: var(--color-accent) !important;
  font-size: 14px;
  text-decoration: underline;
  border: 1px solid var(--color-accent);
  padding:15px 25px 13px 25px;
  border-radius: 3px;
  transition: all 0.2s ease-in-out;
}

.lp-terms__link:hover {
  color: var(--color-white) !important;
  background: var(--color-accent) !important;
}

/* ─────────────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────────────── */
.lp-footer {
  width: 100%;
}

.lp-footer__image {
  width: 100%;
  height: auto;
  display: block;
}

/* ─────────────────────────────────────────────────────────────
   SP FIXED CV
───────────────────────────────────────────────────────────── */
.lp-sp-cv {
  display: none;
}

.lp-sp-cv__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-white) !important;
  font-size: clamp(16px, 4.6vw, 22px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

/* =============================================================
   RESPONSIVE（スマホ: 980px 以下）
   ・サイドカラム非表示、1カラムレイアウトに切り替え
   ・テキストオーバーレイは vw 単位でスケール
   ============================================================= */
@media (max-width: 980px) {
  .lp-layout {
    width: 100%;
    grid-template-columns: 1fr;
  }

  /* サイド（左右）を非表示 */
  .lp-side {
    display: none;
  }

  .lp-main__frame {
    border-radius: 0;
    box-shadow: none;
  }

  .lp-campaign {
    padding: 34px 0 46px;
  }

  .lp-campaign__inner {
    width: min(90%, 390px);
  }

  .lp-campaign__pill {
    min-width: 220px;
    margin-bottom: 24px;
    font-size: clamp(17px, 5vw, 20px);
    padding: 9px 24px;
  }

  .lp-campaign__pill--small {
    min-width: 176px;
    margin-top: 52px;
    margin-bottom: 28px;
    font-size: clamp(16px, 4.6vw, 18px);
    position: relative;
  }

  .lp-campaign__lead,
  .lp-campaign__text {
    font-size: clamp(13px, 3.8vw, 14px);
  }

  .lp-campaign__divider {
    margin: 26px 0;
  }

  .lp-campaign__benefits li {
    font-size: clamp(13px, 3.8vw, 14px);
    margin-bottom: 10px;
  }

  .lp-campaign__title {
    font-size: clamp(23px, 6.9vw, 27px);
  }

  .lp-campaign__amount-value {
    font-size: clamp(34px, 10.8vw, 42px);
  }

  .lp-campaign__amount-tax {
    font-size: clamp(15px, 4.6vw, 18px);
  }

  .lp-campaign__amount-tag {
    font-size: clamp(12px, 3.7vw, 15px);
    padding: 2px 10px;
  }

  .lp-campaign__notes li {
    font-size: clamp(11px, 3.1vw, 12px);
  }

  .lp-campaign__bonus {
    margin-top: 44px;
    padding-top: 28%;
  }

  .lp-campaign__badge {
    width: clamp(118px, 32vw, 150px);
  }

  .lp-campaign__bonus-card {
    padding: 44px 16px 24px;
  }

  .lp-campaign__bonus-caption {
    font-size: clamp(13px, 3.8vw, 14px);
    text-align: center;
  }

  .lp-campaign__bonus-highlight {
    font-size: clamp(20px, 5.8vw, 23px);
    line-height: 1.4;
  }

  .lp-campaign__steps {
    gap: clamp(14px, 4vw, 20px);
  }

  .lp-campaign__step-item {
    grid-template-columns: 34px 1fr;
    gap: 12px;
  }

  .lp-campaign__step-number {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .lp-campaign__step-label {
    font-size: clamp(14px, 4.2vw, 15px);
  }

  .lp-campaign__deadline {
    font-size: clamp(18px, 5.6vw, 22px);
    margin-bottom: 32px;
  }

  .lp-campaign__cta {
    font-size: clamp(18px, 5.2vw, 20px);
    padding: 16px 20px;
  }

  .lp-campaign__notes--bottom {
    margin-top: 30px;
  }

  /* ランキング オーバーレイ（スマホ） */
  .lp-ranking p {
    width: 51%;
    font-size: 3.5vw;
  }

  .lp-ranking__name--1 {
    left: 56% !important;
    font-size: 9vw !important;
  }

  .lp-ranking__name--2 {
    left: 56% !important;
    font-size: 9vw !important;
    top: 57.5%;
  }

  .lp-ranking__name--3 {
    left: 56% !important;
    font-size: 9vw !important;
    top: 76.8%;
  }

  /* プロフィール オーバーレイ（スマホ） */
  .lp-profile__name-ja {
    font-size: 7.5vw !important;
  }

  .lp-profile__name-en {
    top: 30%;
    font-size: 2.5vw;
  }

  .lp-profile__total-count {
    top: 38%;
    font-size: 4vw;
  }

  .lp-profile__rank {
    top: 52%;
    font-size: 3vw;
  }

  .lp-profile__comment {
    width: 50%;
    top: 65%;
    font-size: 2.5vw;
    line-height: 1.6;
  }

  .lp-profile__weekly-count {
    top: 84%;
    font-size: 3.5vw;
  }

  .lp-faq {
    padding: 50px 0 42px;
  }

  .lp-faq__inner {
    width: min(90%, 420px);
  }

  .lp-faq__title {
    margin-bottom: 42px;
  }

  .lp-faq__title-image {
    width: clamp(170px, 48vw, 220px);
  }

  .lp-faq__item {
    padding-bottom: 34px;
    margin-bottom: 34px;
  }

  .lp-faq__question,
  .lp-faq__answer {
    grid-template-columns: 40px 1fr;
    gap: 10px;
  }

  .lp-faq__question {
    font-size: clamp(16px, 4.6vw, 18px);
  }

  .lp-faq__answer {
    margin-top: 8px;
    font-size: clamp(14px, 4.2vw, 15px);
  }

  .lp-faq__mark {
    margin-top: 1px;
  }

  .lp-faq__mark--q {
    width: clamp(34px, 9vw, 40px);
  }

  .lp-faq__mark--a {
    width: clamp(30px, 8.4vw, 38px);
  }

  .lp-faq__note {
    margin-left: 50px;
    font-size: clamp(12px, 3.5vw, 14px);
    grid-template-columns: 1em 1fr;
  }
}

@media (max-width: 768px) {
  .lp-body {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
    background: var(--color-bg);
  }

  .lp-sp-cv {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: var(--color-bg);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.18);
  }
}
