/* ============================================================
   共通変数・共通スタイル
   セクションを実装するたびに、Figma から得られる色・書体トークンを
   ここに追記していく。値は8pxグリッドに丸めた目安値。
   ============================================================ */
:root {
  /* Color */
  --color-primary: #007c63;      /* JA共済ブランドグリーン */
  --color-primary-dark: #005248; /* 本文・カード内テキストのグリーン */
  --color-accent: #ffe252;       /* イエロー（アクセント・シャドウ） */
  --color-orange: #f4a200;       /* 「秋」などの見出しアクセント */
  --color-blue: #4a97e9;         /* 「冬」などの見出しアクセント */
  --color-bg-mint: #edfaf8;      /* セクション背景のミント */
  --color-card-shadow: #9edace;  /* カードのドロップシャドウ・装飾ライン */
  --color-gray: #bdbdbd;         /* タブ等の非活性グレー */
  --color-placeholder: #d9d9d9;  /* 画像プレースホルダー */
  --color-text: #1a1a1a;
  --color-text-muted: #746c6a;
  --color-white: #ffffff;
  --color-bg: #ffffff;

  /* Font */
  --font-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-round: "M PLUS 1p", "Noto Sans JP", sans-serif;
  --font-condensed: "Roboto Condensed", "Noto Sans JP", sans-serif;

  /* Font size */
  --fs-base: 16px;

  /* Layout */
  --container-pc: 1440px;
  --header-height-pc: 96px;

  /* Spacing (8px グリッド) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-base);
  font-size: var(--fs-base);
  color: var(--color-text);
  background: var(--color-bg);
}

/* PC / SP 切り替え（PCを基準に、767px以下でSPへ切り替え） */
.l-sp, .l-pc { width: 100%; }
.l-sp { display: none; }
.l-pc { display: block; }

@media (max-width: 767px) {
  .l-pc { display: none; }
  .l-sp { display: block; }
}

/* 共通ユーティリティ */
.u-tac { text-align: center; }
.u-bold { font-weight: 700; }
.u-black { font-weight: 900; }

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

/* ---------- 動画モーダル ---------- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
}

.video-modal[hidden] {
  display: none;
}

.video-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.video-modal__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 450px;
}

.video-modal--landscape .video-modal__content {
  max-width: 1120px;
}

.video-modal__player {
  display: block;
  width: 100%;
  max-height: 85vh;
  background: #000;
}

.video-modal__youtube-player {
  border: 0;
  aspect-ratio: 16 / 9;
}

.video-modal--portrait .video-modal__youtube-player {
  aspect-ratio: 9 / 16;
}

.video-modal__close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-text);
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- 応募方法：利用規約リンク ---------- */
.apply-panel__rules-link {
  display: block;
  text-align: center;
  margin-top: var(--space-2);
  font-size: 12px;
}

.apply-panel__rules-link a {
  color: var(--color-text-muted);
  text-decoration: underline;
}

/* ---------- 賞品一覧：注意書き ---------- */
.prize-card__note {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 12px;
  margin: var(--space-4) 0 0;
}
