:root {
  --bg: #5c4e45;
  --gold: #f3e2b8;
  --gold-deep: #c6a15a;
  --ink: #f7f1e4;
}

* {
  box-sizing: border-box;
}

body.home {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Shippori Mincho", "Yu Mincho", serif;
}

.home-wrap {
  width: 100%;
  margin: 0 auto;
}

.fv {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #000;
}

.fv img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  animation: fv-fade 25s infinite;
}

.fv img:nth-child(1) {
  animation-delay: -1.5s;
}
.fv img:nth-child(2) {
  animation-delay: 3.5s;
}
.fv img:nth-child(3) {
  animation-delay: 8.5s;
}
.fv img:nth-child(4) {
  animation-delay: 13.5s;
}
.fv img:nth-child(5) {
  animation-delay: 18.5s;
}

@keyframes fv-fade {
  0% {
    opacity: 0;
  }
  6% {
    opacity: 1;
  }
  20% {
    opacity: 1;
  }
  26% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.catch {
  position: relative;
  margin: 0;
  padding: 64px 20px 8px;
  text-align: center;
  overflow: hidden;
}

.catch::before,
.catch::after {
  content: "";
  display: block;
  width: 72px;
  height: 1px;
  margin: 0 auto 22px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold-deep),
    transparent
  );
}

.catch::after {
  margin: 22px auto 0;
}

.catch-main,
.catch-sub {
  position: relative;
  z-index: 1;
  margin: 0;
}

.catch-main {
  font-size: clamp(1.15rem, 5.4vw, 1.45rem);
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #fff8e4 0%, #f0d48a 42%, #c49245 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(232, 196, 110, 0.45));
}

.catch-sub {
  margin-top: 14px;
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: #f6ead0;
  text-shadow: 0 0 14px rgba(243, 214, 140, 0.35);
}

.glint {
  position: absolute;
  z-index: 2;
  width: 10px;
  height: 10px;
  pointer-events: none;
  background: radial-gradient(circle, #fff 0 20%, #ffe7a8 35%, transparent 70%);
  animation: twinkle 2.4s ease-in-out infinite;
}

.glint::before,
.glint::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: #fff6d2;
  transform: translate(-50%, -50%);
}

.glint::before {
  width: 1px;
  height: 16px;
}

.glint::after {
  width: 16px;
  height: 1px;
}

.glint-1 {
  top: 34px;
  left: 18%;
  animation-delay: 0s;
}
.glint-2 {
  top: 86px;
  right: 12%;
  animation-delay: 0.6s;
}
.glint-3 {
  top: 58%;
  left: 8%;
  animation-delay: 1.1s;
}
.glint-4 {
  bottom: 18px;
  right: 20%;
  animation-delay: 1.6s;
}
.glint-5 {
  top: 22px;
  right: 28%;
  width: 6px;
  height: 6px;
  animation-delay: 0.3s;
}
.glint-6 {
  bottom: 36px;
  left: 24%;
  width: 7px;
  height: 7px;
  animation-delay: 1.9s;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.15;
    transform: scale(0.6);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.org {
  margin: 72px 0 48px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-indent: 0.35em;
  color: #e7d7b4;
}

.event-poster {
  margin: 0;
}

.event-poster-open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.event-poster-open img,
.event-poster img {
  display: block;
  width: 100%;
  height: auto;
}

.poster-modal {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(18, 14, 12, 0.94);
}

.poster-modal::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.poster-stage {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
}

.poster-stage img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
}

.poster-close,
.poster-tools button {
  border: 0;
  color: #fff8e4;
  background: rgba(0, 0, 0, 0.55);
}

.poster-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

.poster-tools {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 2;
  display: flex;
  gap: 12px;
  transform: translateX(-50%);
}

.poster-tools button {
  width: 52px;
  height: 44px;
  border-radius: 22px;
  font-size: 1.4rem;
  line-height: 1;
}

.event-info {
  padding: 28px 22px 48px;
  text-align: left;
}

.event-info h2,
.event-info p {
  margin: 0;
}

.event-info h2 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: var(--gold);
}

.event-info p {
  font-size: 0.85rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #f6ead0;
}

.event-info .event-ticket {
  margin-top: 16px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff6d8;
}

.event-notes {
  margin-top: 14px;
}

.event-info .event-notes p {
  color: #d7e8f8;
}

.past-election {
  margin: 0 22px 20px;
  text-align: center;
}

.past-election a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  background: rgba(243, 226, 184, 0.08);
  color: var(--gold);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-decoration: none;
}

.candidate-list {
  padding: 8px 22px 12px;
  text-align: left;
}

.candidate-list h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: var(--gold);
}

.candidate-list h2 span {
  font-size: 0.92rem;
  font-weight: 500;
  color: #f6ead0;
}

.candidate {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid rgba(243, 226, 184, 0.28);
}

.candidate img {
  width: 100%;
  height: auto;
  display: block;
}

.candidate dl {
  margin: 0;
}

.candidate dl > div + div {
  margin-top: 4px;
}

.candidate dt,
.candidate dd {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.candidate dt {
  color: #cbb892;
}

.candidate dt::after {
  content: "　";
}

.candidate dl > div:first-child dd,
.candidate dl > div:nth-child(2) dd {
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.06em;
  color: #fff8e4;
}

.candidate dl > div:last-child dt {
  display: none;
}

.candidate dl > div:last-child dt::after {
  content: none;
}

.candidate dl > div:last-child dd {
  display: block;
  margin-top: 10px;
  font-size: 0.9rem;
  line-height: 1.75;
}

.candidate dd:empty::before {
  content: "—";
  color: #f6ead0;
}

.candidate dd {
  color: #f6ead0;
}

.site-footer {
  margin: 8px 22px 0;
  padding: 18px 0 40px;
  border-top: 1px solid rgba(243, 226, 184, 0.28);
  text-align: left;
}

.site-footer p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: #e7d7b4;
}

.site-footer p:first-child {
  margin-bottom: 6px;
  font-size: 0.84rem;
  color: #fff6d8;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.side-logo {
  display: none;
}

@media (min-width: 768px) {
  .home-wrap {
    max-width: 430px;
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.45);
  }

  body.home {
    display: flex;
    justify-content: center;
  }

  .side-logo {
    display: block;
    position: fixed;
    top: 50%;
    z-index: 1;
    width: min(300px, calc((100vw - 500px) / 2));
    height: auto;
    transform: translate(-50%, -50%);
    pointer-events: none;
  }

  .side-logo-left {
    left: calc(25% - 107.5px);
  }

  .side-logo-right {
    left: calc(75% + 107.5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fv img {
    animation: none;
    opacity: 0;
  }

  .fv img:first-child {
    opacity: 1;
  }

  .glint {
    animation: none;
    opacity: 0.7;
  }
}
