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

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

* {
  box-sizing: border-box;
}

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

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

/* =========================================================
   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 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

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

/* エントリー期間 */

.campaign-period {
  margin-bottom: 20px;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  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: 700;

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

/* クローズ版ボタン */

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

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

  cursor: default;
  pointer-events: none;
}

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

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

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

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

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

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

h2 {
  margin-bottom: 40px;

  color: var(--primary);

  text-align: center;

  font-size: 1.8rem;
  font-weight: 700;
}

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

.steps {
  display: grid;
  gap: 14px;
  width: 100%;
}

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

  width: 100%;
  min-width: 0;

  padding: 16px 18px;

  background: #fff;
  border-radius: 12px;

  box-shadow: 0 2px 10px rgba(0, 0, 0, .04);

  transition: transform .2s ease;
}

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

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 30px;
  min-width: 30px;
  height: 30px;

  background: var(--primary);
  color: #fff;

  border-radius: 50%;

  font-weight: 700;
}

.step-body {
  flex: 1;
  min-width: 0;
}

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

.step-desc {
  margin: 0;
  min-width: 0;

  overflow-wrap: break-word;
  word-break: break-word;
}

.gift-icon {
  width: auto !important;
  height: auto !important;

  background: none !important;
  border-radius: 0 !important;

  font-size: 1.8rem;
}


/* =========================================================
   STEP内の画像
   PC：横並び・中央配置
========================================================= */

.step .prize-wide-image {
  display: flex;
  align-items: flex-end;
  justify-content: center;

  gap: 16px;

  width: 100%;
  max-width: 100%;

  margin: 12px auto 0;
}

.step .prize-wide-image img {
  display: block;

  height: auto;
  max-width: 100%;

  border-radius: 10px;
}

/* 1枚目：少し大きく */
.step .prize-wide-image img:first-child {
  width: 360px;
  max-width: 60%;
}

/* 2枚目：少し小さく */
.step .prize-wide-image img:last-child {
  width: 260px;
  max-width: 40%;

  opacity: .95;
}


/* =========================================================
   SP
   上下並び・中央配置
========================================================= */

@media (max-width: 768px) {

  .step {
    width: 100%;
    padding: 14px 16px;
  }

  .step-body {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
  }

  .step .prize-wide-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    max-width: 100%;

    margin: 12px auto 0;

    gap: 12px;
  }

  /* 1枚目：大きめ */
  .step .prize-wide-image img:first-child {
    width: 100%;
    max-width: 100%;
  }

  /* 2枚目：少し小さめ */
  .step .prize-wide-image img:last-child {
    width: 85%;
    max-width: 85%;
  }
}

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

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

.prize-wide-image img {
  display: block;

  width: 100%;
  max-width: 600px;
  height: auto;

  border-radius: 10px;
}

/* STEP内 PNG 2枚 */

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

  margin-top: 12px;
}

.step .prize-wide-image img {
  width: 100%;
  height: auto;
  display: block;

  border-radius: 10px;
}

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

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

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

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

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

.pdf-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;

  margin-top: 24px;
}

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

.pdf-thumb {
  overflow: hidden;

  background: #fff;
  border-radius: 14px;

  box-shadow: 0 3px 14px rgba(0, 0, 0, .08);
}

.pdf-thumb img {
  display: block;

  width: 100%;
  height: 180px;

  object-fit: cover;
}

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

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

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

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

.faq-item {
  overflow: hidden;

  margin-bottom: 16px;

  background: #fff;
  border-radius: 16px;

  box-shadow: 0 3px 14px rgba(0, 0, 0, .05);
}

.faq-item summary {
  display: flex;
  align-items: flex-start;
  gap: 10px;

  padding: 20px 24px;

  color: var(--primary);

  font-weight: 700;

  cursor: pointer;
  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-a-label {
  color: var(--primary);
}

.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-answer p {
  margin: 0;
}

.faq-answer img,
.faq-answer iframe {
  display: block;

  max-width: 100%;
  height: auto;
}

/* FAQ内リンク */

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

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

/* 改行制御 */

br.faq-break {
  display: block;
}

br.sp-only {
  display: none;
}

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

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

.campaign-terms a {
  display: inline-block;

  color: var(--primary);

  font-size: 1.8rem;
  font-weight: 700;

  text-decoration: underline;
}

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

.footer {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;

  padding: 72px 20px;

  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;

  max-width: 960px;
  margin: 0 auto;
}

.footer-contact {
  padding: 16px 20px;

  background: rgba(255, 255, 255, .12);
  border-radius: 12px;

  font-size: 1rem;
  line-height: 1.8;

  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 .2s ease;
}

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

.footer-copy {
  margin-top: 80px;

  font-size: .9rem;

  opacity: .9;
}

/* =========================================================
   ENTRY CLOSED
   エントリー受付終了
========================================================= */

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

  letter-spacing: .04em;

  text-shadow:
    0 2px 4px rgba(0, 0, 0, .75),
    0 0 8px rgba(0, 0, 0, .35);
}

/* =========================
   RANKING
========================= */

.ranking-section {
  background: #fff;
}

.ranking-month {
  max-width: 760px;
  margin: 0 auto 24px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}

/* =========================
   RANKING MONTH ACCORDION
========================= */

.ranking-month > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  padding: 18px 22px;

  cursor: pointer;
  list-style: none;

  background: #f0f9ff;
  color: var(--primary);

  font-size: 1.25rem;
  font-weight: 700;

  transition: background .2s ease;
}

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

.ranking-month > summary::marker {
  display: none;
}

.ranking-month-title {
  flex: 1;
}

.ranking-month-toggle {
  flex-shrink: 0;

  padding: 6px 14px;

  border: 2px solid var(--primary);
  border-radius: 999px;

  background: #fff;
  color: var(--primary);

  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
}

.ranking-month[open] > summary {
  background: #e5f6ff;
}

.ranking-month[open] .ranking-month-toggle {
  background: var(--primary);
  color: #fff;
}

.ranking-month-toggle::after {
  content: " ▼";
}

.ranking-month[open] .ranking-month-toggle::after {
  content: " ▲";
}

.ranking-month > summary:hover {
  background: #dff4ff;
}

.ranking-month > summary:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: -3px;
}

/* =========================
   RANKING MONTH CONTENT
========================= */

.ranking-month > :not(summary) {
  margin-left: 20px;
  margin-right: 20px;
}

.ranking-month > .ranking-lead {
  margin-top: 24px;
}

.ranking-lead {
  text-align: center;
  margin-bottom: 24px;
}

/* =========================
   RANKING TOP 1～3
========================= */

.ranking-top h4,
.ranking-other h4 {
  text-align: center;
  color: var(--primary);
  font-size: 1.25rem;
  margin: 0 0 16px;
}

.ranking-top-list {
  display: grid;
  gap: 12px;
}

.ranking-card {
  display: flex;
  align-items: center;
  gap: 18px;

  padding: 18px 22px;

  background: #fff;
  border-radius: 14px;

  box-shadow: 0 3px 14px rgba(0, 0, 0, .06);
}

.ranking-position {
  width: 58px;
  min-width: 58px;
  height: 58px;

  border-radius: 50%;

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

  font-size: 1.5rem;
  font-weight: 900;
}

/* 1位 */
.rank-1 {
  border: 3px solid #e5b800;
  background: linear-gradient(135deg, #fffdf0, #fff7c7);
}

.rank-1 .ranking-position {
  background: #e5b800;
  color: #fff;
}

/* 2位 */
.rank-2 {
  border: 3px solid #a7a7a7;
  background: linear-gradient(135deg, #fff, #f1f1f1);
}

.rank-2 .ranking-position {
  background: #999;
  color: #fff;
}

/* 3位 */
.rank-3 {
  border: 3px solid #b87333;
  background: linear-gradient(135deg, #fffaf5, #f8e4d2);
}

.rank-3 .ranking-position {
  background: #b87333;
  color: #fff;
}

/* =========================
   RANKING NAME / SAVING
========================= */

.ranking-info {
  flex: 1;

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

  gap: 20px;
}

.ranking-name {
  margin: 0;

  font-weight: 700;
  font-size: 1.15rem;
}

.ranking-saving {
  margin: 0;

  color: var(--primary);

  font-size: 1.3rem;
  font-weight: 800;

  white-space: nowrap;
}

.ranking-saving span {
  margin-left: 2px;
  font-size: 0.85rem;
}

/* =========================
   節電量 注記
   1～3位の数字の下に1回だけ表示
========================= */

.ranking-saving-note {
  margin: 8px 4px 0;

  text-align: right;

  color: #777;
  font-size: 0.75rem;
  line-height: 1.5;
}

/* =========================
   RANKING OTHER 4～10
========================= */

.ranking-other {
  margin-top: 40px;
}

.ranking-table {
  display: grid;
  gap: 8px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  gap: 16px;

  padding: 13px 18px;

  background: #fff;
  border-radius: 10px;

  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.ranking-row-position {
  color: var(--primary);
  font-weight: 800;
}

.ranking-row-name {
  font-weight: 600;
}

.ranking-row-saving {
  color: #444;
  font-weight: 700;
  white-space: nowrap;
}

/* =========================
   RANKING NOTE
========================= */

.ranking-note {
  margin: 24px 0 0;

  text-align: center;

  color: #666;
  font-size: 0.85rem;
}

/* =========================
   RANKING GIFT INFO
========================= */

.ranking-gift-info {
  margin-top: 40px;
  padding: 24px;

  background: #fff;
  border-radius: 14px;

  box-shadow: 0 3px 14px rgba(0, 0, 0, .05);
}

.ranking-gift-info h4 {
  margin: 0 0 14px;

  text-align: center;

  color: var(--primary);
  font-size: 1.15rem;
}

.ranking-gift-info p {
  margin: 6px 0;
  text-align: center;
}

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

@media (max-width: 768px) {

  /* 月アコーディオン */

  .ranking-month {
    margin-bottom: 18px;
    border-radius: 12px;
  }

  .ranking-month > summary {
    padding: 15px 16px;
    font-size: 1.05rem;
  }

  .ranking-month-toggle {
    padding: 5px 10px;
    font-size: 0.78rem;
  }

  .ranking-month > :not(summary) {
    margin-left: 14px;
    margin-right: 14px;
  }

  /* リード文 */

  .ranking-lead {
    font-size: 0.95rem;
  }

  /* 1～3位 */

  .ranking-card {
    padding: 14px 16px;
    gap: 12px;
  }

  .ranking-position {
    width: 48px;
    min-width: 48px;
    height: 48px;

    font-size: 1.25rem;
  }

  .ranking-info {
    gap: 10px;
  }

  .ranking-name {
    font-size: 1rem;
  }

  .ranking-saving {
    font-size: 1.05rem;
  }

  .ranking-saving span {
    font-size: 0.75rem;
  }

  /* 節電量注記 */

  .ranking-saving-note {
    margin-top: 6px;
    margin-right: 2px;

    font-size: 0.7rem;
  }

  /* 4～10位 */

  .ranking-row {
    grid-template-columns: 48px 1fr auto;
    gap: 8px;

    padding: 12px 14px;
  }

  .ranking-row-name {
    font-size: 0.95rem;
  }

  .ranking-row-saving {
    font-size: 0.9rem;
  }

  /* 特典案内 */

  .ranking-gift-info {
    margin-top: 32px;
    padding: 18px 16px;
  }

  .ranking-gift-info h4 {
    font-size: 1rem;
  }

  .ranking-gift-info p {
    text-align: left;
    font-size: 0.9rem;
  }
}

/* =========================================================
   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 {
    padding: 20px 22px;
  }

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

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

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

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

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