@charset "UTF-8";

/* ============================================================
   Tokens
   ============================================================ */
:root {
  --color-text: #333;
  --color-text-sub: #888;
  --color-accent: #f92962;   /* CTA */
  --color-step: #ff5c00;     /* ステップ番号 */
  --color-yellow: #ffe45e;   /* ヒーロー背景・カード枠 */
  --color-yellow-mid: #ffec8f; /* セクション背景 */
  --color-yellow-light: #fff5c6;
  --color-badge: #fff5c4;
  --color-tag-border: #f9bd25;
  --color-gray-bg: #f8f8f8;
  --color-border: #d9d9d9;

  --content-width: 650px;
  --breakpoint: 750px; /* 参考値：メディアクエリは (max-width: 750px) */
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-weight: 400;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}

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

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

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

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--color-text);
  outline-offset: 2px;
}

.u-sp {
  display: none;
}

/* ============================================================
   CTA（レシートを登録する）
   Figma 71:160096 / 71:160144（616×47）
   ============================================================ */
.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 14px 0;
  border-radius: 8px;
  background-color: var(--color-accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: opacity .2s;
}

.cta:hover {
  opacity: .85;
}

.cta__icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

/* キャンペーン終了時のボタン：Figma 300:62（ヒーロー）／300:57（商品カード上）
   HTML ではコメントアウトしてあり、終了時に通常ボタンと差し替える。
   リンク先なし・tabindex="-1" のため、クリックやホバーの反応も無効にする */
.cta--ended {
  background-color: #e9e9e9;
  color: #acacac;
  cursor: default;
  pointer-events: none;
}

.cta--ended:hover {
  opacity: 1;
}

/* ============================================================
   Hero（暫定実装）
   PC：Figma 166:211380（1280×482）
   ============================================================ */
.hero {
  position: relative;
  background-color: var(--color-yellow);
  /* 背景パターン：Figma 166:211381 をヒーロー枠（1280×482）で書き出した画像（@2x）
     PC・SP 共通。画面幅いっぱいに cover で表示する */
  background-image: url("img/hero-bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  overflow: hidden;
}

.hero__inner {
  width: var(--content-width);
  margin: 0 auto;
  padding-top: 31px;
}

/* Figma 145:187632（160×25） */
.hero__logo {
  width: 160px;
  line-height: 0;
}

.hero__logo-link {
  display: block;
  transition: opacity .2s;
}

.hero__logo-link:hover {
  opacity: .7;
}

.hero__logo img {
  width: 100%;
}

/* メインビジュアル：Figma 166:228969（650×331）ロゴ下 27px */
.hero__visual {
  position: relative;
  margin-top: 27px;
}

/* 書き出し画像はカードの影を含むため 655×334（左に4px・下に3pxはみ出し）。
   配置基準がずれないよう、はみ出し分をマージンで相殺する */
.hero__mv {
  width: 655px;
  max-width: none;
  margin: 0 0 -3px -4px;
}

/* 期間：Figma 178:229580（318×25）／メインビジュアル基準 x:173 / y:186 */
.hero__period {
  position: absolute;
  top: 186px;
  left: 173px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 318px;
  height: 25px;
  padding: 0 16px;
  border-radius: 82px;
  background-color: var(--color-badge);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.hero__period span {
  font-size: 12px;
}

/* ボタン：Figma 166:229377（318×56）／期間の下 8px（メインビジュアル基準 x:173 / y:219） */
.cta--hero {
  position: absolute;
  top: 219px;
  left: 173px;
  width: 318px;
  height: 56px;
  padding: 0;
  font-size: 19px;
}

.cta--hero:focus-visible {
  outline: 3px solid var(--color-text);
  outline-offset: 3px;
}

/* ============================================================
   ページ内ナビ
   PC：Figma 145:187645（帯 #ffec8f／白ボックス 432×42）
   帯は y:426 から。ヒーロー下端（y:482）以降は対象商品セクションと同色で連続する
   ============================================================ */
.page-nav {
  position: relative;
  margin-top: 12px;
  padding: 12px 0 2px;
  background-color: var(--color-yellow-mid);
}

.page-nav__list {
  display: flex;
  align-items: center;
  width: 432px;
  height: 42px;
  margin: 0 auto;
  border-radius: 9px;
  background-color: #fff;
}

.page-nav__item {
  flex: 1;
  display: flex;
  justify-content: center;
}

.page-nav__item + .page-nav__item {
  border-left: 1px solid var(--color-border);
}

.page-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #000;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  text-decoration: none;
}

.page-nav__link:hover {
  opacity: .7;
}

.page-nav__link img {
  flex-shrink: 0;
  width: 13px;
  height: 13px;
}

/* ============================================================
   Section（共通）
   ============================================================ */
.section {
  padding: 32px 0;
}

.section__inner {
  width: var(--content-width);
  margin: 0 auto;
}

.section__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

/* ============================================================
   対象商品：Figma 71:160082
   ============================================================ */
.section--products {
  padding-top: 31px;
  background-color: var(--color-yellow-mid);
}

.section--products .section__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Figma 71:160085 */
.product-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--color-yellow);
  border-radius: 8px;
  background-color: #fff;
}

/* Figma 71:160086（615×280：上3px空け、グレー背景に 415×277 の画像を中央配置） */
.product-card__image {
  width: 100%;
  margin-top: 3px;
  background-color: var(--color-gray-bg);
}

.product-card__image img {
  width: 415px;
  height: 277px;
  margin: 0 auto;
  object-fit: cover;
}

/* Figma 71:160089 */
.product-card__brand {
  padding: 4px 12px;
  border: 1px solid var(--color-tag-border);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.product-card__name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

/* Figma 138:187548 */
.product-card__coin {
  display: flex;
  align-items: center;
  gap: 11px;
}

.product-card__coin-link {
  font-size: 12px;
  line-height: 1.2;
}

.product-card__coin-link:hover {
  text-decoration: none;
}

/* Figma 138:187542 */
.coin-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px;
  border-radius: 8px;
  background-color: var(--color-badge);
  white-space: nowrap;
}

.coin-badge__label {
  font-size: 9px;
}

.coin-badge__num {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.coin-badge__unit {
  font-size: 12px;
}

/* Figma 71:160099 */
.product-card__about {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding: 12px 25px;
  border-radius: 8px;
  background-color: var(--color-gray-bg);
}

.product-card__about-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.product-card__about-text {
  font-size: 14px;
  line-height: 25px;
}

/* Figma 258:9（PC：11px／SP 258:10：12px） */
.product-card__about-note {
  color: #202933;
  font-size: 11px;
  line-height: 25px;
}

/* Figma 71:160102 */
.product-card__lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 100%;
  padding: 6px 0;
}

.product-card__lines-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

/* 見出し下の区切り線（Figma 138:186090：306×4） */
.product-card__lines-title::after {
  content: "";
  display: block;
  width: 306px;
  max-width: 100%;
  height: 4px;
  margin: 15px auto 0;
  background-color: var(--color-gray-bg);
}

.line-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

/* Figma 71:160104 */
.line-list__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 12px;
  border-left: 4px solid var(--color-gray-bg);
}

.line-list__name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.line-list__text {
  font-size: 14px;
  line-height: 1.8;
}

/* Figma 258:5 */
.product-card__lines-note {
  width: 100%;
  color: #000;
  font-size: 14px;
}

/* Figma 71:160114 */
.coin-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: 18px;
  border-radius: 10px;
  background-color: var(--color-gray-bg);
  scroll-margin-top: 16px;
}

.coin-items__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.coin-items__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Figma 71:160116 */
.coin-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.coin-item__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border: 1px solid var(--color-border);
  background-color: #fff;
}

.coin-item__thumb img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.coin-item__name {
  flex: 1;
  min-width: 0;
  font-size: 12px;
}

.coin-items__note {
  font-size: 12px;
  line-height: 18px;
}

/* ============================================================
   かんたん3ステップ：Figma 71:160148
   ============================================================ */
.section--steps {
  background-color: var(--color-yellow-light);
}

/* Figma 71:160149（白カード 650×377） */
.steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 12px;
  border-radius: 10px;
  background-color: #fff;
}

.steps__heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.steps__lead {
  font-size: 12px;
  line-height: 1.5;
}

.steps__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

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

/* 写真：80×72（画像はトリミング済みの 240×216＝@3x をそのまま縮小表示） */
.step__image {
  flex-shrink: 0;
  width: 80px;
  height: 72px;
}

.step__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.step__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.step__no {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--color-step);
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

.step__text {
  font-size: 12px;
}

.steps__note {
  width: 100%;
  font-size: 12px;
  line-height: 1.5;
}

/* ============================================================
   キャンペーン詳細：Figma 71:160179
   ============================================================ */
.section--details {
  background-color: var(--color-yellow-mid);
}

.details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Figma 71:160182 など */
.detail-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background-color: #fff;
  font-size: 12px;
}

.detail-block--tight {
  gap: 5px;
}

.detail-block__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.detail-block__subtitle {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.detail-block__list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.detail-block__list a:hover {
  text-decoration: none;
}

.detail-block__note {
  font-size: 11px;
  line-height: 16px;
}

/* ============================================================
   Footer：Figma 71:160225
   ============================================================ */
.footer {
  padding: 32px 0 24px;
  background-color: #f5f5f5;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer__pagetop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--color-text-sub);
  font-size: 14px;
  line-height: 22.4px;
  text-decoration: none;
}

.footer__pagetop:hover {
  opacity: .7;
}

/* Figma 71:160228：左向き矢印を -90° 回転して上向きに */
.footer__pagetop-icon {
  width: 8px;
  height: 16px;
  margin: -4px 0;
  transform: rotate(-90deg);
}

.footer__logo {
  display: block;
  width: 161px;
  transition: opacity .2s;
}

.footer__logo:hover {
  opacity: .7;
}

.footer__logo img {
  width: 100%;
}

.footer__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1.4;
}

.footer__links a:hover {
  text-decoration: none;
}

.footer__copy {
  color: var(--color-text-sub);
  font-size: 10px;
  line-height: 1.4;
}

.footer__copy small {
  font-size: inherit;
}


/* ============================================================
   SP（〜750px）
   Figma 166:196164（375px）
   ============================================================ */
@media (max-width: 750px) {
  .u-pc {
    display: none;
  }

  .u-sp {
    display: inline;
  }

  /* ---------- Hero（暫定：PC共通の背景パターン＋透過メインビジュアル画像） ---------- */
  /* 背景は .hero の PC 設定をそのまま使い、画面幅いっぱいに表示。
     メインビジュアルは 375px 固定で中央配置 */
  .hero {
    /* cover だと高さ基準で拡大されパターンが粗くなるため、PC と同じ等倍で中央配置
       （〜750px では 1280px 幅の画像が常に左右を覆う。下端はナビ帯が重なる） */
    background-size: 1280px 482px;
  }

  .hero__inner {
    position: relative;
    width: 375px;
    padding-top: 0;
  }

  /* Figma 166:210765（125×20）／ヒーロー画像基準 x:19 / y:24
     後続のヒーロー画像に隠れないよう z-index で前面に */
  .hero__logo {
    position: absolute;
    top: 24px;
    left: 19px;
    z-index: 1;
    width: 125px;
  }

  /* Figma 166:196166 から背景・CTA・ロゴを除き、表示範囲（375×455）で書き出した透過画像（@2x：750×910） */
  .hero__visual {
    margin-top: 0;
  }

  .hero__mv {
    width: 375px;
    height: 455px;
    margin: 0;
  }

  /* SPの期間表示はヒーロー画像内に含まれる */
  .hero__period {
    display: none;
  }

  /* Figma 166:210952 内 CTA（288×48）／画像基準 x:49 / y:356 */
  .cta--hero {
    top: 356px;
    left: 49px;
    width: 288px;
    height: 48px;
  }

  /* ---------- ページ内ナビ：Figma 147:187652 ---------- */
  .page-nav {
    margin-top: 0;
    padding: 17px 13px 14px;
  }

  .page-nav__list {
    width: 100%;
    max-width: 432px;
  }

  /* ---------- Section 共通 ---------- */
  .section {
    padding: 32px 16px;
  }

  .section__inner {
    width: 100%;
  }

  /* ---------- 対象商品：Figma 71:142005 ---------- */
  .section--products {
    padding-top: 20px;
  }

  /* Figma 71:142007 */
  .product-card {
    gap: 19px;
    border: 0;
  }

  /* Figma 166:211221（311×207）：グレー背景なしで幅いっぱいに表示（画像は PC と共通） */
  .product-card__image {
    margin-top: 0;
    background-color: transparent;
  }

  .product-card__image img {
    width: 100%;
    height: auto;
  }

  /* Figma 145:187556：バッジの下にリンク */
  .product-card__coin {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .product-card__coin-link {
    font-size: 11px;
  }

  /* Figma 71:173312（h48 / 19px） */
  .cta--card-top {
    height: 48px;
    padding: 0;
    font-size: 19px;
  }

  /* Figma 71:142019 */
  .product-card__about {
    gap: 5px;
    padding: 23px 12px;
  }

  .product-card__about-text {
    line-height: 1.8;
  }

  .product-card__about-note {
    font-size: 12px;
    line-height: 1.8;
  }

  /* Figma 71:142022 */
  .product-card__lines {
    gap: 20px;
    padding: 0;
  }

  .product-card__lines-title::after {
    width: 287px;
    margin-top: 20px;
  }

  .line-list {
    gap: 20px;
  }

  .line-list__item {
    gap: 5px;
  }

  /* Figma 71:142033 */
  .coin-items {
    padding: 15px;
  }

  /* ---------- かんたん3ステップ：Figma 71:142067（白背景・全幅） ---------- */
  .section--steps {
    background-color: #fff;
  }

  .steps {
    padding: 0;
    border-radius: 0;
  }

  /* ---------- Footer：Figma 71:142142 ---------- */
  .footer {
    padding: 32px 16px 24px;
    background-color: var(--color-gray-bg);
  }
}
