:root {
  --color-bg: #FFCE00;
  --color-brown: #AB3510;
  --color-text: #333333;
  --color-black: #000000;
  --color-white: #ffffff;
  --color-border-gray: #999999;
  --font-base: 'Rounded Mplus 1c', 'Hiragino Maru Gothic Pro', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-base);
  font-weight: 500;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  line-break: strict;
  overflow-x: hidden;
}

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

h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

.br-pc { display: none; }

.container {
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.header {
  background: var(--color-white);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-logo {
  position: relative;
  display: block;
  width: 277px;
  height: 24px;
}
.header-logo img { position: absolute; }
.header-logo-nap { left: 0; top: 0; width: 83.53px; height: 24px; }
.header-logo-cross { left: 100.88px; top: 1.86px; width: 21.11px; height: 21.11px; }
.header-logo-biome { left: 137.18px; top: 0.86px; width: 140.29px; height: 22.81px; }

/*  MV */
.mv-section {
  padding-top: 24px;
}

.mv-inner {
  max-width: 390px;
  margin: 0 auto;
}

.mv-bubble {
  position: relative;
  margin: 0 16px;
  padding: 17px 8px;
  background: var(--color-white);
  border: 3px solid var(--color-brown);
  border-radius: 8px;
  text-align: center;
}
.mv-bubble-text {
  color: var(--color-brown);
  font-weight: 800;
  font-size: 22px;
  line-height: 28px;
}

.mv-bubble-tail {
  position: absolute;
  left: calc(50% - 15px);
  top: 100%;
  width: 30px;
  height: 16px;
}
.mv-bubble-tail-line-v {
  position: absolute;
  left: calc(50% - 13.5px);
  top: calc(100% - 1.5px);
  width: 17.5px;
  height: 3px;
  transform-origin: 0 50%;
  transform: rotate(90deg);
}
.mv-bubble-tail-line-d {
  position: absolute;
  left: calc(50% - 15px);
  top: calc(100% + 14.5px);
  width: 34.89px;
  height: 3px;
  transform-origin: 1.5px 1.5px;
  transform: rotate(-27.3deg);
}

.mv-spider {
  position: absolute;
  top: -107px;
  right: 7.71px;
  width: 16.93px;
  height: 215px;
  animation: spider-drop 2.4s cubic-bezier(0.22, 0.61, 0.36, 1) 0.4s both;
}
.mv-spider::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 15px;
  left: 7.41px;
  width: 1px;
  background: #040000;
}
.mv-spider-body {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 16.93px;
  height: 15.6px;
  max-width: none;
}

@keyframes spider-drop {
  0%   { transform: translateY(-215px); }
  65%  { transform: translateY(6px); }
  80%  { transform: translateY(-3px); }
  92%  { transform: translateY(1px); }
  100% { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .mv-spider { animation: none; }
}

.mv-title {
  margin: 24px 0 0;
}
.mv-title img {
  width: 100%;
  height: auto;
}

/* 対象期間 */
.duration {
  background: var(--color-brown);
}
.duration-inner {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 8px;
}
.duration-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 32px;
  flex-shrink: 0;
  background: var(--color-white);
  color: var(--color-brown);
  font-size: 16px;
  line-height: 24px;
}
.duration-arrow {
  width: 8px;
  height: 32px;
  flex-shrink: 0;
}
.duration-date {
  margin-left: 8px;
  color: var(--color-white);
  font-size: min(17px, 4.36vw);
  line-height: 24px;
  white-space: nowrap;
}

/* エントリーフォーム */
.entry-section {
  padding: 24px 16px 32px;
}
.entry-card {
  background: var(--color-white);
  border: 3px solid var(--color-brown);
  border-radius: 8px;
  box-shadow: 4px 4px 20px rgba(109,109,109,0.05);
  padding: 24px 16px;
  text-align: center;
}
.entry-title {
  color: var(--color-text);
  font-weight: 800;
  font-size: 22px;
  line-height: 30px;
}
.entry-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 248px;
  height: 48px;
  margin: 16px auto 0;
  border-radius: 24px;
  background: var(--color-brown);
  color: var(--color-white);
  font-weight: 800;
  font-size: 18px;
  line-height: 24px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.entry-note {
  margin-top: 16px;
  color: var(--color-brown);
  font-size: 14px;
  line-height: 22px;
}
.entry-note a,
.step-note a,
.detail-list a {
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ページ内リンク（参加の流れ / 当選後の流れ） */
.entry-links {
  display: flex;
  gap: 8px;
  max-width: 680px;
  margin: 16px auto 0;
  padding-top: 20px;
  border-top: 2px dotted var(--color-border-gray);
}
.entry-link {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px 18px;
  background: #FFF5CC;
  border-radius: 8px;
  color: var(--color-brown);
  font-weight: 800;
  font-size: 13px;
  line-height: 18px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.entry-link-sub {
  color: var(--color-text);
  font-weight: 500;
  font-size: 13px;
  line-height: 16px;
  margin-bottom: 2px;
}
@media (max-width: 374px) {
  .entry-link { font-size: 11px; }
}
.entry-link::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--color-brown);
  border-bottom: 2px solid var(--color-brown);
  transform: translateX(-50%) rotate(45deg);
}

/* 共通セクション / ボックス */
.section { padding: 32px 0; }
.section-white { background: var(--color-white); }
.section-yellow { background: var(--color-bg); }
.section-last { padding: 48px 0; }

.box {
  background: var(--color-white);
  border: 3px solid var(--color-black);
  border-radius: 8px;
  overflow: hidden;
}
.box-ttl {
  padding: 12px 16px;
  background: var(--color-brown);
  color: var(--color-white);
  font-weight: 800;
  font-size: 24px;
  line-height: 28px;
  text-align: center;
}

.bracket {
  display: inline-block;
  width: 8.38px;
  height: 23.91px;
  flex-shrink: 0;
}
.bracket-r { transform: scaleX(-1); }

/* ダウンロード */
.download-sm {
  max-width: 300px;
  margin: 12px auto 0;
  padding: 14px 16px 16px;
  background: var(--color-white);
  border-radius: 8px;
}
.section-last .download-sm { margin-top: 0; }

.download-ttl,
.footer-sns-ttl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 800;
  font-size: 16px;
  line-height: 20px;
  color: var(--color-text);
}
.download-ttl .bracket,
.footer-sns-ttl .bracket {
  width: 6px;
  height: 17px;
}
.download-logo {
  width: 124px;
  height: 50px;
  margin: 8px auto 0;
  object-fit: cover;
}
.download-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.download-badge {
  display: block;
  flex: 0 1 128px;
  transition: opacity 0.2s ease;
}
.download-badge img {
  width: 100%;
  height: auto;
}

/* STEP */
.step-body {
  padding: 24px;
  text-align: center;
}
.step-icon {
  width: 64px;
  height: 64px;
  margin: 8px auto 0;
}
.step-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--color-brown);
  font-weight: 800;
  font-size: 24px;
  line-height: 28px;
}
.step-text {
  margin: 10px auto 0;
  font-weight: 800;
  font-size: 18px;
  line-height: 24px;
}
.step-note {
  margin: 1px 0 7px;
  font-size: 12px;
  line-height: 20px;
}
.step:last-child .step-note { margin-bottom: 0; }
.step-caution {
  margin: 4px 0 0;
  color: var(--color-brown);
  font-size: 11px;
  line-height: 18px;
}
#flow .step {
  padding: 20px 12px;
  background: #FFF5CC;
  border-radius: 8px;
}
.step-arrow {
  height: 18px;
  margin: 16px auto 16px;
}

/* キャンペーン詳細 */
.detail-body {
  padding: 8px 13px 6px;
}
.detail-block {
  padding: 10px 0;
}
.detail-block + .detail-block {
  background: url(../img/line-dot.svg) left top / 326px 1px repeat-x;
}

.detail-heading {
  font-weight: 800;
  font-size: 16px;
  line-height: 28px;
}
.detail-text {
  font-size: 14px;
  line-height: 24px;
}
.detail-list {
  margin-top: 2px;
  padding-left: 21px;
  list-style: disc;
}
.detail-list li {
  font-size: 14px;
  line-height: 20px;
}
.detail-list li + li { margin-top: 6px; }

.detail-owner {
  margin-top: 11px;
  font-size: 14px;
  line-height: 20px;
}

/* フッター */
.footer {
  background: var(--color-bg);
  padding: 0 16px 38px;
}
.footer-container {
  max-width: 358px;
  margin: 0 auto;
  text-align: center;
}
.footer-sns-ttl { margin-bottom: 16px; }
.footer-sns {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 39px;
}
.footer-sns-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}
.footer-sns-link img {
  width: 20px;
  height: 20px;
}
.copyright {
  font-family: 'Zen Maru Gothic', var(--font-base);
  font-size: 12px;
  line-height: 26px;
  color: var(--color-text);
}

/* TAB（600px以上）*/
@media (min-width: 600px) {
  .mv-inner { max-width: 480px; }
  .duration-inner { justify-content: center; height: 56px; }
  .duration-date { font-size: 20px; }

  .container { max-width: 768px; }
  .entry-card { max-width: 736px; margin: 0 auto; }

  .footer-container { max-width: 600px; }
}

/* PC（769px以上）*/
@media (min-width: 769px) {
  .br-sp { display: none; }
  .br-pc { display: inline; }

  .mv-inner { max-width: 640px; }
  .mv-bubble { max-width: 448px; margin: 0 auto; }

  .detail-body { padding: 16px 24px; }

  #flow .step { padding: 24px; }
  #flow .step-text {
    max-width: none;
    font-size: 20px;
    line-height: 28px;
  }
  #flow .step-note {
    margin: 8px 0 8px;
    font-size: 14px;
    line-height: 24px;
  }
  .step-caution {
    font-size: 12px;
    line-height: 20px;
  }

  .entry-btn:hover,
  .entry-link:hover,
  .download-badge:hover,
  .footer-sns-link:hover { opacity: 0.75; }
}
