:root {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-muted: #666;
  --color-accent: #ff3a8c;
  /* ブレークポイント(600px)と揃える: SP↔PC切替時に拡大ボケが出ない */
  --lp-max-w: 600px;
}

* { box-sizing: border-box; }

/* Login Gate */
html.locked, html.locked body { overflow: hidden; height: 100%; }
#login-gate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#login-gate form {
  width: 100%;
  max-width: 360px;
  padding: 32px 28px;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
#login-gate h2 {
  margin: 0 0 24px;
  text-align: center;
  font-size: 20px;
}
#login-gate label {
  display: block;
  margin-bottom: 16px;
  font-size: 13px;
  color: #555;
}
#login-gate label span { display: block; margin-bottom: 6px; }
#login-gate input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  font-family: inherit;
}
#login-gate input:focus {
  outline: none;
  border-color: var(--color-accent);
}
#login-gate button {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  background: var(--color-accent);
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
#login-gate button:hover { opacity: 0.9; }
#login-error {
  color: #d32f2f;
  font-size: 13px;
  margin: 12px 0 0;
  text-align: center;
  min-height: 1.2em;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--color-text);
  background: #eef3f6;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* LP image stack — mobile-first vertical layout */
.lp {
  max-width: var(--lp-max-w);
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 24px rgba(0,0,0,0.08);
}

.lp picture { display: block; }

.lp__img {
  width: 100%;
  height: auto;
  display: block;
}

.lp__cta-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: opacity .15s ease;
}
.lp__cta-link:hover { opacity: 0.92; }
.lp__cta-link:active { opacity: 0.85; }

/* Layered composite (slice 1 hero / slice 32 footer CTA)
   背景画像 + ラベル(任意) + 個別リンクボタンを重ねる
   座標はデザイン原寸 828x1792 から % 換算 */
.lp__composite {
  position: relative;
  width: 100%;
  line-height: 0;
}
.lp__composite-bg {
  width: 100%;
  height: auto;
  display: block;
}
.lp__composite-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  z-index: 1;
}
.lp__composite-btn {
  position: absolute;
  display: block;
  text-decoration: none;
  transition: opacity .15s ease;
  z-index: 2;
}
.lp__composite-btn:hover { opacity: 0.88; }
.lp__composite-btn:active { opacity: 0.80; }
.lp__composite-btn img {
  width: 100%;
  height: auto;
  display: block;
}

/* Slice 1 (hero) */
.lp__hero-btn--top {
  top: 0;
  left: 0;
  width: 100%; /* 828/828 */
}
.lp__hero-btn--bottom {
  top: 93.30%;   /* 1672/1792 */
  left: 5.19%;   /*   43/828  */
  width: 89.61%; /*  742/828  */
}

/* Slice 32 (footer CTA) */
.lp__footer-btn--top {
  top: 2.79%;    /*   50/1792 */
  left: 3.86%;   /*   32/828  */
  width: 92.27%; /*  764/828  */
}
.lp__footer-btn--bottom {
  top: 91.13%;   /* 1633/1792 */
  left: 3.86%;   /*   32/828  */
  width: 92.15%; /*  763/828  */
}

/* Slice 2 動画埋め込み（背景pc/2.jpgの空白帯に重ねる） */
.lp__media-2-video {
  position: absolute;
  display: block;
  background: #000;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  object-fit: cover;
  z-index: 2;
}
.lp__media-2-video--top {
  /* 「選べる冷却4カップ」直下の空白帯 y=118-609(h=492) / 1280x720 横動画
     85%幅 396px高 → 帯内で縦中央 */
  top: 9.26%;     /* (118+(492-396)/2)/1792 */
  left: 7.5%;
  width: 85%;
  height: 22.10%;
}
.lp__media-2-video--bottom {
  /* 「内臓ケア痩身ウィンバック」直下の空白帯 y=768-1791(h=1024) / 720x900 縦動画
     80%幅 828px高 → 帯内で縦中央。設計の広い空白帯を活かして大きめに配置 */
  top: 48.32%;    /* (768+(1024-828)/2)/1792 */
  left: 10%;
  width: 80%;
  height: 46.21%;
}

/* Slice 33「豪華体験」下の動画（90度左回転で縦動画を横表示）
   原素材: 1080x1920 縦 → -90deg回転で 16:9 横として描画
   pre-rotation 47.83% x 39.29%(縦) → rotate(-90deg) で視覚的に 85% x 22.10%(横) になる */
.lp__media-33-video {
  position: absolute;
  top: 41.96%;     /* (901+(406-(704*9/16))/2) を回転前element top に換算 */
  left: 26.09%;
  width: 47.83%;   /* pre-rotation width  ← 回転後の "高さ" */
  height: 39.29%;  /* pre-rotation height ← 回転後の "幅"   */
  transform: rotate(-90deg);
  transform-origin: center center;
  display: block;
  background: #000;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  object-fit: cover;
  z-index: 2;
}

/* Slice 26 アクセス「道順」下の動画 */
.lp__media-26-video {
  /* 「道順」ピン直下の空白帯 y=1049-1791(h=743) / 720x1280 縦9:16動画
     45%幅 668px高 → 帯内で縦中央 */
  position: absolute;
  display: block;
  background: #000;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  object-fit: cover;
  z-index: 2;
  top: 60.63%;    /* (1049+37.5)/1792 */
  left: 27.29%;   /* (828-376)/2 / 828 */
  width: 45.41%;  /* 376/828 */
  height: 37.28%; /* 668/1792 */
}

/* ============== CTA フォームセクション ============== */
.cta-form {
  max-width: var(--lp-max-w);
  margin: 0 auto;
  padding: 36px 20px 44px;
  background:
    radial-gradient(ellipse at top left, rgba(255,255,255,0.7), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(255,255,255,0.7), transparent 60%),
    linear-gradient(180deg, #d9ecf7 0%, #eef7fb 55%, #f7fbfd 100%);
  position: relative;
  overflow: hidden;
}
/* 雪の結晶モチーフをCSSで（軽量） */
.cta-form::before,
.cta-form::after {
  content: '❄';
  position: absolute;
  color: rgba(255,255,255,0.75);
  font-size: 90px;
  line-height: 1;
  pointer-events: none;
}
.cta-form::before { top: 8px; left: -10px; transform: rotate(-12deg); }
.cta-form::after  { bottom: 8px; right: -10px; font-size: 70px; transform: rotate(18deg); }

.cta-form__inner { position: relative; z-index: 1; }

.cta-form__head {
  text-align: center;
  margin-bottom: 22px;
}
.cta-form__badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 14px;
  background: #fff;
  border: 1.5px solid #ffb1d0;
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
}
.cta-form__title {
  margin: 0 0 12px;
  padding: 12px 24px;
  display: inline-block;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, #ff8eb9 0%, #ff3a8c 100%);
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(255,58,140,0.28);
  letter-spacing: 0.04em;
}
.cta-form__lead {
  margin: 0 0 16px;
  font-size: 14px;
  color: #2c3e50;
  line-height: 1.7;
}
.cta-form__price {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 22px;
  background: rgba(255,255,255,0.85);
  border: 1.5px dashed #ff8eb9;
  border-radius: 12px;
}
.cta-form__price-lead {
  font-size: 12px;
  color: #2c3e50;
  font-weight: 700;
  background: linear-gradient(transparent 60%, #fff5b1 60%);
  padding: 0 4px;
}
.cta-form__price-amount {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-accent);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.1;
}
.cta-form__price-amount small { font-size: 18px; font-weight: 700; margin-left: 2px; }
.cta-form__price-tax { font-size: 11px; font-family: inherit; color: var(--color-muted); margin-left: 4px; font-weight: 600; }

.cta-form__form {
  background: #fff;
  border-radius: 16px;
  padding: 26px 20px 22px;
  box-shadow: 0 6px 24px rgba(40, 80, 120, 0.10);
}

.cta-form__field { margin-bottom: 18px; }
.cta-form__label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 700;
  color: #2c3e50;
}
.cta-form__req {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  background: var(--color-accent);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  border-radius: 4px;
  vertical-align: middle;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.cta-form__input,
.cta-form__textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #d8e3ea;
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
  color: var(--color-text);
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
.cta-form__input:focus,
.cta-form__textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(255,58,140,0.12);
}
.cta-form__textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}
.cta-form__input:invalid:not(:placeholder-shown),
.cta-form__textarea:invalid:not(:placeholder-shown) {
  border-color: #e0a0b0;
}

.cta-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 6px 0 22px;
  font-size: 13px;
  color: #2c3e50;
  cursor: pointer;
}
.cta-form__consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.cta-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cta-form__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 17px 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #5fd066 0%, #2ea135 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  font-family: inherit;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(46,161,53,0.32);
  transition: opacity .15s, transform .1s, box-shadow .15s;
  text-shadow: 0 1px 0 rgba(0,0,0,0.15);
}
.cta-form__submit:hover { opacity: 0.94; }
.cta-form__submit:active { transform: translateY(1px); box-shadow: 0 3px 8px rgba(46,161,53,0.28); }
.cta-form__submit-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #fff;
  color: #2ea135;
  border-radius: 50%;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
}

.cta-form__note {
  margin: 14px 0 0;
  font-size: 11px;
  color: var(--color-muted);
  text-align: center;
  line-height: 1.6;
}

/* ============== サンクスページ ============== */
.thanks {
  max-width: var(--lp-max-w);
  margin: 0 auto;
  padding: 48px 20px 40px;
  background:
    radial-gradient(ellipse at top, rgba(255,255,255,0.6), transparent 60%),
    linear-gradient(180deg, #d9ecf7 0%, #eef7fb 60%, #f7fbfd 100%);
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.thanks::before,
.thanks::after {
  content: '❄';
  position: absolute;
  color: rgba(255,255,255,0.7);
  pointer-events: none;
}
.thanks::before { top: 16px; left: -8px; font-size: 90px; transform: rotate(-10deg); }
.thanks::after  { bottom: 16px; right: -8px; font-size: 70px; transform: rotate(15deg); }

.thanks__card {
  position: relative;
  z-index: 1;
  width: 100%;
  background: #fff;
  border-radius: 18px;
  padding: 36px 24px 32px;
  box-shadow: 0 8px 28px rgba(40, 80, 120, 0.12);
  text-align: center;
}
.thanks__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
}
.thanks__title {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: 0.04em;
}
.thanks__lead {
  margin: 0 0 24px;
  font-size: 14px;
  color: #2c3e50;
  line-height: 1.9;
}
.thanks__notice {
  margin: 0 0 26px;
  padding: 16px 18px;
  background: linear-gradient(180deg, #f3f9fd 0%, #e9f3f9 100%);
  border: 1px solid #d8e8f1;
  border-radius: 12px;
  text-align: left;
}
.thanks__notice-title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: #2c3e50;
}
.thanks__notice-body {
  margin: 0;
  font-size: 12px;
  color: #4a5a6a;
  line-height: 1.7;
}
.thanks__back {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(180deg, #ff8eb9 0%, #ff3a8c 100%);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(255,58,140,0.28);
  transition: opacity .15s, transform .1s;
  letter-spacing: 0.04em;
}
.thanks__back:hover { opacity: 0.92; }
.thanks__back:active { transform: translateY(1px); }

/* Footer */
.footer {
  max-width: var(--lp-max-w);
  margin: 0 auto;
  padding: 24px 20px 40px;
  background: #fff;
  text-align: center;
  color: var(--color-muted);
  font-size: 12px;
}
