:root {
  --primary: #0052a5;
  --primary-light: #3ec6ff;
  --accent: #fff002;
  --text: #222;
  --soft-bg: #f7fbff;
}

/* =========================
RESET
========================= */

html, body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  line-height: 1.8;
}

* {
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =========================
HERO
========================= */

.hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  text-align: center;
  padding: 100px 20px;
  border-bottom: 6px solid var(--accent);
}

.hero h1 {
  margin-bottom: 16px;
}

.hero h1 img {
  width: 320px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.hero-subtext {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.hero-subtext img {
  width: 520px;
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================
HERO：エントリー期間
========================= */

.campaign-period {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.4;
}

/* =========================
BUTTON
========================= */

.cta-wrap {
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  background: linear-gradient(135deg, #fff45c, var(--accent));
  color: #000;
  font-weight: bold;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,.18);
}

.btn:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 3px;
}

.hero .btn {
  margin-top: 24px;
}

/* =========================
SECTION
========================= */

.section {
  padding: 72px max(24px, 5vw);
  max-width: 960px;
  margin: 0 auto;
}

.section.gray {
  background: var(--soft-bg);
}

/* =========================
HEADINGS
========================= */

h2 {
  text-align: center;
  color: var(--primary);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 40px;
}

/* =========================
STEPS
========================= */

.steps {
  display: grid;
  gap: 14px;
}

.step {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  align-items: flex-start;
  transition: transform .2s ease;
}

.step:hover {
  transform: translateX(4px);
}

.step-num {
  width: 30px;
  min-width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.step-body {
  flex: 1;
}

.step-title {
  font-weight: 700;
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.step-desc {
  margin: 0;
}

.gift-icon {
  background: none !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  font-size: 1.8rem;
}

/* =========================
IMAGE
========================= */

.prize-wide-image {
  margin-top: 12px;
}

.prize-wide-image img {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* =========================
STEP内 PNG 2枚レイアウト
PC：横並び / SP：縦並び
========================= */

.step .prize-wide-image {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  justify-content: center;
  margin-top: 12px;
}

.step .prize-wide-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* 1枚目（メイン） */

.step .prize-wide-image img:first-child {
  max-width: 360px;
}

/* 2枚目 */

.step .prize-wide-image img:last-child {
  max-width: 260px;
  opacity: 0.95;
}

/* =========================
SP：縦並び
========================= */

@media (max-width: 768px) {

  .step .prize-wide-image {
    flex-direction: column;
    align-items: center;
  }

  .step .prize-wide-image img:first-child,
  .step .prize-wide-image img:last-child {
    max-width: 100%;
  }

  .step .prize-wide-image img:last-child {
    max-width: 85%;
  }
}

/* =========================
STEP NOTE
========================= */

.step-note {
  text-align: center;
  margin-top: 16px;
}

/* =========================
PDF
========================= */

.pdf-wrap {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

.pdf-item {
  flex: 1;
  max-width: 280px;
}

.pdf-thumb {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(0,0,0,.08);
  background: #fff;
}

.pdf-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* =========================
HIGHLIGHT
========================= */

.highlight-yellow {
  background: linear-gradient(transparent 60%, #fff45c 60%);
  font-weight: 600;
}

.text-alert {
  color: #d60000;
  font-weight: bold;
}

/* =========================
FAQ
========================= */

.faq-item {
  background: #fff;
  border-radius: 16px;
  margin-bottom: 16px;
  box-shadow: 0 3px 14px rgba(0,0,0,.05);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 20px 24px;
  font-weight: 700;
  color: var(--primary);
  list-style: none;
}

details > summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  flex-shrink: 0;
  margin-top: 2px;
  transition: transform .25s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(90deg);
}

.faq-q-label,
.faq-a-label {
  width: 2em;
  min-width: 2em;
  flex-shrink: 0;
  font-weight: 700;
}

.faq-question,
.faq-answer-text {
  flex: 1;
  line-height: 1.8;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
}

.faq-answer {
  padding: 0 24px 20px;
}

.faq-answer-row {
  display: flex;
  align-items: flex-start;
}

.faq-a-label {
  color: var(--primary);
}

.faq-answer p {
  margin: 0;
}

.faq-answer img,
.faq-answer iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* FAQ内の外部リンク */

.faq-answer a.inline-text-external-link {
  color: var(--primary);
  text-decoration: underline;
}

.faq-answer a.inline-text-external-link:hover {
  opacity: 0.8;
}

/* =========================
SP / PC BREAK CONTROL
========================= */

br.faq-break {
  display: block;
}

br.sp-only {
  display: none;
}

@media (max-width: 768px) {

  br.sp-only {
    display: block;
  }
}

/* =========================
TERMS
========================= */

.campaign-terms {
  text-align: center;
  margin-top: 40px;
}

.campaign-terms a {
  color: var(--primary);
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: underline;
  display: inline-block;
}

/* =========================
FOOTER
========================= */

.footer {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  text-align: center;
  padding: 72px 20px;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

/* お問合せ部分 */

.footer-contact {
  font-size: 1rem;
  line-height: 1.8;
  background: rgba(255,255,255,0.12);
  padding: 16px 20px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  word-break: keep-all;
}

/* メールリンク */

.footer-contact a {
  display: inline-block;
  margin-top: 6px;
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.footer-contact a:hover {
  opacity: 0.8;
}

/* 著作権 */

.footer-copy {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 80px;
}

/* =========================
MOBILE
========================= */

@media (max-width: 768px) {

  .hero {
    padding: 72px 16px;
  }

  .hero h1 img {
    width: 240px;
  }

  .hero-subtext img {
    width: 280px;
  }

  /* スマホ：エントリー終了メッセージ */

  .campaign-period {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
    white-space: nowrap;
  }

  h2 {
    font-size: 1.4rem;
    margin-bottom: 24px;
  }

  .section {
    padding: 48px 20px;
  }

  .pdf-item {
    max-width: 100%;
  }

  .pdf-thumb img {
    height: 150px;
  }

  .campaign-terms a {
    font-size: 1.4rem;
  }
}

/* =========================
PC
========================= */

@media (min-width: 769px) {

  .hero {
    padding: 120px 20px;
  }

  .hero h1 img {
    width: 520px;
  }

  .hero-subtext img {
    width: 520px;
  }

  h2 {
    font-size: 2.2rem;
  }

  .section {
    padding: 90px max(32px, 6vw);
  }

  .step-title {
    font-size: 1.2rem;
  }

  .step {
    padding: 20px 22px;
  }

  .pdf-item {
    max-width: 320px;
  }

  .pdf-thumb img {
    height: 200px;
  }

  .campaign-terms a {
    font-size: 2.2rem;
  }

  .footer {
    padding: 90px 20px;
  }
}

/* =========================
   クローズ版専用
   エントリー受付終了
========================= */

/*
   レイヤー構造

   1. entry-closed
      └─ エントリー欄全体

   2. entry-closed-content
      └─ 元のエントリー内容
         （見出し・説明文・ボタン）

   3. entry-closed-overlay
      └─ 半透明グレー

   4. entry-closed-message
      └─ 最前面の受付終了メッセージ
*/

/* =========================
   エントリー欄全体
========================= */

.entry-closed {
  position: relative;
  overflow: hidden;
}

/* =========================
   元のエントリー内容
========================= */

.entry-closed-content {
  position: relative;
  z-index: 1;
}

/* =========================
   半透明グレーのレイヤー
========================= */

.entry-closed-overlay {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: rgba(80, 80, 80, 0.55);
  pointer-events: none;
}

/* =========================
   受付終了メッセージ
========================= */

.entry-closed-message {
  position: absolute;
  z-index: 3;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;
  text-align: center;

  pointer-events: none;
}

.entry-closed-message span {
  color: #fff;

  font-family:
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    "Meiryo",
    sans-serif;

  font-size: 3rem;
  font-weight: 900;
  line-height: 1.5;

  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.75),
    0 0 8px rgba(0, 0, 0, 0.35);

  letter-spacing: 0.04em;
}

/* =========================
   エントリーボタン
   見た目は黄色のまま
   クリックだけ無効
========================= */

.btn-disabled {
  background: linear-gradient(135deg, #fff45c, var(--accent));
  color: #000;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);

  cursor: default;
  pointer-events: none;
}

/* hoverしても動かさない */

.btn-disabled:hover {
  transform: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* キーボードフォーカスも表示しない */

.btn-disabled:focus-visible {
  outline: none;
}

/* =========================
   クローズ版：スマートフォン
========================= */

@media (max-width: 768px) {

  .entry-closed-message {
    padding: 16px;
  }

  .entry-closed-message span {
    font-size: 1.9rem;
    font-weight: 900;
    line-height: 1.5;
  }

}
