/* ============================================================
   ポケスリ3周年 みんなでチャレンジ LP
   mobile first / max 480px center
   ============================================================ */

:root {
  --pink:        #ff7bb0;
  --pink-deep:   #ff4d97;
  --pink-soft:   #ffd6e6;
  --pink-bg:     #fff0f6;
  --text:        #5a4a52;
  --gold:        #ffcf3f;
  --bar-track:   #ffe1ec;
  --radius:      18px;
  --maxw:        480px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP",
               "Yu Gothic", Meiryo, sans-serif;
  color: var(--text);
  background: #ffe9f1;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

.page {
  max-width: var(--maxw);
  margin: 0 auto;
  background: #fff;
}

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

/* ===== header / banner ===== */
.banner__img { width: 100%; }

.header {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 16px;
  background: #fff;
}
.header__title {
  margin: 0;
  height: 100%;
  line-height: 1;
}
.header__logo {
  display: block;
  width: auto;
  height: 100%;
}

/* ===== 追加アイテム（セット）イメージ ===== */
.item-set {
  margin: 0 0 22px;
  text-align: center;
}
.item-set__img {
  width: 100%;
  border-radius: 12px;
}

/* ===== 目標達成後イメージ（達成時のみ表示） ===== */
.goal-image {
  display: none;
  margin: 0 0 22px;
  text-align: center;
}
body.is-complete .goal-image { display: block; }
.goal-image__title {
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  color: var(--pink-deep);
  margin: 0 0 12px;
}
.goal-image__img {
  width: 100%;
  border-radius: 12px;
}
.goal-image__caption {
  font-size: 12px;
  color: var(--text);
  margin: 10px 0 0;
  line-height: 1.6;
}

/* ===== content ===== */
.content {
  padding: 22px 18px 40px;
}

.lead {
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  color: var(--pink-deep);
  margin: 8px 0 16px;
}

.desc {
  font-size: 14px;
  margin: 0 0 12px;
}

.note {
  font-size: 12px;
  color: #9a8a90;
  margin: 0 0 4px;
}
.note--sm { font-size: 11px; }

/* ============================================================
   投稿数カウンター
   ============================================================ */
.counter {
  margin: 22px 0;
  padding: 24px 18px 20px;
  background: linear-gradient(180deg, #fff 0%, var(--pink-bg) 100%);
  border: 2px solid var(--pink-soft);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 6px 18px rgba(255, 123, 176, 0.15);
}

.counter__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 14px;
}

/* COMPLETE!! ラベル：達成時のみ表示 */
.counter__complete {
  display: none;
  font-size: 30px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 1px;
  margin: 0 0 6px;
  background: linear-gradient(90deg, var(--pink-deep), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.counter__label {
  font-size: 12px;
  color: #9a8a90;
  margin: 0;
}

.counter__numbers {
  margin: 2px 0 16px;
  line-height: 1.1;
}
.counter__current {
  font-size: 40px;
  font-weight: 900;
  color: var(--pink-deep);
  font-variant-numeric: tabular-nums;
}
.counter__sep,
.counter__goal {
  font-size: 18px;
  font-weight: 700;
  color: #b9a5ac;
}

/* ===== バー ===== */
.bar {
  position: relative;
  height: 16px;
  background: var(--bar-track);
  border-radius: 999px;
  margin: 10px 6px 8px;
  overflow: visible;
}
.bar__fill {
  position: relative;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--pink-deep));
  transition: width 1.4s cubic-bezier(.22,.61,.36,1);
}
/* バー先端のボールアイコン（投稿数に応じて画像が切り替わる） */
.bar__ball {
  position: absolute;
  top: 50%;
  right: -30px;
  width: 60px;
  height: 60px;
  transform: translateY(-50%);
  background-image: url("../images/01_monster_ball.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.25));
}
/* 投稿数の到達段階でアイコンを切り替え（0〜30万/30万〜70万/70万〜100万/100万達成） */
.bar.is-ball-1 .bar__ball { background-image: url("../images/01_monster_ball.png"); }
.bar.is-ball-2 .bar__ball { background-image: url("../images/02_super_ball.png"); }
.bar.is-ball-3 .bar__ball { background-image: url("../images/03_hyper_ball.png"); }
.bar.is-ball-4 .bar__ball { background-image: url("../images/04_master_ball.png"); }

.counter__remain {
  font-size: 12px;
  color: var(--pink-deep);
  font-weight: 700;
  margin: 8px 0 0;
  min-height: 1em;
}
.counter__update {
  font-size: 11px;
  color: #b29aa3;
  margin: 6px 0 0;
}

/* ============================================================
   達成（COMPLETE）状態 : body.is-complete
   ============================================================ */
body.is-complete .counter__complete { display: block; }
body.is-complete .counter__label    { display: none; }
body.is-complete .counter__current  { color: var(--pink-deep); }
body.is-complete .bar__fill {
  background: linear-gradient(90deg, var(--pink), var(--pink-deep));
}
body.is-complete .counter__remain { display: none; }

/* ===== 対象期間 ===== */
.period {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 22px auto;
  padding: 10px 18px;
  max-width: 320px;
  background: var(--pink-deep);
  border-radius: 999px;
}
.period__head {
  font-size: 12px;
  font-weight: 700;
  color: var(--pink-deep);
  background: #fff;
  padding: 3px 10px;
  border-radius: 999px;
}
.period__date {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}

/* 英語版は日付表記が長いため、見出しを上・日付を下に縦積みし折り返して収める */
html[lang="en"] .period {
  flex-direction: column;
  gap: 6px;
  padding: 12px 18px;
  max-width: 340px;
}
html[lang="en"] .period__head {
  font-size: 11px;
  white-space: nowrap;
}
html[lang="en"] .period__date {
  font-size: 13px;
  white-space: normal;
  text-align: center;
  line-height: 1.5;
}

/* 英語版の脚注（旧「*」付きテキスト）は文字を小さく表示する */
html[lang="en"] .note--sm,
html[lang="en"] .counter__update,
html[lang="en"] .notes li {
  font-size: 10px;
}

/* ===== 景品案内 ===== */
.present {
  font-size: 17px;
  font-weight: 800;
  text-align: center;
  color: var(--text);
  margin: 26px 0 16px;
}

.notes {
  list-style: none;
  padding: 16px;
  margin: 0 0 26px;
  background: var(--pink-bg);
  border-radius: 12px;
}
.notes li {
  font-size: 12px;
  color: #8a7a80;
  margin: 0 0 8px;
  padding-left: 0;
}
.notes li:last-child { margin-bottom: 0; }

/* ===== TOPへ戻る ===== */
.back-btn {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  padding: 14px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  background: #fff;
  border: 2px solid var(--pink-soft);
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--pink-soft);
}
.back-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--pink-soft); }

/* ===== Xでシェア ===== */
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 300px;
  margin: 12px auto 0;
  padding: 14px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: #000;
  border-radius: 999px;
  box-shadow: 0 3px 0 #444;
}
.share-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #444; }
.share-btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
