:root {
  --ink: #211d16;
  --sand: #f4eee3;
  --deep: #2b2a26;
  --mist: #d3c7b6;
  --accent: #a0753b;
  --accent-dark: #7a5526;
  --glow: rgba(252, 245, 232, 0.8);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 8% 6%, #f8f1e6 0%, transparent 60%),
    radial-gradient(900px 700px at 92% 18%, #ede2d2 0%, transparent 65%),
    linear-gradient(120deg, #f6efe2 0%, #efe4d2 45%, #f4ede3 100%);
  min-height: 100vh;
  line-height: 1.9;
  letter-spacing: 0.04em;
}

.grain {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: multiply;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
  background: rgba(244, 238, 227, 0.92);
  border-bottom: 1px solid rgba(33, 29, 22, 0.12);
  backdrop-filter: blur(6px);
}

.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 8vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header__brand {
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.8rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.site-nav a[aria-current="page"] {
  border-color: rgba(27, 26, 23, 0.25);
  background: rgba(255, 255, 255, 0.7);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: rgba(27, 26, 23, 0.3);
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
  outline: none;
}

.page-hero {
  padding: 72px 8vw 40px;
  position: relative;
  z-index: 2;
}

.page-hero__inner {
  max-width: 920px;
  margin: 0 auto;
}

.page-hero__label {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  color: var(--accent-dark);
  margin-bottom: 16px;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1.05rem;
}

.newyear-title {
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  letter-spacing: 0.16em;
}

.newyear-lead {
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  letter-spacing: 0.08em;
}

.newyear-message {
  position: relative;
  text-align: center;
  padding: 12px 0 80px;
}

.newyear-message__title {
  color: #b22222;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  letter-spacing: 0.2em;
  margin-bottom: 18px;
  font-family: "Yuji Syuku", "Yuji Mai", "HGP行書体", "Hiragino Mincho ProN", serif;
  animation: pop-in 0.8s ease-out both;
}

.newyear-message__text {
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  letter-spacing: 0.08em;
  line-height: 1.7;
  font-family: "Yuji Syuku", "Yuji Mai", "HGP行書体", "Hiragino Mincho ProN", serif;
  animation: pop-in 0.9s ease-out 0.15s both;
}

.newyear-message__button {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #b22222;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: background-color 0.2s ease;
}

.newyear-message__button:hover,
.newyear-message__button:focus-visible {
  background-color: #8b0000;
}

#stage {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  overflow: hidden;
  pointer-events: none;
}

#stage .horse {
  position: absolute;
  font-size: 48px;
  bottom: 10px;
  right: -60px;
  transition: transform 2s linear;
}

.top-art {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(27, 26, 23, 0.12);
  box-shadow: 0 22px 50px rgba(31, 44, 52, 0.12);
  background: rgba(255, 255, 255, 0.9);
  margin: 16px 0 24px;
}

.top-art img {
  width: 100%;
  height: auto;
  display: block;
}

.top-art--full {
  width: min(80vw, 900px);
}

.hero {
  padding: 96px 8vw 72px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero__frame {
  max-width: 920px;
  border: 1px solid rgba(33, 29, 22, 0.2);
  padding: 56px 56px 48px;
  background: rgba(252, 246, 236, 0.8);
  backdrop-filter: blur(6px);
  box-shadow: 0 28px 60px rgba(43, 42, 38, 0.14);
  animation: rise 1.2s ease-out both;
  position: relative;
  z-index: 2;
}

.hero__layout {
  display: flex;
  align-items: center;
  gap: 36px;
}

.hero__icon-wrap {
  width: clamp(140px, 18vw, 190px);
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(27, 26, 23, 0.2);
  box-shadow: 0 20px 45px rgba(31, 44, 52, 0.18);
  background: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}

.hero__icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__text {
  flex: 1;
  min-width: 0;
}

.hero__label {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5em;
  color: var(--accent-dark);
  margin-bottom: 18px;
}

.hero__name {
  font-size: clamp(2.8rem, 4.2vw, 4.2rem);
  letter-spacing: 0.18em;
}

.hero__name-en {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5em;
  color: rgba(27, 26, 23, 0.65);
  margin: 10px 0 28px;
}

.hero__intro {
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__tags span {
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--glow);
  border: 1px solid rgba(160, 117, 59, 0.3);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

main {
  position: relative;
  z-index: 2;
}

.panel {
  padding: 72px 8vw;
}

.panel__inner {
  max-width: 920px;
  margin: 0 auto;
}

.panel__inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 24px;
  letter-spacing: 0.12em;
}

.recent-events {
  margin-bottom: 40px;
}

.panel__inner p + p {
  margin-top: 20px;
}

.topic-section {
  margin-top: 36px;
}

.topic-section h3 {
  font-size: 1.2rem;
  letter-spacing: 0.16em;
  margin-bottom: 16px;
  color: var(--accent-dark);
}

.topic-slider {
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(27, 26, 23, 0.12);
  box-shadow: 0 18px 40px rgba(31, 44, 52, 0.1);
}

.topic-track {
  display: flex;
  transition: transform 0.5s ease;
}

.topic-slide {
  min-width: 100%;
  padding: 28px;
}

.topic-slider--peek .topic-track {
  gap: 18px;
  padding-right: 18px;
}

.topic-slider--peek .topic-slide {
  min-width: 88%;
  flex: 0 0 88%;
}

.topic-card {
  display: grid;
  gap: 10px;
  padding: 28px;
  border-radius: 18px;
  background: rgba(253, 249, 241, 0.9);
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(33, 29, 22, 0.12);
  box-shadow: 0 14px 28px rgba(43, 42, 38, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.topic-card__thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(33, 29, 22, 0.14);
  box-shadow: 0 12px 26px rgba(43, 42, 38, 0.16);
  display: block;
  background: rgba(33, 29, 22, 0.04);
}

.topic-card:hover,
.topic-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 22px 40px rgba(43, 42, 38, 0.18);
}

.topic-card__label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  color: rgba(27, 26, 23, 0.55);
}

.topic-card h4 {
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
}

.topic-card__cta {
  justify-self: start;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(27, 26, 23, 0.2);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-block;
}

.panel--light {
  background: rgba(252, 247, 239, 0.72);
  border-top: 1px solid rgba(33, 29, 22, 0.1);
  border-bottom: 1px solid rgba(33, 29, 22, 0.1);
}

.panel--deep {
  background: #2b2a26;
  color: #f3eadf;
}

.panel--deep h2 {
  color: #f8f0e6;
}

.pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.pill {
  padding: 14px 18px;
  border-radius: 999px;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  align-items: start;
}

.feature-visual {
  margin: 0;
}

.feature-visual img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(31, 44, 52, 0.18);
}

.detail-list {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.detail-list div {
  display: grid;
  gap: 6px;
}

.detail-list dt {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(27, 26, 23, 0.6);
}

.detail-list dd {
  font-size: 1.05rem;
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.poster-card {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  max-width: 520px;
  justify-self: center;
}

.poster-card img {
  width: 100%;
  height: auto;
  display: block;
}

.cta-link {
  display: inline-block;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid rgba(27, 26, 23, 0.3);
  padding: 10px 20px;
  border-radius: 999px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-link:hover,
.cta-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(31, 44, 52, 0.16);
}

.cta-link--light {
  color: #f8f0e6;
  border-color: rgba(255, 255, 255, 0.4);
}

.video-embed {
  position: relative;
  padding-top: 56.25%;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(27, 26, 23, 0.12);
  box-shadow: 0 22px 50px rgba(31, 44, 52, 0.12);
  background: #000;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.gallery-slider {
  margin-top: 28px;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(27, 26, 23, 0.12);
  box-shadow: 0 22px 50px rgba(31, 44, 52, 0.12);
}

.gallery-track {
  display: flex;
  transition: transform 0.5s ease;
}

.gallery-slide {
  min-width: 100%;
  display: grid;
  place-items: center;
  padding: 28px;
  margin: 0;
}

.gallery-slide img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(31, 44, 52, 0.18);
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px 24px;
}

.gallery-button {
  background: transparent;
  border: 1px solid rgba(27, 26, 23, 0.25);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-button:hover,
.gallery-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(31, 44, 52, 0.15);
}

.gallery-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.gallery-dots {
  display: flex;
  gap: 10px;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(27, 26, 23, 0.4);
  background: transparent;
  cursor: pointer;
}

.gallery-dot.is-active {
  background: var(--accent);
  border-color: var(--accent);
}

.thumb-grid {
  columns: 3 240px;
  column-gap: 20px;
}

.thumb {
  margin: 0 0 20px;
  break-inside: avoid;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 30px rgba(31, 44, 52, 0.14);
}

.thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.link-card {
  display: block;
  padding: 22px 24px;
  border-radius: 18px;
  background: rgba(252, 247, 239, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}

.link-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  letter-spacing: 0.16em;
  color: #f3eadf;
}

.link-card p {
  font-size: 0.9rem;
  color: rgba(245, 239, 231, 0.85);
}

.card {
  background: rgba(255, 255, 255, 0.7);
  padding: 28px;
  border: 1px solid rgba(27, 26, 23, 0.1);
  box-shadow: 0 18px 40px rgba(31, 44, 52, 0.08);
  animation: fade-in 1.2s ease-out both;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
}

.footer {
  text-align: center;
  padding: 32px 8vw 48px;
  font-size: 0.85rem;
  color: rgba(27, 26, 23, 0.6);
}

.footer-highlight-link {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: 0.2em;
  text-decoration: none;
  color: var(--accent-dark);
  display: inline-block;
  margin-top: 6px;
  padding: 16px 36px;
  border: 2px solid rgba(27, 26, 23, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.footer-highlight-link:hover {
  color: var(--accent);
  border-color: rgba(177, 131, 78, 0.6);
  background: rgba(255, 248, 235, 0.9);
}

.footer-highlight-link:focus-visible {
  outline: 2px solid rgba(177, 131, 78, 0.6);
  outline-offset: 4px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pop-in {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
  }
  60% {
    opacity: 1;
    transform: scale(1.02) translateY(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 720px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-hero {
    padding: 56px 6vw 32px;
  }

  .hero {
    padding: 72px 6vw 56px;
  }

  .thumb-grid {
    columns: 1 240px;
  }

  .hero__frame {
    padding: 40px 28px 36px;
  }

  .hero__layout {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__icon-wrap {
    width: clamp(140px, 40vw, 200px);
  }

  .hero__tags span {
    font-size: 0.8rem;
  }

  .gallery-controls {
    flex-direction: column;
  }

  .gallery-button {
    width: 100%;
  }

  .topic-slider--peek .topic-slide {
    min-width: 94%;
    flex-basis: 94%;
  }
}
