:root {
  --green: #2D7A4F;
  --green-mid: #4CA672;
  --green-pale: #E6F5EC;
  --yellow: #F5C842;
  --yellow-pale: #FFF8DC;
  --orange: #E8834A;
  --orange-pale: #FFF0E6;
  --brown: #5C3D2E;
  --brown-mid: #8B6555;
  --brown-pale: #F5EDE8;
  --cream: #FFFDF6;
  --white: #FFFFFF;
  --text: #2C1A0E;
  --text-mid: #5C3D2E;
  --text-soft: #9C7B6B;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

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

body {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,253,246,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--green-pale);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-weight: 700;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-logo img {
  display: block;
  width: auto;
  height: 42px;
  object-fit: contain;
}
.header-cta {
  background: var(--orange);
  color: white;
  font-size: clamp(0.7rem, 1.6vw, 0.78rem);
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 100px;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(232,131,74,0.35);
  transition: all 0.2s;
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.header-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(232,131,74,0.4); }

/* ===== KV ===== */
.kv {
  margin-top: 60px;
  background: #f0faf2;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.kv-hero-img {
  width: 100%;
  display: block;
  margin: 0 auto;
  animation: fadeUp 0.8s ease both;
}

.kv-bottom {
  width: 100%;
  padding: 32px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  background: #f0faf2;
}

.kv-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  animation: fadeUp 1s ease 0.2s both;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: white;
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  font-weight: 900;
  padding: 18px 36px;
  border-radius: 100px;
  text-decoration: none;
  box-shadow: 4px 4px 0 #c0622e, 0 8px 24px rgba(232,131,74,0.38);
  transition: all 0.2s;
  letter-spacing: 0.05em;
}
.btn-primary:hover { transform: translate(-2px,-3px); box-shadow: 6px 7px 0 #c0622e, 0 12px 28px rgba(232,131,74,0.42); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--green);
  border: 3px solid var(--green);
  font-size: clamp(0.88rem, 2.2vw, 1rem);
  font-weight: 700;
  padding: 16px 30px;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.04em;
}
.btn-secondary:hover { background: var(--green-pale); }

.scroll-down {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin: 18px auto 8px;
  border: 0;
  background: transparent;
  animation: fadeUp 1.4s ease 0.8s both;
  color: var(--text-soft);
  font-size: 0.65rem;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.18em;
  cursor: pointer;
}
.scroll-down:hover {
  color: var(--green);
}
.scroll-down .sd-line {
  width: 1.5px;
  height: 44px;
  background: linear-gradient(to bottom, var(--green-mid), transparent);
  border-radius: 1px;
  animation: sdAnim 2s ease-in-out infinite;
}
@keyframes sdAnim { 0%{opacity:0;transform:scaleY(0);transform-origin:top} 50%{opacity:1;transform:scaleY(1)} 100%{opacity:0;transform:scaleY(1);transform-origin:bottom} }
@keyframes fadeUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }

/* ===== DIVIDER LINE ===== */
.divider {
  text-align: center;
  padding: 12px 0;
  font-size: 1.5rem;
  letter-spacing: 0.4em;
  opacity: 0.35;
  color: var(--brown-mid);
  user-select: none;
}
.divider-wave {
  width: 100%;
  height: 48px;
  overflow: hidden;
  line-height: 0;
}
.divider-wave-green-pale { background: #E6F5EC; }
.divider-wave-green { background: var(--green); }
/* 波をゆっくり横に流す無限アニメーション（viewBox 0 0 2880 48 のタイル波を -50% スクロール） */
.divider-wave svg {
  width: 200%;
  height: 100%;
  animation: wave-flow 9s linear infinite;
  will-change: transform;
}
@keyframes wave-flow {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .divider-wave svg { animation: none; }
}

/* ===== SECTION BASE ===== */
.sec {
  padding: 72px 24px;
}
.sec-inner {
  max-width: 800px;
  margin: 0 auto;
}
.sec-label {
  font-size: clamp(0.62rem, 1.4vw, 0.68rem);
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--green);
  text-align: center;
  margin-bottom: 8px;
}
.sec-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  font-weight: 700;
  color: var(--text);
  text-align: center;
  line-height: 1.3;
  margin-bottom: 12px;
}
.sec-sub {
  font-size: 1rem;
  color: var(--text-mid);
  text-align: center;
  line-height: 1.9;
  margin-bottom: 48px;
}

/* ===== ABOUT ===== */
.about { background: var(--white); }
.about-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--cream);
  border-radius: 6px;
  padding: 22px 24px;
  border-left: 5px solid var(--green-mid);
  transition: transform 0.2s;
}
.about-item:hover { transform: translateX(4px); }
.about-item .ai-icon { font-size: 2.2rem; flex-shrink: 0; }
.about-item .ai-img {
  flex-shrink: 0;
  width: 110px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
}
.about-item > div:not(.ai-img) {
  min-width: 0;
}
.about-item .ai-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-item h3 { font-size: clamp(0.95rem, 2vw, 1rem); font-weight: 700; color: var(--text); margin-bottom: 6px; }
.about-item p { font-size: 1rem; color: var(--text-mid); line-height: 1.75; }

.video-sec .sec-inner {
  text-align: center;
}
.video-wrap {
  position: relative;
  display: inline-block;
  line-height: 0;
  max-width: 720px;
  width: 100%;
}
.video-player {
  width: 100%;
  max-width: 720px;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
/* 動画の全画面表示ボタン */
.video-fs-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s, transform 0.2s;
}
.video-fs-btn:hover { background: rgba(0,0,0,0.78); transform: scale(1.05); }
.video-fs-btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.video-fs-btn svg { width: 22px; height: 22px; display: block; }

/* ===== AUTHORS ===== */
.authors { background: var(--green-pale); }
.author-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.author-card {
  background: white;
  border: 2px solid #c8e8d0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(45,122,79,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.author-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(45,122,79,0.15); }
.author-card-img {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #fffdf6;
}
.author-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.author-card-body {
  padding: 8px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.book-title {
  font-size: clamp(0.66rem, 1vw, 0.72rem);
  font-weight: 900;
  color: var(--green);
  line-height: 1.4;
  background: var(--green-pale);
  padding: 4px 8px;
  border-radius: 8px;
  text-align: center;
  overflow-wrap: anywhere;
}
.book-title-narrow {
  display: inline-block;
  transform: scaleX(0.78);
  transform-origin: center;
}
.author-name-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  flex-wrap: wrap;
}
.author-badge {
  flex-shrink: 0;
  font-size: clamp(0.56rem, 0.9vw, 0.6rem);
  font-weight: 700;
  background: var(--orange);
  color: white;
  padding: 2px 7px;
  border-radius: 5px;
  margin-top: 2px;
}
.author-nm {
  font-size: clamp(0.74rem, 1.2vw, 0.8rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  min-width: 0;
  overflow-wrap: anywhere;
}
.author-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.tag-age {
  font-size: clamp(0.56rem, 0.9vw, 0.6rem);
  font-weight: 700;
  background: #FFF0C8;
  color: #8B6010;
  padding: 3px 7px;
  border-radius: 100px;
  line-height: 1.4;
}
.tag-area {
  font-size: clamp(0.56rem, 0.9vw, 0.6rem);
  font-weight: 700;
  background: #FFE0DC;
  color: #C04030;
  padding: 3px 7px;
  border-radius: 100px;
  line-height: 1.4;
}
.author-qr {
  margin-top: auto;
  padding-top: 8px;
  text-align: center;
}
.author-qr img {
  display: block;
  width: min(72px, 100%);
  height: auto;
  margin: 0 auto;
}
/* QRはクリック/タップで作家リンクへ飛べる（スマホはスキャン不可のため） */
.author-qr a {
  display: inline-block;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.author-qr a:hover { transform: scale(1.05); opacity: 0.82; }

@media (max-width: 820px) {
  .author-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .author-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 520px) {
  .author-cards {
    grid-template-columns: 1fr;
  }
  .author-card {
    flex-direction: row;
    min-height: 148px;
    border-radius: 6px;
  }
  .author-card:hover {
    transform: none;
  }
  .author-card-img {
    width: 118px;
    min-height: 148px;
    flex: 0 0 118px;
    aspect-ratio: auto;
  }
  .author-card-body {
    padding: 10px 12px;
    gap: 7px;
  }
  .book-title {
    font-size: clamp(0.78rem, 3.4vw, 0.84rem);
    text-align: left;
    padding: 5px 8px;
  }
  .author-name-row {
    gap: 5px;
  }
  .author-badge {
    font-size: 0.58rem;
    padding: 2px 6px;
  }
  .author-nm {
    font-size: clamp(0.76rem, 3.2vw, 0.82rem);
  }
  .tag-age,
  .tag-area {
    border-radius: 8px;
    font-size: clamp(0.58rem, 2.8vw, 0.64rem);
    white-space: normal;
  }
  .author-qr {
    margin-top: 0;
    padding-top: 2px;
    text-align: left;
  }
  .author-qr img {
    width: min(50px, 100%);
    margin: 0;
  }
}

@media (max-width: 360px) {
  .author-card-img {
    width: 104px;
    flex-basis: 104px;
  }
}

/* ===== SPONSORS ===== */
.sponsors { background: var(--white); }
.sponsors-scroll-outer {
  position: relative;
  overflow: hidden;
  margin: 0 -24px;
}
.sponsors-scroll-outer::before,
.sponsors-scroll-outer::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 48px;
  z-index: 2;
  pointer-events: none;
}
.sponsors-scroll-outer::before { left:0; background: linear-gradient(to right,white,transparent); }
.sponsors-scroll-outer::after { right:0; background: linear-gradient(to left,white,transparent); }
.slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--green-pale);
  border-radius: 50%;
  background: white;
  color: var(--green);
  box-shadow: 0 4px 14px rgba(45,122,79,0.16);
  cursor: pointer;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.slider-arrow:hover {
  transform: translateY(-50%) scale(1.04);
  box-shadow: 0 6px 18px rgba(45,122,79,0.22);
}
.slider-arrow:disabled {
  opacity: 0.35;
  cursor: default;
  transform: translateY(-50%);
}
.slider-arrow-prev { left: 10px; }
.slider-arrow-next { right: 10px; }
.sponsors-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  padding: 8px 0 20px;
  scrollbar-width: none;
  animation: sponsors-marquee 40s linear infinite;
  will-change: transform;
}
.sponsors-track::-webkit-scrollbar { display: none; }
/* ホバー/フォーカス中は一時停止 */
.sponsors-scroll-outer:hover .sponsors-track,
.sponsors-scroll-outer:focus-within .sponsors-track {
  animation-play-state: paused;
}
@keyframes sponsors-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* モーション抑制設定では自動スクロールを止め、手動スクロールにフォールバック */
@media (prefers-reduced-motion: reduce) {
  .sponsors-track {
    animation: none;
    width: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .sponsor-card.is-dup { display: none; }
}
.sponsor-card {
  flex-shrink: 0;
  margin-right: 16px;
  width: 270px;
  height: 135px;
  background: white;
  border: 2px solid #E8DDD3;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 22px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: default;
}
.sponsor-card:hover { transform: translateY(-3px); border-color: var(--green-mid); box-shadow: 0 6px 18px rgba(0,0,0,0.1); }
.sponsor-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.sponsor-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.scroll-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 16px;
}
.sd {
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 50%;
  background: #D0C4BC;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}
.sd.on { background: var(--green); transform: scale(1.4); }

/* ===== GIFTS ===== */
.gifts { background: var(--yellow-pale); }
.gifts-fukidashi {
  max-width: 620px;
  margin: 0 auto 22px;
  text-align: center;
}
.gifts-fukidashi p { font-size: 1rem; color: var(--text-mid); line-height: 1.85; font-weight: 500; }
.gifts-fukidashi strong {
  color: var(--orange);
  font-weight: 900;
}
.gift-note {
  font-size: clamp(0.72rem, 1.8vw, 0.78rem);
  color: var(--text-soft);
  margin-top: 14px;
  line-height: 1.7;
}

.gifts-scroll-outer {
  position: relative;
  overflow: hidden;
  margin: 48px -24px 0;
}
.gifts-scroll-outer::before,
.gifts-scroll-outer::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 48px;
  z-index: 2;
  pointer-events: none;
}
.gifts-scroll-outer::before { left:0; background: linear-gradient(to right,#fffbee,transparent); }
.gifts-scroll-outer::after { right:0; background: linear-gradient(to left,#fffbee,transparent); }
.gifts-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 48px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gifts-track::-webkit-scrollbar { display: none; }
.gift-card {
  flex-shrink: 0;
  scroll-snap-align: start;
  width: 172px;
  background: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: transform 0.2s;
}
.gift-card:hover { transform: translateY(-5px); }
.gift-img {
  background: #f5f5f5;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
}
.gift-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gift-img-placeholder {
  background: #f0f0f0;
  color: #aaa;
  flex-direction: column;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.gift-body { padding: 12px 14px 16px; }
.gift-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 100px;
  margin-bottom: 6px;
}
.t-book { background: var(--green-pale); color: var(--green); }
.t-goods { background: #E0F0FF; color: #3A7DB8; }
.t-food { background: #FFF0B8; color: #A07820; }
.t-vip { background: #F0E8FF; color: #6040A0; }
.gift-name { font-size: clamp(0.78rem, 1.8vw, 0.86rem); font-weight: 800; color: var(--text); line-height: 1.5; }
.gift-desc { font-size: clamp(0.66rem, 1.5vw, 0.70rem); color: var(--text-soft); margin-top: 8px; line-height: 1.4; border-top: 1px solid #eee; padding-top: 7px; }

/* ===== RESERVATION ===== */
.reservation {
  background: var(--green);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.reservation .sec-label { color: rgba(255,255,255,0.7); }
.reservation .sec-title { color: white; }
.reservation .sec-sub { color: rgba(255,255,255,0.82); }
.reservation-inner {
  position: relative;
  z-index: 1;
}
.reservation-note {
  margin-top: 20px;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.55);
}
.btn-reserve {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--yellow);
  color: var(--text);
  font-size: clamp(1rem, 3vw, 1.25rem);
  font-weight: 900;
  padding: 22px 48px;
  border-radius: 100px;
  text-decoration: none;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.2), 0 10px 30px rgba(0,0,0,0.2);
  transition: all 0.2s;
  letter-spacing: 0.05em;
  position: relative; z-index:1;
}
.btn-reserve:hover { transform: translate(-2px,-3px); box-shadow: 6px 7px 0 rgba(0,0,0,0.22), 0 14px 36px rgba(0,0,0,0.25); }

/* ===== INFO TABLE ===== */
.info { background: var(--white); }
.info-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 36px;
}
.info-table tr {
  position: relative;
}
.info-table tr + tr th,
.info-table tr + tr td {
  border-top: 1px solid rgba(92,61,46,0.14);
}
.info-table th {
  width: 90px;
  padding: 20px 20px 20px 0;
  font-size: clamp(0.68rem, 1.4vw, 0.72rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--green);
  vertical-align: top;
  white-space: nowrap;
}
.info-table td {
  padding: 20px 0;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.8;
  vertical-align: top;
}
.info-table td small { font-size: 0.875rem; color: var(--text-soft); }
.map-link {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  color: var(--green);
  font-size: clamp(0.76rem, 1.7vw, 0.82rem);
  font-weight: 900;
  text-decoration: none;
}
.map-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ===== STAMP RALLY PRIZES ===== */
.prizes-section {
  background: linear-gradient(160deg, #fffbf2 0%, #fff8e8 100%);
  padding: 80px 0 60px;
}
.prizes-section .sec-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}
.stamp-lead {
  text-align: center;
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 36px;
}
.prize-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.prize-card {
  display: flex;
  align-items: stretch;
  background: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  border: 2px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s;
}
.prize-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}
.prize-card.rank-1 { border-color: #F5C842; }
.prize-card.rank-2 { border-color: #B8C4CC; }
.prize-card.rank-3 { border-color: #D4936A; }
.prize-card.rank-p { border-color: var(--green-pale); }

.prize-img-wrap {
  width: 130px;
  min-height: 130px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}
.prize-card.rank-1 .prize-img-wrap { background: linear-gradient(135deg,#fff8d0,#f5e070); }
.prize-card.rank-2 .prize-img-wrap { background: linear-gradient(135deg,#e8eef2,#b8c4cc); }
.prize-card.rank-3 .prize-img-wrap { background: linear-gradient(135deg,#f5e8df,#d4936a); }
.prize-card.rank-p .prize-img-wrap { background: linear-gradient(135deg,#e8f8ee,#52b788); }

.prize-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0; left: 0;
}

.prize-body {
  padding: 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.prize-rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: clamp(0.66rem, 1.5vw, 0.72rem);
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.08em;
  width: fit-content;
}
.prize-card.rank-1 .prize-rank-badge { background: #F5C842; color: #5a4000; }
.prize-card.rank-2 .prize-rank-badge { background: #B8C4CC; color: #2a3540; }
.prize-card.rank-3 .prize-rank-badge { background: #D4936A; color: white; }
.prize-card.rank-p .prize-rank-badge { background: var(--green-pale); color: var(--green); }

.prize-name {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.4;
}
.prize-count {
  font-size: clamp(0.72rem, 1.7vw, 0.78rem);
  color: var(--text-soft);
  font-weight: 600;
}
.prize-sponsor {
  font-size: clamp(0.68rem, 1.6vw, 0.73rem);
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}
.prize-sponsor::before {
  content: '協賛';
  font-size: clamp(0.6rem, 1.4vw, 0.65rem);
  background: var(--orange);
  color: white;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .prize-img-wrap { width: 100px; min-height: 100px; font-size: 3rem; }
  .prize-name { font-size: 0.95rem; }
}

/* ===== FOOTER ===== */
footer {
  background: var(--cream);
  color: var(--text-soft);
  text-align: center;
  padding: 44px 24px;
  font-size: clamp(0.74rem, 1.7vw, 0.8rem);
  line-height: 2.2;
  border-top: 2px solid var(--green-pale);
}
.footer-logo {
  margin-bottom: 12px;
}
.footer-logo-img {
  display: block;
  width: auto;
  height: 70px;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto;
}
.footer-copy {
  margin-top: 8px;
  font-size: clamp(0.66rem, 1.5vw, 0.72rem);
  opacity: 0.45;
}

/* ===== STAMP RALLY ===== */
.stamprally-box {
  margin-top: 32px;
  text-align: center;
}
.gift-sponsors-box {
  margin-top: 18px;
}
.stamprally-lead {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 20px;
  font-weight: 500;
}
.sponsor-list-box {
  border: 1px solid rgba(232,131,74,0.35);
  border-radius: 6px;
  padding: 18px 22px;
  background: rgba(255,255,255,0.72);
  box-shadow: none;
  text-align: left;
  max-width: 640px;
  margin: 0 auto;
}
.sponsor-list-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange-pale);
  color: #b85628;
  font-size: clamp(0.72rem, 1.7vw, 0.78rem);
  font-weight: 900;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.sponsor-list-label::before { content: '協賛'; font-size: 0.7em; }
.sponsor-list-text {
  font-size: 0.875rem;
  color: var(--text);
  line-height: 2;
  font-weight: 500;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* ===== SCROLL REVEAL ===== */
/* スクロールでフェードアップ。.js が付く=JS有効時のみ初期非表示（JS無効時は普通に表示） */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.js .reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  header {
    padding: 10px 14px;
    gap: 10px;
  }
  .header-logo {
    font-size: 0.98rem;
    min-width: 0;
  }
  .header-cta {
    padding: 9px 14px;
    font-size: 0.72rem;
  }
  .kv {
    margin-top: 56px;
  }
  .kv-bottom {
    position: static;
    background: #f0faf2;
    padding: 24px 18px 44px;
  }
  /* スマホではheroのSCROLL誘導があるため「イベント詳細を見る」は非表示 */
  .kv-btns .btn-secondary {
    display: none;
  }
  .sec {
    padding: 58px 18px;
  }
  .sec-sub {
    margin-bottom: 36px;
  }
  .about-list {
    gap: 14px;
  }
  .about-item {
    gap: 12px;
    padding: 16px;
    border-radius: 6px;
  }
  .about-item:hover {
    transform: none;
  }
  .about-item .ai-img {
    width: 96px;
    height: 72px;
  }
  .sponsors-scroll-outer {
    margin: 0 -18px;
  }
  .sponsors-scroll-outer::before,
  .sponsors-scroll-outer::after {
    width: 28px;
  }
  .sponsors-track {
    padding: 8px 0 18px;
  }
  .slider-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
  }
  .slider-arrow-prev { left: 4px; }
  .slider-arrow-next { right: 4px; }
  .sponsor-card {
    width: 220px;
    height: 110px;
    padding: 14px 18px;
  }
  .gifts-scroll-outer {
    margin: 40px -18px 0;
  }
  .gifts-scroll-outer::before,
  .gifts-scroll-outer::after {
    width: 28px;
  }
  .gifts-track {
    padding: 8px 28px 18px;
  }
  .gift-card {
    width: 154px;
  }
  .reservation {
    padding: 64px 18px;
  }
  .btn-reserve {
    width: 100%;
    max-width: 340px;
    justify-content: center;
    padding: 18px 24px;
  }
  .info-table th {
    width: 78px;
  }
  .header-logo img {
    height: 34px;
  }
  .footer-logo-img {
    height: 60px;
  }
}

@media (max-width: 480px) {
  .kv-btns { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; max-width: 300px; justify-content: center; }
  .header-logo {
    font-size: 0.9rem;
  }
  .header-cta {
    padding: 8px 10px;
    font-size: 0.68rem;
    letter-spacing: 0;
  }
  .sec {
    padding: 52px 18px;
  }
  .divider {
    font-size: 1.1rem;
    letter-spacing: 0.25em;
  }
  .info-table,
  .info-table tbody,
  .info-table tr,
  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }
  .info-table {
    margin-top: 30px;
  }
  .info-table tr + tr th {
    border-top: 1px solid rgba(92,61,46,0.14);
  }
  .info-table tr + tr td {
    border-top: 0;
  }
  .info-table th {
    padding: 16px 0 3px;
  }
  .info-table td {
    padding: 0 0 16px;
  }
  .sponsor-list-box {
    padding: 16px;
  }
  .sponsor-list-label {
    margin-bottom: 12px;
  }
  .footer-logo-img {
    height: 50px;
  }
}

@media (max-width: 520px) {
  .about-item {
    flex-direction: column;
    padding: 16px;
  }
  .about-item .ai-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .about-item h3 {
    font-size: clamp(1rem, 4vw, 1.08rem);
  }
  .about-item p {
    font-size: 1rem;
    line-height: 1.8;
  }
}

@media (max-width: 360px) {
  .about-item .ai-img {
    aspect-ratio: 4 / 3;
  }
  .btn-primary,
  .btn-secondary,
  .btn-reserve {
    padding-left: 18px;
    padding-right: 18px;
  }
  .footer-logo-img {
    height: 44px;
  }
}
