:root {
  --bg: #f7f6e4;
  --leaf: #cdeaa5;
  --mint: #9fd8b6;
  --green: #3f8a5f;
  --green-deep: #1f5c3a;
  --paper: #fffdf3;
  --red: #d8322f;
  --pink: #ee8fb2;
  --gold: #e8c66a;
  --text: #2c3b30;
  --muted: #6c7d6f;
  --radius: 20px;
  --header-h: 56px;

  --icon-crown: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 20'%3E%3Cpath d='M2 6l6 5 5-9 5 9 6-5-2 11H4z'/%3E%3Crect x='4' y='18' width='18' height='2' rx='1'/%3E%3C/svg%3E");

  --font-brush: "Yuji Syuku", "Yu Mincho", "Hiragino Mincho ProN", serif;
}

* { box-sizing: border-box; }

img { -webkit-user-select: none; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }

body {
  margin: 0;
  font-family: var(--font-brush);
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.8;
  color: var(--text);
  background:
    radial-gradient(ellipse at 0 100%, rgba(159, 216, 182, 0.35) 0%, transparent 45%),
    radial-gradient(ellipse at 100% 0, rgba(205, 234, 165, 0.45) 0%, transparent 45%),
    var(--bg);
  background-attachment: fixed;
}

a { color: var(--green); }

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
  padding: 0 24px;
}

.is-top .site-header { position: absolute; top: 0; left: 0; right: 0; }
.is-top .site-logo { visibility: hidden; }

.site-logo {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: 80px;
  height: 44px;
}

.site-logo-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
}
.site-logo-inner img { display: block; width: 100%; height: auto; }

.nav {
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  padding: 4px 14px;
  color: var(--green-deep);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 800;
  white-space: nowrap;
  border-radius: 999px;
}
.nav a:hover { background: var(--mint); }
@media (max-width: 480px) {
  .site-header { padding: 0 16px; }
}

.hero {
  position: relative;
  overflow: hidden;

  height: 100vh;
  height: 100svh;
  min-height: calc(460px + var(--header-h));

  --logo-room: 196px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 48px 16px 64px;
  background: linear-gradient(170deg, #e4f4c4 0%, var(--leaf) 55%, #b9e0a0 100%);
  border-bottom: 4px solid var(--green);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    url("../img/deco-left.svg"),
    url("../img/deco-right.svg");
  background-repeat: no-repeat;
  background-position: left bottom, right top;
  background-size: min(52vw, 680px) auto, min(50vw, 640px) auto;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: min(46vw, 700px, calc((100svh - var(--logo-room)) * 1.818));
  margin: 0 auto;
}
.hero-sub {
  margin: 0 0 8px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  color: var(--green);
}
.hero-title { position: relative; margin: 0; line-height: 0; }
.hero-title img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 0 rgba(31, 92, 58, 0.18));
}

.hero-chara {
  position: absolute;
  bottom: 0;
  z-index: 1;
  width: auto;
  pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(31, 92, 58, 0.25));
}
.hero-chara-cat    { left: 2vw;  height: min(36vw, 72%, 540px); }
.hero-chara-moimoi { right: 3vw; height: min(41vw, 94%, 780px); }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 44px;
  height: 40px;
  padding-top: 6px;
  transform: translateX(-50%);

  filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 3px rgba(255, 255, 255, 0.9));
}
.scroll-hint-arrow {
  width: 18px;
  height: 18px;
  border-right: 4px solid var(--green-deep);
  border-bottom: 4px solid var(--green-deep);
  transform: rotate(45deg);
  animation: hint-bounce 1.6s ease-in-out infinite;
}
@keyframes hint-bounce {
  0%, 100% { transform: translateY(0) rotate(45deg); }
  50%      { transform: translateY(6px) rotate(45deg); }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (max-width: 899px) {
  .hero {

    --chara-h: min(76vw, 480px, 48svh);
    --logo-room: calc(var(--chara-h) + 100px);
    justify-content: flex-start;
    padding-top: 32px;
    padding-bottom: var(--chara-h);
  }
  .hero::before {
    background-size: 90vw auto, 80vw auto;
  }
  .hero-inner {
    max-width: min(92vw, 560px, calc((100svh - var(--logo-room)) * 1.818));
    margin-block: auto;
  }
  .hero-chara-cat    { left: 5vw;  height: calc(var(--chara-h) * 0.72); }
  .hero-chara-moimoi { right: 4vw; height: calc(var(--chara-h) * 1.03); }
}

body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
main { flex: 1 0 auto; padding-bottom: 32px; }
.section { max-width: 760px; margin: 0 auto; padding: 56px 16px 0; }

.section-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 12px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 22px;
  padding: 8px 26px 8px 54px;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--green-deep);
  background: var(--paper) url("../img/sakura.svg") no-repeat 16px 50% / 28px 28px;
  border: 3px solid var(--green);
  border-radius: 999px;
  box-shadow: 0 5px 0 var(--green-deep);
}
.section-title .en {
  order: 2;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--green);
}

.panel {
  position: relative;
  padding: 28px;
  background: var(--paper);
  border: 3px solid var(--green);
  border-radius: var(--radius);
  box-shadow: 0 6px 0 rgba(31, 92, 58, 0.22);
}
.panel::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px dashed rgba(63, 138, 95, 0.35);
  border-radius: calc(var(--radius) - 7px);
  pointer-events: none;
}
@media (max-width: 480px) {
  .panel { padding: 24px 20px; }
}

.button {
  display: inline-block;
  margin-top: 22px;
  padding: 12px 32px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(180deg, #5aa877, var(--green));
  border: 3px solid var(--green-deep);
  border-radius: 999px;
  box-shadow: 0 5px 0 var(--green-deep);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  cursor: pointer;
}
.button:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--green-deep); }
.text-link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 800;
  color: var(--green-deep);
  text-decoration: none;
}
.text-link::after { content: " ▶"; font-size: 0.75em; color: var(--red); }
.text-link:hover { text-decoration: underline; text-decoration-color: var(--mint); text-decoration-thickness: 3px; }

.next-panel::after {
  content: "";
  position: absolute;
  top: -22px;
  right: -8px;
  width: 52px;
  aspect-ratio: 64 / 84;
  background: url("../img/tile-chun.svg") no-repeat center / contain;
  transform: rotate(12deg);
  pointer-events: none;
}
.next-name { margin: 0; font-size: 1.2rem; font-weight: 800; color: var(--green-deep); }
.next-date {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin: 6px 0 14px;
}
.next-date .date {
  font-size: clamp(2.2rem, 8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--green-deep);
  font-variant-numeric: tabular-nums;
}
.next-date .weekday {
  padding: 0 10px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.1em;
  background: var(--red);
  border-radius: 999px;
}
.next-date .time { font-size: 1.3rem; font-weight: 800; color: var(--green); }

.title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: 0 0 22px; }
.title-row .section-title { margin: 0; }
.fanart-tag { margin: 0; font-weight: 800; color: var(--green); }

.fanart-slider { padding: 20px; }
.fanart-track {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: calc(var(--radius) - 10px);
}
.fanart-track::-webkit-scrollbar { display: none; }
.fanart-slide { flex: 0 0 100%; scroll-snap-align: center; }
.fanart-slide img { display: block; width: 100%; height: min(60vw, 420px); object-fit: contain; }

.new-badge {
  position: absolute;
  top: -26px;
  right: -18px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  font-size: 1.35rem;
  line-height: 1.05;
  color: var(--paper);
  letter-spacing: 0.04em;
  background: var(--red);
  border-radius: 7px 5px 8px 4px;

  box-shadow: inset 0 0 0 4px var(--red), inset 0 0 0 6px rgba(255, 253, 243, 0.92);
  clip-path: polygon(1% 3%, 35% 0, 68% 2%, 99% 0, 100% 36%, 98% 71%, 100% 98%, 64% 100%, 30% 97%, 0 100%, 2% 64%, 0 30%);
  transform: rotate(10deg);
  pointer-events: none;
}
.new-badge > span:last-child { font-size: 1.15rem; letter-spacing: 0.15em; }
@media (max-width: 480px) {
  .new-badge { top: -22px; right: -12px; width: 66px; height: 66px; font-size: 1.15rem; }
  .new-badge > span:last-child { font-size: 1rem; }
}
.slider-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--paper);
  border: 3px solid var(--green);
  border-radius: 50%;
  box-shadow: 0 3px 0 rgba(31, 92, 58, 0.22);
  transform: translateY(-50%);
  cursor: pointer;
}
.slider-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 11px;
  border-top: 3px solid var(--green-deep);
  border-right: 3px solid var(--green-deep);
}
.slider-button.is-prev { left: -14px; }
.slider-button.is-next { right: -14px; }
.slider-button.is-prev::before { transform: translate(-30%, -50%) rotate(-135deg); }
.slider-button.is-next::before { transform: translate(-70%, -50%) rotate(45deg); }
.slider-button:disabled { opacity: 0.35; cursor: default; }
.fanart-slider:has(.slider-dots) .slider-button { top: calc(50% - 14px); }

.slider-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 12px; }
.slider-dots button {
  position: relative;
  width: 24px;
  height: 24px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.slider-dots button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: var(--mint);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: background 0.2s ease, transform 0.2s ease;
}
.slider-dots button[aria-current="true"]::before { background: var(--green-deep); transform: translate(-50%, -50%) scale(1.3); }
.fanart-more { text-align: center; }
.link-center { text-align: center; }

.section-wide { max-width: 1000px; }
.fanart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.fanart-item { margin: 0; }
.fanart-open {
  display: block;
  overflow: hidden;
  background: var(--paper);
  border: 3px solid var(--green);
  border-radius: 14px;
  box-shadow: 0 5px 0 rgba(31, 92, 58, 0.22);
}
.fanart-open img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 0.2s ease; }
.fanart-open:hover img { transform: scale(1.04); }
.fanart-comment { margin: 8px 4px 0; font-size: 0.95rem; color: var(--green-deep); }
@media (max-width: 599px) {
  .fanart-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .fanart-open { border-width: 2px; border-radius: 10px; }
  .fanart-comment { font-size: 0.85rem; line-height: 1.6; }
}

.lightbox {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 56px 16px 24px;
  background: transparent;
  border: 0;
}
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(16, 32, 22, 0.96); }
.lightbox-image { display: block; max-width: 100%; max-height: calc(100% - 3.5em); object-fit: contain; }
.lightbox-comment { margin: 12px 0 0; color: var(--paper); text-align: center; }
.lightbox-comment:empty { display: none; }
.lightbox-close {
  position: fixed;
  top: 6px;
  right: 24px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--paper);
  border: 2px solid var(--green);
  border-radius: 50%;
  cursor: pointer;
}
.lightbox-close::before, .lightbox-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 3px;
  background: var(--green-deep);
  border-radius: 2px;
  transform: translate(-50%, -50%) rotate(45deg);
}
.lightbox-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
@media (max-width: 480px) {
  .lightbox-close { right: 16px; }
}

.sponsor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 800;
  color: var(--green-deep);
}

.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.small { font-size: 0.85rem; }
.text-link + .text-link { margin-left: 20px; }
.sub-title {
  margin: 24px 0 8px;
  font-size: 1.1rem;
  color: var(--green-deep);
}

.archive-info .sub-title {
  --bar-top: 0px;
  position: relative;
  margin: 0 0 10px;
  padding-left: 16px;
  font-size: 1.25rem;
  line-height: 1.4;
}
.archive-info .sub-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(var(--bar-top) + 0.15em);
  bottom: 0.15em;
  width: 5px;
  background: var(--green);
  border-radius: 3px;
}
.archive-info .sub-title ~ .sub-title {
  --bar-top: 18px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 2px dashed rgba(63, 138, 95, 0.35);
}

.archive-video {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-top: 24px;
  overflow: hidden;
  background: var(--paper);
  border: 3px solid var(--green);
  border-radius: var(--radius);
  box-shadow: 0 6px 0 rgba(31, 92, 58, 0.22);
}
.archive-video iframe { display: block; width: 100%; height: 100%; border: 0; }
.archive-video-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin: 0;
  padding: 16px;
  text-align: center;
  color: var(--muted);
  background: repeating-linear-gradient(45deg, rgba(159, 216, 182, 0.18) 0 12px, transparent 12px 24px);
}
.live-badge {
  display: inline-block;
  margin-left: 10px;
  padding: 0 10px;
  font-size: 0.8rem;
  color: #fff;
  vertical-align: middle;
  background: var(--red);
  border-radius: 999px;
}

.button.is-disabled,
.button.is-disabled:hover {
  color: var(--muted);
  background: #e9ece4;
  border-color: #c9d0c4;
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

.button-sub {
  color: var(--green-deep);
  background: var(--paper);
  border-color: var(--green);
  box-shadow: 0 5px 0 var(--green);
}
.button-sub:hover { box-shadow: 0 3px 0 var(--green); }

.fold { margin-top: 16px; border-top: 2px dashed rgba(63, 138, 95, 0.35); }
.fold + .fold { margin-top: 0; }
.fold summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 4px;
  color: var(--green-deep);
  cursor: pointer;
  list-style: none;
}
.fold summary::-webkit-details-marker { display: none; }

.fold summary::after {
  content: "";
  width: 9px;
  height: 9px;
  margin-left: auto;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.fold[open] summary::after { transform: rotate(-135deg); }
.fold summary:hover { color: var(--green); }
.fold-body { padding: 4px 4px 16px; }

#about, #about-title, #next, #archives, #fanart, #staff, #sponsor, #rules, #entry { scroll-margin-top: calc(var(--header-h) + 16px); }

.rules-format { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0 0 16px; }
.rules-format dt { color: var(--muted); }
.rules-format dd { margin: 0; }
.richtext > :first-child { margin-top: 0; }
.richtext > :last-child { margin-bottom: 0; }
.richtext h3 {
  margin: 1.6em 0 0.4em;
  padding-bottom: 4px;
  font-size: 1.15rem;
  color: var(--green-deep);
  border-bottom: 2px dashed rgba(63, 138, 95, 0.35);
}
.richtext p { margin: 0.6em 0; }
.richtext ul { margin: 0.4em 0; padding-left: 1.4em; }
.richtext li::marker { color: var(--green); }

.day-list { list-style: none; margin: 8px 0 16px; padding: 0; }
.day-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 14px; }
.day-date { font-size: 1.25rem; color: var(--green-deep); }

.entry-box {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 2px dashed rgba(63, 138, 95, 0.35);
}

.entry-heading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0 4px 4px 0;
  font-size: 1.4rem;
  color: var(--green-deep);
  border-bottom: 3px solid var(--gold);
}
.entry-heading::before {
  content: "";
  width: 1.1em;
  height: 1.1em;
  background: url("../img/sakura.svg") no-repeat center / contain;
}
.entry-period { margin: 0 0 10px; }
.entry-guide { margin: 0 0 4px; }
.entry-box .fold:last-of-type { margin-bottom: 12px; border-bottom: 2px dashed rgba(63, 138, 95, 0.35); }
.entry-period .label { margin-right: 10px; color: var(--muted); font-size: 0.9rem; }
.entry-actions { display: flex; flex-wrap: wrap; gap: 0 16px; }

.entry-actions:has(.entry-slot) { flex-wrap: nowrap; gap: 0 12px; }
.entry-slot { display: flex; flex: 1 1 0; flex-direction: column; align-items: center; min-width: 0; max-width: 320px; }
.entry-slot .button { width: 100%; padding: 12px 16px; text-align: center; }

.entry-actions:has(.entry-slot) { align-items: stretch; }
.entry-slot .button { display: flex; flex: 1; flex-wrap: wrap; align-content: center; justify-content: center; }

.entry-slot .button span { display: inline-block; }
@media (max-width: 480px) {

  .entry-slot .button { padding: 10px 8px; font-size: 0.85rem; letter-spacing: 0; }
}

.schedule-list { list-style: none; margin: 0; padding: 0; }
.schedule-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
  padding: 10px 12px;
  border-bottom: 1px dashed #d5dfd0;
}
.schedule-list li:last-child { border-bottom: 0; }
.schedule-time { min-width: 11em; color: var(--green); font-variant-numeric: tabular-nums; }
.schedule-list li.is-now { background: rgba(232, 198, 106, 0.22); border-radius: 10px; }

.info-list { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; }
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; color: var(--green-deep); }

.contact-links { display: flex; flex-wrap: wrap; gap: 0 16px; margin: 0; padding: 0; list-style: none; }

.archive-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }

.archive-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px 18px;
  text-decoration: none;
  color: var(--text);
}
.archive-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; }

.archive-card { transition: background-color 0.2s ease, border-color 0.2s ease; }
.archive-card::before { transition: border-color 0.2s ease; }
.archive-card:hover { background: #f1f9e6; border-color: var(--green-deep); }
.archive-card:hover::before { border-color: rgba(63, 138, 95, 0.75); }
.archive-card:hover .archive-more { color: var(--green-deep); }

.archive-winner { display: flex; justify-self: center; align-items: center; gap: 10px; }

.archive-winner-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  color: #9a6f14;
  white-space: nowrap;
}
.archive-winner-label::before {
  content: "";
  width: 1.3em;
  height: 1em;
  background: var(--gold);
  -webkit-mask: var(--icon-crown) no-repeat center / contain;
  mask: var(--icon-crown) no-repeat center / contain;
}
.archive-winner-name { color: var(--text); }

.archive-more { justify-self: end; font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.archive-more::after { content: " ▶"; font-size: 0.85em; color: var(--green); }
.archive-card:hover .archive-more-text { text-decoration: underline; }
@media (max-width: 899px) {
  .archive-more-text { display: none; }
}

@media (max-width: 599px) {
  .archive-card { grid-template-columns: 1fr auto; }
  .archive-head { grid-column: 1; }
  .archive-winner { grid-column: 1; grid-row: 2; }
  .archive-more { grid-column: 2; grid-row: 1 / 3; }
}

.podium { display: grid; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.podium li {
  position: relative;
  display: grid;
  grid-template-columns: auto 5em 1fr;
  align-items: center;
  gap: 4px 16px;
  padding: 12px 20px 12px 14px;
  background: #fff;
  border: 2px solid #dde8d6;
  border-radius: 14px;
}
.podium .rank-1 {
  margin-top: 18px;
  padding: 18px 24px 18px 18px;
  border: 3px solid var(--gold);
  background: linear-gradient(90deg, #fff3cc, var(--paper) 70%);
  box-shadow: 0 5px 0 rgba(154, 111, 20, 0.25);
}
.podium .rank-2 { border-color: #b7c2c8; background: linear-gradient(90deg, #eef2f4, #fff 60%); }
.podium .rank-3 { border-color: #d2a27c; background: linear-gradient(90deg, #f8e9dc, #fff 60%); }

.podium-medal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 1.15rem;
  color: var(--muted);
  background: #e9efe6;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.7);
}
.podium .rank-1 .podium-medal { width: 52px; height: 52px; font-size: 1.5rem; color: #6b4b0c; background: var(--gold); }
.podium .rank-2 .podium-medal { color: #46525a; background: #cfd8dd; }
.podium .rank-3 .podium-medal { color: #6e4325; background: #e3b994; }

.podium .rank-1::before {
  content: "";
  position: absolute;
  top: -22px;
  left: 24px;
  width: 40px;
  height: 30px;
  background: var(--gold);
  -webkit-mask: var(--icon-crown) no-repeat center / contain;
  mask: var(--icon-crown) no-repeat center / contain;
}
.podium-title { font-size: 0.85rem; letter-spacing: 0.15em; color: var(--muted); white-space: nowrap; }
.podium .rank-1 .podium-title { font-size: 0.95rem; color: #9a6f14; }
.podium-name { font-weight: 800; color: var(--green-deep); overflow-wrap: anywhere; }
.podium .rank-1 .podium-name { font-size: 1.35rem; }

@media (max-width: 480px) {
  .podium li { grid-template-columns: auto 1fr; gap: 0 12px; padding: 10px 14px 10px 10px; }
  .podium .rank-1 { padding: 14px 16px 14px 12px; }
  .podium-medal { grid-row: 1 / 3; }
  .podium-title { grid-column: 2; font-size: 0.75rem; }
  .podium-name { grid-column: 2; }
  .podium .rank-1::before { left: 18px; }
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  padding: 2px 14px;
  font-size: 0.85rem;
  color: var(--muted);
  background: #e9ece4;
  border-radius: 999px;
  counter-increment: step;
}
.steps li::before { content: counter(step) ". "; }
.steps li[aria-current="step"] { color: #fff; background: var(--green); }

.slot-banner {
  margin: 0 0 12px;
  padding: 10px 16px;
  font-size: 1.1rem;
  color: var(--green-deep);
  background: rgba(159, 216, 182, 0.35);
  border-radius: 12px;
}
.slot-banner strong { font-weight: normal; font-size: 1.3rem; color: var(--red); }

.form-error { margin: 6px 0 0; color: var(--red); }
p.form-error[role="alert"] {
  margin: 0 0 16px;
  padding: 10px 14px;
  background: #fdeceb;
  border: 2px solid var(--red);
  border-radius: 10px;
}

.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 4px 0 0; flex-shrink: 0; accent-color: var(--green); }

.agree-panel .terms-body {
  margin: 0 0 20px;
  padding: 14px 18px;
  background: #fff;
  border: 2px solid #dde8d6;
  border-radius: 12px;
}
.agree-panel .form-error { margin: 0 0 12px; }
.agree-panel .form-actions { margin-top: 4px; }

.field { margin: 0 0 20px; }
.field > label, .field-label { display: block; margin: 0 0 4px; color: var(--green-deep); }
.field-hint { margin: 0 0 6px; font-size: 0.85rem; color: var(--muted); }

.optional-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 0 8px;
  font-size: 0.75rem;
  line-height: 1.6;
  vertical-align: 0.1em;
  color: var(--muted);
  border: 1px solid currentColor;
  border-radius: 999px;
}
.entry-form input[type="text"],
.entry-form textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  border: 2px solid #c9d6c4;
  border-radius: 10px;
}
.entry-form input[type="text"]:focus,
.entry-form textarea:focus { outline: 3px solid var(--mint); border-color: var(--green); }
.field.has-error input, .field.has-error textarea { border-color: var(--red); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.confirm-list { display: grid; grid-template-columns: minmax(8em, max-content) 1fr; gap: 10px 20px; margin: 16px 0 0; }
.confirm-list dt { color: var(--muted); }
.confirm-list dd { margin: 0; color: var(--green-deep); overflow-wrap: anywhere; white-space: pre-wrap; }
@media (max-width: 480px) {
  .confirm-list { grid-template-columns: 1fr; gap: 2px; }
  .confirm-list dd { margin-bottom: 10px; }
}
.form-actions { display: flex; flex-wrap: wrap; gap: 0 16px; }

.site-footer {
  margin-top: 72px;
  padding: 36px 16px;
  text-align: center;
  color: var(--paper);
  background: #2f6e4a url("../img/seigaiha.svg") repeat;
  border-top: 4px solid var(--gold);
}

.footer-sns { display: flex; justify-content: center; gap: 16px; margin: 0 0 18px; padding: 0; list-style: none; }
.footer-sns a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--green-deep);
  background: var(--paper);
  border: 2px solid var(--gold);
  border-radius: 50%;
  transition: transform 0.15s ease, background 0.15s ease;
}
.footer-sns a:hover { background: var(--gold); transform: translateY(-2px); }
.footer-sns svg { width: 22px; height: 22px; fill: currentColor; }
.copyright { margin: 0; font-size: 0.8rem; color: rgba(255, 253, 243, 0.75); }

.hero::before { animation: fade-in 1s ease-out 0.1s backwards; }
.hero-chara-cat    { animation: chara-in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s backwards; }
.hero-chara-moimoi { animation: chara-in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.45s backwards; }
.hero-title { animation: title-in 0.7s cubic-bezier(0.3, 1.5, 0.5, 1) 0.8s backwards; }
.hero-sub, .hero-countdowns { animation: fade-up 0.8s ease-out 1.3s backwards; }
.scroll-hint { animation: fade-in 0.8s ease-out 1.8s backwards; }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 240, 0.8) 0%, transparent 55%);
  opacity: 0;
  animation: flash 1.2s ease-out 0.9s;
}

@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } }

@keyframes chara-in { from { opacity: 0; transform: translateY(40%); } }

@keyframes title-in { from { opacity: 0; transform: scale(0.6); } }
@keyframes flash {
  0%   { opacity: 0; }
  20%  { opacity: 1; }
  100% { opacity: 0; }
}

.intro-seen .hero::before,
.intro-seen .hero-chara,
.intro-seen .hero-title,
.intro-seen .hero-sub,
.intro-seen .hero-countdowns,
.intro-seen .scroll-hint,
.intro-seen .hero::after { animation: none; }

.menu-toggle { display: none; }
.js .menu-toggle {
  position: fixed;
  top: 6px;
  right: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  background: var(--paper);
  border: 2px solid var(--green);
  border-radius: 999px;
  box-shadow: 0 3px 0 rgba(31, 92, 58, 0.22);
  cursor: pointer;
}
@media (max-width: 480px) {
  .js .menu-toggle { right: 16px; }
}
.js .menu-toggle span {
  display: block;
  height: 3px;
  background: var(--green-deep);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.js .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.js .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.js .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding-top: 6px;
  background: var(--paper);
  border: 2px solid var(--green);
  border-radius: 999px;
  box-shadow: 0 3px 0 rgba(31, 92, 58, 0.22);
  transition: background-color 0.15s ease, opacity 0.15s ease;
}
.to-top-arrow {
  width: 14px;
  height: 14px;
  border-top: 3px solid var(--green-deep);
  border-left: 3px solid var(--green-deep);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.to-top:hover { background: #f1f9e6; opacity: 1; }
.to-top:hover .to-top-arrow { transform: translateY(-4px) rotate(45deg); }

@media (max-width: 480px) {
  .to-top { right: 12px; bottom: 12px; width: 38px; height: 38px; padding-top: 5px; opacity: 0.85; }
  .to-top-arrow { width: 11px; height: 11px; }
}

.js .nav {
  display: none;
  position: fixed;
  top: calc(var(--header-h) + 6px);
  right: 16px;
  min-width: 220px;
  flex-direction: column;
  gap: 0;
  padding: 8px 0;
  overflow: visible;
  background: var(--paper);
  border: 3px solid var(--green);
  border-radius: 14px;
  box-shadow: 0 6px 0 rgba(31, 92, 58, 0.22);
}
.js .nav.is-open { display: flex; }
.js .nav a { padding: 12px 24px; border-radius: 0; }

@media (max-width: 599px) {
  .js .nav {
    top: calc(var(--header-h) - 3px);
    left: 0;
    right: 0;
    min-width: 0;
    border-width: 3px 0;
    border-radius: 0;
    box-shadow: none;
  }
}

.countdown {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin: 0 0 16px;
  font-weight: 800;
}
.countdown[hidden] { display: none; }
.countdown-label { color: var(--muted); font-size: 0.9rem; }
.countdown-unit { color: var(--muted); font-size: 0.85rem; }
.countdown-num {
  display: inline-block;
  min-width: 2.2em;
  margin-right: 3px;
  padding: 0 6px;
  font-size: 1.5rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: var(--green-deep);
  background: rgba(159, 216, 182, 0.45);
  border-radius: 8px;
}
.countdown.is-live { color: var(--red); font-size: 1.2rem; }

@media (max-width: 599px) {
  .panel .countdown { gap: 2px 4px; }
  .panel .countdown-label { flex-basis: 100%; }
  .panel .countdown-num { font-size: clamp(1.05rem, 4.8vw, 1.5rem); min-width: 1.7em; padding: 0 4px; }
  .panel .countdown-unit { font-size: clamp(0.75rem, 3vw, 0.85rem); }
}

.hero-countdowns {
  position: relative;
  z-index: 2;
  display: grid;
  justify-content: center;
  gap: 8px;
}
.hero-countdowns .countdown {
  position: relative;
  justify-content: center;
  margin: 0;
  padding: 2px 18px;
  background: rgba(255, 253, 243, 0.9);
  border: 2px solid var(--green);
  border-radius: 999px;
  box-shadow: 0 3px 0 rgba(31, 92, 58, 0.22);
}

.hero-countdowns .countdown::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1.5px dashed rgba(63, 138, 95, 0.35);
  border-radius: inherit;
  pointer-events: none;
}
.hero-countdowns .countdown-num { font-size: 1.2rem; }
.hero-countdowns .countdown.is-live { font-size: 1rem; }

.hero-countdowns { margin-top: 14px; }
.hero:has(.hero-countdowns) { --logo-room: 256px; }
.hero:has(.countdown + .countdown) { --logo-room: 308px; }

@media (max-width: 899px) {
  .hero:has(.hero-countdowns) {
    --cd-h: 54px;
    --chara-h: min(60vw, 380px, 34svh);
    --logo-room: calc(var(--chara-h) + var(--cd-h) + 156px);
    padding-bottom: calc(var(--chara-h) + var(--cd-h) + 56px);
  }
  .hero:has(.countdown + .countdown) { --cd-h: 114px; --logo-room: calc(var(--chara-h) + var(--cd-h) + 156px); }
  .hero:has(.hero-countdowns) .hero-chara { bottom: calc(var(--cd-h) + 56px); }
  .hero:has(.hero-countdowns) .scroll-hint { bottom: 8px; }
  .hero-countdowns { position: absolute; left: 0; right: 0; bottom: 50px; margin: 0; gap: 6px; }
  .hero-countdowns .countdown { gap: 0 6px; padding: 2px 14px 4px; border-radius: 14px; line-height: 1.5; }
  .hero-countdowns .countdown::before { border-radius: 11px; }
  .hero-countdowns .countdown-label { flex-basis: 100%; font-size: 0.8rem; }
  .hero-countdowns .countdown-num { font-size: 1.05rem; min-width: 2em; }
  .hero-countdowns .countdown-unit { font-size: 0.8rem; }
}

@media (min-width: 600px) and (max-width: 899px) and (min-aspect-ratio: 1/1) {
  .hero:has(.hero-countdowns),
  .hero:has(.countdown + .countdown) {
    --chara-h: min(76vw, 480px, 48svh, calc((91vw - 340px) / 1.03));
    --logo-room: calc(var(--chara-h) + 100px);
    padding-bottom: var(--chara-h);
  }
  .hero:has(.hero-countdowns) .hero-chara { bottom: 0; }
}

@media (min-width: 600px) and (max-width: 899px) and (max-aspect-ratio: 1/1) {
  .hero:has(.hero-countdowns) { --chara-h: min(60vw, 480px, 44svh); }
}

@media (max-width: 599px) {
  .hero-chara { display: none; }
  .hero,
  .hero:has(.hero-countdowns),
  .hero:has(.countdown + .countdown) {
    --logo-room: 160px;
    justify-content: center;
    padding-bottom: 64px;
  }
  .hero:has(.hero-countdowns) { --logo-room: 260px; }
  .hero:has(.countdown + .countdown) { --logo-room: 360px; }
  .hero-inner { max-width: min(100%, calc((100svh - var(--logo-room)) * 1.818)); margin-block: 0; }
  .hero:has(.hero-countdowns) .scroll-hint { bottom: 14px; }
  .hero-countdowns { position: relative; left: auto; right: auto; bottom: auto; margin-top: 24px; gap: 12px; }

  .hero-countdowns .countdown { gap: 2px 4px; padding: 6px 12px 8px; border-radius: 18px; line-height: 1.5; }
  .hero-countdowns .countdown::before { border-radius: 15px; }
  .hero-countdowns .countdown-label { flex-basis: 100%; font-size: 1rem; }
  .hero-countdowns .countdown-num { font-size: clamp(1.1rem, 5.6vw, 1.6rem); min-width: 1.7em; padding: 0 4px; }
  .hero-countdowns .countdown-unit { font-size: clamp(0.8rem, 3.4vw, 1rem); }
  .hero-countdowns .countdown.is-live { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero-chara, .hero-title,
  .hero-sub, .hero::after, .scroll-hint, .scroll-hint-arrow, .hero-countdowns { animation: none; }
  .button, .archive-card, .archive-card::before, .to-top, .to-top-arrow, .fanart-open img, .slider-dots button::before, .footer-sns a { transition: none; }
}
