@charset "UTF-8";
/* =========================================================
   JA「食と農のクイズで PayPayポイント」キャンペーン LP
   Figma フレーム「1」(440×6992 / SP) の数値をそのまま実装。
   中央カラムは常に 440px 幅・コンテンツ 380px（左右 30px）。
   ========================================================= */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN",
               "Yu Gothic", Meiryo, sans-serif;
  color: #000;
  background: #fff;
  font-weight: 400;
  /* Figma のテキストは全て PALT（プロポーショナルメトリクス）指定 */
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; }

/* ---------- design tokens（Figma のカラー値） ---------- */
:root {
  --green:    #397E38;  /* JAグリーン：見出しバー・小見出し */
  --green-lt: #6FB92D;  /* 「食」 */
  --orange:   #EC721A;  /* 「農」 */
  --teal:     #179AAE;  /* 「クイズの後は〜」帯など */
  --red:      #D62337;  /* PayPayポイント */
  --yellow:   #FFF23A;  /* 先着バッジ */
  --bg:       #F3FFEA;  /* ページ背景 */
}

/* ---------- layout（PC01：中央はSP幅カラム／PCで左右レール） ---------- */
main, .site-footer { width: 100%; max-width: 440px; margin: 0 auto; }
main { background: var(--bg); }
.container { padding: 0 30px; }          /* 440 - 30*2 = 380 */
:where([id]) { scroll-margin-top: calc(var(--header-h) + 16px); }   /* 固定ヘッダー分 */

/* ---------- 固定ヘッダー（Figma: 白帯 440×70 / JAロゴ 54×32 @ x20,y19）
   0813戻しPDF p6/p7 のご指摘②「PCヘッダー固定・SPカラム内ヘッダーなし」に対応。
   PC(1024px〜)は全幅でロゴ左寄せ、それ未満は中央440pxカラムの左端に揃える。 ---------- */
/* ヘッダーは全幅で上部固定（PC・SP共通／ロゴは画面左寄せ）。
   440px設計（帯70px・ロゴ32px・左余白20px）を基準に、
   440px未満の端末では同じ比率で縮小するレスポンシブ指定。 */
:root { --header-h: min(70px, 15.91vw); }
body { padding-top: var(--header-h); }
.site-header {
  position: fixed; top: 0; left: 0; z-index: 10;
  width: 100%; height: var(--header-h); background: #fff; border-bottom: 1px solid #CCCCCC;
}
.site-header__inner {
  display: flex; align-items: center; height: 100%; padding-left: min(20px, 4.55vw);
}
/* ロゴは高さ基準。JAはだの等の横長ロゴに差し替えても崩れません。
   ロゴ全体がトップへのリンク（.site-header__home）。 */
.site-header__home { display: flex; align-items: center; }
.site-header__logo { width: auto; height: min(32px, 7.27vw); }

.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;
}

/* ---------- hero ---------- */
.hero { position: relative; line-height: 0; }
.hero img { width: 100%; }
.hero__pc { display: none; }
.hero__sp { display: block; }
/* CTAボタン（Figma: 437×115 @ x1,y830）。
   KV画像にはボタンを含めず、この要素で表示する（スクロール時に下部固定へ切替） */
.hero__cta {
  position: absolute; z-index: 2;
  left: 0.23%; width: 99.32%; top: 85.97%; height: 13.01%;
  background: url("../images/rail-cta.png?v=2") center center / contain no-repeat;
  border-radius: 999px;
}
.hero__cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* =========================================================
   キャンペーン期間 / 注意事項
   ========================================================= */
.sec--period { padding-top: 20px; }

.info-card + .info-card { margin-top: 15px; }
.info-card__head {
  background: var(--green); color: #fff; text-align: center;
  font-size: 20px; font-weight: 700; line-height: 24px; padding: 8px 10px;
  border-radius: 8px 8px 0 0;
}
.info-card__body { background: #fff; border-radius: 0 0 12px 12px; padding: 20px; }
.info-card__body--notes { padding-bottom: 44px; }
.info-card__date { font-size: 24px; font-weight: 700; line-height: 28.8px; color: #000; }
.info-card__note { font-size: 15px; font-weight: 400; line-height: 24px; margin-top: 8px; }
.info-card__list { font-size: 14px; font-weight: 400; line-height: 24px; }
.info-card__list span { display: block; }

/* =========================================================
   キャンペーン概要 〜 学ぼう（Figma: 緑グラデーション背景 586×2455 @ x-73,y1486）
   ========================================================= */
.green-bg {
  background: url("../images/sec-bg.jpg?v=2") no-repeat -73px 31px / 586px 2455px;
  padding-bottom: 40px;
}
.sec--campaign { padding-top: 61px; }
.sec-head {
  text-align: center; color: var(--green);
  font-size: 24px; font-weight: 700; line-height: 28.8px;
}
.sec-head__en {
  display: block; margin-top: 4px;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 16px; font-weight: 700; line-height: 19.4px; letter-spacing: .05em;
}
.lead {
  margin-top: 14px; text-align: center;
  font-size: 15px; font-weight: 700; line-height: 26.2px; color: #000;
}

/* ---- 賞品紹介カード ---- */
.prize {
  position: relative; margin-top: 42px; background: #fff; border-radius: 12px;
  padding: 34px 20px 25px;
}
.prize__ribbon {
  position: absolute; z-index: 2; top: -19px; left: 50%; transform: translateX(-50%);
  width: 165px; height: auto;
}
/* 先着バッジ（Figma: 131×131 @ x309,y1714 / 文字が傾いているため画像で配置） */
.prize__badge {
  position: absolute; z-index: 2; top: -41px; right: -30px; width: 131px; height: 131px;
}

.prize__main { display: flex; align-items: center; gap: 16px; }
.prize__logo { width: 82px; height: 84px; border: 1px solid #BABABA; border-radius: 5px; }
.prize__t1 { font-size: 21px; font-weight: 900; line-height: 28px; color: var(--red); }
.prize__t2 {
  display: flex; align-items: baseline; height: 67px; margin-top: -3px;
  font-size: 56px; font-weight: 900; line-height: 67.2px; color: var(--red);
}
.prize__t2 .u { font-size: 24px; font-weight: 900; }
.prize__notes { margin-top: 5px; font-size: 11px; font-weight: 400; line-height: 13.2px; }

.prize__period {
  margin-top: 15px; background: var(--bg); border-radius: 8px; padding: 16px 19px 19px;
}
.prize__period-ttl { text-align: center; font-size: 15px; font-weight: 700; line-height: 18px; color: var(--green); }
.prize__period-date { margin-top: 15px; text-align: center; font-size: 20px; font-weight: 700; line-height: 24px; color: #000; }
.prize__period-note { margin-top: 15px; font-size: 10px; font-weight: 400; line-height: 12px; }

.envelope { margin-top: 15px; width: 100%; }

/* =========================================================
   食と農について学ぼう
   ========================================================= */
.sec--learn { padding-top: 16px; }
.learn { background: #fff; border-radius: 12px; padding: 20px 30px 36px; }

.learn__pre {
  position: relative; display: block; width: fit-content; margin: 0 auto;
  padding: 0 15px; color: var(--green);
  font-size: 15px; font-weight: 700; line-height: 18px;
}
.learn__pre::before, .learn__pre::after {
  content: ""; position: absolute; top: 50%; width: 2px; height: 23px;
  background: var(--green); margin-top: -11px;
}
.learn__pre::before { left: 0;  transform: rotate(-20deg); }
.learn__pre::after  { right: 0; transform: rotate(20deg); }

.learn__ttl {
  display: flex; align-items: baseline; justify-content: center; height: 38px;
  margin-top: 19px;
  font-size: 32px; font-weight: 900; line-height: 38px;
}
.learn__ttl .c-sm  { font-size: 20px; color: var(--green); }
.learn__ttl .c-gr  { color: var(--green); }
.learn__ttl .c-lt  { color: var(--green-lt); }
.learn__ttl .c-or  { color: var(--orange); }
/* 破線（Figma: 256×2 / dash 5,3 / #397E38） */
.learn__dash {
  display: block; width: 256px; height: 2px; margin: 8px auto 0;
  background: repeating-linear-gradient(to right, var(--green) 0 5px, transparent 5px 8px);
}

.learn__item { margin-top: 30px; }
.learn__item + .learn__item { position: relative; padding-top: 25px; }
.learn__item + .learn__item::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 1px;
  background: repeating-linear-gradient(to right, #D4D4D4 0 2px, transparent 2px 4px);
}
.learn__no {
  font-family: "Inter", sans-serif; font-size: 32px; font-weight: 700;
  line-height: 30px; color: var(--green);
}
.learn__h { margin-top: 10px; font-size: 20px; font-weight: 700; line-height: 30px; color: var(--green); }
.learn__p { margin-top: 15px; font-size: 15px; font-weight: 500; line-height: 26.2px; color: #000; }
.learn__p + .learn__p { margin-top: 26px; }

.learn__btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 311px; height: 56px; margin: 19px 0 0;
  background: var(--green); color: #fff; border-radius: 100px;
  font-size: 20px; font-weight: 700; line-height: 24px;
}
.learn__btn::after {
  content: ""; width: 0; height: 0;
  border-left: 14px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent;
}
.learn__chart { margin-top: 25px; width: 320px; }
.learn__note { margin-top: 10px; font-size: 11px; font-weight: 500; line-height: 16.5px; }

/* =========================================================
   ご応募の手順（画像）
   ========================================================= */
.sec--steps { padding-top: 35px; }
.steps-img { width: 100%; }

/* =========================================================
   応募規約
   ========================================================= */
.sec--terms { padding-top: 60px; }
.terms {
  height: 221px; overflow-y: auto; background: #fff;
  border: 1px solid #CCCCCC; border-radius: 8px; padding: 20px;
}
.terms::-webkit-scrollbar { width: 6px; }
.terms::-webkit-scrollbar-track { background: #D9D9D9; border-radius: 100px; }
.terms::-webkit-scrollbar-thumb { background: #8A8A8A; border-radius: 100px; }
.terms h2 { text-align: center; font-size: 20px; font-weight: 700; line-height: 24px; color: #000; }
.terms__body { margin-top: 28px; font-size: 15px; font-weight: 400; line-height: 18px; white-space: pre-wrap; }
.terms__body a { color: var(--green); text-decoration: underline; word-break: break-all; }

/* =========================================================
   よくある質問
   ========================================================= */
.sec--faq { padding-top: 54px; padding-bottom: 40px; }
.faq__head {
  background: var(--green); color: #fff; text-align: center;
  font-size: 24px; font-weight: 700; line-height: 28.8px; padding: 8px 10px;
}
.faq__list { margin-top: 20px; }
.faq__item { background: #fff; border-radius: 5px; padding: 20px; }
.faq__item + .faq__item { margin-top: 10px; }
.faq__q {
  display: flex; align-items: flex-start; gap: 5px;
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 0 20px 0 0; position: relative;
}
.faq__q .mark {
  flex: 0 0 auto; font-family: "Inter", sans-serif; font-size: 20px; font-weight: 700;
  line-height: 24.2px; color: var(--green);
}
.faq__q .txt { font-size: 16px; font-weight: 700; line-height: 19.2px; color: var(--green); padding-top: 3px; }
.faq__q::after {
  content: ""; position: absolute; right: 3px; top: 4px; width: 11px; height: 11px;
  border-right: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: rotate(45deg); transition: transform .2s;
}
.faq__item.open .faq__q::after { transform: rotate(-135deg) translate(-3px,-3px); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.faq__item.open .faq__a { grid-template-rows: 1fr; }
.faq__a > .faq__a-inner { overflow: hidden; }
.faq__a .row { display: flex; align-items: flex-start; gap: 5px; padding-top: 16px; }
.faq__a .mark {
  flex: 0 0 auto; font-family: "Inter", sans-serif; font-size: 20px; font-weight: 700;
  line-height: 24.2px; color: var(--green);
}
.faq__a p { font-size: 14px; font-weight: 400; line-height: 24.5px; color: #000; white-space: pre-wrap; }

/* =========================================================
   footer
   ========================================================= */
.site-footer { background: #fff; color: #000; text-align: center; padding: 50px 20px 40px; }
.site-footer .f-ttl { font-size: 15px; font-weight: 700; line-height: 18px; }
.site-footer .f-body { margin-top: 20px; font-size: 15px; font-weight: 400; line-height: 18px; }
.site-footer .f-time { margin-top: 20px; font-size: 15px; font-weight: 400; line-height: 18px; }
.site-footer .f-note { margin-top: 10px; font-size: 10px; font-weight: 400; line-height: 12px; }
.site-footer .copy { margin-top: 20px; font-size: 10px; line-height: 12px; color: #707070; }
.site-footer a { color: inherit; }

/* =========================================================
   Quiz page
   ========================================================= */
/* Figma フレーム「2」(出題) / 「4」(判定) / 「3」(全問正解) 準拠。
   カードは 400px 幅（左右 20px）、送信ボタンのみ 380px。 */
.quiz-kv { line-height: 0; max-width: 440px; margin: 0 auto; }
.quiz-kv img { width: 100%; }
.quiz-wrap { background: var(--bg); padding: 19px 0 100px; max-width: 440px; margin: 0 auto; }
.quiz-inner { padding: 0 20px; }

.retry-box {
  background: #fff; border: 6px solid var(--green); border-radius: 12px;
  text-align: center; padding: 24px 30px; margin-bottom: 25px;
  color: var(--green); font-size: 24px; font-weight: 900; line-height: 36px;
}
.retry-box h2 { font-size: 24px; font-weight: 900; line-height: 36px; }
.retry-box p { font-size: 24px; font-weight: 900; line-height: 36px; }

.qcard { background: #fff; border-radius: 12px; padding: 20px 30px 37px; margin-bottom: 20px; }
.q-no { font-family: "Inter", sans-serif; font-size: 32px; font-weight: 700; line-height: 28px; color: var(--green); }
.q-text { margin-top: 15px; font-size: 18px; font-weight: 900; line-height: 28px; color: var(--green); }
.q-sub { margin-top: 5px; font-size: 14px; font-weight: 900; line-height: 28px; color: var(--green); }
.options { margin-top: 19px; }
.opt {
  display: flex; align-items: center; gap: 10px; width: 100%;
  text-align: left; background: none; border: 0; cursor: pointer; padding: 0; font: inherit;
}
.opt + .opt { margin-top: 15px; }
.opt__mark {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--green); background: #fff; position: relative; transition: background .15s;
}
.opt__mark::after {
  content: ""; position: absolute; left: 12px; top: 7px; width: 8px; height: 16px;
  border-right: 3px solid #fff; border-bottom: 3px solid #fff;
  transform: rotate(45deg) scale(0); transition: transform .15s;
}
.opt.selected .opt__mark { background: var(--green); }
.opt.selected .opt__mark::after { transform: rotate(45deg) scale(1); }
.opt__label { font-size: 18px; font-weight: 500; line-height: 24px; color: #000; }

.feedback { display: none; margin-top: 35px; }
.feedback.show { display: block; }
.feedback__banner {
  display: block; height: 52px; border-radius: 100px; text-align: center;
  color: #fff; font-size: 24px; font-weight: 900; line-height: 36px; padding-top: 8px;
}
.feedback.ok .feedback__banner { background: var(--red); }
.feedback.ng .feedback__banner { background: #909090; }
.feedback.ok .feedback__banner::before { content: "正解！"; }
.feedback.ng .feedback__banner::before { content: "不正解…"; }
.feedback p { margin-top: 15px; font-size: 14px; font-weight: 400; line-height: 24px; color: #000; }
.feedback p a { color: var(--green); text-decoration: underline; word-break: break-all; }
/* Q1のヒントはトップページと同じ「特設サイトはこちら」ボタンで出すため、
   上のリンク装飾（緑・下線）を打ち消してボタンの見た目を優先する。
   トップページでは左揃えだが、クイズカード内では中央揃えにする。 */
.feedback p a.learn__btn {
  color: #fff; text-decoration: none; word-break: normal;
  margin-left: auto; margin-right: auto;
}

.quiz-submit {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 380px; height: 72px; margin: 35px auto 0; cursor: pointer;
  background: var(--green); color: #fff; font-size: 20px; font-weight: 700; line-height: 24px;
  border: 0; border-radius: 100px; transition: opacity .15s;
}
.quiz-submit::after { content: ""; width: 0; height: 0; border-left: 14px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.quiz-submit:hover { opacity: .9; }

.result { display: none; }
.result.show { display: block; }
.result__card { background: #fff; border: 6px solid var(--red); border-radius: 12px; text-align: center; padding: 30px; }
.result__ttl { color: var(--red); font-size: 48px; font-weight: 900; line-height: 48px; }
.result__sub { color: var(--red); font-size: 28px; font-weight: 900; line-height: 48px; }
.result__lead { margin-top: 25px; font-size: 14px; font-weight: 400; line-height: 24px; }
.result__cue { margin-top: 30px; font-size: 16px; font-weight: 700; line-height: 24px; }
.result__cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 72px; margin-top: 15px; background: var(--red); color: #fff;
  font-size: 20px; font-weight: 900; line-height: 24px; border-radius: 100px;
}
.result__cta::after { content: ""; width: 0; height: 0; border-left: 14px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.result__notes { text-align: left; margin-top: 20px; font-size: 10px; font-weight: 400; line-height: 15px; }
.quiz-back { display: block; text-align: center; margin-top: 35px; font-size: 14px; color: var(--green); font-weight: 700; text-decoration: underline; }

/* =========================================================
   CTA（.hero__cta）は KV内の位置からスタートし、
   そこを通り過ぎてスクロールすると画面下部に固定（SP/タブレットのみ）。
   固定時のみボタン画像を表示（KV内ではKV画像のボタンに重なる透明ホットスポット）。
   ========================================================= */
@media (max-width: 1023px) {
  .hero__cta.is-fixed {
    position: fixed; z-index: 20;
    left: 50%; transform: translateX(-50%); top: auto; bottom: 12px;
    width: min(437px, 99.32vw); height: auto; aspect-ratio: 437 / 115;
    background: url("../images/rail-cta.png?v=2") center center / contain no-repeat;
    border-radius: 999px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,.25));
  }
  .hero__cta.is-fixed:active { transform: translateX(-50%) translateY(2px); }
  /* 固定CTAに隠れないようフッター下に余白 */
  .site-footer { padding-bottom: 130px; }
}

/* =========================================================
   PC01: 背景（緑ボケ）＋ 左右固定レール
   ========================================================= */
.rail { display: none; }

@media (min-width: 461px) {
  /* 中央SPカラムの外側に敷く背景（LPのみ）。
     ライセンス取得済みの AdobeStock_188290755 を使用。 */
  body.lp {
    background: #cfeaa8 url("../images/bg-pc.jpg?v=2") center center / cover fixed no-repeat;
  }
}

@media (min-width: 1024px) {
  .rail {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    position: fixed; top: 0; bottom: 0; z-index: 5; padding: 24px;
    width: min(430px, calc(50vw - 240px)); text-align: center;
  }
  .rail--left  { right: 50%; margin-right: 220px; }
  .rail--right { left: 50%;  margin-left: 220px; }
  .rail__title { width: 90%; max-width: 360px; margin-bottom: 30px; }
  .rail__cta { display: block; width: 92%; max-width: 380px; transition: transform .12s, opacity .12s; }
  .rail__cta:hover { transform: translateY(-2px); opacity: .95; }
  .rail__cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 999px; }
  .rail__nav { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 300px; }
  .rail__nav a {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--green); color: #fff; font-weight: 700; font-size: 16px;
    padding: 15px 22px; border-radius: 8px; box-shadow: 0 3px 0 rgba(0,0,0,.15);
  }
  .rail__nav a::after { content: "▶"; font-size: 11px; }
  .rail__nav a:hover { filter: brightness(1.08); }
}

/* 440px 未満の端末：440px 設計の余白・要素幅を比率で詰める
   （賞品カードは先着バッジと重ならないよう文字とバッジを少し縮小） */
@media (max-width: 439px) {
  .container { padding: 0 6.8%; }
  .learn { padding-left: 7.9%; padding-right: 7.9%; }
  .learn__btn, .learn__chart, .learn__dash { width: 100%; max-width: 320px; }
  .prize__main { gap: 12px; }
  .prize__logo { width: 72px; height: 74px; }
  .prize__t1 { font-size: 18px; line-height: 24px; }
  .prize__t2 { font-size: 46px; line-height: 56px; height: 56px; }
  .prize__t2 .u { font-size: 20px; }
  .prize__badge { width: 108px; height: 108px; top: -34px; right: -5%; }
  .quiz-submit { width: 100%; }
  .quiz-inner { padding: 0 4.5%; }
}
