/* =====================================================================
   デジタルスタンプラリー LP  —  Figma node 475:677 (390px 基準)
   ===================================================================== */

:root {
  --green: #8fc31f;
  --green-dark: #76bc21;
  --green-pale: #f9fff0;
  --green-border: #d1f0a0;
  --green-note-bg: #d1f0a0;
  --green-note-text: #3a6a0a;
  --black: #030303;
  --ink: #111827;
  --ink-2: #111;
  --gray-2: #444;
  --gray-3: #555;
  --gray-4: #6b7280;
  --gray-6: #b9b9b9;
  --gray-bg: #f2f2f2;
  --danger: #f00;
  --purple: #7d4698;
  --pt-store: #f4b65a;
  --pt-venue: #62a8f4;
  --pt-receipt: #f45a63;
  --notice-bg: #fffbeb;
  --notice-border: #fde68a;
  --notice-title: #d97706;
  --font-sans: 'Inter', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', system-ui, sans-serif;
  --font-title: 'Oswald', 'Inter', 'Noto Sans JP', system-ui, sans-serif;
  --radius-card: 8px;
  --radius-btn: 4px;
  --page-max: 390px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid #1d4ed8;
  outline-offset: 2px;
}

/* ---------- アプリ全体 ---------- */

.app {
  min-height: 100dvh;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  background: #000;
}

@media (min-width: 600px) {
  .app {
    max-width: 480px;
  }
}

.lp {
  width: 100%;
  overflow-x: hidden;
}

/* アンカー遷移時に上端へ余白を残す */
#rewards,
#about,
#store-list {
  scroll-margin-top: 12px;
}

/* ---------- 公開前プレビューゲート ---------- */

html[data-preview-gate='off'] #preview-gate {
  display: none !important;
}

.preview-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: var(--green);
  color: var(--ink);
}

.preview-gate__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: min(100%, 320px);
  text-align: center;
}

.preview-gate__mascot {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.preview-gate__title {
  font-size: 20px;
  font-weight: 800;
}

.preview-gate__lead {
  font-size: 14px;
  font-weight: 700;
}

.preview-gate__field {
  display: block;
  width: 100%;
}

.preview-gate__field input {
  width: 100%;
  min-height: 45px;
  padding: 12px;
  border: 1px solid var(--gray-6);
  border-radius: var(--radius-btn);
  font: inherit;
  text-align: center;
}

.preview-gate__error {
  font-size: 13px;
  font-weight: 700;
  color: var(--danger);
}

[hidden] {
  display: none !important;
}

/* ---------- KV ---------- */

.kv {
  background: var(--ink-2);
}

.kv__image {
  width: 100%;
  height: auto;
}

.kv-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 16px 24px;
  background: var(--gray-bg);
}

.kv-cta__title {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--ink);
}

.kv-cta__lead {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--gray-2);
}

a.cta {
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
  color: inherit;
}

.kv-cta .cta {
  min-height: 56px;
  color: #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}

.kv-cta .cta__label {
  font-size: 16px;
  color: #fff;
}

.kv-cta__note {
  margin: 0;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--gray-4);
  text-align: center;
}

/* ---------- 緑ゾーン（ステータス / 台帳 / Rewards） ---------- */

.green-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 12px 32px;
  background: var(--green);
}

.stripe {
  position: absolute;
  width: 24px;
  height: 139px;
  background: url('../icons/deco-stripe.svg') no-repeat center / contain;
  pointer-events: none;
}

.stripe--top {
  top: 4px;
  right: 4px;
}

.stripe--bottom {
  left: 4px;
  bottom: 32px;
  transform: scaleX(-1);
  /* rotate: 180deg; */
}

.card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 16px;
}

.section-title {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.section-title--light {
  color: #fff;
}

.rate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #000;
}

.rate-row--lg {
  font-size: 15px;
}

.rate-row--top {
  align-items: flex-start;
}

.rate-row__label--multi {
  align-items: flex-start;
  white-space: normal;
  line-height: 1.3;
}

.rate-row__label--multi img {
  margin-top: 2px;
}

.rate-row__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
  white-space: nowrap;
}

.rate-row__label:has(> span) {
  white-space: normal;
}

.rate-row__label > span {
  min-width: 0;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.rate-row__label img {
  width: 15px;
  height: 15px;
  flex: none;
}

.rate-row__pt {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.rate-row__pt--store {
  color: var(--pt-store);
}
.rate-row__pt--venue {
  color: var(--pt-venue);
}
.rate-row__pt--receipt {
  color: var(--pt-receipt);
}

/* ---------- CTA ---------- */

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 45px;
  padding: 12px;
  border: 0;
  border-radius: var(--radius-btn);
  text-align: left;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.cta__label {
  flex: 1 1 auto;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  min-width: 0;
  text-align: center;
}

.cta__chevron {
  width: 21px;
  height: 21px;
  flex: none;
}

.cta--primary {
  background: var(--green-dark);
  color: #fff;
}

/* ---------- Rewards ---------- */

.rewards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.reward {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--green);
  border-radius: var(--radius-card);
}

.reward__ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--purple);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.reward__ribbon--inline {
  align-self: flex-start;
}

.reward__figure {
  position: relative;
}

.reward__figure img {
  width: 100%;
  height: auto;
}

.reward__caption {
  position: absolute;
  right: 4px;
  bottom: 4px;
  padding: 2px;
  background: #fff;
  color: #000;
  font-size: 10px;
  line-height: 1.2;
}

.disclosure {
  display: flex;
  flex-direction: column;
}

.disclosure__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--gray-2);
  padding: 4px 0;
}

.disclosure__summary::-webkit-details-marker {
  display: none;
}

.disclosure__chevron,
.about-card__chevron,
.faq-item__chevron {
  transition: transform 0.2s ease;
}

.disclosure[open] .disclosure__chevron,
.about-card[open] .about-card__chevron,
.faq-item[open] .faq-item__chevron {
  transform: rotate(180deg);
}

.disclosure__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 8px 8px;
  margin-top: 8px;
  background: var(--green-pale);
}

.steps__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 14px;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.step__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.step__head {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.step__desc {
  font-size: 13px;
  color: var(--gray-4);
}

.disclaimers {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  color: var(--ink);
}

.notice {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--notice-border);
  border-radius: var(--radius-card);
  background: var(--notice-bg);
  color: #000;
  font-size: 13px;
}

.notice__title {
  color: var(--notice-title);
  font-weight: 700;
}

.notice__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 1em;
  list-style: '・';
}

/* ---------- About the Campaign ---------- */

.about {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 50px 12px;
  background: var(--black);
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 36%;
  width: 438px;
  height: 422px;
  background: url('../icons/deco-about.svg') no-repeat 0 0 / contain;
  opacity: 0.9;
  pointer-events: none;
}

.about > * {
  position: relative;
}

/* <details> に flex + gap を使うと、閉じた状態でも Chrome の ::details-content が
   0 高さのフレックスアイテムとして残り、summary 下に gap 分の余白が出るため使わない。
   summary と body の間隔は body 側の margin-top で確保する。 */
.about-card {
  display: block;
}

.about-card__summary {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  cursor: pointer;
}

.about-card__summary::-webkit-details-marker {
  display: none;
}

.about-card__summary > img:first-child {
  width: 36px;
  height: 36px;
  flex: none;
}

.about-card__title {
  flex: 1 1 auto;
  font-size: 15px;
  font-weight: 700;
  color: #000;
}

.about-card__chevron {
  width: 7px;
  height: 12px;
  flex: none;
  margin-right: 4px;
  transform: rotate(90deg);
}

.about-card[open] .about-card__chevron {
  transform: rotate(-90deg);
}

.about-card__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 8px;
  margin-top: 24px;
  background: var(--green-pale);
}

.about-card__body--flush {
  padding: 0;
  background: transparent;
}

.about-text {
  font-size: 15px;
  color: #000;
}

.info-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--green-border);
  border-radius: var(--radius-card);
  background: #fff;
  font-size: 13px;
  color: #000;
}

.info-block__title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 15px;
  font-weight: 700;
}

.info-block__strong {
  font-weight: 700;
}

.pill {
  align-self: flex-start;
  padding: 4px 11px;
  border-radius: 18px;
  background: var(--black);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.howto-steps {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.howto-step {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 13px;
  border: 1px solid var(--green-border);
  border-radius: var(--radius-card);
  background: #fff;
}

.howto-step__badge {
  align-self: flex-start;
  padding: 4px 11px;
  border-radius: 18px;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.howto-step__head {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.howto-step__desc {
  font-size: 13px;
  color: var(--gray-3);
}

.howto-step__divider {
  display: flex;
  justify-content: center;
  padding: 2px 0;
}

.footer-note {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: 7px;
  background: var(--green-note-bg);
  color: var(--green-note-text);
  font-size: 11px;
}

.footer-note img {
  flex: none;
}

.methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.method {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--green-border);
  border-radius: 7px;
  background: #fff;
}

.method__thumb {
  flex: none;
  width: 81px;
  height: 55px;
  object-fit: cover;
}

.method__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.method__desc {
  font-size: 13px;
  color: var(--gray-4);
}

.method__note {
  display: block;
  padding: 2px 4px;
  background: #fff4c2;
  color: var(--pt-receipt);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.method__sub {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--ink);
}

.method__sub-title {
  font-weight: 700;
}

.method__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.method__products {
  align-self: center;
  width: 100%;
  max-width: 220px;
  height: auto;
  margin-top: 4px;
}

.store-map {
  position: relative;
  width: 100%;
  min-height: 240px;
  overflow: hidden;
  background: var(--gray-bg);
}

.store-map iframe {
  display: block;
  width: 100%;
  height: 394px;
  border: 0;
}

/* ---------- FAQ ---------- */

.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 50px 16px;
  background: #fff;
}

.faq .section-title {
  margin-bottom: 8px;
}

.faq-item {
  padding: 12px 10px;
  border-radius: 10px;
  background: var(--gray-bg);
}

.faq-item__summary {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  cursor: pointer;
}

.faq-item__summary::-webkit-details-marker {
  display: none;
}

.faq-item__q {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: url('../icons/faq-q-circle.svg') no-repeat center / contain;
  color: #fff;
  font-family: 'Zen Maru Gothic', var(--font-title);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.faq-item__question {
  flex: 1 1 auto;
  font-size: 15px;
  font-weight: 700;
  color: #000;
}

.faq-item__chevron {
  flex: none;
}

.faq-item__answer {
  margin-top: 9px;
  padding-left: 48px;
  font-size: 15px;
  color: #000;
}

.faq-item__answer a {
  color: inherit;
}

/* ---------- フッター ---------- */

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #000;
  color: #777;
  font-size: 13px;
  text-align: center;
}

/* ---------- ユーティリティ ---------- */

@media (max-width: 599px) {
  .cta {
    gap: 5px;
  }
  .cta__label {
    white-space: normal;
    font-size: 13px;
  }
  .rate-row--lg {
    font-size: 13px;
  }
  .rate-row__label {
    font-size: 12px;
  }
  .method__desc {
    font-size: 12px;
  }
  .method__sub-title {
    font-size: 12px;
  }
  .method__list {
    font-size: 12px;
  }
}
